CMS 3D CMS Logo

DQMExample_Step1.h
Go to the documentation of this file.
1 #ifndef DQMExample_Step1_H
2 #define DQMExample_Step1_H
3 
4 // Framework
8 
9 // event
12 
13 // DQM
16 
17 // Candidate handling
20 
21 // Electron
25 
26 // PFMET
29 
30 // Vertex utilities
33 
34 // CaloJets
36 
37 // Conversions
39 
40 // Trigger
45 
47 public:
49  ~DQMExample_Step1() override;
50 
51 protected:
52  void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override;
53  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
54  void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override;
55  void dqmEndRun(edm::Run const &run, edm::EventSetup const &eSetup) override;
56 
57 private:
58  // histos booking function
60 
61  // other functions
62  bool MediumEle(const edm::Event &iEvent, const edm::EventSetup &iESetup, const reco::GsfElectron &electron);
63  double Distance(const reco::Candidate &c1, const reco::Candidate &c2);
64  double DistancePhi(const reco::Candidate &c1, const reco::Candidate &c2);
65  double calcDeltaPhi(double phi1, double phi2);
66 
67  // private variables
69 
70  // variables from config file
81 
82  double ptThrL1_;
83  double ptThrL2_;
84  double ptThrJet_;
85  double ptThrMet_;
86 
88  int nBJets;
89 
90  // Histograms
92 
94 
102 
110 
115 
117 };
118 
119 #endif
~DQMExample_Step1() override
double calcDeltaPhi(double phi1, double phi2)
MonitorElement * h_ePhi_leading_matched
MonitorElement * h_jMultiplicity
math::XYZPoint PVPoint_
bool MediumEle(const edm::Event &iEvent, const edm::EventSetup &iESetup, const reco::GsfElectron &electron)
edm::EDGetTokenT< reco::GsfElectronCollection > theElectronCollection_
MonitorElement * h_ePhi_leading_HLT_matched
MonitorElement * h_ePhi_leading
MonitorElement * h_eEta_leading_HLT
MonitorElement * h_jPhi_leading
edm::EDGetTokenT< reco::ConversionCollection > theConversionCollection_
edm::EDGetTokenT< trigger::TriggerEvent > triggerEvent_
double Distance(const reco::Candidate &c1, const reco::Candidate &c2)
DQMExample_Step1(const edm::ParameterSet &ps)
MonitorElement * h_eEta_leading
void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< reco::BeamSpot > theBSCollection_
MonitorElement * h_ePt_leading_HLT
MonitorElement * h_ePt_diff
int iEvent
Definition: GenABIO.cc:224
MonitorElement * h_ePt_leading_HLT_matched
MonitorElement * h_jEta_leading
void bookHistos(DQMStore::IBooker &)
MonitorElement * h_eEta_leading_HLT_matched
MonitorElement * h_vertex_number
MonitorElement * h_ePt_leading
MonitorElement * h_eMultiplicity
MonitorElement * h_pfMet
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
MonitorElement * h_jPt_leading
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
MonitorElement * h_ePt_leading_matched
edm::EDGetTokenT< reco::PFMETCollection > thePfMETCollection_
edm::InputTag triggerFilter_
MonitorElement * h_ePhi_leading_HLT
double DistancePhi(const reco::Candidate &c1, const reco::Candidate &c2)
std::string triggerPath_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * h_eMultiplicity_HLT
void dqmEndRun(edm::Run const &run, edm::EventSetup const &eSetup) override
MonitorElement * h_eEta_leading_matched
edm::EDGetTokenT< reco::VertexCollection > thePVCollection_
edm::EDGetTokenT< reco::CaloJetCollection > theCaloJetCollection_
Definition: Run.h:45
void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override