35 #include "StRunInfo.h"
37 static const char rcsid[] =
"$Id: StRunInfo.cxx,v 2.7 2004/10/20 16:06:53 ullrich Exp $";
45 mCenterOfMassEnergy = 0;
50 mZdcCoincidenceRate = 0;
51 mBbcCoincidenceRate = 0;
54 mSvtDriftVelocityScaler = 0;
56 for (
int i=0; i<2; i++) {
57 mBeamMassNumber[i] = 0;
58 mTpcDriftVelocity[i] = 0;
60 mInitialBeamIntensity[i] = 0;
62 mBeamFillNumber[i] = 0;
67 mBbcBlueBackgroundRate = 0;
68 mBbcYellowBackgroundRate = 0;
70 mSpaceChargeCorrectionMode = 0;
74 StRunInfo::~StRunInfo() {}
77 StRunInfo::runId()
const
81 StRunInfo::productionTime()
const
82 {
return mProductionTime;}
85 StRunInfo::productionVersion()
const
86 {
return mProductionVersion;}
89 StRunInfo::centerOfMassEnergy()
const
90 {
return mCenterOfMassEnergy;}
93 StRunInfo::beamMassNumber(StBeamDirection dir)
const
94 {
return mBeamMassNumber[dir];}
97 StRunInfo::beamEnergy(StBeamDirection dir)
const
98 {
return mBeamEnergy[dir];}
101 StRunInfo::initialBeamIntensity(StBeamDirection dir)
const
102 {
return mInitialBeamIntensity[dir];}
105 StRunInfo::beamLifeTime(StBeamDirection dir)
const
106 {
return mBeamLifeTime[dir];}
109 StRunInfo::beamFillNumber(StBeamDirection dir)
const
110 {
return mBeamFillNumber[dir];}
113 StRunInfo::magneticField()
const
114 {
return mMagneticFieldZ;}
117 StRunInfo::tpcDriftVelocity(StBeamDirection dir)
const
118 {
return mTpcDriftVelocity[dir];}
121 StRunInfo::svtDriftVelocityScaler()
const
122 {
return mSvtDriftVelocityScaler;}
125 StRunInfo::zdcWestRate()
const
126 {
return mZdcWestRate;}
129 StRunInfo::zdcEastRate()
const
130 {
return mZdcEastRate;}
133 StRunInfo::zdcCoincidenceRate()
const
134 {
return mZdcCoincidenceRate;}
137 StRunInfo::bbcCoincidenceRate()
const
138 {
return mBbcCoincidenceRate;}
141 StRunInfo::backgroundRate()
const
142 {
return mBackgroundRate;}
145 StRunInfo::l0RateToRich()
const
146 {
return mL0RateToRich;}
149 StRunInfo::bbcEastRate()
const
150 {
return mBbcEastRate;}
153 StRunInfo::bbcWestRate()
const
154 {
return mBbcWestRate;}
157 StRunInfo::bbcBlueBackgroundRate()
const
158 {
return mBbcBlueBackgroundRate;}
161 StRunInfo::bbcYellowBackgroundRate()
const
162 {
return mBbcYellowBackgroundRate;}
165 StRunInfo::spaceChargeCorrectionMode()
const
166 {
return mSpaceChargeCorrectionMode;}
169 StRunInfo::spaceCharge()
const
170 {
return mSpaceCharge;}
173 StRunInfo::setRunId(
int val) {mRunId = val;}
176 StRunInfo::setProductionTime(time_t val)
177 {mProductionTime = val;}
180 StRunInfo::setProductionVersion(
const char* val)
181 {mProductionVersion = TString(val);}
184 StRunInfo::setCenterOfMassEnergy(
double val)
185 {mCenterOfMassEnergy = val;}
188 StRunInfo::setBeamMassNumber(StBeamDirection dir,
int val)
189 {mBeamMassNumber[dir] = val;}
192 StRunInfo::setBeamEnergy(StBeamDirection dir,
float val)
193 {mBeamEnergy[dir] = val;}
196 StRunInfo::setInitialBeamIntensity(StBeamDirection dir,
float val)
197 {mInitialBeamIntensity[dir] = val;}
200 StRunInfo::setBeamLifeTime(StBeamDirection dir,
float val)
201 {mBeamLifeTime[dir] = val;}
204 StRunInfo::setBeamFillNumber(StBeamDirection dir,
float val)
205 {mBeamFillNumber[dir] = val;}
208 StRunInfo::setMagneticField(
double val)
209 {mMagneticFieldZ = val;}
212 StRunInfo::setTpcDriftVelocity(StBeamDirection dir,
double val)
213 {mTpcDriftVelocity[dir] = val;}
216 StRunInfo::setSvtDriftVelocityScaler(
float val)
217 {mSvtDriftVelocityScaler = val;}
220 StRunInfo::setZdcWestRate(
double val)
221 {mZdcWestRate = val;}
224 StRunInfo::setZdcEastRate(
double val)
225 {mZdcEastRate = val;}
228 StRunInfo::setZdcCoincidenceRate(
double val)
229 {mZdcCoincidenceRate = val;}
232 StRunInfo::setBbcCoincidenceRate(
double val)
233 {mBbcCoincidenceRate = val;}
236 StRunInfo::setBackgroundRate(
double val)
237 {mBackgroundRate = val;}
240 StRunInfo::setL0RateToRich(
double val)
241 {mL0RateToRich = val;}
244 StRunInfo::setBbcEastRate(
double val)
245 {mBbcEastRate = val;}
248 StRunInfo::setBbcWestRate(
double val)
249 {mBbcWestRate = val;}
252 StRunInfo::setBbcBlueBackgroundRate(
double val)
253 {mBbcBlueBackgroundRate = val;}
256 StRunInfo::setBbcYellowBackgroundRate(
double val)
257 {mBbcYellowBackgroundRate = val;}
260 StRunInfo::setSpaceChargeCorrectionMode(
int val)
261 {mSpaceChargeCorrectionMode = val;}
264 StRunInfo::setSpaceCharge(
float val)
265 {mSpaceCharge = val;}