CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/DQM/Physics/src/QcdPhotonsDQM.h

Go to the documentation of this file.
00001 #ifndef QcdPhotonsDQM_H
00002 #define QcdPhotonsDQM_H
00003 
00004 
00015 #include "FWCore/Framework/interface/Frameworkfwd.h"
00016 #include "FWCore/Framework/interface/EDAnalyzer.h"
00017 
00018 // Trigger stuff
00019 #include "DataFormats/Common/interface/TriggerResults.h"
00020 #include "HLTrigger/HLTcore/interface/HLTConfigProvider.h"
00021 
00022 #include "DataFormats/EgammaCandidates/interface/Photon.h"
00023 
00024 class DQMStore;
00025 class MonitorElement;
00026 
00027 class QcdPhotonsDQM : public edm::EDAnalyzer {
00028  public:
00029 
00031   QcdPhotonsDQM(const edm::ParameterSet&);
00032   
00034   virtual ~QcdPhotonsDQM();
00035   
00037   void beginJob();
00038 
00040   void beginRun( const edm::Run& , const edm::EventSetup& );
00041 
00043   void analyze(const edm::Event&, const edm::EventSetup&);
00044 
00045   // Divide histograms
00046   void endRun(const edm::Run&, const edm::EventSetup&);
00047 
00049   void endJob(void);
00050 
00051  private:
00052 
00053   // ----------member data ---------------------------
00054   
00055   DQMStore* theDbe;
00056 
00057   HLTConfigProvider hltConfigProvider_;
00058   bool isValidHltConfig_;
00059 
00060   // Switch for verbosity
00061   std::string logTraceName;
00062 
00063   // Variables from config file
00064   std::string   theTriggerPathToPass_;
00065   std::vector<std::string> thePlotTheseTriggersToo_;
00066   edm::InputTag trigTag_;
00067   edm::InputTag thePhotonCollectionLabel_;
00068   edm::InputTag theJetCollectionLabel_;
00069   edm::InputTag theVertexCollectionLabel_;
00070   double theMinJetPt_;
00071   double theMinPhotonEt_;
00072   bool   theRequirePhotonFound_;
00073   double thePlotPhotonMaxEt_;
00074   double thePlotPhotonMaxEta_;
00075   double thePlotJetMaxEta_;
00076  
00077   edm::InputTag theBarrelRecHitTag;
00078   edm::InputTag theEndcapRecHitTag;
00079 
00080   int num_events_in_run;
00081 
00082   // Histograms
00083   MonitorElement* h_triggers_passed;
00084   MonitorElement* h_photon_et_beforeCuts;
00085   MonitorElement* h_photon_et;
00086   MonitorElement* h_photon_eta;
00087   MonitorElement* h_photon_count_bar;
00088   MonitorElement* h_photon_count_end;
00089   MonitorElement* h_jet_pt;
00090   MonitorElement* h_jet_eta;
00091   MonitorElement* h_jet_count;
00092   MonitorElement* h_deltaPhi_photon_jet;
00093   MonitorElement* h_deltaPhi_jet_jet2;
00094   MonitorElement* h_deltaEt_photon_jet;
00095   MonitorElement* h_jet2_ptOverPhotonEt;
00096   MonitorElement* h_jet2_pt;
00097   MonitorElement* h_jet2_eta;
00098   MonitorElement* h_deltaPhi_photon_jet2;
00099   MonitorElement* h_deltaR_jet_jet2;
00100   MonitorElement* h_deltaR_photon_jet2;
00101 
00102   MonitorElement* h_photon_et_jetcs;
00103   MonitorElement* h_photon_et_jetco;
00104   MonitorElement* h_photon_et_jetfs;
00105   MonitorElement* h_photon_et_jetfo;
00106 
00107   MonitorElement* h_photon_et_ratio_co_cs;
00108   MonitorElement* h_photon_et_ratio_fo_fs;
00109   MonitorElement* h_photon_et_ratio_cs_fs;
00110   MonitorElement* h_photon_et_ratio_co_fs;
00111   MonitorElement* h_photon_et_ratio_cs_fo;
00112   MonitorElement* h_photon_et_ratio_co_fo;
00113 };
00114 #endif