CMS 3D CMS Logo

TauValidationMiniAOD.h
Go to the documentation of this file.
1 #ifndef TauValidationMiniAOD_h
2 #define TauValidationMiniAOD_h
3 
4 // -*- C++ -*-
5 //
6 // Package: TauValidationMiniAOD
7 // Class: TauValidationMiniAOD
8 //
9 /* *\class TauValidationMiniAOD TauValidationMiniAOD.cc
10 
11  Description: EDAnalyzer to validate tau collection in miniAOD
12  Implementation:
13 
14 */
15 // Original Author: Aniello Spiezia On August 13, 2019
16 // user include files
17 
30 
31 // Include DQM core
35 
36 struct histoInfo {
37  int nbins;
38  double min;
39  double max;
40  histoInfo(int n, double m, double M) {
41  nbins = n;
42  min = m;
43  max = M;
44  }
46  nbins = config.getParameter<int>("nbins");
47  min = config.getParameter<double>("min");
48  max = config.getParameter<double>("max");
49  }
50 };
51 
52 // class declaration
54 public:
55  explicit TauValidationMiniAOD(const edm::ParameterSet &);
56  ~TauValidationMiniAOD() override;
57 
58  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
59  void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override;
60 
61 private:
64  std::map<std::string, MonitorElement *> ptMap, etaMap, phiMap, massMap, decayModeFindingMap, decayModeMap,
65  byDeepTau2017v2p1VSerawMap, byDeepTau2017v2p1VSjetrawMap, byDeepTau2017v2p1VSmurawMap, summaryMap;
68  std::vector<edm::ParameterSet> discriminators_;
69 };
70 
71 #endif
T getParameter(std::string const &) const
Definition: config.py:1
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
int iEvent
Definition: GenABIO.cc:224
edm::ParameterSet histoSettings_
edm::EDGetTokenT< std::vector< pat::Tau > > tauCollection_
std::map< std::string, MonitorElement * > summaryMap
histoInfo(int n, double m, double M)
std::vector< edm::ParameterSet > discriminators_
example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
edm::EDGetTokenT< edm::View< reco::Candidate > > refCollectionInputTagToken_
Definition: Run.h:45
histoInfo(const edm::ParameterSet &config)