StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPicoBTowHit.h
1 
9 #ifndef StPicoBTowHit_h
10 #define StPicoBTowHit_h
11 
12 // C++ headers
13 #include <limits>
14 
15 // ROOT headers
16 #include "TObject.h"
17 
18 //_________________
19 class StPicoBTowHit : public TObject {
20 
21  public:
23  StPicoBTowHit();
25  StPicoBTowHit(Int_t adc, Float_t e);
29  virtual ~StPicoBTowHit();
31  virtual void Print(const Char_t* option = "") const;
32 
33  //
34  // Getters
35  //
36 
38  Int_t adc() const { return (Int_t)mAdc; }
40  Float_t energy() const { return (Float_t)mE / 1000.f; }
42  Bool_t isBad() const;
44  Int_t numericIndex2SoftId(Int_t idx) const { return (idx+1); }
45 
46  //
47  // Setters
48  //
49 
51  void setAdc(Int_t adc);
53  void setEnergy(Float_t energy);
54 
55  protected:
56 
58  UShort_t mAdc;
60  Short_t mE;
61 
62  ClassDef(StPicoBTowHit, 4)
63 };
64 
65 #endif
StPicoBTowHit()
Default constructor.
Holds information about BEMC tower.
Definition: StPicoBTowHit.h:19
void setAdc(Int_t adc)
Set tower ADC.
Int_t adc() const
Return ADC of the tower.
Definition: StPicoBTowHit.h:38
virtual ~StPicoBTowHit()
Destructor.
virtual void Print(const Char_t *option="") const
Print tower information.
Short_t mE
Energy * 1000.
Definition: StPicoBTowHit.h:60
UShort_t mAdc
ADC.
Definition: StPicoBTowHit.h:58
Float_t energy() const
Return energy of the tower.
Definition: StPicoBTowHit.h:40
Bool_t isBad() const
Return if the tower is bad.
void setEnergy(Float_t energy)
Set tower energy.
Int_t numericIndex2SoftId(Int_t idx) const
Return softId.
Definition: StPicoBTowHit.h:44