StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPicoFmsHit.h
1 
10 #ifndef StPicoFmsHit_h
11 #define StPicoFmsHit_h
12 
13 // ROOT headers
14 #include "TObject.h"
15 
16 //_________________
17 class StPicoFmsHit: public TObject {
18 
19  public:
21  StPicoFmsHit();
23  StPicoFmsHit(Int_t detectorId, Int_t channelId, Int_t adc);
27  virtual ~StPicoFmsHit();
29  virtual void Print(const Char_t *option = "") const;
30 
31  //
32  // Getters
33  //
34 
36  Int_t detectorId() const { return (Int_t)( mChannelDetectorId % 32 ); }
38  Int_t channel() const { return (Int_t) (mChannelDetectorId / 32); }
40  Int_t adc() const { return (Int_t)mAdc; }
41 
42  //
43  // Setters
44  //
45 
47  void setChannelDetectorId(Int_t channelId, Int_t detectorId);
49  void setAdc(Float_t adc);
51  void setAdc(Int_t adc);
52 
53  private:
54 
56  UShort_t mChannelDetectorId;
58  UShort_t mAdc;
59 
60  ClassDef(StPicoFmsHit, 1)
61 };
62 
63 #endif
void setChannelDetectorId(Int_t channelId, Int_t detectorId)
Set channel and detector ID.
virtual ~StPicoFmsHit()
Destructor.
Int_t channel() const
Return channel [0,2047].
Definition: StPicoFmsHit.h:38
Holds information about FMS hit.
Definition: StPicoFmsHit.h:17
virtual void Print(const Char_t *option="") const
Prints FMS hit information.
void setAdc(Float_t adc)
Set ADC.
Int_t detectorId() const
Return detector ID [0,31].
Definition: StPicoFmsHit.h:36
StPicoFmsHit()
Default constructor.
Int_t adc() const
Return ADC.
Definition: StPicoFmsHit.h:40