CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/DQM/Physics/src/EwkElecDQM.h

Go to the documentation of this file.
00001 #ifndef EwkElecDQM_H
00002 #define EwkElecDQM_H
00003 
00010 #include "FWCore/Framework/interface/Frameworkfwd.h"
00011 #include "FWCore/Framework/interface/MakerMacros.h"
00012 
00013 #include "FWCore/Framework/interface/EDAnalyzer.h"
00014 #include "FWCore/Utilities/interface/InputTag.h"
00015 
00016 class DQMStore;
00017 class MonitorElement;
00018 class EwkElecDQM : public edm::EDAnalyzer {
00019 public:
00020   EwkElecDQM (const edm::ParameterSet &);
00021   virtual void analyze(const edm::Event&, const edm::EventSetup&);
00022   virtual void beginJob();
00023   virtual void endJob();
00024   virtual void beginRun(const edm::Run&, const edm::EventSetup&);
00025   virtual void endRun(const edm::Run&, const edm::EventSetup&);
00026 
00027   double calcDeltaPhi(double phi1, double phi2);
00028 
00029   void init_histograms();
00030 private:
00031 
00032   edm::InputTag trigTag_;
00033   //  edm::InputTag muonTag_;
00034   edm::InputTag elecTag_;
00035   edm::InputTag metTag_;
00036    bool metIncludesMuons_;
00037   edm::InputTag jetTag_;
00038 
00039   //  const std::string muonTrig_;
00040   const std::vector<std::string> elecTrig_;
00041   double ptCut_;
00042   double etaCut_;
00043 
00044   double sieieCutBarrel_;
00045   double sieieCutEndcap_;
00046   double detainCutBarrel_;
00047   double detainCutEndcap_;
00048 
00049   //  bool isRelativeIso_;
00050   //  bool isCombinedIso_;
00051 
00052   //  double isoCut03_;
00053   double ecalIsoCutBarrel_;
00054   double ecalIsoCutEndcap_;
00055   double hcalIsoCutBarrel_;
00056   double hcalIsoCutEndcap_;
00057   double trkIsoCutBarrel_;
00058   double trkIsoCutEndcap_;
00059    double mtMin_;
00060    double mtMax_;
00061    double metMin_;
00062    double metMax_;
00063   //  double acopCut_;
00064 
00065   //  double dxyCut_;
00066   //  double normalizedChi2Cut_;
00067   //  int trackerHitsCut_;
00068   //  bool isAlsoTrackerMuon_;
00069 
00070   //  double ptThrForZ1_;
00071   //  double ptThrForZ2_;
00072 
00073   double eJetMin_;
00074   int nJetMax_;
00075 
00076   unsigned int nall;
00077   unsigned int nrec;
00078   unsigned int neid;
00079   unsigned int niso;
00080 /*   unsigned int nhlt; */
00081 /*   unsigned int nmet; */
00082   unsigned int nsel;
00083 
00084   //  unsigned int nRecoElectrons;
00085   unsigned int nGoodElectrons;
00086 
00087   DQMStore* theDbe;
00088 
00089   MonitorElement* pt_before_;
00090   MonitorElement* pt_after_;
00091 
00092   MonitorElement* eta_before_;
00093   MonitorElement* eta_after_;
00094 
00095   MonitorElement* sieiebarrel_before_;
00096   MonitorElement* sieiebarrel_after_;
00097 
00098   MonitorElement* sieieendcap_before_;
00099   MonitorElement* sieieendcap_after_;
00100 
00101   MonitorElement* detainbarrel_before_;
00102   MonitorElement* detainbarrel_after_;
00103 
00104   MonitorElement* detainendcap_before_;
00105   MonitorElement* detainendcap_after_;
00106 
00107 /*   MonitorElement* dxy_before_; */
00108 /*   MonitorElement* dxy_after_; */
00109 
00110 /*   MonitorElement* chi2_before_; */
00111 /*   MonitorElement* chi2_after_; */
00112 
00113 /*   MonitorElement* nhits_before_; */
00114 /*   MonitorElement* nhits_after_; */
00115 
00116 /*   MonitorElement* tkmu_before_; */
00117 /*   MonitorElement* tkmu_after_; */
00118 
00119   MonitorElement* ecalisobarrel_before_;
00120   MonitorElement* ecalisobarrel_after_;
00121 
00122   MonitorElement* ecalisoendcap_before_;
00123   MonitorElement* ecalisoendcap_after_;
00124 
00125   MonitorElement* hcalisobarrel_before_;
00126   MonitorElement* hcalisobarrel_after_;
00127 
00128   MonitorElement* hcalisoendcap_before_;
00129   MonitorElement* hcalisoendcap_after_;
00130 
00131   MonitorElement* trkisobarrel_before_;
00132   MonitorElement* trkisobarrel_after_;
00133 
00134   MonitorElement* trkisoendcap_before_;
00135   MonitorElement* trkisoendcap_after_;
00136 
00137   MonitorElement* trig_before_;
00138   MonitorElement* trig_after_;
00139 
00140   MonitorElement* invmass_before_;
00141   MonitorElement* invmass_after_;
00142 
00143   MonitorElement* nelectrons_before_;
00144   MonitorElement* nelectrons_after_;
00145 
00146   MonitorElement* mt_before_;
00147   MonitorElement* mt_after_;
00148 
00149   MonitorElement* met_before_;
00150   MonitorElement* met_after_;
00151 
00152 /*   MonitorElement* acop_before_; */
00153 /*   MonitorElement* acop_after_; */
00154 
00155 /*   MonitorElement* nz1_before_; */
00156 /*   MonitorElement* nz1_after_; */
00157 
00158 /*   MonitorElement* nz2_before_; */
00159 /*   MonitorElement* nz2_after_; */
00160 
00161   MonitorElement* njets_before_;
00162   MonitorElement* njets_after_; 
00163   MonitorElement* jet_et_before_;
00164   MonitorElement* jet_et_after_;
00165   MonitorElement* jet_eta_before_;
00166   MonitorElement* jet_eta_after_; 
00167 /*   MonitorElement* jet2_et_before_; */
00168 /*   MonitorElement* jet2_et_after_; */
00169 };
00170 
00171 
00172 #endif