Main Page
Namespaces
Classes
Package Documentation
Validation
RecoTau
interface
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
18
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
19
#include "
FWCore/Framework/interface/Event.h
"
20
#include "
FWCore/Framework/interface/MakerMacros.h
"
21
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
22
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
23
#include "
FWCore/ServiceRegistry/interface/Service.h
"
24
#include "
CommonTools/TriggerUtils/interface/GenericTriggerEventFlag.h
"
25
#include "
DataFormats/Math/interface/Vector3D.h
"
26
#include "
DataFormats/Math/interface/LorentzVector.h
"
27
#include "
DataFormats/TauReco/interface/PFTau.h
"
28
#include "
DataFormats/PatCandidates/interface/Tau.h
"
29
#include "
DataFormats/Math/interface/deltaR.h
"
30
31
// Include DQM core
32
#include <
DQMServices/Core/interface/DQMStore.h
>
33
#include <
DQMServices/Core/interface/MonitorElement.h
>
34
#include <
DQMServices/Core/interface/DQMEDAnalyzer.h
>
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
}
45
histoInfo
(
const
edm::ParameterSet
&
config
) {
46
nbins = config.
getParameter
<
int
>(
"nbins"
);
47
min = config.
getParameter
<
double
>(
"min"
);
48
max = config.
getParameter
<
double
>(
"max"
);
49
}
50
};
51
52
// class declaration
53
class
TauValidationMiniAOD
:
public
DQMEDAnalyzer
{
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
:
62
edm::EDGetTokenT<std::vector<pat::Tau>
>
tauCollection_
;
63
edm::EDGetTokenT<edm::View<reco::Candidate>
>
refCollectionInputTagToken_
;
64
std::map<std::string, MonitorElement *> ptMap,
etaMap
, phiMap, massMap, decayModeFindingMap, decayModeMap,
65
byDeepTau2017v2VSerawMap, byDeepTau2017v2VSjetrawMap, byDeepTau2017v2VSmurawMap,
summaryMap
;
66
edm::ParameterSet
histoSettings_
;
67
std::string
extensionName_
;
68
std::vector<edm::ParameterSet>
discriminators_
;
69
};
70
71
#endif
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
MessageLogger.h
PFTau.h
TauValidationMiniAOD::extensionName_
std::string extensionName_
Definition:
TauValidationMiniAOD.h:67
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
Event.h
TauValidationMiniAOD
Definition:
TauValidationMiniAOD.h:53
MakerMacros.h
histoInfo
Definition:
TauValidationMiniAOD.h:36
config
Definition:
config.py:1
histoInfo::nbins
int nbins
Definition:
TauValidationMiniAOD.h:37
edm::EDGetTokenT
Definition:
EDGetToken.h:33
analyze
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
ParameterSet.h
HiRecoPFJets_cff.etaMap
etaMap
Definition:
HiRecoPFJets_cff.py:69
iEvent
int iEvent
Definition:
GenABIO.cc:224
histoInfo::max
double max
Definition:
TauValidationMiniAOD.h:39
deltaR.h
TauValidationMiniAOD::histoSettings_
edm::ParameterSet histoSettings_
Definition:
TauValidationMiniAOD.h:66
GenericTriggerEventFlag.h
DQMEDAnalyzer.h
DQMStore.h
DQMEDAnalyzer
Definition:
DQMEDAnalyzer.py:1
Service.h
Tau.h
edm::EventSetup
Definition:
EventSetup.h:57
TauValidationMiniAOD::tauCollection_
edm::EDGetTokenT< std::vector< pat::Tau > > tauCollection_
Definition:
TauValidationMiniAOD.h:62
LorentzVector.h
TauValidationMiniAOD::summaryMap
std::map< std::string, MonitorElement * > summaryMap
Definition:
TauValidationMiniAOD.h:64
EDAnalyzer.h
histoInfo::histoInfo
histoInfo(int n, double m, double M)
Definition:
TauValidationMiniAOD.h:40
histoInfo::min
double min
Definition:
TauValidationMiniAOD.h:38
TauValidationMiniAOD::discriminators_
std::vector< edm::ParameterSet > discriminators_
Definition:
TauValidationMiniAOD.h:68
bookHistograms
example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
funct::m
m
Definition:
Factorize.h:56
gen::n
int n
Definition:
Cascade2Hadronizer.cc:79
MonitorElement.h
Vector3D.h
TauValidationMiniAOD::refCollectionInputTagToken_
edm::EDGetTokenT< edm::View< reco::Candidate > > refCollectionInputTagToken_
Definition:
TauValidationMiniAOD.h:63
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::Event
Definition:
Event.h:71
DQMStore::IBooker
Definition:
DQMStore.h:88
edm::Run
Definition:
Run.h:45
histoInfo::histoInfo
histoInfo(const edm::ParameterSet &config)
Definition:
TauValidationMiniAOD.h:45
Generated for CMSSW Reference Manual by
1.8.11