StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEEmcDataDrivenMcEventInfo.h
1 //
2 // Ilya Selyuzhenkov <ilya.selyuzhenkov@gmail.com>
3 // Indiana University Cyclotron Facility
4 //
5 // Pibero Djawotho <pibero@indiana.edu>
6 // Indiana University Cyclotron Facility
7 //
8 
9 #ifndef __StEEmcDataDrivenMcEventInfo_h__
10 #define __StEEmcDataDrivenMcEventInfo_h__
11 
12 #include "TVector3.h"
13 #include "TClonesArray.h"
14 
15 #include "StEEmcDataDrivenMcReplaceInfo.h"
16 
17 class StEEmcDataDrivenMcEventInfo : public TObject {
18 public:
20  virtual ~StEEmcDataDrivenMcEventInfo();
21 
22  void Clear(Option_t* options = "");
23  StEEmcDataDrivenMcReplaceInfo* newReplaceInfo();
24  int NumberOfReplacements() const { return mReplaceInfo->GetEntriesFast(); }
25  StEEmcDataDrivenMcReplaceInfo* ReplaceInfo(int i) const { return (StEEmcDataDrivenMcReplaceInfo*)mReplaceInfo->At(i); }
26  int runId() const {return mRunId;}
27  int eventId() const {return mEventId;}
28  TString fileName() const {return mFileName;}
29 
30  void SetRunId(int run) { mRunId = run; }
31  void SetEventId(int event) { mEventId = event; }
32  void SetFileName(const char* fileName){ mFileName = fileName; }
33 
34 protected:
35  int mRunId;
36  int mEventId;
37  TString mFileName;
38 
39 private:
40  void InitArrays();
41 
42  TClonesArray* mReplaceInfo;
43 
44  ClassDef(StEEmcDataDrivenMcEventInfo,1);
45 };
46 
47 #endif