CMS 3D CMS Logo

Tau3MuMonitor.h
Go to the documentation of this file.
1 #ifndef DQMOFFLINE_TRIGGER_TAU3MUMONITOR_H
2 #define DQMOFFLINE_TRIGGER_TAU3MUMONITOR_H
3 
4 #include <string>
5 
6 // Framework
22 
23 // TriggerUtils
25 
26 // DataFormats
28 
29 struct MEbinning {
30  unsigned int nbins;
31  double xmin;
32  double xmax;
33 };
34 
36 {
37  public:
39  ~Tau3MuMonitor() override;
40  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
41  static void fillHistoPSetDescription(edm::ParameterSetDescription & pset);
42 
43  protected:
44  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
45  void analyze(edm::Event const& iEvent, edm::EventSetup const& iSetup) override;
46 
47  private:
48  static MEbinning getHistoPSet (edm::ParameterSet pset);
49 
51 
52  bool validProduct_ = true; // internally store a flag to remember whether the needed tau3mu collection is present and valid
53 
55 
56  MonitorElement* tau1DPt_ ; // 1D tau pt histogram
57  MonitorElement* tau1DEta_ ; // 1D tau eta histogram
58  MonitorElement* tau1DPhi_ ; // 1D tau phi histogram
59  MonitorElement* tau1DMass_ ; // 1D tau mass histogram
60  MonitorElement* tau2DEtaPhi_; // 2D tau eta vs phi histogram
61 
62  MEbinning pt_binning_ ; // for the 1D tau pt histogram
63  MEbinning eta_binning_ ; // for the 1D tau eta histogram and 2D tau eta vs phi histogram
64  MEbinning phi_binning_ ; // for the 1D tau phi histogram and 2D tau eta vs phi histogram
65  MEbinning mass_binning_; // for the 1D tau mass histogram
66 
67  std::unique_ptr<GenericTriggerEventFlag> genTriggerEventFlag_; // "is trigger fired?" flag
68 };
69 
70 #endif // DQMOFFLINE_TRIGGER_TAU3MUMONITOR_H
std::string folderName_
Definition: Tau3MuMonitor.h:50
MonitorElement * tau1DEta_
Definition: Tau3MuMonitor.h:57
MonitorElement * tau1DPt_
Definition: Tau3MuMonitor.h:56
virtual example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
MEbinning pt_binning_
Definition: Tau3MuMonitor.h:62
std::unique_ptr< GenericTriggerEventFlag > genTriggerEventFlag_
Definition: Tau3MuMonitor.h:67
MonitorElement * tau1DMass_
Definition: Tau3MuMonitor.h:59
int iEvent
Definition: GenABIO.cc:230
MonitorElement * tau1DPhi_
Definition: Tau3MuMonitor.h:58
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
virtual example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
MEbinning mass_binning_
Definition: Tau3MuMonitor.h:65
MonitorElement * tau2DEtaPhi_
Definition: Tau3MuMonitor.h:60
MEbinning phi_binning_
Definition: Tau3MuMonitor.h:64
MEbinning eta_binning_
Definition: Tau3MuMonitor.h:63
edm::EDGetTokenT< reco::CompositeCandidateCollection > tauToken_
Definition: Tau3MuMonitor.h:54
Definition: Run.h:43