StPicoBTOWHit.h 714 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef StPicoBTOWHit_hh
  2. #define StPicoBTOWHit_hh
  3. class StPicoDst;
  4. #include "TObject.h"
  5. #include "stdio.h"
  6. class StPicoBTOWHit : public TObject {
  7. public:
  8. StPicoBTOWHit();
  9. ~StPicoBTOWHit();
  10. StPicoBTOWHit(int, int, float);
  11. void Clear(const Option_t *opt="");
  12. virtual void Print(const Char_t *option = "") const; ///< Print trigger info
  13. Int_t id() const { return (Int_t)mId; }
  14. Int_t adc() const { return (Int_t)mAdc; }
  15. Float_t energy() const { return (Float_t)mE/1000.; }
  16. protected:
  17. UShort_t mId; // towerId 1-4800
  18. UShort_t mAdc; // adc
  19. Short_t mE; // Energy * 1000;
  20. friend class StPicoDst;
  21. ClassDef(StPicoBTOWHit, 1)
  22. };
  23. #endif