StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StRunInfo.h
1 
5 /***************************************************************************
6  *
7  * $Id: StRunInfo.h,v 2.8 2004/10/20 16:06:53 ullrich Exp $
8  *
9  * Author: Thomas Ullrich, Sep 2001
10  ***************************************************************************
11  *
12  * Description:
13  *
14  ***************************************************************************
15  *
16  * $Log: StRunInfo.h,v $
17  * Revision 2.8 2004/10/20 16:06:53 ullrich
18  * Add variables to report on space charge and the correction mode.
19  *
20  * Revision 2.7 2004/07/06 23:05:26 ullrich
21  * Added SVT drift velocity scaler.
22  *
23  * Revision 2.6 2004/01/22 23:14:07 ullrich
24  * Added Rhic scaler methods (BBC).
25  *
26  * Revision 2.5 2002/02/25 19:32:47 ullrich
27  * Added more RHIC related info.
28  *
29  * Revision 2.4 2002/02/22 22:56:50 jeromel
30  * Doxygen basic documentation in all header files. None of this is required
31  * for QM production.
32  *
33  * Revision 2.3 2002/01/31 23:42:36 ullrich
34  * Added member to hold BBC coincidence rate.
35  *
36  * Revision 2.2 2001/12/02 19:27:12 ullrich
37  * Added new member and methods.
38  *
39  * Revision 2.1 2001/09/18 00:14:17 ullrich
40  * Initial Revision.
41  *
42  **************************************************************************/
43 #ifndef StRunInfo_hh
44 #define StRunInfo_hh
45 
46 #include "StObject.h"
47 #include "TString.h"
48 #include "StEnumerations.h"
49 #include <ctime>
50 
51 class StRunInfo : public StObject {
52 public:
53  StRunInfo();
54  // StRunInfo(const StRunInfo&); use default
55  // StRunInfo& operator=(const StRunInfo&); use default
56  virtual ~StRunInfo();
57 
58  int runId() const;
59  time_t productionTime() const;
60  TString productionVersion() const;
61  double centerOfMassEnergy() const;
62  int beamMassNumber(StBeamDirection) const;
63  float beamEnergy(StBeamDirection) const;
64  float initialBeamIntensity(StBeamDirection) const;
65  float beamLifeTime(StBeamDirection) const;
66  float beamFillNumber(StBeamDirection) const;
67  double magneticField() const;
68  double tpcDriftVelocity(StBeamDirection) const;
69  double svtDriftVelocityScaler() const;
70 
71  double zdcWestRate() const;
72  double zdcEastRate() const;
73  double zdcCoincidenceRate() const;
74  double bbcCoincidenceRate() const;
75  double backgroundRate() const;
76  double l0RateToRich() const;
77 
78  double bbcEastRate() const;
79  double bbcWestRate() const;
80  double bbcBlueBackgroundRate() const;
81  double bbcYellowBackgroundRate() const;
82 
83  int spaceChargeCorrectionMode() const;
84  float spaceCharge() const;
85 
86  void setRunId(int);
87  void setProductionTime(time_t);
88  void setProductionVersion(const char*);
89  void setCenterOfMassEnergy(double);
90  void setBeamMassNumber(StBeamDirection, int);
91  void setBeamEnergy(StBeamDirection, float);
92  void setInitialBeamIntensity(StBeamDirection, float);
93  void setBeamLifeTime(StBeamDirection, float);
94  void setBeamFillNumber(StBeamDirection, float);
95  void setMagneticField(double);
96  void setTpcDriftVelocity(StBeamDirection, double);
97  void setSvtDriftVelocityScaler(float);
98 
99  void setZdcWestRate(double);
100  void setZdcEastRate(double);
101  void setZdcCoincidenceRate(double);
102  void setBbcCoincidenceRate(double);
103  void setBackgroundRate(double);
104  void setL0RateToRich(double);
105 
106  void setBbcEastRate(double);
107  void setBbcWestRate(double);
108  void setBbcBlueBackgroundRate(double);
109  void setBbcYellowBackgroundRate(double);
110 
111  void setSpaceChargeCorrectionMode(int);
112  void setSpaceCharge(float);
113 
114 
115 protected:
116  Int_t mRunId;
117 
118  UInt_t mProductionTime;
119  TString mProductionVersion;
120 
121  Float_t mCenterOfMassEnergy;
122  Int_t mBeamMassNumber[2];
123 
124  Double_t mMagneticFieldZ;
125  Float_t mTpcDriftVelocity[2];
126  Float_t mSvtDriftVelocityScaler;
127 
128  Double_t mZdcEastRate;
129  Double_t mZdcWestRate;
130  Double_t mZdcCoincidenceRate;
131  Double_t mBackgroundRate;
132  Double_t mL0RateToRich;
133  Double_t mBbcCoincidenceRate;
134 
135  Float_t mBeamEnergy[2];
136  Float_t mInitialBeamIntensity[2];
137  Float_t mBeamLifeTime[2];
138  Float_t mBeamFillNumber[2];
139 
140  Double_t mBbcEastRate;
141  Double_t mBbcWestRate;
142  Double_t mBbcBlueBackgroundRate;
143  Double_t mBbcYellowBackgroundRate;
144 
145  Int_t mSpaceChargeCorrectionMode;
146  Float_t mSpaceCharge;
147 
148  ClassDef(StRunInfo,7)
149 };
150 #endif