StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StRunInfo.cxx
1 /***************************************************************************
2  *
3  * $Id: StRunInfo.cxx,v 2.7 2004/10/20 16:06:53 ullrich Exp $
4  *
5  * Author: Thomas Ullrich, Sep 2001
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StRunInfo.cxx,v $
13  * Revision 2.7 2004/10/20 16:06:53 ullrich
14  * Add variables to report on space charge and the correction mode.
15  *
16  * Revision 2.6 2004/07/06 23:05:21 ullrich
17  * Added SVT drift velocity scaler.
18  *
19  * Revision 2.5 2004/01/22 23:14:07 ullrich
20  * Added Rhic scaler methods (BBC).
21  *
22  * Revision 2.4 2002/02/25 19:32:47 ullrich
23  * Added more RHIC related info.
24  *
25  * Revision 2.3 2002/01/31 23:42:36 ullrich
26  * Added member to hold BBC coincidence rate.
27  *
28  * Revision 2.2 2001/12/02 19:27:12 ullrich
29  * Added new member and methods.
30  *
31  * Revision 2.1 2001/09/18 00:14:17 ullrich
32  * Initial Revision.
33  *
34  **************************************************************************/
35 #include "StRunInfo.h"
36 
37 static const char rcsid[] = "$Id: StRunInfo.cxx,v 2.7 2004/10/20 16:06:53 ullrich Exp $";
38 
39 ClassImp(StRunInfo)
40 
42 {
43  mRunId = 0;
44  mProductionTime = 0;
45  mCenterOfMassEnergy = 0;
46  mMagneticFieldZ = 0;
47 
48  mZdcEastRate = 0;
49  mZdcWestRate = 0;
50  mZdcCoincidenceRate = 0;
51  mBbcCoincidenceRate = 0;
52  mBackgroundRate = 0;
53  mL0RateToRich = 0;
54  mSvtDriftVelocityScaler = 0;
55 
56  for (int i=0; i<2; i++) {
57  mBeamMassNumber[i] = 0;
58  mTpcDriftVelocity[i] = 0;
59  mBeamEnergy[i] = 0;
60  mInitialBeamIntensity[i] = 0;
61  mBeamLifeTime[i] = 0;
62  mBeamFillNumber[i] = 0;
63  }
64 
65  mBbcEastRate = 0;
66  mBbcWestRate = 0;
67  mBbcBlueBackgroundRate = 0;
68  mBbcYellowBackgroundRate = 0;
69 
70  mSpaceChargeCorrectionMode = 0;
71  mSpaceCharge = 0;
72 }
73 
74 StRunInfo::~StRunInfo() {/* noop */}
75 
76 int
77 StRunInfo::runId() const
78 {return mRunId;}
79 
80 time_t
81 StRunInfo::productionTime() const
82 {return mProductionTime;}
83 
84 TString
85 StRunInfo::productionVersion() const
86 {return mProductionVersion;}
87 
88 double
89 StRunInfo::centerOfMassEnergy() const
90 {return mCenterOfMassEnergy;}
91 
92 int
93 StRunInfo::beamMassNumber(StBeamDirection dir) const
94 {return mBeamMassNumber[dir];}
95 
96 float
97 StRunInfo::beamEnergy(StBeamDirection dir) const
98 {return mBeamEnergy[dir];}
99 
100 float
101 StRunInfo::initialBeamIntensity(StBeamDirection dir) const
102 {return mInitialBeamIntensity[dir];}
103 
104 float
105 StRunInfo::beamLifeTime(StBeamDirection dir) const
106 {return mBeamLifeTime[dir];}
107 
108 float
109 StRunInfo::beamFillNumber(StBeamDirection dir) const
110 {return mBeamFillNumber[dir];}
111 
112 double
113 StRunInfo::magneticField() const
114 {return mMagneticFieldZ;}
115 
116 double
117 StRunInfo::tpcDriftVelocity(StBeamDirection dir) const
118 {return mTpcDriftVelocity[dir];}
119 
120 double
121 StRunInfo::svtDriftVelocityScaler() const
122 {return mSvtDriftVelocityScaler;}
123 
124 double
125 StRunInfo::zdcWestRate() const
126 {return mZdcWestRate;}
127 
128 double
129 StRunInfo::zdcEastRate() const
130 {return mZdcEastRate;}
131 
132 double
133 StRunInfo::zdcCoincidenceRate() const
134 {return mZdcCoincidenceRate;}
135 
136 double
137 StRunInfo::bbcCoincidenceRate() const
138 {return mBbcCoincidenceRate;}
139 
140 double
141 StRunInfo::backgroundRate() const
142 {return mBackgroundRate;}
143 
144 double
145 StRunInfo::l0RateToRich() const
146 {return mL0RateToRich;}
147 
148 double
149 StRunInfo::bbcEastRate() const
150 {return mBbcEastRate;}
151 
152 double
153 StRunInfo::bbcWestRate() const
154 {return mBbcWestRate;}
155 
156 double
157 StRunInfo::bbcBlueBackgroundRate() const
158 {return mBbcBlueBackgroundRate;}
159 
160 double
161 StRunInfo::bbcYellowBackgroundRate() const
162 {return mBbcYellowBackgroundRate;}
163 
164 int
165 StRunInfo::spaceChargeCorrectionMode() const
166 {return mSpaceChargeCorrectionMode;}
167 
168 float
169 StRunInfo::spaceCharge() const
170 {return mSpaceCharge;}
171 
172 void
173 StRunInfo::setRunId(int val) {mRunId = val;}
174 
175 void
176 StRunInfo::setProductionTime(time_t val)
177 {mProductionTime = val;}
178 
179 void
180 StRunInfo::setProductionVersion(const char* val)
181 {mProductionVersion = TString(val);}
182 
183 void
184 StRunInfo::setCenterOfMassEnergy(double val)
185 {mCenterOfMassEnergy = val;}
186 
187 void
188 StRunInfo::setBeamMassNumber(StBeamDirection dir, int val)
189 {mBeamMassNumber[dir] = val;}
190 
191 void
192 StRunInfo::setBeamEnergy(StBeamDirection dir, float val)
193 {mBeamEnergy[dir] = val;}
194 
195 void
196 StRunInfo::setInitialBeamIntensity(StBeamDirection dir, float val)
197 {mInitialBeamIntensity[dir] = val;}
198 
199 void
200 StRunInfo::setBeamLifeTime(StBeamDirection dir, float val)
201 {mBeamLifeTime[dir] = val;}
202 
203 void
204 StRunInfo::setBeamFillNumber(StBeamDirection dir, float val)
205 {mBeamFillNumber[dir] = val;}
206 
207 void
208 StRunInfo::setMagneticField(double val)
209 {mMagneticFieldZ = val;}
210 
211 void
212 StRunInfo::setTpcDriftVelocity(StBeamDirection dir, double val)
213 {mTpcDriftVelocity[dir] = val;}
214 
215 void
216 StRunInfo::setSvtDriftVelocityScaler(float val)
217 {mSvtDriftVelocityScaler = val;}
218 
219 void
220 StRunInfo::setZdcWestRate(double val)
221 {mZdcWestRate = val;}
222 
223 void
224 StRunInfo::setZdcEastRate(double val)
225 {mZdcEastRate = val;}
226 
227 void
228 StRunInfo::setZdcCoincidenceRate(double val)
229 {mZdcCoincidenceRate = val;}
230 
231 void
232 StRunInfo::setBbcCoincidenceRate(double val)
233 {mBbcCoincidenceRate = val;}
234 
235 void
236 StRunInfo::setBackgroundRate(double val)
237 {mBackgroundRate = val;}
238 
239 void
240 StRunInfo::setL0RateToRich(double val)
241 {mL0RateToRich = val;}
242 
243 void
244 StRunInfo::setBbcEastRate(double val)
245 {mBbcEastRate = val;}
246 
247 void
248 StRunInfo::setBbcWestRate(double val)
249 {mBbcWestRate = val;}
250 
251 void
252 StRunInfo::setBbcBlueBackgroundRate(double val)
253 {mBbcBlueBackgroundRate = val;}
254 
255 void
256 StRunInfo::setBbcYellowBackgroundRate(double val)
257 {mBbcYellowBackgroundRate = val;}
258 
259 void
260 StRunInfo::setSpaceChargeCorrectionMode(int val)
261 {mSpaceChargeCorrectionMode = val;}
262 
263 void
264 StRunInfo::setSpaceCharge(float val)
265 {mSpaceCharge = val;}