StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuRHICfRawHit.h
1 #ifndef StMuRHICfRawHit_hh
2 #define StMuRHICfRawHit_hh
3 
4 #include <TObject.h>
6 
7 class StMuRHICfRawHit : public TObject
8 {
9  public:
11  ~StMuRHICfRawHit();
12 
13  void clear();
14 
15  void setRHICfRunNumber(UInt_t run);
16  void setRHICfEventNumber(UInt_t event);
17  void setRunType(UInt_t type);
18  void setBunchNumber(UInt_t bunch);
19  void setTriggerNumber(UInt_t trigger);
20  void setRunTime(Int_t idx, UInt_t time);
21  void setRunTRGM(UInt_t trgm);
22 
23  void setPlateADC(Int_t tower, Int_t plate, Int_t range, Int_t adc);
24  void setPlateADCDelay(Int_t tower, Int_t plate, Int_t range, Int_t adc);
25  void setGSOBarADC(Int_t tower, Int_t layer, Int_t xy, Int_t bar, Int_t adc);
26  void setTDC(Int_t idx, UInt_t val);
27  void setCAD0(Int_t idx, UInt_t val);
28  void setGPI0(Int_t idx, UInt_t val);
29  void setGPI1(Int_t idx, UInt_t val);
30 
31  UInt_t getRHICfRunNumber();
32  UInt_t getRHICfEventNumber();
33  UInt_t getRunType();
34  UInt_t getBunchNumber();
35  UInt_t getTriggerNumber();
36  UInt_t getRunTime(Int_t idx);
37  UInt_t getRunTRGM();
38 
39  UShort_t getPlateADC(Int_t tower, Int_t plate, Int_t range);
40  UShort_t getPlateADCDelay(Int_t tower, Int_t plate, Int_t range);
41  UShort_t getGSOBarADC(Int_t tower, Int_t layer, Int_t xy, Int_t bar);
42  UInt_t getTDC(Int_t idx);
43  UInt_t getCAD0(Int_t idx);
44  UInt_t getGPI0(Int_t idx);
45  UInt_t getGPI1(Int_t idx);
46 
47  private:
48 
49  // Important note: the _RHICf_ Run and Event numbers are distinct from the _STAR_ Run and Event numbers,
50  // originating from RHICf's own raw data acquisition and studies outside of the STAR framework.
51  UInt_t mRHICfRunNumber;
52  UInt_t mRHICfEventNumber;
53  UInt_t mRunType;
54  UInt_t mBunchNumber;
55  UInt_t mRHICfTrigger;
56  UInt_t mRunTime[kRHICfNorder];
57  UInt_t mRunTRGM;
58 
59  UShort_t mPlateADC[kRHICfNtower][kRHICfNplate][kRHICfNrange]; // ADC of GSO plate
60  UShort_t mPlateADCDelay[kRHICfNtower][kRHICfNplate][kRHICfNrange]; // Delayed ADC of GSO plate (for pedestal)
61  UShort_t mGSOSmallADC[kRHICfNlayer][kRHICfNxy][kRHICfNbarSmall]; // ADC of GSO bar of small tower
62  UShort_t mGSOLargeADC[kRHICfNlayer][kRHICfNxy][kRHICfNbarLarge]; // ADC of GSO bar of large tower
63  UInt_t mTDC[kRHICfNtdc]; // TDC
64  UInt_t mCAD0[kRHICfNcad0]; // CAD0
65  UInt_t mGPI0[kRHICfNgpi0]; // GPI0
66  UInt_t mGPI1[kRHICfNgpi1]; // GPI1
67 
68  ClassDef(StMuRHICfRawHit,2)
69 };
70 
71 #endif