MakeHistoryPlots.hh

00001 #include <vector>
00002 #include <map>
00003 class TH2F;
00004 
00005 using namespace std;
00006 
00007 class HistoryPlot {
00008     public:
00009         HistoryPlot(const char* name,  const vector<int>& channels, const vector<int>& measures, int binSpacingX = 2, int binSpacingY = 2);
00010         void Fill(int meas, int channel, float value);
00011         void SetFloors(const map<int,int>& chanFloors);
00012         void SetReference(int channel, float value);
00013         void SetReferenceFile(const char* filename);
00014     private:
00015         TH2F* fh;
00016         TH2F* fhColor;
00017         float fBinSpacingX;
00018         float fBinSpacingY;
00019         vector<float> fReference;
00020         vector<float> fReferenceMax;
00021         vector<float> fReferenceMin;
00022         vector<int> fChannels;
00023         vector<int> fMeasures;
00024         //root is the worst framework in the world
00025         TPolyLine** fFloors;
00026         int fNumFloors;
00027         const char* fName;
00028 
00029 };
00030 
00031 

Generated on Tue Nov 16 10:49:58 2010 for CUORE Software by  doxygen 1.5.6