StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StRHICfCollection.h
1 #ifndef StRHICfCollection_hh
2 #define StRHICfCollection_hh
3 
4 #include <vector>
5 
6 #include "Stiostream.h"
7 #include "StObject.h"
8 #include "StContainers.h"
9 #include "StEnumerations.h"
10 
11 #include "StRHICfRawHit.h"
12 #include "StRHICfHit.h"
13 #include "StRHICfPoint.h"
14 
15 class StRHICfCollection : public StObject
16 {
17  public:
20 
21  void clear();
22 
23  // main RHICf data structure
24  StRHICfRawHit* rawHitCollection();
25  StRHICfHit* hitCollection();
26 
27  void addPoint(StRHICfPoint* pointColl);
28  void addPointCollection(std::vector<StRHICfPoint*> coll);
29  std::vector<StRHICfPoint*>& pointCollection(); // Return the point list
30  const std::vector<StRHICfPoint*>& pointCollection() const;
31 
32  // run header
33  void isAllSave();
34  void setRHICfRunNumber(UInt_t run);
35  void setRHICfEventNumber(UInt_t event);
36  void setBunchNumber(UInt_t bunch);
37  void setRunType(UInt_t type);
38  void setTriggerNumber(UInt_t trigger);
39  void setRunTime(Int_t idx, UInt_t time);
40  void setRunTRGM(UInt_t trgm);
41 
42  UInt_t numberOfPoints() const;
43  UInt_t getRHICfRunNumber() const;
44  UInt_t getRHICfEventNumber() const;
45  UInt_t getBunchNumber();
46  UInt_t getRunType();
47  UInt_t getTriggerNumber();
48  UInt_t getRunTime(Int_t idx);
49  UInt_t getRunTRGM();
50 
51  private:
52  StRHICfRawHit* mRHICfRawHitColl;
53  StRHICfHit* mRHICfHitColl;
54  std::vector<StRHICfPoint*> mRHICfPointColl;
55 
56  // Important note: the _RHICf_ Run and Event numbers are distinct from the _STAR_ Run and Event numbers,
57  // originating from RHICf's own raw data acquisition and studies outside of the STAR framework
58  UInt_t mRHICfRunNumber;
59  UInt_t mRHICfEventNumber;
60  UInt_t mBunchNumber;
61  UInt_t mRunType;
62  UInt_t mRHICfTrigger;
63  UInt_t mRunTime[kRHICfNorder];
64  UInt_t mRunTRGM;
65 
66  ClassDef(StRHICfCollection,2)
67 };
68 
69 #endif