CMS 3D CMS Logo

PhotonValidatorMiniAOD.h
Go to the documentation of this file.
1 #ifndef PhotonValidatorMiniAOD_H
2 #define PhotonValidatorMiniAOD_H
9 //#include "DataFormats/EgammaCandidates/interface/PhotonFwd.h"
16 //
17 //DQM services
22 
23 
24 //
25 #include <map>
26 #include <vector>
27 #include <memory>
37 // forward declarations
38 namespace edm {class HepMCProduct;}
39 class TFile;
40 class TH1F;
41 class TH2F;
42 class TProfile;
43 class TTree;
44 class SimVertex;
45 class SimTrack;
46 
47 
48 
50 {
51 
52  public:
53 
54  //
55  explicit PhotonValidatorMiniAOD( const edm::ParameterSet& ) ;
56  ~PhotonValidatorMiniAOD() override;
57 
58 
59  void analyze( const edm::Event&, const edm::EventSetup& ) override;
60  // virtual void beginJob();
61  void dqmBeginRun( edm::Run const & r, edm::EventSetup const & theEventSetup) override;
62  void endRun (edm::Run const& r, edm::EventSetup const & es) override;
63  void bookHistograms( DQMStore::IBooker&, edm::Run const &, edm::EventSetup const &) override;
64 
65  private:
66 
70 
71 
73 
74  // edm::ESHandle<MagneticField> theMF_;
77 
78  MonitorElement* h_scEta_[2];
79  MonitorElement* h_scPhi_[2];
80 
81  MonitorElement* h_r9_[3][3];
82  MonitorElement* h_full5x5_r9_[3][3];
83  MonitorElement* h_sigmaIetaIeta_[3][3];
84  MonitorElement* h_full5x5_sigmaIetaIeta_[3][3];
85  MonitorElement* h_r1_[3][3];
86  MonitorElement* h_r2_[3][3];
87  MonitorElement* h_hOverE_[3][3];
88  MonitorElement* h_newhOverE_[3][3];
89  MonitorElement* h_ecalRecHitSumEtConeDR04_[3][3];
90  MonitorElement* h_hcalTowerSumEtConeDR04_[3][3];
91  MonitorElement* h_hcalTowerBcSumEtConeDR04_[3][3];
92  MonitorElement* h_isoTrkSolidConeDR04_[3][3];
93  MonitorElement* h_nTrkSolidConeDR04_[3][3];
94 
95  MonitorElement* h_phoE_[2][3];
96  MonitorElement* h_phoEt_[2][3];
97  MonitorElement* h_phoERes_[3][3];
98  MonitorElement* h_phoSigmaEoE_[3][3];
99 
100  // Information from Particle Flow
101  // Isolation
102  MonitorElement* h_chHadIso_[3];
103  MonitorElement* h_nHadIso_[3];
104  MonitorElement* h_phoIso_[3];
105 
106 
107 
108 
110 {
111  public:
112  bool operator () (const pat::PhotonRef& lhs, const pat::PhotonRef & rhs)
113  {
114  return lhs->et() > rhs->et();
115  }
116 };
117 
118 
119 
120 };
121 
122 
123 
124 
125 
126 
127 
128 #endif
edm::EDGetTokenT< reco::GenParticleCollection > genpartToken_
virtual example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
virtual example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
edm::EDGetTokenT< edm::View< pat::Photon > > photonToken_
HLT enums.
Definition: Run.h:44