CMS 3D CMS Logo

DQMPFCandidateAnalyzer.h
Go to the documentation of this file.
1 #ifndef DQMPFCandidateAnalyzer_H
2 #define DQMPFCandidateAnalyzer_H
3 
19 #include <memory>
20 #include <fstream>
26 
34 
38 
40 
44 
49 
51 
52 #include <map>
53 #include <string>
54 
55 //namespace jetAnalysis {
56 //class TrackPropagatorToCalo;
57 //class StripSignalOverNoiseCalculator;
58 //}
59 
61 public:
64 
66  ~DQMPFCandidateAnalyzer() override;
67 
69  // void beginJob(void);
70  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
72  void analyze(const edm::Event&, const edm::EventSetup&) override;
73 
75  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
76 
77 private:
78  // ----------member data ---------------------------
79  static bool jetSortingRule(reco::Jet x, reco::Jet y) { return x.pt() > y.pt(); }
80 
81  //try to put one collection as start
82 
85 
91 
95  edm::InputTag METFilterMiniAODLabel2_; //needed for RECO and reRECO differntiation
97 
98  bool hbhenoifilterdecision; //we only care about HBHENoiseFilter here
99  int miniaodfilterindex; //-1 if not found/RECO, else put to a number >=0
100  //needed to decide which filterresults are supposed to be called
101  int miniaodfilterdec; //if RECO set to 0, if reRECO set to 1, else to -1
102 
105 
107 
108  bool isMiniAO_;
109 
110  // DCS filter
112 
114  std::vector<edm::ParameterSet> diagnosticsParameters_;
115 
116  double ptMinCand_; //pt min of candidates
117  // Smallest raw HCAL energy linked to the track
118  double hcalMin_;
119 
123 
126 
131 
136 
141 
147 
153 
154  //PFcandidate maps
155  std::vector<MonitorElement*> occupancyPFCand_, ptPFCand_, multiplicityPFCand_;
159  std::vector<double> etaMinPFCand_, etaMaxPFCand_;
160  std::vector<int> typePFCand_, countsPFCand_;
161 
162  //PFcandidate maps
165  std::vector<double> etaMinPFCandRECO_, etaMaxPFCandRECO_;
167 
168  int numPV_;
169  int verbose_;
170 
171  int LSBegin_;
172  int LSEnd_;
173 
176 
177  std::map<std::string, MonitorElement*> map_of_MEs;
178 
180 };
181 #endif
DQMPFCandidateAnalyzer::METFilterMiniAODToken2_
edm::EDGetTokenT< edm::TriggerResults > METFilterMiniAODToken2_
Definition: DQMPFCandidateAnalyzer.h:96
JetMETDQMDCSFilter
Definition: JetMETDQMDCSFilter.h:24
DQMPFCandidateAnalyzer::miniaodfilterdec
int miniaodfilterdec
Definition: DQMPFCandidateAnalyzer.h:101
L1GtTriggerMenu.h
DDAxes::y
DQMPFCandidateAnalyzer::mInputCollection_
edm::InputTag mInputCollection_
Definition: DQMPFCandidateAnalyzer.h:86
DQMPFCandidateAnalyzer::mProfileIsoPFChHad_TrackPt
MonitorElement * mProfileIsoPFChHad_TrackPt
Definition: DQMPFCandidateAnalyzer.h:146
reco::Jet
Base class for all types of Jets.
Definition: Jet.h:20
DQMPFCandidateAnalyzer::m_HOverTrackP_EndCap_hPt_1_10
MonitorElement * m_HOverTrackP_EndCap_hPt_1_10
Definition: DQMPFCandidateAnalyzer.h:137
DQMPFCandidateAnalyzer::mProfileIsoPFChHad_EMPtCentral
MonitorElement * mProfileIsoPFChHad_EMPtCentral
Definition: DQMPFCandidateAnalyzer.h:144
DQMPFCandidateAnalyzer::occupancyPFCandRECO_
std::vector< MonitorElement * > occupancyPFCandRECO_
Definition: DQMPFCandidateAnalyzer.h:163
DcsStatus.h
DQMPFCandidateAnalyzer::numPV_
int numPV_
Definition: DQMPFCandidateAnalyzer.h:168
DQMPFCandidateAnalyzer::m_HOverTrackPVsEta_hPt_1_10
MonitorElement * m_HOverTrackPVsEta_hPt_1_10
Definition: DQMPFCandidateAnalyzer.h:127
TriggerResults.h
DQMPFCandidateAnalyzer::ptMinCand_
double ptMinCand_
Definition: DQMPFCandidateAnalyzer.h:116
DQMPFCandidateAnalyzer::pflowToken_
edm::EDGetTokenT< std::vector< reco::PFCandidate > > pflowToken_
Definition: DQMPFCandidateAnalyzer.h:103
PFBlockElementCluster.h
edm::Run
Definition: Run.h:45
TriggerEvent.h
edm::EDGetTokenT
Definition: EDGetToken.h:33
L1GtTriggerMenuRcd.h
DQMPFCandidateAnalyzer::etaMaxPFCand_
std::vector< double > etaMaxPFCand_
Definition: DQMPFCandidateAnalyzer.h:159
DQMPFCandidateAnalyzer::occupancyPFCand_
std::vector< MonitorElement * > occupancyPFCand_
Definition: DQMPFCandidateAnalyzer.h:155
DQMPFCandidateAnalyzer::mProfileIsoPFChHad_EcalOccupancyCentral
MonitorElement * mProfileIsoPFChHad_EcalOccupancyCentral
Definition: DQMPFCandidateAnalyzer.h:150
DQMPFCandidateAnalyzer::jetSortingRule
static bool jetSortingRule(reco::Jet x, reco::Jet y)
Definition: DQMPFCandidateAnalyzer.h:79
JetMETDQMDCSFilter.h
DQMPFCandidateAnalyzer::DCSFilter_
JetMETDQMDCSFilter * DCSFilter_
Definition: DQMPFCandidateAnalyzer.h:111
TriggerTypeDefs.h
DQMOneEDAnalyzer
Definition: DQMOneEDAnalyzer.h:20
DQMPFCandidateAnalyzer::~DQMPFCandidateAnalyzer
~DQMPFCandidateAnalyzer() override
Destructor.
Definition: DQMPFCandidateAnalyzer.cc:122
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
DQMPFCandidateAnalyzer::etaMinPFCand_
std::vector< double > etaMinPFCand_
Definition: DQMPFCandidateAnalyzer.h:159
DDAxes::x
DQMPFCandidateAnalyzer::miniaodfilterindex
int miniaodfilterindex
Definition: DQMPFCandidateAnalyzer.h:99
DQMPFCandidateAnalyzer::LSBegin_
int LSBegin_
Definition: DQMPFCandidateAnalyzer.h:171
DQMPFCandidateAnalyzer::etaMaxPFCandRECO_
std::vector< double > etaMaxPFCandRECO_
Definition: DQMPFCandidateAnalyzer.h:165
DQMPFCandidateAnalyzer::dqmBeginRun
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Initialize run-based parameters.
Definition: DQMPFCandidateAnalyzer.cc:629
DQMOneEDAnalyzer.h
DQMPFCandidateAnalyzer::occupancyPFCand_nameRECO_
std::vector< std::string > occupancyPFCand_nameRECO_
Definition: DQMPFCandidateAnalyzer.h:164
DQMPFCandidateAnalyzer::map_of_MEs
std::map< std::string, MonitorElement * > map_of_MEs
Definition: DQMPFCandidateAnalyzer.h:177
DQMPFCandidateAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Get the analysis.
Definition: DQMPFCandidateAnalyzer.cc:666
DQMPFCandidateAnalyzer::isMiniAO_
bool isMiniAO_
Definition: DQMPFCandidateAnalyzer.h:108
DQMPFCandidateAnalyzer::occupancyPFCand_puppiNolepWeight_
std::vector< MonitorElement * > occupancyPFCand_puppiNolepWeight_
Definition: DQMPFCandidateAnalyzer.h:157
DQMPFCandidateAnalyzer::ptPFCand_name_
std::vector< std::string > ptPFCand_name_
Definition: DQMPFCandidateAnalyzer.h:156
DQMPFCandidateAnalyzer::occupancyPFCand_name_puppiNolepWeight_
std::vector< std::string > occupancyPFCand_name_puppiNolepWeight_
Definition: DQMPFCandidateAnalyzer.h:158
DQMPFCandidateAnalyzer::ptPFCand_nameRECO_
std::vector< std::string > ptPFCand_nameRECO_
Definition: DQMPFCandidateAnalyzer.h:164
dqm::legacy::DQMStore::IBooker
dqm::implementation::IBooker IBooker
Definition: DQMStore.h:729
MakerMacros.h
DQMPFCandidateAnalyzer::m_HOverTrackP_Barrel_hPt_20_50
MonitorElement * m_HOverTrackP_Barrel_hPt_20_50
Definition: DQMPFCandidateAnalyzer.h:134
DQMPFCandidateAnalyzer::m_HOverTrackPVsTrackP_EndCap
MonitorElement * m_HOverTrackPVsTrackP_EndCap
Definition: DQMPFCandidateAnalyzer.h:122
DQMPFCandidateAnalyzer::mProfileIsoPFChHad_HadPtCentral
MonitorElement * mProfileIsoPFChHad_HadPtCentral
Definition: DQMPFCandidateAnalyzer.h:142
DQMPFCandidateAnalyzer::m_HOverTrackPVsTrackPt_EndCap
MonitorElement * m_HOverTrackPVsTrackPt_EndCap
Definition: DQMPFCandidateAnalyzer.h:125
DQMPFCandidateAnalyzer::FilterhltConfig_
HLTConfigProvider FilterhltConfig_
Definition: DQMPFCandidateAnalyzer.h:92
DQMPFCandidateAnalyzer::bypassAllDCSChecks_
bool bypassAllDCSChecks_
Definition: DQMPFCandidateAnalyzer.h:175
Service.h
DQMPFCandidateAnalyzer::ptPFCand_puppiNolepWeight_
std::vector< MonitorElement * > ptPFCand_puppiNolepWeight_
Definition: DQMPFCandidateAnalyzer.h:157
GenericTriggerEventFlag.h
DQMPFCandidateAnalyzer::multiplicityPFCand_nameRECO_
std::vector< std::string > multiplicityPFCand_nameRECO_
Definition: DQMPFCandidateAnalyzer.h:164
DQMPFCandidateAnalyzer::ptPFCand_name_puppiNolepWeight_
std::vector< std::string > ptPFCand_name_puppiNolepWeight_
Definition: DQMPFCandidateAnalyzer.h:158
PFCluster.h
DQMPFCandidateAnalyzer::bypassAllPVChecks_
bool bypassAllPVChecks_
Definition: DQMPFCandidateAnalyzer.h:174
DQMPFCandidateAnalyzer::multiplicityPFCand_
std::vector< MonitorElement * > multiplicityPFCand_
Definition: DQMPFCandidateAnalyzer.h:155
DQMPFCandidateAnalyzer::HBHENoiseStringMiniAOD
std::string HBHENoiseStringMiniAOD
Definition: DQMPFCandidateAnalyzer.h:90
EDGetToken.h
DQMPFCandidateAnalyzer::mProfileIsoPFChHad_TrackOccupancy
MonitorElement * mProfileIsoPFChHad_TrackOccupancy
Definition: DQMPFCandidateAnalyzer.h:152
DQMPFCandidateAnalyzer::DQMPFCandidateAnalyzer
DQMPFCandidateAnalyzer(const edm::ParameterSet &)
Constructor.
Definition: DQMPFCandidateAnalyzer.cc:60
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
Vertex.h
DQMPFCandidateAnalyzer::m_HOverTrackPVsEta_hPt_20_50
MonitorElement * m_HOverTrackPVsEta_hPt_20_50
Definition: DQMPFCandidateAnalyzer.h:129
DQMPFCandidateAnalyzer::m_HOverTrackP_Barrel_hPt_50
MonitorElement * m_HOverTrackP_Barrel_hPt_50
Definition: DQMPFCandidateAnalyzer.h:135
DQMPFCandidateAnalyzer::ptPFCandRECO_
std::vector< MonitorElement * > ptPFCandRECO_
Definition: DQMPFCandidateAnalyzer.h:163
edm::ParameterSet
Definition: ParameterSet.h:36
DQMPFCandidateAnalyzer::cleaningParameters_
edm::ParameterSet cleaningParameters_
Definition: DQMPFCandidateAnalyzer.h:113
DQMPFCandidateAnalyzer::m_HOverTrackPVsEta_hPt_10_20
MonitorElement * m_HOverTrackPVsEta_hPt_10_20
Definition: DQMPFCandidateAnalyzer.h:128
DQMPFCandidateAnalyzer::typePFCandRECO_
std::vector< int > typePFCandRECO_
Definition: DQMPFCandidateAnalyzer.h:166
Event.h
DQMPFCandidateAnalyzer::m_HOverTrackP_EndCap_hPt_20_50
MonitorElement * m_HOverTrackP_EndCap_hPt_20_50
Definition: DQMPFCandidateAnalyzer.h:139
DQMPFCandidateAnalyzer::multiplicityPFCandRECO_
std::vector< MonitorElement * > multiplicityPFCandRECO_
Definition: DQMPFCandidateAnalyzer.h:163
PackedCandidate.h
DQMPFCandidateAnalyzer::m_HOverTrackP_EndCap_hPt_10_20
MonitorElement * m_HOverTrackP_EndCap_hPt_10_20
Definition: DQMPFCandidateAnalyzer.h:138
DQMPFCandidateAnalyzer::hcalMin_
double hcalMin_
Definition: DQMPFCandidateAnalyzer.h:118
DQMPFCandidateAnalyzer::LSEnd_
int LSEnd_
Definition: DQMPFCandidateAnalyzer.h:172
DQMPFCandidateAnalyzer::METFilterMiniAODToken_
edm::EDGetTokenT< edm::TriggerResults > METFilterMiniAODToken_
Definition: DQMPFCandidateAnalyzer.h:94
DQMPFCandidateAnalyzer::isMiniAOD_
bool isMiniAOD_
Definition: DQMPFCandidateAnalyzer.h:179
DQMPFCandidateAnalyzer::mProfileIsoPFChHad_EMPtEndcap
MonitorElement * mProfileIsoPFChHad_EMPtEndcap
Definition: DQMPFCandidateAnalyzer.h:145
DQMPFCandidateAnalyzer::m_HOverTrackPVsEta_hPt_50
MonitorElement * m_HOverTrackPVsEta_hPt_50
Definition: DQMPFCandidateAnalyzer.h:130
DQMPFCandidateAnalyzer::hbheNoiseFilterResultToken_
edm::EDGetTokenT< bool > hbheNoiseFilterResultToken_
Definition: DQMPFCandidateAnalyzer.h:89
edm::EventSetup
Definition: EventSetup.h:57
DQMPFCandidateAnalyzer::m_HOverTrackP_EndCap_hPt_50
MonitorElement * m_HOverTrackP_EndCap_hPt_50
Definition: DQMPFCandidateAnalyzer.h:140
DQMPFCandidateAnalyzer::etaMinPFCandRECO_
std::vector< double > etaMinPFCandRECO_
Definition: DQMPFCandidateAnalyzer.h:165
DQMPFCandidateAnalyzer::typePFCand_
std::vector< int > typePFCand_
Definition: DQMPFCandidateAnalyzer.h:160
HLTConfigProvider.h
DQMPFCandidateAnalyzer::hbheNoiseFilterResultTag_
edm::InputTag hbheNoiseFilterResultTag_
Definition: DQMPFCandidateAnalyzer.h:88
DQMPFCandidateAnalyzer::countsPFCandRECO_
std::vector< int > countsPFCandRECO_
Definition: DQMPFCandidateAnalyzer.h:166
DQMPFCandidateAnalyzer::diagnosticsParameters_
std::vector< edm::ParameterSet > diagnosticsParameters_
Definition: DQMPFCandidateAnalyzer.h:114
DQMPFCandidateAnalyzer::m_HOverTrackPVsTrackPt_Barrel
MonitorElement * m_HOverTrackPVsTrackPt_Barrel
Definition: DQMPFCandidateAnalyzer.h:124
DQMPFCandidateAnalyzer::candidateType_
std::string candidateType_
Definition: DQMPFCandidateAnalyzer.h:106
TriggerObject.h
DQMPFCandidateAnalyzer::theTriggerResultsLabel_
edm::InputTag theTriggerResultsLabel_
Definition: DQMPFCandidateAnalyzer.h:87
PFBlock.h
VertexFwd.h
DQMPFCandidateAnalyzer::mProfileIsoPFChHad_HcalOccupancyEndcap
MonitorElement * mProfileIsoPFChHad_HcalOccupancyEndcap
Definition: DQMPFCandidateAnalyzer.h:149
HLTConfigProvider
Definition: HLTConfigProvider.h:28
DQMPFCandidateAnalyzer::mProfileIsoPFChHad_HadPtEndcap
MonitorElement * mProfileIsoPFChHad_HadPtEndcap
Definition: DQMPFCandidateAnalyzer.h:143
DQMPFCandidateAnalyzer::verbose_
int verbose_
Definition: DQMPFCandidateAnalyzer.h:169
DQMPFCandidateAnalyzer::vertexToken_
edm::EDGetTokenT< std::vector< reco::Vertex > > vertexToken_
Definition: DQMPFCandidateAnalyzer.h:84
Frameworkfwd.h
DQMPFCandidateAnalyzer::multiplicityPFCand_name_
std::vector< std::string > multiplicityPFCand_name_
Definition: DQMPFCandidateAnalyzer.h:156
DQMPFCandidateAnalyzer::ptPFCand_
std::vector< MonitorElement * > ptPFCand_
Definition: DQMPFCandidateAnalyzer.h:155
DQMPFCandidateAnalyzer::METFilterMiniAODLabel2_
edm::InputTag METFilterMiniAODLabel2_
Definition: DQMPFCandidateAnalyzer.h:95
DQMPFCandidateAnalyzer
Definition: DQMPFCandidateAnalyzer.h:60
DQMPFCandidateAnalyzer::hbhenoifilterdecision
bool hbhenoifilterdecision
Definition: DQMPFCandidateAnalyzer.h:98
DQMPFCandidateAnalyzer::m_HOverTrackP_trackPtVsEta
MonitorElement * m_HOverTrackP_trackPtVsEta
Definition: DQMPFCandidateAnalyzer.h:120
DQMPFCandidateAnalyzer::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Inizialize parameters for histo binning.
Definition: DQMPFCandidateAnalyzer.cc:128
L1GtTriggerMenuFwd.h
ParameterSet.h
DQMPFCandidateAnalyzer::m_HOverTrackPVsTrackP_Barrel
MonitorElement * m_HOverTrackPVsTrackP_Barrel
Definition: DQMPFCandidateAnalyzer.h:121
DQMPFCandidateAnalyzer::mProfileIsoPFChHad_EcalOccupancyEndcap
MonitorElement * mProfileIsoPFChHad_EcalOccupancyEndcap
Definition: DQMPFCandidateAnalyzer.h:151
edm::Event
Definition: Event.h:73
DQMPFCandidateAnalyzer::vertexTag_
edm::InputTag vertexTag_
Definition: DQMPFCandidateAnalyzer.h:83
DQMPFCandidateAnalyzer::countsPFCand_
std::vector< int > countsPFCand_
Definition: DQMPFCandidateAnalyzer.h:160
DQMPFCandidateAnalyzer::m_HOverTrackP_Barrel_hPt_10_20
MonitorElement * m_HOverTrackP_Barrel_hPt_10_20
Definition: DQMPFCandidateAnalyzer.h:133
DQMPFCandidateAnalyzer::METFilterMiniAODLabel_
edm::InputTag METFilterMiniAODLabel_
Definition: DQMPFCandidateAnalyzer.h:93
edm::InputTag
Definition: InputTag.h:15
PFBlockElementTrack.h
DQMPFCandidateAnalyzer::m_HOverTrackP_Barrel_hPt_1_10
MonitorElement * m_HOverTrackP_Barrel_hPt_1_10
Definition: DQMPFCandidateAnalyzer.h:132
DQMPFCandidateAnalyzer::occupancyPFCand_name_
std::vector< std::string > occupancyPFCand_name_
Definition: DQMPFCandidateAnalyzer.h:156
DQMPFCandidateAnalyzer::pflowPackedToken_
edm::EDGetTokenT< std::vector< pat::PackedCandidate > > pflowPackedToken_
Definition: DQMPFCandidateAnalyzer.h:104
DQMPFCandidateAnalyzer::mProfileIsoPFChHad_HcalOccupancyCentral
MonitorElement * mProfileIsoPFChHad_HcalOccupancyCentral
Definition: DQMPFCandidateAnalyzer.h:148