StPicoEmcTrigger.h 769 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef StPicoEmcTrigger_hh
  2. #define StPicoEmcTrigger_hh
  3. class StPicoDst;
  4. #include "TObject.h"
  5. #include "stdio.h"
  6. class StPicoEmcTrigger : public TObject {
  7. public:
  8. StPicoEmcTrigger();
  9. ~StPicoEmcTrigger();
  10. StPicoEmcTrigger(int, int, int);
  11. void Clear(const Option_t *opt="");
  12. virtual void Print(const Char_t *option = "") const; ///< Print trigger info
  13. Int_t flag() const { return (Int_t)mFlag; }
  14. Int_t id() const { return (Int_t)mId; }
  15. Int_t adc() const { return (Int_t)mAdc; }
  16. protected:
  17. UChar_t mFlag; // 0x1: ht0, 0x2: ht1, 0x4: ht2; 0x8: ht3
  18. UShort_t mId; // soft id. bjp: 1-18, ht: 1-4800
  19. UShort_t mAdc; // adc
  20. friend class StPicoDst;
  21. ClassDef(StPicoEmcTrigger, 1)
  22. };
  23. #endif