QTSummaryPlot.hh
00001 #ifndef _QT_SUMMARYPLOT_HH_
00002 #define _QT_SUMMARYPLOT_HH_
00003
00004 #include "QCuore.hh"
00005 #include <TNamed.h>
00006 #include <TH1F.h>
00007 #include <TMatrix.h>
00008
00009 #include <map>
00010
00011 class QTSummaryPlot : public TNamed{
00012
00013 public:
00014 QTSummaryPlot(const char* name);
00015
00016
00017 void SetEntryValue(int channel, float value);
00018
00019 float GetEntryValue(int channel) const ;
00020
00021 void SetEntryReference(int channel, float ref, float refmin, float refmax);
00022
00023 TH1F* GetTH1F() const;
00024
00025 void Draw(const char* option = "BYFLOOR");
00026
00027 void SetDetectorMap(TMatrix detectorMap);
00028
00029 private:
00030 class Entry {
00031 public:
00032 float value;
00033 float ref;
00034 float refmin;
00035 float refmax;
00036 };
00037
00038 std::map<int, Entry> fEntries;
00039
00040 TMatrix fDetectorMap;
00041
00042 };
00043
00044
00045 #endif