CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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,
68  std::vector<edm::ParameterSet> discriminators_;
69 };
70 
71 #endif
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::map< std::string, MonitorElement * > byDeepTau2017v2p1VSjetrawMap
std::map< std::string, MonitorElement * > decayModeMap
std::map< std::string, MonitorElement * > etaMap
std::map< std::string, MonitorElement * > decayModeFindingMap
TauValidationMiniAOD(const edm::ParameterSet &)
int iEvent
Definition: GenABIO.cc:224
std::map< std::string, MonitorElement * > phiMap
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_
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
tuple config
parse the configuration file
edm::EDGetTokenT< edm::View< reco::Candidate > > refCollectionInputTagToken_
std::map< std::string, MonitorElement * > byDeepTau2017v2p1VSerawMap
std::map< std::string, MonitorElement * > massMap
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
std::map< std::string, MonitorElement * > byDeepTau2017v2p1VSmurawMap
std::map< std::string, MonitorElement * > ptMap
Definition: Run.h:45
histoInfo(const edm::ParameterSet &config)