/// Class to hold and plot temperature inside TPC /// at a particular time /// Blair Jamieson (C) 2008 #ifndef TTPCTemperature_hxx__ #define TTPCTemperature_hxx__ #include #include #include "ISlowControlDatabase.hxx" #include "TPaveText.h" #include "TList.h" #include "TH2F.h" const int NTPCTEMPS=108; const int MAXNTPCS=3; /// Class to hold and plot temperature inside TPC /// at a particular time /// Blair Jamieson class ITPCTemperature { public: /// Initialize TPC temperature object using unix time ITPCTemperature( long autimemin = 1224118800, long autimemax = 1224118800 ); /// Initialize TPC temperature object using year, month(0-11), /// day(1-31),... ITPCTemperature( int ayearmin, int amonthmin, int adaymin, int ahourmin, int aminmin, int asecmin, int ayearmax, int amonthmax, int adaymax, int ahourmax, int aminmax, int asecmax ); /// Destructor does nothing... may leave a histogram /// floating around ~ITPCTemperature(){ for (int iname=0; iname Not implemented, return zeroth temperature"<=0 && aT fTPC_names[3]; ///< names of fields for Temperatures for each TPC /// Read another chunk of data from slow control database void ReadSlowControlDatabase(); std::vector< std::pair< double, std::vector< double > > > fTPC_vec[3]; ///< db query result for Temperatures for each TPC /// Get index into each of the vectors of database query /// results for the current time void UpdateVectorTimeIdx(); unsigned int fTPC_idx[3]; ///< time idx for current Temperature reading bool fTPC_isok[3]; ///< db read was ok for current Temperature reading /// Set character timestamp from integer unix timestamp void SetupTimeStamp(); /// Read the temperature readings void Read(); /// Initialize temperature object Sets offsets, makes histogram, /// reads tempearture, fills histogram void Init(); }; #endif //TTPCTemperature_hxx__