1 #ifndef GasConditions_h
2 #define GasConditions_h 1
10 #include "EVENT/LCGenericObject.h"
11 #include "IMPL/LCGenericObjectImpl.h"
13 namespace tpcconddata{
56 void setMixture(
int Content,
float Value );
57 void setTemperature(
float Value );
58 void setPressure(
float Value );
59 void setOverPressure(
float Value );
60 void setFlow(
float Value );
61 void setWaterContent(
float Value );
62 void setOxygenContent(
float Value );
64 static std::string getRevision();
65 static std::string getDefaultColName();
67 void print( std::ostream& os = std::cout )
const;
69 IMPL::LCGenericObjectImpl* obj(){
return myObj;}
71 virtual int id(){
return myObj->id();}
76 int getNFloat()
const;
77 int getNDouble()
const;
79 int getIntVal(
int index)
const;
80 float getFloatVal(
int index)
const;
81 double getDoubleVal(
int index)
const;
83 bool isFixedSize()
const {
return false;};
85 const std::string getTypeName()
const {
86 return "GasConditions";
88 const std::string getDataDescription()
const {
89 return std::string(
"i:NContents,MixtureContents,")+
90 std::string(
"f:Temperture,Preasure,Overpreasure,Flow,")+
91 std::string(
"WaterContent,OxygenContent,MixtureFractions");
97 IMPL::LCGenericObjectImpl* myObj;
99 int getNMixtureContents()
const;
100 int getContent(
int Index )
const;
101 float getFraction(
int Index )
const;
102 void setFraction(
int Index,
float Fraction );
103 void addMixtureContents(
int Content,
float Fraction );
107 std::ostream &operator<<(std::ostream &os,
const GasConditions &gc);
float getTemperature() const
return the temperature of the gas in C
Definition: GasConditions.cc:56
virtual ~GasConditions()
Important for memory handling.
Definition: GasConditions.cc:43
float getOxygenContent() const
return the oxygen content in the gas in ppmV
Definition: GasConditions.cc:76
GasConditions()
constructor wich only sets channel
Definition: GasConditions.cc:17
float getFlow() const
return the flow of the gas in l/h
Definition: GasConditions.cc:68
float getOverPressure() const
return the over pressure of the sytem (to the athmosphere) in mbar
Definition: GasConditions.cc:64
class to store the condition of the gas in a gaseous detector (e.g.
Definition: GasConditions.h:19
float getWaterContent() const
return the water content in the gas in ppmV
Definition: GasConditions.cc:72
float getPressure() const
return the pressure of the gas in hPa
Definition: GasConditions.cc:60
float getMixture(int Content) const
return fraction of the mixtrue of the gas in of the following contents
Definition: GasConditions.cc:47