CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TcMETAnalyzer.h
Go to the documentation of this file.
1 #ifndef TcMETAnalyzer_H
2 #define TcMETAnalyzer_H
3 
4 
15 #include <memory>
16 #include <fstream>
17 #include "TMath.h"
26 
31 
33 
35 
37 
39  public:
40 
43 
45  virtual ~TcMETAnalyzer();
46 
48  void beginJob(DQMStore * dbe);
49 
51  void endJob();
52 
53  // Book MonitorElements
54  void bookMESet(std::string);
55  void bookMonitorElement(std::string, bool);
56 
58  void analyze(const edm::Event&, const edm::EventSetup&,
59  const edm::TriggerResults&);
60 
62  void beginRun(const edm::Run&, const edm::EventSetup&);
63 
65  void endRun(const edm::Run& iRun, const edm::EventSetup& iSetup, DQMStore *dbe);
66 
67  // Fill MonitorElements
68  void fillMESet(const edm::Event&, std::string, const reco::MET&);
69  void fillMonitorElement(const edm::Event&, std::string, std::string, const reco::MET&, bool);
70  void makeRatePlot(std::string, double);
71 
72  bool selectHighPtJetEvent(const edm::Event&);
73  bool selectLowPtJetEvent(const edm::Event&);
74  bool selectWElectronEvent(const edm::Event&);
75  bool selectWMuonEvent(const edm::Event&);
76 
78  _source = source;
79  }
80 
82 
83  private:
84  // ----------member data ---------------------------
85 
87  // Switch for verbosity
88  int _verbose;
89 
92 
99 
100  // list of Jet or MB HLT triggers
101  std::vector<std::string > HLTPathsJetMBByName_;
102 
106  // std::string _hlt_LowMET;
109 
114  // int _trig_LowMET;
117 
118 
123 
124  // Et threshold for MET plots
125  double _etThreshold;
126 
127  // HF calibration factor (in 31X applied by TcProducer)
128  double hfCalibFactor_; //
129 
130  // JetID helper
132 
133  //
134  bool _allhist;
136 
137  //
138  std::vector<std::string> _FolderNames;
139 
140  //
142 
143  //the histos
145 
149  // MonitorElement* meTriggerName_LowMET;
152 
158 
168 
172 
174 };
175 #endif
MonitorElement * meTcMEx
void beginJob(DQMStore *dbe)
Inizialize parameters for histo binning.
double _etThreshold
bool selectWElectronEvent(const edm::Event &)
MonitorElement * meTcNeutralEMFraction
void setSource(std::string source)
Definition: TcMETAnalyzer.h:77
double _highPtTcJetThreshold
MonitorElement * meTcMEyLS
std::string _hlt_HighPtJet
MonitorElement * meTcMEy
MonitorElement * meTriggerName_Muon
MonitorElement * meTriggerName_LowPtJet
edm::InputTag theJetCollectionLabel
Definition: TcMETAnalyzer.h:96
double _highTcMETThreshold
MonitorElement * meTcMETIonFeedbck
edm::InputTag theTcMETCollectionLabel
Definition: TcMETAnalyzer.h:93
MonitorElement * meTcEz
void bookMESet(std::string)
std::string metname
Definition: TcMETAnalyzer.h:90
edm::ParameterSet parameters
Definition: TcMETAnalyzer.h:86
void bookMonitorElement(std::string, bool)
void fillMonitorElement(const edm::Event &, std::string, std::string, const reco::MET &, bool)
MonitorElement * meTcSumET
void analyze(const edm::Event &, const edm::EventSetup &, const edm::TriggerResults &)
Get the analysis.
void fillMESet(const edm::Event &, std::string, const reco::MET &)
std::string _hlt_Muon
void beginRun(const edm::Run &, const edm::EventSetup &)
Initialize run-based parameters.
MonitorElement * meTcMETHPDNoise
Definition: MET.h:32
std::vector< std::string > HLTPathsJetMBByName_
double _lowTcMETThreshold
MonitorElement * meTcMETSig
bool selectLowPtJetEvent(const edm::Event &)
MonitorElement * meTcChargedHadFraction
virtual ~TcMETAnalyzer()
Destructor.
DQMStore * _dbe
MonitorElement * metME
MonitorElement * meTriggerName_HighMET
MonitorElement * meTcMETRBXNoise
TcMETAnalyzer(const edm::ParameterSet &)
Constructor.
edm::InputTag HBHENoiseFilterResultTag
Definition: TcMETAnalyzer.h:95
MonitorElement * meTcNeutralHadFraction
double hfCalibFactor_
edm::InputTag TcCandidatesTag
Definition: TcMETAnalyzer.h:98
MonitorElement * meTcMuonFraction
MonitorElement * meTcMETRate
edm::InputTag thePfJetCollectionLabel
Definition: TcMETAnalyzer.h:97
MonitorElement * meTcChargedEMFraction
bool selectHighPtJetEvent(const edm::Event &)
edm::InputTag HcalNoiseRBXCollectionTag
Definition: TcMETAnalyzer.h:94
reco::helper::JetIDHelper * jetID
MonitorElement * meTcMETPhi
MonitorElement * meTcMET
void endJob()
Finish up a job.
MonitorElement * meTriggerName_HighPtJet
std::string _source
Definition: TcMETAnalyzer.h:91
std::string _hlt_LowPtJet
MonitorElement * meTcMExLS
bool selectWMuonEvent(const edm::Event &)
void makeRatePlot(std::string, double)
std::vector< std::string > _FolderNames
std::string _hlt_Ele
double _lowPtTcJetThreshold
void endRun(const edm::Run &iRun, const edm::EventSetup &iSetup, DQMStore *dbe)
Finish up a run.
std::string _hlt_HighMET
Definition: Run.h:36
MonitorElement * meTriggerName_Ele