CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/DQM/HcalMonitorClient/interface/HcalLEDClient.h

Go to the documentation of this file.
00001 #ifndef HcalLEDClient_H
00002 #define HcalLEDClient_H
00003 
00004 #include "DQM/HcalMonitorClient/interface/HcalBaseClient.h"
00005 #include "CalibFormats/HcalObjects/interface/HcalDbService.h"
00006 #include "CalibFormats/HcalObjects/interface/HcalDbRecord.h"
00007 #include "CondFormats/HcalObjects/interface/HcalPedestal.h"
00008 #include "CondFormats/HcalObjects/interface/HcalPedestalWidth.h"
00009 #include "CondFormats/HcalObjects/interface/HcalElectronicsMap.h"
00010 #include <CalibCalorimetry/HcalAlgos/interface/HcalAlgoUtils.h>
00011 #include "DataFormats/HcalDetId/interface/HcalDetId.h"
00012 #include "DataFormats/HcalDetId/interface/HcalElectronicsId.h"
00013 #include "FWCore/Framework/interface/ESHandle.h"
00014 #include "DQMServices/Core/interface/DQMStore.h"
00015 
00016 class HcalLEDClient : public HcalBaseClient {
00017   
00018 public:
00019   
00021   HcalLEDClient();
00023   ~HcalLEDClient();
00024 
00025   void init(const edm::ParameterSet& ps, DQMStore* dbe, string clientName);
00026 
00028   void analyze(void);
00029   
00031   void beginJob();
00032   
00034   void endJob(void);
00035   
00037   void beginRun(const EventSetup& c);
00038   
00040   void endRun(void);
00041   
00043   void setup(void);
00044   
00046   void cleanup(void);
00047   
00049   void htmlOutput(int run, string htmlDir, string htmlName);
00050   void getHistograms();
00051   void loadHistograms(TFile* f);
00052 
00053 
00055   void report();
00056   
00057   void resetAllME();
00058   void createTests();
00059 
00060 
00061 private:
00062   
00063   string m_outputFileName;
00064   ofstream m_outTextFile;
00065 
00066   const HcalElectronicsMap* readoutMap_;
00067   edm::ESHandle<HcalDbService> conditions_;
00068 
00069   TH1F* avg_shape_[4];
00070   TH1F* avg_time_[4];
00071   TH1F* avg_energy_[4];
00072 
00073   TH1F* rms_shape_[4];
00074   TH1F* mean_shape_[4];
00075   TH1F* rms_time_[4];
00076   TH1F* mean_time_[4];
00077   TH1F* rms_energy_[4];
00078   TH1F* mean_energy_[4];
00079 
00080   TH2F* err_map_geo_[4];
00081   TH2F* err_map_elec_[4];
00082 
00083   TH2F* rms_energyDep_[4];
00084   TH2F* mean_energyDep_[4];
00085   TH2F* rms_timeDep_[4];
00086   TH2F* mean_timeDep_[4];
00087   TH2F* rms_shapeDep_[4];
00088   TH2F* mean_shapeDep_[4];
00089 
00090   map<unsigned int, TH2F*> rms_energyElec_;
00091   map<unsigned int, TH2F*> mean_energyElec_;
00092   map<unsigned int, TH2F*> rms_timeElec_;
00093   map<unsigned int, TH2F*> mean_timeElec_;
00094   map<unsigned int, TH2F*> rms_shapeElec_;
00095   map<unsigned int, TH2F*> mean_shapeElec_;
00096 
00097 
00098   TH1F* HFlumi_etsum;
00099   TH1F* HFlumi_occabthr1;
00100   TH1F* HFlumi_occbetthr1;
00101   TH1F* HFlumi_occbelthr1;
00102   TH1F* HFlumi_occabthr2;
00103   TH1F* HFlumi_occbetthr2;
00104   TH1F* HFlumi_occbelthr2;
00105 
00106 
00107 
00108   // Quality criteria for data integrity
00109   float rms_thresh_;
00110   float mean_thresh_;
00111 
00112 };
00113 
00114 #endif