StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTriggerStudyEvent.h
1 #ifndef StTriggerStudyEvent_hh
2 #define StTriggerStudyEvent_hh
3 #include "StarClassLibrary/StThreeVectorF.hh"
4 #include "TObject.h"
5 #include <map>
6 
7 using namespace std;
8 
9 class StTriggerStudyEvent : public TObject {
10  private:
11  vector<unsigned int>mTriggers;
12  vector<unsigned int>mPrescales;
13  vector<unsigned int>mSimuTriggers;
14  vector<float>mJPEt;
15  StThreeVectorF mVertexPosition;
16  int mBbcTimeBin;
17  map<int,int>mTowerDSM;
18  map<int,float>mTowerADC;//pedestal subtracted
19  map<int,int>mTPatchDSM;
20  map<int,int>mJPatchDSM;
21  vector<unsigned int>mTowers;
22  vector<unsigned int>mHTowers;
23  vector<unsigned int>mTPatches;
24  vector<unsigned int>mJPatches;
25 
26 
27  public:
29  virtual ~StTriggerStudyEvent() {}
30  virtual void Clear(const Option_t* opt="");
31  void setJPEt(vector<float> vec){mJPEt = vec;}
32  void setTriggers(vector<unsigned int> triggers){mTriggers = triggers;}
33  void setPrescales(vector<unsigned int> prescales){mPrescales = prescales;}
34  void setVertexPosition(StThreeVectorF vert){mVertexPosition = vert;}
35  void setBbcTimeBin(int bbctimebin){mBbcTimeBin = bbctimebin;}
36  void setSimuTriggers(vector<unsigned int> simtrig){mSimuTriggers = simtrig;}
37  void addTowerDSM(int softID, int dsm){mTowerDSM[softID] = dsm;mHTowers.push_back(softID);}
38  void addTowerADC(int softID, float adc){mTowerADC[softID] = adc;mTowers.push_back(softID);}
39  void addTPatchDSM(int patchID,int dsm){mTPatchDSM[patchID] = dsm;mTowers.push_back(patchID);}
40  void addJPatchDSM(int patchID,int dsm){mJPatchDSM[patchID] = dsm;mTowers.push_back(patchID);}
41 
42  const int getBbcTimeBin() const {return mBbcTimeBin;}
43  const StThreeVectorF getVertexPosition() const {return mVertexPosition;}
44  const vector<unsigned int> getTriggers() const {return mTriggers;}
45  const vector<unsigned int> getPrescales() const {return mPrescales;}
46  const vector<unsigned int> getSimuTriggers() const {return mSimuTriggers;}
47  const vector<unsigned int> getTowers() const {return mTowers;}
48  const vector<unsigned int> getHTowers() const {return mHTowers;}
49  const vector<unsigned int> getTPatches() const {return mTPatches;}
50  const vector<unsigned int> getJPatches() const {return mJPatches;}
51  int getTowerDSM(int softID) {return mTowerDSM[softID];}
52  float getTowerADC(int softID) {return mTowerADC[softID];}
53  int getTPatchDSM(int softID) {return mTPatchDSM[softID];}
54  int getJPatchDSM(int softID) {return mJPatchDSM[softID];}
55  const vector<float> getJPEt() const {return mJPEt;}
56 
57 
58  ClassDef(StTriggerStudyEvent, 1)
59 };
60 #endif