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 
29 
30 // Include DQM core
34 
35 struct histoInfo {
36  int nbins;
37  double min;
38  double max;
39  histoInfo(int n, double m, double M) {
40  nbins = n;
41  min = m;
42  max = M;
43  }
45  nbins = config.getParameter<int>("nbins");
46  min = config.getParameter<double>("min");
47  max = config.getParameter<double>("max");
48  }
49 };
50 
51 // class declaration
53 public:
54  explicit TauValidationMiniAOD(const edm::ParameterSet &);
55  ~TauValidationMiniAOD() override;
56 
57  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
58  void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override;
59 
60 private:
63  std::map<std::string, MonitorElement *> ptMap, etaMap, phiMap, massMap, decayModeFindingMap, decayModeMap,
67  std::vector<edm::ParameterSet> discriminators_;
68 };
69 
70 #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)