1 #ifndef WeatherConditions_h
2 #define WeatherConditions_h 1
10 #include "UTIL/LCFixedObject.h"
13 #define WeatherConditionsNINTVals 0
14 #define WeatherConditionsNFLOATVals 3
15 #define WeatherConditionsNDOUBLEVals 0
17 namespace tpcconddata{
19 class WeatherConditions ;
25 WeatherConditionsNFLOATVals,WeatherConditionsNDOUBLEVals> {
36 WeatherConditionsNFLOATVals,
37 WeatherConditionsNDOUBLEVals>(obj) { }
51 void setTemperature(
float Value );
52 void setPressure(
float Value );
53 void setRelHumidity(
float Value );
55 static std::string getRevision();
56 static std::string getDefaultColName();
58 void print( std::ostream& os = std::cout )
const;
61 const std::string getTypeName()
const {
62 return "WeatherConditions";
64 const std::string getDataDescription()
const {
65 return std::string(
"f:Temperature,athmosPressure,relHumidity");
70 std::ostream &operator<<(std::ostream &os,
const WeatherConditions &wc);
float getRelHumidity() const
return relative humidity in %
Definition: WeatherConditions.cc:33
float getTemperature() const
return the temperature in C
Definition: WeatherConditions.cc:25
class to store the environment of a gaseous detector (e.g.
Definition: WeatherConditions.h:24
float getPressure() const
return the athmospheric pressure in hPa
Definition: WeatherConditions.cc:29
WeatherConditions()
constructor wich only sets channel
Definition: WeatherConditions.cc:17
WeatherConditions(EVENT::LCObject *obj)
'Copy constructor' needed to interpret LCCollection read from file/database.
Definition: WeatherConditions.h:35
virtual ~WeatherConditions()
Important for memory handling.
Definition: WeatherConditions.cc:23