MarlinTPC  1.2.0
WeatherConditions.h
1 #ifndef WeatherConditions_h
2 #define WeatherConditions_h 1
3 
4 //C++
5 #include "iostream"
6 #include "string"
7 
8 //LCIO
9 #include "lcio.h"
10 #include "UTIL/LCFixedObject.h"
11 
12 
13 #define WeatherConditionsNINTVals 0
14 #define WeatherConditionsNFLOATVals 3
15 #define WeatherConditionsNDOUBLEVals 0
16 
17 namespace tpcconddata{
18 
19 class WeatherConditions ;
20 
24 class WeatherConditions : public UTIL::LCFixedObject<WeatherConditionsNINTVals,
25  WeatherConditionsNFLOATVals,WeatherConditionsNDOUBLEVals> {
26 
27 public:
28 
32 
35  WeatherConditions(EVENT::LCObject* obj) :UTIL::LCFixedObject<WeatherConditionsNINTVals,
36  WeatherConditionsNFLOATVals,
37  WeatherConditionsNDOUBLEVals>(obj) { }
38 
40  virtual ~WeatherConditions();
41 
43  float getTemperature() const;
44 
46  float getPressure() const;
47 
49  float getRelHumidity() const;
50 
51  void setTemperature( float Value );
52  void setPressure( float Value );
53  void setRelHumidity( float Value );
54 
55  static std::string getRevision();
56  static std::string getDefaultColName();
57 
58  void print( std::ostream& os = std::cout ) const;
59 
60  // -------- need to implement abstract methods from LCGenericObject
61  const std::string getTypeName() const {
62  return "WeatherConditions";
63  }
64  const std::string getDataDescription() const {
65  return std::string("f:Temperature,athmosPressure,relHumidity");
66  }
67 
68 }; // class
69 
70  std::ostream &operator<<(std::ostream &os, const WeatherConditions &wc);
71 }
72 
73 #endif
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