StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StLuminosityHolder.h
1 #ifndef StLuminosityHolder_hh
2 #define StLuminosityHolder_hh
3 
4 #include "TObject.h"
5 #include <vector>
6 using namespace std;
7 
8 class StLuminosityHolder : public TObject
9 {
10  private:
11  int mRunNumber;
12  vector<unsigned int> mTriggers;
13  vector<float> mLumTotal;
14  vector<float> mLumCuts;
15  vector<float>mLumVertex;
16  vector<float>mLumSoftTrig;
17  vector<float> mPrescales;
18  vector<unsigned int> mNTotal;
19  vector<unsigned int> mNCuts;
20  vector<unsigned int> mNVertex;
21  vector<unsigned int> mNSoftTrig;
22  float mXsec;
23  float mVertexCut;
24 
25  public:
26  StLuminosityHolder(int run = 0);
28  void ClearVectors();
29  void setRunNumber(int run){mRunNumber = run;}
30  void setCrossSectionNB(float xsec){mXsec = xsec;}
31  void setVertexCutcm(float vcut){mVertexCut = vcut;}
32  void setTriggers(vector<unsigned int> triggers){mTriggers = triggers;}
33  void setLumTotal(vector<float> lumtot){mLumTotal = lumtot;}
34  void setLumCuts(vector<float> lumcut){mLumCuts = lumcut;}
35  void setLumSoftTrig(vector<float> lumtrig){mLumSoftTrig = lumtrig;}
36  void setLumVertex(vector<float> lumvert){mLumVertex = lumvert;}
37  void setNTotal(vector<unsigned int> ntot){mNTotal = ntot;}
38  void setNCuts(vector<unsigned int> ncuts){mNCuts = ncuts;}
39  void setNSoftTrig(vector<unsigned int> ntrig){mNSoftTrig = ntrig;}
40  void setNVertex(vector<unsigned int> nvert){mNVertex = nvert;}
41  void setPrescales(vector<float> prescales){mPrescales = prescales;}
42 
43  const int getRunNumber() const {return mRunNumber;}
44  const float getCrossSectionNB() const {return mXsec;}
45  const float getVertexCutcm() const {return mVertexCut;}
46  const vector<unsigned int> getTriggers() const {return mTriggers;}
47  const vector<unsigned int> getNTotal() const {return mNTotal;}
48  const vector<unsigned int> getNCuts() const {return mNCuts;}
49  const vector<unsigned int> getNVertex() const {return mNVertex;}
50  const vector<unsigned int> getNSoftTrig() const {return mNSoftTrig;}
51  const vector<float> getLumTotal() const {return mLumTotal;}
52  const vector<float> getLumCuts() const {return mLumCuts;}
53  const vector<float> getLumVertex() const {return mLumVertex;}
54  const vector<float> getLumSoftTrig() const {return mLumSoftTrig;}
55  const vector<float> getPrescales() const {return mPrescales;}
56 
57 
58  ClassDef(StLuminosityHolder,1)
59 };
60 
61 
62 #endif