39 #include "StTpcDbSlowControl.hh"
41 #ifndef ST_NO_EXCEPTIONS
43 # if !defined(ST_NO_NAMESPACES)
44 using std::invalid_argument;
53 StTpcDbSlowControl::StTpcDbSlowControl() { }
55 StTpcDbSlowControl::StTpcDbSlowControl(
StTpcDb* globalDbPointer)
57 #ifndef ST_NO_NAMESPACES
58 using namespace units;
60 gTpcDbPtr = globalDbPointer;
102 #ifndef ST_NO_EXCEPTIONS
103 throw invalid_argument(
"StTpcDbSlowControl::getInstance(): Argument Missing!");
105 std::cerr <<
"StTpcDbSlowControl::instance() " << endl;
106 std::cerr <<
"\tWARNING" << endl;
107 std::cerr <<
"\tNo arguments for instantiation of" << endl;
108 std::cerr <<
"Exiting..." << endl;
114 StTpcDbSlowControl::~StTpcDbSlowControl() {}
121 std::cerr <<
"StTpcDbSlowControl::instance() " << endl;
122 std::cerr <<
"\tWARNING" << endl;
123 std::cerr <<
"\tSingleton class is already instantiated." << endl;
124 std::cerr <<
"\tArgument (const char*) is ignored." << endl;
129 void StTpcDbSlowControl::print(ostream& os)
const
131 #ifndef ST_NO_NAMESPACES
132 using namespace units;
134 os <<
"Slow Control Parameters:" << endl;
135 os <<
"========================" << endl;
136 os <<
"Drift Velocity: East " << driftVelocity(13)/(centimeter/(1.e-6*second))
137 <<
" West " << driftVelocity( 1)/(centimeter/(1.e-6*second))
139 os <<
"Drift Voltage: " << driftVoltage()/volt <<
" V" << endl;
141 os <<
"Hall Temperature: " << hallTemperature() <<
" C" << endl;
142 os <<
"Hall Pressure: " << hallPressure()/atmosphere <<
" atm" << endl;
144 os <<
"InnerSector:" << endl;
145 os <<
"Anode Voltage: " << innerSectorAnodeVoltage()/volt <<
" V" << endl;
146 os <<
"Gating Grid Voltage: " << innerSectorGatingGridVoltage()/volt <<
" V" << endl;
147 os <<
"Gas Gain: " << innerSectorGasGain() << endl;
148 os <<
"Gas Gain Vzero: " << innerSectorGasGainVzero()/volt <<
" V" << endl;
149 os <<
"Gas Gainb: " << innerSectorGasGainb()*volt <<
" /V" << endl;
150 os <<
"OuterSector:" << endl;
151 os <<
"Anode Voltage: " << outerSectorAnodeVoltage()/volt <<
" V" << endl;
152 os <<
"Gating Grid Voltage: " << outerSectorGatingGridVoltage()/volt <<
" V" << endl;
153 os <<
"Gas Gain: " << outerSectorGasGain() << endl;
154 os <<
"Gas Gain Vzero: " << outerSectorGasGainVzero()/volt <<
" V" << endl;
155 os <<
"Gas Gainb: " << outerSectorGasGainb()*volt <<
" /V" << endl;