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 
13 #include <memory>
14 #include <fstream>
15 #include "TMath.h"
24 
29 
31 
33 
35 
37  public:
38 
41 
43  virtual ~TcMETAnalyzer();
44 
46  void beginJob(DQMStore * dbe);
47 
49  void endJob();
50 
51  // Book MonitorElements
52  void bookMESet(std::string);
53  void bookMonitorElement(std::string, bool);
54 
56  void analyze(const edm::Event&, const edm::EventSetup&,
57  const edm::TriggerResults&);
58 
60  void beginRun(const edm::Run&, const edm::EventSetup&);
61 
63  void endRun(const edm::Run& iRun, const edm::EventSetup& iSetup, DQMStore *dbe);
64 
65  // Fill MonitorElements
66  void fillMESet(const edm::Event&, std::string, const reco::MET&);
67  void fillMonitorElement(const edm::Event&, std::string, std::string, const reco::MET&, bool);
68  void makeRatePlot(std::string, double);
69 
70  bool selectHighPtJetEvent(const edm::Event&);
71  bool selectLowPtJetEvent(const edm::Event&);
72  bool selectWElectronEvent(const edm::Event&);
73  bool selectWMuonEvent(const edm::Event&);
74 
76  _source = source;
77  }
78 
80 
81  private:
82  // ----------member data ---------------------------
83 
85  // Switch for verbosity
86  int _verbose;
87 
90 
97 
98  // list of Jet or MB HLT triggers
99  std::vector<std::string > HLTPathsJetMBByName_;
100 
104  // std::string _hlt_LowMET;
107 
112  // int _trig_LowMET;
115 
116 
121 
122  // Et threshold for MET plots
123  double _etThreshold;
124 
125  // HF calibration factor (in 31X applied by TcProducer)
126  double hfCalibFactor_; //
127 
128  // JetID helper
130 
131  //
132  bool _allhist;
134 
135  //
136  std::vector<std::string> _FolderNames;
137 
138  //
140 
141  //the histos
143 
147  // MonitorElement* meTriggerName_LowMET;
150 
156 
166 
170 
172 };
173 #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:75
double _highPtTcJetThreshold
MonitorElement * meTcMEyLS
std::string _hlt_HighPtJet
MonitorElement * meTcMEy
MonitorElement * meTriggerName_Muon
MonitorElement * meTriggerName_LowPtJet
edm::InputTag theJetCollectionLabel
Definition: TcMETAnalyzer.h:94
double _highTcMETThreshold
MonitorElement * meTcMETIonFeedbck
edm::InputTag theTcMETCollectionLabel
Definition: TcMETAnalyzer.h:91
MonitorElement * meTcEz
void bookMESet(std::string)
std::string metname
Definition: TcMETAnalyzer.h:88
edm::ParameterSet parameters
Definition: TcMETAnalyzer.h:84
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_
Definition: TcMETAnalyzer.h:99
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:93
MonitorElement * meTcNeutralHadFraction
double hfCalibFactor_
edm::InputTag TcCandidatesTag
Definition: TcMETAnalyzer.h:96
MonitorElement * meTcMuonFraction
MonitorElement * meTcMETRate
edm::InputTag thePfJetCollectionLabel
Definition: TcMETAnalyzer.h:95
MonitorElement * meTcChargedEMFraction
bool selectHighPtJetEvent(const edm::Event &)
edm::InputTag HcalNoiseRBXCollectionTag
Definition: TcMETAnalyzer.h:92
reco::helper::JetIDHelper * jetID
MonitorElement * meTcMETPhi
MonitorElement * meTcMET
void endJob()
Finish up a job.
MonitorElement * meTriggerName_HighPtJet
std::string _source
Definition: TcMETAnalyzer.h:89
std::string _hlt_LowPtJet
MonitorElement * meTcMExLS
bool selectWMuonEvent(const edm::Event &)
void makeRatePlot(std::string, double)
std::vector< std::string > _FolderNames
static std::string const source
Definition: EdmProvDump.cc:43
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:41
MonitorElement * meTriggerName_Ele