00001 #ifndef __EMCBADNORMT_H__ 00002 #define __EMCBADNORMT_H__ 00003 00004 #include <string> 00005 #include <vector> 00006 #include <iostream> 00007 00008 class TH2; 00009 class emcCalibrationDataHelper; 00010 00022 class emcBadNormt 00023 { 00024 public: 00025 00026 emcBadNormt(const char* outputdir="/tmp"); 00027 00028 void addRun(int runnumber) 00029 { 00030 fRuns.push_back(runnumber); 00031 } 00032 00033 void clearRun() 00034 { 00035 fRuns.clear(); 00036 fNbad.clear(); 00037 } 00038 00039 void print(std::ostream& out = std::cout); 00040 00041 void process(float normt_limit=47.84); 00042 00043 private: 00044 void initGainBaseLine(emcCalibrationDataHelper&); 00045 00046 private: 00047 00048 std::vector<int> fRuns; 00049 std::vector<int> fNbad; 00050 std::vector<float> fGainBaseLineFactor; 00051 std::string fOutputDir; 00052 std::vector<TH2*> fHistos; 00053 }; 00054 #endif