/// Class to plot gas properties inside TPC /// over a particular time period (or run). Also /// plots versus the pressure and temperature /// to look for temperature and densit effects. /// Blair Jamieson (C) 2009, 2010 #ifndef TTPCGasAnalysis_hxx__ #define TTPCGasAnalysis_hxx__ #include #include #include using namespace std; #include #include #include #include #include #include "ITPCGas.hxx" #include "ITPCGasSmooth.hxx" //#include "ITPCGasAvg.hxx" /// Class to build plots of gas properties inside TPC /// over a particular time period (or run). /// Blair Jamieson (C) 2009, 2010 class ITPCGasAnalysis { public: /// Initialize TPC gas properties averaging object using unix times ITPCGasAnalysis( int maxsamples = -1, long autmin = 1224118800, long autmax = 1224118800 ); /// Initialize TPC gas properties averaging object using year, /// month(0-11), day (1-31), ... ITPCGasAnalysis( int maxsamples, int ayearmin, int amonthmin, int adaymin, int ahourmin, int aminmin, int asecmin, int ayearmax, int amonthmax, int adaymax, int ahourmax, int aminmax, int asecmax ); private: long fTimeMin; long fTimeMax; int fNSam; /// Method that does the analysis void Process(); /// Get TGraph time offset due to day light savings time /// messing things up int GetDSTOffset( long atime ); }; #endif