43 #ifndef ST_TPC_DB_SLOW_CONTROL_HH
44 #define ST_TPC_DB_SLOW_CONTROL_HH
49 #include "SystemOfUnits.h"
50 #ifndef ST_NO_NAMESPACES
51 using namespace units;
54 #include "StTpcSlowControl.hh"
55 #include "StTpcDb/StTpcDb.h"
64 double driftVelocity(
int sector)
const;
67 double driftVoltage()
const;
69 double innerSectorAnodeVoltage()
const;
70 double innerSectorGatingGridVoltage()
const;
71 double outerSectorAnodeVoltage()
const;
72 double outerSectorGatingGridVoltage()
const;
75 double hallTemperature()
const;
76 double hallPressure()
const;
79 double innerSectorGasGain()
const;
80 double innerSectorGasGainVzero()
const;
81 double innerSectorGasGainb()
const;
83 double outerSectorGasGain()
const;
84 double outerSectorGasGainVzero()
const;
85 double outerSectorGasGainb()
const;
88 void print(ostream& os = cout)
const;
122 inline double StTpcDbSlowControl::driftVelocity(
int sector)
const {
return gTpcDbPtr->DriftVelocity(sector)*(centimeter/(second));}
124 inline double StTpcDbSlowControl::driftVoltage()
const{
return gTpcDbPtr->SlowControlSim()->driftVoltage()*volt;}
125 inline double StTpcDbSlowControl::innerSectorAnodeVoltage()
const{
return gTpcDbPtr->SlowControlSim()->innerSectorAnodeVoltage()*volt;}
126 inline double StTpcDbSlowControl::innerSectorGatingGridVoltage()
const{
return gTpcDbPtr->SlowControlSim()->innerSectorGatingGridV()*volt;}
127 inline double StTpcDbSlowControl::outerSectorAnodeVoltage()
const{
return gTpcDbPtr->SlowControlSim()->outerSectorAnodeVoltage()*volt;}
128 inline double StTpcDbSlowControl::outerSectorGatingGridVoltage()
const{
return gTpcDbPtr->SlowControlSim()->outerSectorGatingGridV()*volt;}
130 inline double StTpcDbSlowControl::hallTemperature()
const{
return gTpcDbPtr->SlowControlSim()->hallTemperature();}
131 inline double StTpcDbSlowControl::hallPressure()
const{
return gTpcDbPtr->SlowControlSim()->hallPressure()*atmosphere;}
133 inline double StTpcDbSlowControl::innerSectorGasGain()
const{
return gTpcDbPtr->SlowControlSim()->innerSectorGasGain();}
134 inline double StTpcDbSlowControl::innerSectorGasGainVzero()
const{
return gTpcDbPtr->SlowControlSim()->innerSectorGasGainVzero()*volt;}
135 inline double StTpcDbSlowControl::innerSectorGasGainb()
const{
return gTpcDbPtr->SlowControlSim()->outerSectorGasGainb()/volt;}
137 inline double StTpcDbSlowControl::outerSectorGasGain()
const{
return gTpcDbPtr->SlowControlSim()->outerSectorGasGain();}
138 inline double StTpcDbSlowControl::outerSectorGasGainVzero()
const{
return gTpcDbPtr->SlowControlSim()->outerSectorGasGainVzero()*volt;}
139 inline double StTpcDbSlowControl::outerSectorGasGainb()
const{
return gTpcDbPtr->SlowControlSim()->outerSectorGasGainb()/volt;}