1 #ifndef TPCConditions_h
2 #define TPCConditions_h 1
8 #include "UTIL/LCFixedObject.h"
11 #define TPCConditionsNINTVals 0
12 #define TPCConditionsNFLOATVals 8
13 #define TPCConditionsNDOUBLEVals 0
16 namespace tpcconddata{
21 TPCConditionsNFLOATVals,TPCConditionsNDOUBLEVals> {
92 void print( std::ostream& os = std::cout )
const;
96 return "TPCConditions";
99 return std::string(
"f:Driftvelocity,TimeOffset,longDiffusionCoef,longDefocussing,")+
100 std::string(
"transDiffusionCoef,transDefocussing,Amplification");
104 std::ostream &
operator<<(std::ostream &os,
const TPCConditions &tc);
void setTimeOffset(float Value)
set the time offset in us
float getDriftVelocity() const
return the drift velocity (in mm/us)
float getLongDiffusionCoef() const
return the diffusion coefficent for the longitudinal diffusion (in sqrt(mm))
void setLongDefocussing(float Value)
set the defocussion constant for the longitudinal diffusion (in mm)
float getADCtoPrimaryElectronsFactor() const
return the conversion factor from ADC counts to primary electrons (ADC * conv.Factor = # primary e) ...
static std::string getDefaultColName()
float getTransDefocussing() const
return the defocussion constant for the transversal diffusion (in mm)
void setTransDefocussing(float Value)
set the defocussion constant for the transversal diffusion (in mm)
void setLongDiffusionCoef(float Value)
set the diffusion coefficient for the longitudinal diffusion (in sqrt(mm))
const std::string getDataDescription() const
std::ostream & operator<<(std::ostream &os, const ADCChannelMapping &acm)
void setADCtoPrimaryElectronsFactor(float Value)
set the conversion factor from ADC counts to primary electrons (ADC * conv.Factor = # primary e) ...
float getAmplification() const
return the amplification of the gas amplification device (e.g. GEMs)
void setDriftVelocity(float Value)
set the drift velocity in mm/us
void setAmplification(float Value)
set the amplification of the gas amplification device (e.g. GEMs)
void print(std::ostream &os=std::cout) const
#define TPCConditionsNINTVals
float getTimeOffset() const
return the time offset (in us).
TPCConditions()
Convenient constructor.
float getLongDefocussing() const
return the defocussion constant for the longitudinal diffusion (in mm)
TPCConditions(EVENT::LCObject *obj)
'Copy constructor' needed to interpret LCCollection read from file/database.
void setTransDiffusionCoef(float Value)
set the diffusion coefficient for the transversal diffusion (in sqrt(mm))
#define TPCConditionsNDOUBLEVals
static std::string getRevision()
const std::string getTypeName() const
float getTransDiffusionCoef() const
return the diffusion coefficent for the transversal diffusion (in sqrt(mm))
#define TPCConditionsNFLOATVals
virtual ~TPCConditions()
Important for memory handling.