CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DQMExample_Step1.h
Go to the documentation of this file.
1 #ifndef DQMExample_Step1_H
2 #define DQMExample_Step1_H
3 
4 //Framework
9 
10 //event
13 
14 //DQM
17 
18 //Candidate handling
21 
22 // Electron
26 
27 // PFMET
30 
31 // Vertex utilities
34 
35 // CaloJets
37 
38 // Conversions
40 
41 // Trigger
46 
47 
49 
50 public:
51 
53  virtual ~DQMExample_Step1();
54 
55 protected:
56 
57  void beginJob();
58  void beginRun(edm::Run const& run, edm::EventSetup const& eSetup);
59  void analyze(edm::Event const& e, edm::EventSetup const& eSetup);
61  void endLuminosityBlock(edm::LuminosityBlock const& lumi, edm::EventSetup const& eSetup);
62  void endRun(edm::Run const& run, edm::EventSetup const& eSetup);
63  void endJob();
64 
65 private:
66  //histos booking function
67  void bookHistos(DQMStore* dbe_);
68 
69  //other functions
70  bool MediumEle(const edm::Event & iEvent, const edm::EventSetup & iESetup, const reco::GsfElectron & electron);
71  double Distance(const reco::Candidate & c1, const reco::Candidate & c2 );
72  double DistancePhi(const reco::Candidate & c1, const reco::Candidate & c2 );
73  double calcDeltaPhi(double phi1, double phi2);
74 
75  //private variables
78 
79  //variables from config file
90 
91  double ptThrL1_;
92  double ptThrL2_;
93  double ptThrJet_;
94  double ptThrMet_;
95 
97  int nBJets;
98 
99  // Histograms
101 
103 
111 
119 
124 
126 };
127 
128 
129 #endif
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_
tuple lumi
Definition: fjr2json.py:35
void endLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &eSetup)
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_
void bookHistos(DQMStore *dbe_)
double Distance(const reco::Candidate &c1, const reco::Candidate &c2)
DQMExample_Step1(const edm::ParameterSet &ps)
MonitorElement * h_eEta_leading
edm::EDGetTokenT< reco::BeamSpot > theBSCollection_
MonitorElement * h_ePt_leading_HLT
MonitorElement * h_ePt_diff
int iEvent
Definition: GenABIO.cc:243
MonitorElement * h_ePt_leading_HLT_matched
MonitorElement * h_jEta_leading
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup)
MonitorElement * h_eEta_leading_HLT_matched
MonitorElement * h_vertex_number
MonitorElement * h_ePt_leading
MonitorElement * h_eMultiplicity
void analyze(edm::Event const &e, edm::EventSetup const &eSetup)
MonitorElement * h_pfMet
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
void endRun(edm::Run const &run, edm::EventSetup const &eSetup)
MonitorElement * h_jPt_leading
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
MonitorElement * h_ePt_leading_matched
virtual ~DQMExample_Step1()
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 beginLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &eSetup)
MonitorElement * h_eMultiplicity_HLT
MonitorElement * h_eEta_leading_matched
edm::EDGetTokenT< reco::VertexCollection > thePVCollection_
edm::EDGetTokenT< reco::CaloJetCollection > theCaloJetCollection_
Definition: Run.h:41