CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
HLTExoticaSubAnalysis Class Reference

#include <HLTExoticaSubAnalysis.h>

Public Types

typedef dqm::legacy::DQMStore DQMStore
 
enum  Level { Level::GEN = 98, Level::RECO = 99 }
 
typedef dqm::legacy::MonitorElement MonitorElement
 

Public Member Functions

void analyze (const edm::Event &iEvent, const edm::EventSetup &iEventSetup, EVTColContainer *cols)
 
void beginJob ()
 
void beginRun (const edm::Run &iRun, const edm::EventSetup &iEventSetup)
 
void endRun ()
 
 HLTExoticaSubAnalysis (const edm::ParameterSet &pset, const std::string &analysisname, edm::ConsumesCollector &&consCollector)
 Constructor. More...
 
void subAnalysisBookHistos (DQMStore::IBooker &iBooker, const edm::Run &iRun, const edm::EventSetup &iSetup)
 
 ~HLTExoticaSubAnalysis ()
 End Constructor. More...
 

Private Member Functions

void bookHist (DQMStore::IBooker &iBooker, const std::string &source, const std::string &objType, const std::string &variable)
 The internal functions to book and fill histograms. More...
 
void fillHist (const std::string &source, const std::string &objType, const std::string &variable, const float &value)
 
void getHandlesToObjects (const edm::Event &iEvent, EVTColContainer *col)
 Gets the collections themselves. More...
 
void getNamesOfObjects (const edm::ParameterSet &anpset)
 Creates the maps that map which collection should come from which label. More...
 
const std::vector< unsigned int > getObjectsType (const std::string &hltpath) const
 closes analyze method More...
 
void initSelector (const unsigned int &objtype)
 Initializes the selectors of the objects based on which object it is. More...
 
void insertCandidates (const unsigned int &objtype, const EVTColContainer *col, std::vector< reco::LeafCandidate > *matches, std::map< int, double > &theSumEt, std::map< int, std::vector< const reco::Track *>> &trkObjs)
 
void registerConsumes (edm::ConsumesCollector &consCollector)
 Registers consumption of objects. More...
 

Private Attributes

std::string _analysisname
 The name of this sub-analysis. More...
 
edm::InputTag _beamSpotLabel
 
edm::EDGetTokenT< reco::BeamSpot_bsToken
 
bool _drop_pt2
 
bool _drop_pt3
 
std::map< std::string, MonitorElement * > _elements
 Structure of the MonitorElements. More...
 
std::map< unsigned int, std::string > _genCut
 gen/rec objects cuts More...
 
std::map< unsigned int, std::string > _genCut_leading
 gen/rec pt-leading objects cuts More...
 
StringCutObjectSelector< reco::GenMET > * _genMETSelector
 
edm::InputTag _genParticleLabel
 
edm::EDGetTokenT< reco::GenParticleCollection_genParticleToken
 And also the tokens to get the object collections. More...
 
std::map< unsigned int, StringCutObjectSelector< reco::GenParticle > * > _genSelectorMap
 
HLTConfigProvider _hltConfig
 Interface to the HLT information. More...
 
std::set< std::string > _hltPaths
 The hlt paths found in the hltConfig. More...
 
std::vector< std::string > _hltPathsToCheck
 The hlt paths to check for. More...
 
std::string _hltProcessName
 The labels of the object collections to be used in this analysis. More...
 
unsigned int _minCandidates
 The minimum number of reco/gen candidates needed by the analysis. More...
 
std::vector< double > _parametersDxy
 
std::vector< double > _parametersEta
 Some kinematical parameters. More...
 
std::vector< double > _parametersPhi
 
std::vector< double > _parametersTurnOn
 
std::vector< double > _parametersTurnOnSumEt
 
std::vector< HLTExoticaPlotter_plotters
 The plotters: managers of each hlt path where the plots are done. More...
 
edm::ParameterSet _pset
 Internal, working copy of the PSet passed from above. More...
 
StringCutObjectSelector< reco::CaloJet > * _recCaloJetSelector
 
StringCutObjectSelector< reco::CaloMET > * _recCaloMETSelector
 
StringCutObjectSelector< reco::CaloMET > * _recCaloMHTSelector
 
std::map< unsigned int, std::string > _recCut
 
std::map< unsigned int, std::string > _recCut_leading
 
StringCutObjectSelector< reco::GsfElectron > * _recElecSelector
 
std::map< unsigned int, edm::InputTag_recLabels
 
StringCutObjectSelector< reco::MET > * _recMETSelector
 
StringCutObjectSelector< reco::Muon > * _recMuonSelector
 
StringCutObjectSelector< reco::Track > * _recMuonTrkSelector
 
StringCutObjectSelector< reco::PFJet > * _recPFJetSelector
 
StringCutObjectSelector< reco::PFMET > * _recPFMETSelector
 
StringCutObjectSelector< reco::PFMET > * _recPFMHTSelector
 
StringCutObjectSelector< reco::PFTau > * _recPFTauSelector
 
StringCutObjectSelector< reco::Photon > * _recPhotonSelector
 
StringCutObjectSelector< reco::Track > * _recTrackSelector
 
std::map< std::string, std::string > _shortpath2long
 Relation between the short and long versions of the path. More...
 
std::map< unsigned int, edm::EDGetToken_tokens
 
std::map< std::string, int > _triggerCounter
 counting HLT passed events More...
 
edm::InputTag _trigResultsLabel
 
edm::EDGetTokenT< edm::TriggerResults_trigResultsToken
 

Detailed Description

This class is the main workhorse of the package. It makes the histograms for one given analysis, taking care of all HLT paths related to that analysis.

Generate histograms for trigger efficiencies Exotica related Documentation available on the CMS TWiki: https://twiki.cern.ch/twiki/bin/view/CMS/EXOTICATriggerValidation

Author
Thiago R. Fernandez Perez Tomei Based and adapted from: J. Duarte Campderros code from HLTriggerOffline/Higgs J. Klukas, M. Vander Donckt and J. Alcaraz code from the HLTriggerOffline/Muon package.

Definition at line 63 of file HLTExoticaSubAnalysis.h.

Member Typedef Documentation

◆ DQMStore

Definition at line 65 of file HLTExoticaSubAnalysis.h.

◆ MonitorElement

Definition at line 66 of file HLTExoticaSubAnalysis.h.

Member Enumeration Documentation

◆ Level

Enumerator
GEN 
RECO 

Definition at line 68 of file HLTExoticaSubAnalysis.h.

68 { GEN = 98, RECO = 99 };

Constructor & Destructor Documentation

◆ HLTExoticaSubAnalysis()

HLTExoticaSubAnalysis::HLTExoticaSubAnalysis ( const edm::ParameterSet pset,
const std::string &  analysisname,
edm::ConsumesCollector &&  consCollector 
)

Constructor.

Get the vector of paths to check, for this particular analysis.

Get the minimum candidates, for this particular analysis.

Definition at line 27 of file HLTExoticaSubAnalysis.cc.

References _drop_pt2, _drop_pt3, _genCut, _genCut_leading, _hltPathsToCheck, _minCandidates, _parametersDxy, _parametersEta, _parametersPhi, _parametersTurnOn, _parametersTurnOnSumEt, _pset, _recCut, _recCut_leading, _recLabels, edm::ParameterSet::exists(), edm::ParameterSet::existsAs(), getNamesOfObjects(), edm::ParameterSet::getParameter(), EVTColContainer::getTypeString(), edm::ParameterSet::getUntrackedParameter(), edm::ParameterSet::insert(), LogDebug, muonDTDigis_cfi::pset, registerConsumes(), edm::ParameterSet::retrieve(), and AlCaHLTBitMon_QueryRunRegistry::string.

30  : _pset(pset),
31  _analysisname(analysisname),
32  _minCandidates(0),
33  _hltProcessName(pset.getParameter<std::string>("hltProcessName")),
34  _genParticleLabel(pset.getParameter<std::string>("genParticleLabel")),
35  _trigResultsLabel("TriggerResults", "", _hltProcessName),
36  _beamSpotLabel(pset.getParameter<std::string>("beamSpotLabel")),
37  _parametersEta(pset.getParameter<std::vector<double>>("parametersEta")),
38  _parametersPhi(pset.getParameter<std::vector<double>>("parametersPhi")),
39  _parametersTurnOn(pset.getParameter<std::vector<double>>("parametersTurnOn")),
40  _parametersTurnOnSumEt(pset.getParameter<std::vector<double>>("parametersTurnOnSumEt")),
41  _parametersDxy(pset.getParameter<std::vector<double>>("parametersDxy")),
42  _drop_pt2(false),
43  _drop_pt3(false),
44  _recMuonSelector(nullptr),
45  _recMuonTrkSelector(nullptr),
46  _recTrackSelector(nullptr),
47  _recElecSelector(nullptr),
48  _recMETSelector(nullptr),
49  _recPFMETSelector(nullptr),
50  _recPFMHTSelector(nullptr),
51  _genMETSelector(nullptr),
52  _recCaloMETSelector(nullptr),
53  _recCaloMHTSelector(nullptr),
54  _recPFTauSelector(nullptr),
55  _recPhotonSelector(nullptr),
56  _recPFJetSelector(nullptr),
57  _recCaloJetSelector(nullptr) {
58  LogDebug("ExoticaValidation") << "In HLTExoticaSubAnalysis::constructor()";
59 
60  // Specific parameters for this analysis
61  edm::ParameterSet anpset = pset.getParameter<edm::ParameterSet>(analysisname);
62 
63  // If this analysis has a particular set of binnings, use it.
64  // (Taken from the analysis-specific parameter set, of course)
65  // The "true" in the beginning of _pset.insert() means
66  // "overwrite the parameter if need be".
67  if (anpset.exists("parametersTurnOn")) {
68  _parametersTurnOn = anpset.getParameter<std::vector<double>>("parametersTurnOn");
69  _pset.insert(true, "parametersTurnOn", anpset.retrieve("parametersTurnOn"));
70  }
71  if (anpset.exists("parametersEta")) {
72  _parametersEta = anpset.getParameter<std::vector<double>>("parametersEta");
73  _pset.insert(true, "parametersEta", anpset.retrieve("parametersEta"));
74  }
75  if (anpset.exists("parametersPhi")) {
76  _parametersPhi = anpset.getParameter<std::vector<double>>("parametersPhi");
77  _pset.insert(true, "parametersPhi", anpset.retrieve("parametersPhi"));
78  }
79  if (anpset.exists("parametersDxy")) {
80  _parametersDxy = anpset.getParameter<std::vector<double>>("parametersDxy");
81  _pset.insert(true, "parametersDxy", anpset.retrieve("parametersDxy"));
82  }
83  if (anpset.exists("parametersTurnOnSumEt")) {
84  _parametersTurnOnSumEt = anpset.getParameter<std::vector<double>>("parametersTurnOnSumEt");
85  _pset.insert(true, "parametersTurnOnSumEt", anpset.retrieve("parametersTurnOnSumEt"));
86  }
87  if (anpset.exists("dropPt2")) {
88  _drop_pt2 = anpset.getParameter<bool>("dropPt2");
89  _pset.insert(true, "dropPt2", anpset.retrieve("dropPt2"));
90  }
91  if (anpset.exists("dropPt3")) {
92  _drop_pt3 = anpset.getParameter<bool>("dropPt3");
93  _pset.insert(true, "dropPt3", anpset.retrieve("dropPt3"));
94  }
95 
96  // Get names of objects that we may want to get from the event.
97  // Notice that genParticles are dealt with separately.
98  this->getNamesOfObjects(anpset);
99 
100  // Since now we have the names, we should register the consumption
101  // of objects.
102  this->registerConsumes(consCollector);
103 
104  // Generic objects: Initialization of basic phase space cuts.
105  for (std::map<unsigned int, edm::InputTag>::const_iterator it = _recLabels.begin(); it != _recLabels.end(); ++it) {
106  const std::string objStr = EVTColContainer::getTypeString(it->first);
107  _genCut[it->first] = pset.getParameter<std::string>(objStr + "_genCut");
108  _recCut[it->first] = pset.getParameter<std::string>(objStr + "_recCut");
109  auto const genCutParam = objStr + "_genCut_leading";
110  if (pset.exists(genCutParam)) {
111  _genCut_leading[it->first] = pset.getParameter<std::string>(genCutParam);
112  } else {
113  _genCut_leading[it->first] = "pt>0"; // no cut
114  }
115  auto const recCutParam = objStr + "_recCut_leading";
116  if (pset.exists(recCutParam)) {
117  _recCut_leading[it->first] = pset.getParameter<std::string>(recCutParam);
118  } else {
119  _recCut_leading[it->first] = "pt>0"; // no cut
120  }
121  }
122 
123  //--- Updating parameters if has to be modified for this particular specific
124  // analysis
125  for (std::map<unsigned int, edm::InputTag>::const_iterator it = _recLabels.begin(); it != _recLabels.end(); ++it) {
126  const std::string objStr = EVTColContainer::getTypeString(it->first);
127 
128  auto const genCutParam = objStr + "_genCut";
129  if (anpset.existsAs<std::string>(genCutParam, false)) {
130  _genCut[it->first] = anpset.getUntrackedParameter<std::string>(genCutParam);
131  }
132 
133  auto const recCutParam = objStr + "_recCut";
134  if (anpset.existsAs<std::string>(recCutParam, false)) {
135  _recCut[it->first] = anpset.getUntrackedParameter<std::string>(recCutParam);
136  }
137  }
138 
140  _hltPathsToCheck = anpset.getParameter<std::vector<std::string>>("hltPathsToCheck");
142  _minCandidates = anpset.getParameter<unsigned int>("minCandidates");
143 
144 }
StringCutObjectSelector< reco::Track > * _recMuonTrkSelector
unsigned int _minCandidates
The minimum number of reco/gen candidates needed by the analysis.
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
void getNamesOfObjects(const edm::ParameterSet &anpset)
Creates the maps that map which collection should come from which label.
std::map< unsigned int, std::string > _genCut
gen/rec objects cuts
bool exists(std::string const &parameterName) const
checks if a parameter exists
StringCutObjectSelector< reco::CaloJet > * _recCaloJetSelector
StringCutObjectSelector< reco::GenMET > * _genMETSelector
std::vector< double > _parametersPhi
void insert(bool ok_to_replace, char const *, Entry const &)
bool existsAs(std::string const &parameterName, bool trackiness=true) const
checks if a parameter exists as a given type
Definition: ParameterSet.h:172
StringCutObjectSelector< reco::MET > * _recMETSelector
std::map< unsigned int, std::string > _genCut_leading
gen/rec pt-leading objects cuts
StringCutObjectSelector< reco::PFJet > * _recPFJetSelector
T getUntrackedParameter(std::string const &, T const &) const
std::map< unsigned int, edm::InputTag > _recLabels
StringCutObjectSelector< reco::GsfElectron > * _recElecSelector
std::map< unsigned int, std::string > _recCut_leading
StringCutObjectSelector< reco::Muon > * _recMuonSelector
edm::ParameterSet _pset
Internal, working copy of the PSet passed from above.
Entry const & retrieve(char const *) const
std::vector< double > _parametersEta
Some kinematical parameters.
std::map< unsigned int, std::string > _recCut
std::vector< double > _parametersDxy
StringCutObjectSelector< reco::Track > * _recTrackSelector
std::vector< std::string > _hltPathsToCheck
The hlt paths to check for.
StringCutObjectSelector< reco::CaloMET > * _recCaloMHTSelector
std::string _hltProcessName
The labels of the object collections to be used in this analysis.
void registerConsumes(edm::ConsumesCollector &consCollector)
Registers consumption of objects.
StringCutObjectSelector< reco::PFMET > * _recPFMETSelector
std::string _analysisname
The name of this sub-analysis.
StringCutObjectSelector< reco::Photon > * _recPhotonSelector
std::vector< double > _parametersTurnOn
StringCutObjectSelector< reco::CaloMET > * _recCaloMETSelector
std::vector< double > _parametersTurnOnSumEt
static const std::string getTypeString(const unsigned int &objtype)
Tranform types into strings.
StringCutObjectSelector< reco::PFMET > * _recPFMHTSelector
StringCutObjectSelector< reco::PFTau > * _recPFTauSelector
#define LogDebug(id)

◆ ~HLTExoticaSubAnalysis()

HLTExoticaSubAnalysis::~HLTExoticaSubAnalysis ( )

End Constructor.

Definition at line 146 of file HLTExoticaSubAnalysis.cc.

References _genMETSelector, _genSelectorMap, _recCaloJetSelector, _recCaloMETSelector, _recCaloMHTSelector, _recElecSelector, _recMETSelector, _recMuonSelector, _recMuonTrkSelector, _recPFJetSelector, _recPFMETSelector, _recPFMHTSelector, _recPFTauSelector, _recPhotonSelector, _recTrackSelector, and genParticles_cff::map.

146  {
147  for (std::map<unsigned int, StringCutObjectSelector<reco::GenParticle> *>::iterator it = _genSelectorMap.begin();
148  it != _genSelectorMap.end();
149  ++it) {
150  delete it->second;
151  it->second = nullptr;
152  }
153  delete _recMuonSelector;
154  _recMuonSelector = nullptr;
155  delete _recMuonTrkSelector;
156  _recMuonTrkSelector = nullptr;
157  delete _recTrackSelector;
158  _recTrackSelector = nullptr;
159  delete _recElecSelector;
160  _recElecSelector = nullptr;
161  delete _recPhotonSelector;
162  _recPhotonSelector = nullptr;
163  delete _recMETSelector;
164  _recMETSelector = nullptr;
165  delete _recPFMETSelector;
166  _recPFMETSelector = nullptr;
167  delete _recPFMHTSelector;
168  _recPFMHTSelector = nullptr;
169  delete _genMETSelector;
170  _genMETSelector = nullptr;
171  delete _recCaloMETSelector;
172  _recCaloMETSelector = nullptr;
173  delete _recCaloMHTSelector;
174  _recCaloMHTSelector = nullptr;
175  delete _recPFTauSelector;
176  _recPFTauSelector = nullptr;
177  delete _recPFJetSelector;
178  _recPFJetSelector = nullptr;
179  delete _recCaloJetSelector;
180  _recCaloJetSelector = nullptr;
181 }
StringCutObjectSelector< reco::Track > * _recMuonTrkSelector
StringCutObjectSelector< reco::CaloJet > * _recCaloJetSelector
StringCutObjectSelector< reco::GenMET > * _genMETSelector
StringCutObjectSelector< reco::MET > * _recMETSelector
StringCutObjectSelector< reco::PFJet > * _recPFJetSelector
StringCutObjectSelector< reco::GsfElectron > * _recElecSelector
StringCutObjectSelector< reco::Muon > * _recMuonSelector
StringCutObjectSelector< reco::Track > * _recTrackSelector
StringCutObjectSelector< reco::CaloMET > * _recCaloMHTSelector
StringCutObjectSelector< reco::PFMET > * _recPFMETSelector
StringCutObjectSelector< reco::Photon > * _recPhotonSelector
std::map< unsigned int, StringCutObjectSelector< reco::GenParticle > * > _genSelectorMap
StringCutObjectSelector< reco::CaloMET > * _recCaloMETSelector
StringCutObjectSelector< reco::PFMET > * _recPFMHTSelector
StringCutObjectSelector< reco::PFTau > * _recPFTauSelector

Member Function Documentation

◆ analyze()

void HLTExoticaSubAnalysis::analyze ( const edm::Event iEvent,
const edm::EventSetup iEventSetup,
EVTColContainer cols 
)

Method to fill all relevant histograms. Notice that we update the EVTColContaner to point to the collections we want.

We are going to make a fake reco::LeafCandidate, with our particleType as the pdgId. This is an alternative to the older implementation with MatchStruct.





Filling the histograms if pass the minimum amount of candidates needed by the analysis:




GEN CASE ///

Close GEN case

RECO CASE ///

Debugging.

Close RECO case

Definition at line 366 of file HLTExoticaSubAnalysis.cc.

References _drop_pt2, _drop_pt3, _genCut, _genCut_leading, _genSelectorMap, _minCandidates, _plotters, _recCut_leading, _recLabels, _shortpath2long, _triggerCounter, edm::HLTGlobalStatus::accept(), EVTColContainer::bs, cms::cuda::co, funct::cos(), EVTColContainer::ELEC, PVValHelper::eta, fillHist(), EVTColContainer::genParticles, getHandlesToObjects(), EVTColContainer::getTypeString(), TriggerAnalyzer::hltPath, mps_fire::i, iEvent, initSelector(), insertCandidates(), dqmiolumiharvest::j, findQualityFiles::jj, LogDebug, EVTColContainer::MUON, EVTColContainer::MUTRK, electrons_cff::objType, phi, reco::BeamSpot::position(), DiDispStaMuonMonitor_cfi::pt, edm::second(), singleTopDQM_cfi::select, funct::sin(), AlCaHLTBitMon_QueryRunRegistry::string, EVTColContainer::triggerResults, trigNames, findQualityFiles::v, verbose, extraflags_cff::vtx, reco::BeamSpot::x0(), and reco::BeamSpot::y0().

366  {
367  LogDebug("ExoticaValidation") << "In HLTExoticaSubAnalysis::analyze()";
368 
369  // Loop over _recLabels to make sure everything is alright.
370  /*
371  std::cout << "Now printing the _recLabels" << std::endl;
372  for (std::map<unsigned int, edm::InputTag>::iterator it = _recLabels.begin();
373  it != _recLabels.end(); ++it) {
374  std::cout << "Number: " << it->first << "\t" << "Label: " <<
375  it->second.label() << std::endl;
376  }
377  */
378 
379  // Initialize the collection (the ones which have not been initialiazed yet)
380  // std::cout << "Setting handles to objects..." << std::endl;
381  this->getHandlesToObjects(iEvent, cols);
382 
383  // Utility map, mapping kinds of objects (GEN, RECO) to strings ("gen","rec")
384  // std::map<Level, std::string> u2str;
385  // u2str[Level::GEN] = "gen";
386  // u2str[Level::RECO] = "rec";
387 
388  // Extract the match structure containing the gen/reco candidates (electron,
389  // muons,...). This part is common to all the SubAnalyses
390  std::vector<reco::LeafCandidate> matchesGen;
391  matchesGen.clear();
392  std::vector<reco::LeafCandidate> matchesReco;
393  matchesReco.clear();
394  std::map<int, double> theSumEt; // map< pdgId ; SumEt > in order to keep track of the MET type
395  std::map<int, std::vector<const reco::Track *>> trkObjs;
396 
397  // --- deal with GEN objects first.
398  // Make each good GEN object into the base cand for a MatchStruct
399  // Our definition of "good" is "passes the selector" defined in the config.py
400  // Save all the MatchStructs in the "matchesGen" vector.
401 
402  for (std::map<unsigned int, edm::InputTag>::iterator it = _recLabels.begin(); it != _recLabels.end(); ++it) {
403  // Here we are filling the vector of
404  // StringCutObjectSelector<reco::GenParticle> with objects constructed from
405  // the strings saved in _genCut. Initialize selectors when first event
406 
407  // std::cout << "Loop over the kinds of objects: objects of kind " <<
408  // it->first << std::endl;
409 
410  if (!_genSelectorMap[it->first]) {
412  }
413 
414  const std::string objTypeStr = EVTColContainer::getTypeString(it->first);
415  // genAnyMET doesn't make sense. No need their matchesGens
416  if (TString(objTypeStr).Contains("MET") || TString(objTypeStr).Contains("MHT") ||
417  TString(objTypeStr).Contains("Jet"))
418  continue;
419 
420  // Now loop over the genParticles, and apply the operator() over each of
421  // them. Fancy syntax: for objects X and Y, X.operator()(Y) is the same as
422  // X(Y).
423  for (size_t i = 0; i < cols->genParticles->size(); ++i) {
424  // std::cout << "Now matchesGen.size() is " << matchesGen.size() <<
425  // std::endl;
426  if (_genSelectorMap[it->first]->operator()(cols->genParticles->at(i))) {
427  const reco::Candidate *cand = &(cols->genParticles->at(i));
428  // std::cout << "Found good cand: cand->pt() = " << cand->pt() <<
429  // std::endl; matchesGen.push_back(MatchStruct(cand, it->first));
433  reco::LeafCandidate v(0, cand->p4(), cand->vertex(), it->first, 0, true);
434 
435  matchesGen.push_back(v);
436  }
437  }
438  }
439 
440  // Sort the matches by pT for later filling of turn-on curve
441  // std::cout << "Before sorting: matchesGen.size() = " << matchesGen.size() <<
442  // std::endl;
443 
444  // GreaterByPt<reco::LeafCandidate> comparator;
445  // std::sort(matchesGen.begin(),
446  // matchesGen.end(),
447  // comparator);
448 
449  // --- same for RECO objects
450  // Extraction of the objects candidates
451  if (verbose > 0)
452  LogDebug("ExoticaValidation") << "-- enter loop over recLabels";
453  for (std::map<unsigned int, edm::InputTag>::iterator it = _recLabels.begin(); it != _recLabels.end(); ++it) {
454  // std::cout << "Filling RECO \"matchesReco\" vector for particle kind
455  // it->first = "
456  // << it->first << ", which means " << it->second.label() << std::endl;
457  // Reco selectors (the function takes into account if it was instantiated
458  // before or not) ### Thiago ---> Then why don't we put it in the
459  // beginRun???
460  this->initSelector(it->first);
461  // -- Storing the matchesReco
462  this->insertCandidates(it->first, cols, &matchesReco, theSumEt, trkObjs);
463  if (verbose > 0)
464  LogDebug("ExoticaValidation") << "--- " << EVTColContainer::getTypeString(it->first)
465  << " sumEt=" << theSumEt[it->first];
466  }
467 
468  // std::sort(matchesReco.begin(),
469  // matchesReco.end(),
470  // comparator);
471 
472  // -- Trigger Results
473  const edm::TriggerNames &trigNames = iEvent.triggerNames(*(cols->triggerResults));
474 
475  // counting HLT passed events for debugging
476  for (std::vector<HLTExoticaPlotter>::iterator an = _plotters.begin(); an != _plotters.end(); ++an) {
477  const std::string hltPath = _shortpath2long[an->gethltpath()];
478  const bool ispassTrigger = cols->triggerResults->accept(trigNames.triggerIndex(hltPath));
479  if (ispassTrigger)
480  _triggerCounter.find(an->gethltpath())->second++;
481  }
482 
485 
486  // for (std::map<unsigned int, std::vector<MatchStruct> >::iterator it =
487  // sourceMatchMap.begin(); it != sourceMatchMap.end(); ++it) {
488  // it->first: gen/reco it->second: HLT matches (std::vector<MatchStruct>)
489 
490  // if (it->second.size() < _minCandidates) { // FIXME: A bug is potentially
491  // here: what about the mixed channels? continue;
492  //}
493 
497  if (matchesGen.size() >= _minCandidates) { // FIXME: A bug is potentially here: what about the
498  // mixed channels?
499  // Okay, there are enough candidates. Move on!
500 
501  // Filling the gen/reco objects (eff-denominators):
502  // Just the first two different ones, if there are more
503  // The countobjects maps uints (object types, really) --> integers.
504  // Example:
505  // | uint | int |
506  // | 0 | 1 | --> 1 muon used
507  // | 1 | 2 | --> 2 electrons used
508 
509  // Initializing the count of the used objects.
510  std::map<unsigned int, int> countobjects;
511  for (std::map<unsigned int, edm::InputTag>::iterator co = _recLabels.begin(); co != _recLabels.end(); ++co) {
512  // countobjects->insert(std::pair<unsigned int, int>(co->first, 0));
513  countobjects.insert(std::pair<unsigned int, int>(co->first, 0));
514  }
515 
516  int counttotal = 0;
517 
518  // 3 : pt1, pt2, pt3
519  int totalobjectssize = 1;
520  if (!_drop_pt2)
521  totalobjectssize++;
522  if (!_drop_pt3)
523  totalobjectssize++;
524  totalobjectssize *= countobjects.size();
525 
526  bool isPassedLeadingCut = true;
527  // We will proceed only when cuts for the pt-leading are satisified.
528  for (size_t j = 0; j != matchesGen.size(); ++j) {
529  const unsigned int objType = matchesGen[j].pdgId();
530  // Cut for the pt-leading object
532  if (!select(matchesGen[j])) { // No interest case
533  isPassedLeadingCut = false; // Will skip the following matchesGen loop
534  matchesGen.clear();
535  break;
536  }
537  }
538 
539  std::vector<float> dxys;
540  dxys.clear();
541 
542  for (size_t j = 0; (j != matchesGen.size()) && isPassedLeadingCut; ++j) {
543  const unsigned int objType = matchesGen[j].pdgId();
544  // std::cout << "(4) Gonna call with " << objType << std::endl;
546 
547  float pt = matchesGen[j].pt();
548 
549  if (countobjects[objType] == 0) {
550  this->fillHist("gen", objTypeStr, "MaxPt1", pt);
551  ++(countobjects[objType]);
552  ++counttotal;
553  } else if (countobjects[objType] == 1 && !_drop_pt2) {
554  this->fillHist("gen", objTypeStr, "MaxPt2", pt);
555  ++(countobjects[objType]);
556  ++counttotal;
557  } else if (countobjects[objType] == 2 && !_drop_pt3) {
558  this->fillHist("gen", objTypeStr, "MaxPt3", pt);
559  ++(countobjects[objType]);
560  ++counttotal;
561  } else {
562  // Already the minimum three objects has been filled, get out...
563  if (counttotal == totalobjectssize) {
564  size_t max_size = matchesGen.size();
565  for (size_t jj = j; jj < max_size; jj++) {
566  matchesGen.erase(matchesGen.end());
567  }
568  break;
569  }
570  }
571 
572  float eta = matchesGen[j].eta();
573  float phi = matchesGen[j].phi();
574 
575  this->fillHist("gen", objTypeStr, "Eta", eta);
576  this->fillHist("gen", objTypeStr, "Phi", phi);
577 
578  // If the target is electron or muon,
579 
581  const math::XYZPoint &vtx = matchesGen[j].vertex();
582  float momphi = matchesGen[j].momentum().phi();
583  float dxyGen = (-(vtx.x() - cols->bs->x0()) * sin(momphi) + (vtx.y() - cols->bs->y0()) * cos(momphi));
584  dxys.push_back(dxyGen);
585  this->fillHist("gen", objTypeStr, "Dxy", dxyGen);
586  }
587 
588  } // Closes loop in gen
589 
590  // Calling to the plotters analysis (where the evaluation of the different
591  // trigger paths are done)
592  // const std::string source = "gen";
593  for (std::vector<HLTExoticaPlotter>::iterator an = _plotters.begin(); an != _plotters.end(); ++an) {
594  const std::string hltPath = _shortpath2long[an->gethltpath()];
595  const bool ispassTrigger = cols->triggerResults->accept(trigNames.triggerIndex(hltPath));
596  LogDebug("ExoticaValidation") << " preparing to call the plotters analysis";
597  an->analyze(ispassTrigger, "gen", matchesGen, theSumEt, dxys);
598  LogDebug("ExoticaValidation") << " called the plotter";
599  }
600  }
601 
605 
606  {
607  if (matchesReco.size() < _minCandidates)
608  return; // FIXME: A bug is potentially here: what about the mixed
609  // channels?
610 
611  // Okay, there are enough candidates. Move on!
612 
613  // Filling the gen/reco objects (eff-denominators):
614  // Just the first two different ones, if there are more
615  // The countobjects maps uints (object types, really) --> integers.
616  // Example:
617  // | uint | int |
618  // | 0 | 1 | --> 1 muon used
619  // | 1 | 2 | --> 2 electrons used
620  // Initializing the count of the used objects.
621  // std::map<unsigned int, int> * countobjects = new std::map<unsigned int,
622  // int>;
623  std::map<unsigned int, int> countobjects;
624  for (std::map<unsigned int, edm::InputTag>::iterator co = _recLabels.begin(); co != _recLabels.end(); ++co) {
625  countobjects.insert(std::pair<unsigned int, int>(co->first, 0));
626  }
627 
628  int counttotal = 0;
629 
630  // 3 : pt1, pt2, pt3
631  int totalobjectssize = 1;
632  if (!_drop_pt2)
633  totalobjectssize++;
634  if (!_drop_pt3)
635  totalobjectssize++;
636  totalobjectssize *= countobjects.size();
637 
639  // std::cout << "Our RECO vector has matchesReco.size() = " <<
640  // matchesReco.size() << std::endl;
641 
642  std::vector<float> dxys;
643  dxys.clear();
644 
645  bool isPassedLeadingCut = true;
646  // We will proceed only when cuts for the pt-leading are satisified.
647  for (size_t j = 0; j != matchesReco.size(); ++j) {
648  const unsigned int objType = matchesReco[j].pdgId();
649  // Cut for the pt-leading object
651  if (!select(matchesReco[j])) { // No interest case
652  isPassedLeadingCut = false; // Will skip the following matchesReco loop
653  matchesReco.clear();
654  break;
655  }
656  }
657 
658  int jel = 0;
659  int jmu = 0;
660  int jmutrk = 0;
661 
662  // jel, jmu and jmutrk are being used as a dedicated counters to avoid getting
663  // non-existent elements inside trkObjs[11], trkObjs[13] and trkObjs[130], respectively
664  // more information in the issue https://github.com/cms-sw/cmssw/issues/32550
665 
666  for (size_t j = 0; (j != matchesReco.size()) && isPassedLeadingCut; ++j) {
667  const unsigned int objType = matchesReco[j].pdgId();
668  //std::cout << "(4) Gonna call with " << objType << std::endl;
669 
671 
672  float pt = matchesReco[j].pt();
673 
674  if (countobjects[objType] == 0) {
675  this->fillHist("rec", objTypeStr, "MaxPt1", pt);
676  ++(countobjects[objType]);
677  ++counttotal;
678  } else if (countobjects[objType] == 1 && !_drop_pt2) {
679  if (!(TString(objTypeStr).Contains("MET") || TString(objTypeStr).Contains("MHT"))) {
680  this->fillHist("rec", objTypeStr, "MaxPt2", pt);
681  }
682  ++(countobjects[objType]);
683  ++counttotal;
684  } else if (countobjects[objType] == 2 && !_drop_pt3) {
685  if (!(TString(objTypeStr).Contains("MET") || TString(objTypeStr).Contains("MHT"))) {
686  this->fillHist("rec", objTypeStr, "MaxPt3", pt);
687  }
688  ++(countobjects[objType]);
689  ++counttotal;
690  } else {
691  // Already the minimum three objects has been filled, get out...
692  if (counttotal == totalobjectssize) {
693  size_t max_size = matchesReco.size();
694  for (size_t jj = j; jj < max_size; jj++) {
695  matchesReco.erase(matchesReco.end());
696  }
697  break;
698  }
699  }
700 
701  float eta = matchesReco[j].eta();
702  float phi = matchesReco[j].phi();
703 
704  if (!(TString(objTypeStr).Contains("MET") || TString(objTypeStr).Contains("MHT"))) {
705  this->fillHist("rec", objTypeStr, "Eta", eta);
706  this->fillHist("rec", objTypeStr, "Phi", phi);
707  } else {
708  this->fillHist("rec", objTypeStr, "SumEt", theSumEt[objType]);
709  }
710 
711  if (objType == 11) {
712  float dxyRec = trkObjs[objType].at(jel)->dxy(cols->bs->position());
713  this->fillHist("rec", objTypeStr, "Dxy", dxyRec);
714  dxys.push_back(dxyRec);
715  ++jel;
716  }
717 
718  if (objType == 13) {
719  float dxyRec = trkObjs[objType].at(jmu)->dxy(cols->bs->position());
720  this->fillHist("rec", objTypeStr, "Dxy", dxyRec);
721  dxys.push_back(dxyRec);
722  ++jmu;
723  }
724 
725  if (objType == 130) {
726  float dxyRec = trkObjs[objType].at(jmutrk)->dxy(cols->bs->position());
727  this->fillHist("rec", objTypeStr, "Dxy", dxyRec);
728  dxys.push_back(dxyRec);
729  ++jmutrk;
730  }
731 
732  } // Closes loop in reco
733 
734  // LogDebug("ExoticaValidation") << " deleting
735  // countobjects"; delete countobjects;
736 
737  // Calling to the plotters analysis (where the evaluation of the different
738  // trigger paths are done)
739  // const std::string source = "reco";
740  for (std::vector<HLTExoticaPlotter>::iterator an = _plotters.begin(); an != _plotters.end(); ++an) {
741  const std::string hltPath = _shortpath2long[an->gethltpath()];
742  const bool ispassTrigger = cols->triggerResults->accept(trigNames.triggerIndex(hltPath));
743  LogDebug("ExoticaValidation") << " preparing to call the plotters analysis";
744  an->analyze(ispassTrigger, "rec", matchesReco, theSumEt, dxys);
745  LogDebug("ExoticaValidation") << " called the plotter";
746  }
747  }
748 
749 }
bool accept() const
Has at least one path accepted the event?
unsigned int _minCandidates
The minimum number of reco/gen candidates needed by the analysis.
const Point & position() const
position
Definition: BeamSpot.h:59
std::map< unsigned int, std::string > _genCut
gen/rec objects cuts
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
std::vector< HLTExoticaPlotter > _plotters
The plotters: managers of each hlt path where the plots are done.
void fillHist(const std::string &source, const std::string &objType, const std::string &variable, const float &value)
const reco::GenParticleCollection * genParticles
__host__ __device__ VT * co
Definition: prefixScan.h:47
std::map< unsigned int, std::string > _genCut_leading
gen/rec pt-leading objects cuts
U second(std::pair< T, U > const &p)
double x0() const
x coordinate
Definition: BeamSpot.h:61
std::map< std::string, int > _triggerCounter
counting HLT passed events
std::map< unsigned int, edm::InputTag > _recLabels
std::map< unsigned int, std::string > _recCut_leading
int iEvent
Definition: GenABIO.cc:224
void insertCandidates(const unsigned int &objtype, const EVTColContainer *col, std::vector< reco::LeafCandidate > *matches, std::map< int, double > &theSumEt, std::map< int, std::vector< const reco::Track *>> &trkObjs)
static constexpr int verbose
const reco::BeamSpot * bs
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
double y0() const
y coordinate
Definition: BeamSpot.h:63
static const char *const trigNames[]
Definition: EcalDumpRaw.cc:57
void getHandlesToObjects(const edm::Event &iEvent, EVTColContainer *col)
Gets the collections themselves.
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
std::map< unsigned int, StringCutObjectSelector< reco::GenParticle > * > _genSelectorMap
void initSelector(const unsigned int &objtype)
Initializes the selectors of the objects based on which object it is.
static const std::string getTypeString(const unsigned int &objtype)
Tranform types into strings.
const edm::TriggerResults * triggerResults
std::map< std::string, std::string > _shortpath2long
Relation between the short and long versions of the path.
#define LogDebug(id)

◆ beginJob()

void HLTExoticaSubAnalysis::beginJob ( void  )

Definition at line 183 of file HLTExoticaSubAnalysis.cc.

183 {}

◆ beginRun()

void HLTExoticaSubAnalysis::beginRun ( const edm::Run iRun,
const edm::EventSetup iEventSetup 
)

Construct the plotters right here. For that we need to create the _hltPaths vector.

Definition at line 261 of file HLTExoticaSubAnalysis.cc.

References _analysisname, _hltConfig, _hltPaths, _hltPathsToCheck, _hltProcessName, _plotters, _pset, _recLabels, _shortpath2long, _triggerCounter, ramdisk_dqm_sourceclient-live_cfg::analyzer, newFWLiteAna::found, mps_fire::i, HLTConfigProvider::init(), dqmiolumiharvest::j, LogDebug, LogTrace, castor_dqm_sourceclient_file_cfg::path, topSingleLeptonDQM_PU_cfi::pattern, AlCaHLTBitMon_QueryRunRegistry::string, HLTConfigProvider::triggerNames(), and verbose.

261  {
262  LogDebug("ExoticaValidation") << "In HLTExoticaSubAnalysis::beginRun()";
263 
266 
267  // Initialize the HLT config.
268  bool changedConfig(true);
269  if (!_hltConfig.init(iRun, iSetup, _hltProcessName, changedConfig)) {
270  edm::LogError("ExoticaValidation") << "HLTExoticaSubAnalysis::constructor(): "
271  << "Initialization of HLTConfigProvider failed!";
272  }
273 
274  // Parse the input paths to get them if they are in the table and associate
275  // them to the last filter of the path (in order to extract the objects).
276  _hltPaths.clear();
277  for (size_t i = 0; i < _hltPathsToCheck.size(); ++i) {
278  bool found = false;
279  TPRegexp pattern(_hltPathsToCheck[i]);
280 
281  // Loop over triggerNames from _hltConfig
282  for (size_t j = 0; j < _hltConfig.triggerNames().size(); ++j) {
283  std::string thetriggername = _hltConfig.triggerNames()[j];
284  if (TString(thetriggername).Contains(pattern)) {
285  _hltPaths.insert(thetriggername);
286  found = true;
287  }
288  if (verbose > 2 && i == 0)
289  LogDebug("ExoticaValidation") << "--- TRIGGER PATH : " << thetriggername;
290  }
291 
292  // Oh dear, the path we wanted seems to not be available
293  if (!found && verbose > 2) {
294  edm::LogWarning("ExoticaValidation") << "HLTExoticaSubAnalysis::constructor(): In " << _analysisname
295  << " subfolder NOT found the path: '" << _hltPathsToCheck[i] << "*'";
296  }
297  } // Close loop over paths to check.
298 
299  // At this point, _hltpaths contains the names of the paths to check
300  // that were found. Let's log it at trace level.
301  LogTrace("ExoticaValidation") << "SubAnalysis: " << _analysisname << "\nHLT Trigger Paths found >>>";
302  for (std::set<std::string>::const_iterator iter = _hltPaths.begin(); iter != _hltPaths.end(); ++iter) {
303  LogTrace("ExoticaValidation") << (*iter) << "\n";
304  }
305 
306  // Initialize the plotters (analysers for each trigger path)
307  _plotters.clear();
308  for (std::set<std::string>::iterator iPath = _hltPaths.begin(); iPath != _hltPaths.end(); ++iPath) {
309  // Avoiding the dependence of the version number for the trigger paths
310  std::string path = *iPath;
311  std::string shortpath = path;
312  if (path.rfind("_v") < path.length()) {
313  shortpath = path.substr(0, path.rfind("_v"));
314  }
315  _shortpath2long[shortpath] = path;
316 
317  // Objects needed by the HLT path
318  // Thiago: instead of trying to decode the objects from the path,
319  // put the burden on the user to tell us which objects are needed.
320  // const std::vector<unsigned int> objsNeedHLT =
321  // this->getObjectsType(shortpath);
322  std::vector<unsigned int> objsNeedHLT;
323  for (std::map<unsigned int, edm::InputTag>::iterator it = _recLabels.begin(); it != _recLabels.end(); ++it) {
324  objsNeedHLT.push_back(it->first);
325  }
326 
327  /*std::vector<unsigned int> userInstantiate;
328  // Sanity check: the object needed by a trigger path should be
329  // introduced by the user via config python (_recLabels datamember)
330  for (std::map<unsigned int, edm::InputTag>::iterator it = _recLabels.begin()
331  ; it != _recLabels.end(); ++it) { userInstantiate.push_back(it->first);
332  }
333  for (std::vector<unsigned int>::const_iterator it = objsNeedHLT.begin(); it
334  != objsNeedHLT.end();
335  ++it) {
336  if (std::find(userInstantiate.begin(), userInstantiate.end(), *it) ==
337  userInstantiate.end()) {
338  edm::LogError("ExoticaValidation") << "In
339  HLTExoticaSubAnalysis::beginRun, "
340  << "Incoherence found in the
341  python configuration file!!\nThe SubAnalysis '"
342  << _analysisname << "' has been
343  asked to evaluate the trigger path '"
344  << shortpath << "' (found it in
345  'hltPathsToCheck') BUT this path"
346  << " needs a '" <<
347  EVTColContainer::getTypeString(*it)
348  << "' which has not been
349  instantiated ('recVariableLabels'"
350  << ")" ;
351  exit(-1); // This should probably throw an exception...
352  }
353  }
354  */
355  LogTrace("ExoticaValidation") << " --- " << shortpath;
356 
357  // The hlt path, the objects (electrons, muons, photons, ...)
358  // needed to evaluate the path are the argumens of the plotter
359  HLTExoticaPlotter analyzer(_pset, shortpath, objsNeedHLT);
360  _plotters.push_back(analyzer);
361  // counting HLT passed events for debug
363  } // Okay, at this point we have prepared all the plotters.
364 }
std::vector< HLTExoticaPlotter > _plotters
The plotters: managers of each hlt path where the plots are done.
Log< level::Error, false > LogError
#define LogTrace(id)
std::map< std::string, int > _triggerCounter
counting HLT passed events
std::map< unsigned int, edm::InputTag > _recLabels
static constexpr int verbose
edm::ParameterSet _pset
Internal, working copy of the PSet passed from above.
HLTConfigProvider _hltConfig
Interface to the HLT information.
std::vector< std::string > _hltPathsToCheck
The hlt paths to check for.
std::string _hltProcessName
The labels of the object collections to be used in this analysis.
std::string _analysisname
The name of this sub-analysis.
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d&#39;tor
const std::vector< std::string > & triggerNames() const
names of trigger paths
Log< level::Warning, false > LogWarning
std::set< std::string > _hltPaths
The hlt paths found in the hltConfig.
std::map< std::string, std::string > _shortpath2long
Relation between the short and long versions of the path.
#define LogDebug(id)

◆ bookHist()

void HLTExoticaSubAnalysis::bookHist ( DQMStore::IBooker iBooker,
const std::string &  source,
const std::string &  objType,
const std::string &  variable 
)
private

The internal functions to book and fill histograms.

Definition at line 1052 of file HLTExoticaSubAnalysis.cc.

References _elements, _parametersDxy, _parametersEta, _parametersPhi, _parametersTurnOn, _parametersTurnOnSumEt, dqm::implementation::IBooker::book1D(), submitPVResolutionJobs::desc, SelectiveReadoutTask_cfi::edges, h, mps_fire::i, createfilelist::int, LogDebug, SiStripPI::max, SiStripPI::min, Skims_PA_cff::name, seedmultiplicitymonitor_newtracking_cfi::nBins, electrons_cff::objType, submitPVValidationJobs::params, source, AlCaHLTBitMon_QueryRunRegistry::string, runGCPTkAlMap::title, and taus_updatedMVAIds_cff::variable.

Referenced by subAnalysisBookHistos().

1055  {
1056  LogDebug("ExoticaValidation") << "In HLTExoticaSubAnalysis::bookHist()";
1057  std::string sourceUpper = source;
1058  sourceUpper[0] = std::toupper(sourceUpper[0]);
1060  TH1F *h = nullptr;
1061 
1062  if (variable.find("SumEt") != std::string::npos) {
1063  std::string title = "Sum ET of " + sourceUpper + " " + objType;
1064  const size_t nBins = _parametersTurnOnSumEt.size() - 1;
1065  float *edges = new float[nBins + 1];
1066  for (size_t i = 0; i < nBins + 1; i++) {
1068  }
1069  h = new TH1F(name.c_str(), title.c_str(), nBins, edges);
1070  delete[] edges;
1071  }
1072 
1073  else if (variable.find("Dxy") != std::string::npos) {
1074  std::string title = "Dxy " + sourceUpper + " " + objType;
1075  int nBins = _parametersDxy[0];
1076  double min = _parametersDxy[1];
1077  double max = _parametersDxy[2];
1078  h = new TH1F(name.c_str(), title.c_str(), nBins, min, max);
1079  }
1080 
1081  else if (variable.find("MaxPt") != std::string::npos) {
1082  std::string desc = (variable == "MaxPt1") ? "Leading" : "Next-to-Leading";
1083  std::string title = "pT of " + desc + " " + sourceUpper + " " + objType;
1084  const size_t nBins = _parametersTurnOn.size() - 1;
1085  float *edges = new float[nBins + 1];
1086  for (size_t i = 0; i < nBins + 1; i++) {
1087  edges[i] = _parametersTurnOn[i];
1088  }
1089  h = new TH1F(name.c_str(), title.c_str(), nBins, edges);
1090  delete[] edges;
1091  }
1092 
1093  else {
1094  std::string symbol = (variable == "Eta") ? "#eta" : "#phi";
1095  std::string title = symbol + " of " + sourceUpper + " " + objType;
1096  std::vector<double> params = (variable == "Eta") ? _parametersEta : _parametersPhi;
1097  int nBins = (int)params[0];
1098  double min = params[1];
1099  double max = params[2];
1100  h = new TH1F(name.c_str(), title.c_str(), nBins, min, max);
1101  }
1102 
1103  h->Sumw2();
1104  // This is the trick, that takes a normal TH1F and puts it in in the DQM
1105  // machinery. Seems to be easy!
1106  // Updated to use the new iBooker machinery.
1107  _elements[name] = iBooker.book1D(name, h);
1108  delete h;
1109 }
std::vector< double > _parametersPhi
std::vector< double > _parametersEta
Some kinematical parameters.
std::vector< double > _parametersDxy
std::vector< double > _parametersTurnOn
std::map< std::string, MonitorElement * > _elements
Structure of the MonitorElements.
std::vector< double > _parametersTurnOnSumEt
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
static std::string const source
Definition: EdmProvDump.cc:46
#define LogDebug(id)

◆ endRun()

void HLTExoticaSubAnalysis::endRun ( )

Definition at line 1314 of file HLTExoticaSubAnalysis.cc.

References _analysisname, _triggerCounter, dqm-mbProfile::log, and LogDebug.

1314  {
1315  // Dump trigger results
1316  std::stringstream log;
1317  log << std::endl;
1318  log << "====================================================================="
1319  "======"
1320  << std::endl;
1321  log << " Trigger Results ( " << _analysisname << " ) " << std::endl;
1322  log << "====================================================================="
1323  "======"
1324  << std::endl;
1325  log << std::setw(18) << "# of passed events : HLT path names" << std::endl;
1326  log << "-------------------:-------------------------------------------------"
1327  "------"
1328  << std::endl;
1329  for (std::map<std::string, int>::iterator it = _triggerCounter.begin(); it != _triggerCounter.end(); ++it) {
1330  log << std::setw(18) << it->second << " : " << it->first << std::endl;
1331  }
1332  log << "====================================================================="
1333  "======"
1334  << std::endl;
1335  LogDebug("ExoticaValidation") << log.str().data();
1336 }
std::map< std::string, int > _triggerCounter
counting HLT passed events
std::string _analysisname
The name of this sub-analysis.
#define LogDebug(id)

◆ fillHist()

void HLTExoticaSubAnalysis::fillHist ( const std::string &  source,
const std::string &  objType,
const std::string &  variable,
const float &  value 
)
private

Definition at line 1112 of file HLTExoticaSubAnalysis.cc.

References _elements, LogDebug, Skims_PA_cff::name, electrons_cff::objType, source, AlCaHLTBitMon_QueryRunRegistry::string, relativeConstraints::value, and taus_updatedMVAIds_cff::variable.

Referenced by analyze().

1115  {
1116  std::string sourceUpper = source;
1117  sourceUpper[0] = toupper(sourceUpper[0]);
1119 
1120  LogDebug("ExoticaValidation") << "In HLTExoticaSubAnalysis::fillHist() " << name << " " << value;
1121  _elements[name]->Fill(value);
1122  LogDebug("ExoticaValidation") << "In HLTExoticaSubAnalysis::fillHist() " << name << " worked";
1123 }
Definition: value.py:1
std::map< std::string, MonitorElement * > _elements
Structure of the MonitorElements.
static std::string const source
Definition: EdmProvDump.cc:46
#define LogDebug(id)

◆ getHandlesToObjects()

void HLTExoticaSubAnalysis::getHandlesToObjects ( const edm::Event iEvent,
EVTColContainer col 
)
private

Gets the collections themselves.

Definition at line 943 of file HLTExoticaSubAnalysis.cc.

References _bsToken, _genParticleToken, _tokens, _trigResultsToken, EVTColContainer::CALOJET, EVTColContainer::CALOMET, EVTColContainer::CALOMHT, cuy::col, EVTColContainer::ELEC, EVTColContainer::GENMET, iEvent, edm::HandleBase::isValid(), LogDebug, EVTColContainer::MET, EVTColContainer::MUON, EVTColContainer::MUTRK, EVTColContainer::PFJET, EVTColContainer::PFMET, EVTColContainer::PFMHT, EVTColContainer::PFTAU, EVTColContainer::PHOTON, edm::Handle< T >::product(), and EVTColContainer::TRACK.

Referenced by analyze().

943  {
944  LogDebug("ExoticaValidation") << "In HLTExoticaSubAnalysis::getHandlesToObjects()";
945 
946  if (!col->isCommonInit()) {
947  // Extract the trigger results (path info, pass,...)
949  iEvent.getByToken(_trigResultsToken, trigResults);
950  if (trigResults.isValid()) {
951  col->triggerResults = trigResults.product();
952  LogDebug("ExoticaValidation") << "Added handle to triggerResults";
953  }
954 
955  // Extract the genParticles
957  iEvent.getByToken(_genParticleToken, genPart);
958  if (genPart.isValid()) {
959  col->genParticles = genPart.product();
960  LogDebug("ExoticaValidation") << "Added handle to genParticles";
961  }
962 
963  // BeamSpot for dxy
965  iEvent.getByToken(_bsToken, bsHandle);
966  if (bsHandle.isValid()) {
967  col->bs = bsHandle.product();
968  }
969  }
970 
971  // Loop over the tokens and extract all other objects
972  LogDebug("ExoticaValidation") << "We have got " << _tokens.size() << "tokens";
973  for (std::map<unsigned int, edm::EDGetToken>::iterator it = _tokens.begin(); it != _tokens.end(); ++it) {
974  if (it->first == EVTColContainer::MUON) {
976  iEvent.getByToken(it->second, theHandle);
977  if (theHandle.isValid())
978  col->set(theHandle.product());
979  } else if (it->first == EVTColContainer::MUTRK) {
981  iEvent.getByToken(it->second, theHandle);
982  if (theHandle.isValid())
983  col->set(theHandle.product());
984  } else if (it->first == EVTColContainer::TRACK) {
986  iEvent.getByToken(it->second, theHandle);
987  if (theHandle.isValid())
988  col->set(theHandle.product());
989  } else if (it->first == EVTColContainer::ELEC) {
991  iEvent.getByToken(it->second, theHandle);
992  if (theHandle.isValid())
993  col->set(theHandle.product());
994  } else if (it->first == EVTColContainer::PHOTON) {
996  iEvent.getByToken(it->second, theHandle);
997  if (theHandle.isValid())
998  col->set(theHandle.product());
999  } else if (it->first == EVTColContainer::MET) {
1001  iEvent.getByToken(it->second, theHandle);
1002  if (theHandle.isValid())
1003  col->set(theHandle.product());
1004  } else if (it->first == EVTColContainer::PFMET) {
1006  iEvent.getByToken(it->second, theHandle);
1007  if (theHandle.isValid())
1008  col->set(theHandle.product());
1009  } else if (it->first == EVTColContainer::PFMHT) {
1011  iEvent.getByToken(it->second, theHandle);
1012  if (theHandle.isValid())
1013  col->setPFMHT(theHandle.product());
1014  } else if (it->first == EVTColContainer::GENMET) {
1016  iEvent.getByToken(it->second, theHandle);
1017  if (theHandle.isValid())
1018  col->set(theHandle.product());
1019  } else if (it->first == EVTColContainer::CALOMET) {
1021  iEvent.getByToken(it->second, theHandle);
1022  if (theHandle.isValid())
1023  col->set(theHandle.product());
1024  } else if (it->first == EVTColContainer::CALOMHT) {
1026  iEvent.getByToken(it->second, theHandle);
1027  if (theHandle.isValid())
1028  col->setCaloMHT(theHandle.product());
1029  } else if (it->first == EVTColContainer::PFTAU) {
1031  iEvent.getByToken(it->second, theHandle);
1032  if (theHandle.isValid())
1033  col->set(theHandle.product());
1034  } else if (it->first == EVTColContainer::PFJET) {
1036  iEvent.getByToken(it->second, theHandle);
1037  if (theHandle.isValid())
1038  col->set(theHandle.product());
1039  } else if (it->first == EVTColContainer::CALOJET) {
1041  iEvent.getByToken(it->second, theHandle);
1042  if (theHandle.isValid())
1043  col->set(theHandle.product());
1044  } else {
1045  edm::LogError("ExoticaValidation") << "HLTExoticaSubAnalysis::getHandlesToObjects "
1046  << " NOT IMPLEMENTED (yet) ERROR: '" << it->first << "'";
1047  }
1048  }
1049 }
T const * product() const
Definition: Handle.h:70
Log< level::Error, false > LogError
edm::EDGetTokenT< edm::TriggerResults > _trigResultsToken
int iEvent
Definition: GenABIO.cc:224
bool isValid() const
Definition: HandleBase.h:70
std::map< unsigned int, edm::EDGetToken > _tokens
col
Definition: cuy.py:1009
edm::EDGetTokenT< reco::GenParticleCollection > _genParticleToken
And also the tokens to get the object collections.
edm::EDGetTokenT< reco::BeamSpot > _bsToken
#define LogDebug(id)

◆ getNamesOfObjects()

void HLTExoticaSubAnalysis::getNamesOfObjects ( const edm::ParameterSet anpset)
private

Creates the maps that map which collection should come from which label.

Definition at line 788 of file HLTExoticaSubAnalysis.cc.

References _analysisname, _genSelectorMap, _recLabels, EVTColContainer::CALOJET, EVTColContainer::CALOMET, EVTColContainer::CALOMHT, EVTColContainer::ELEC, edm::ParameterSet::exists(), EVTColContainer::GENMET, edm::ParameterSet::getParameter(), LogDebug, EVTColContainer::MET, EVTColContainer::MUON, EVTColContainer::MUTRK, EVTColContainer::PFJET, EVTColContainer::PFMET, EVTColContainer::PFMHT, EVTColContainer::PFTAU, EVTColContainer::PHOTON, and EVTColContainer::TRACK.

Referenced by HLTExoticaSubAnalysis().

788  {
789  LogDebug("ExoticaValidation") << "In HLTExoticaSubAnalysis::getNamesOfObjects()";
790 
791  if (anpset.exists("recMuonLabel")) {
792  _recLabels[EVTColContainer::MUON] = anpset.getParameter<edm::InputTag>("recMuonLabel");
794  }
795  if (anpset.exists("recMuonTrkLabel")) {
796  _recLabels[EVTColContainer::MUTRK] = anpset.getParameter<edm::InputTag>("recMuonTrkLabel");
798  }
799  if (anpset.exists("recTrackLabel")) {
800  _recLabels[EVTColContainer::TRACK] = anpset.getParameter<edm::InputTag>("recTrackLabel");
802  }
803  if (anpset.exists("recElecLabel")) {
804  _recLabels[EVTColContainer::ELEC] = anpset.getParameter<edm::InputTag>("recElecLabel");
806  }
807  if (anpset.exists("recPhotonLabel")) {
808  _recLabels[EVTColContainer::PHOTON] = anpset.getParameter<edm::InputTag>("recPhotonLabel");
810  }
811  if (anpset.exists("recMETLabel")) {
812  _recLabels[EVTColContainer::MET] = anpset.getParameter<edm::InputTag>("recMETLabel");
814  }
815  if (anpset.exists("recPFMETLabel")) {
816  _recLabels[EVTColContainer::PFMET] = anpset.getParameter<edm::InputTag>("recPFMETLabel");
818  }
819  if (anpset.exists("recPFMHTLabel")) {
820  _recLabels[EVTColContainer::PFMHT] = anpset.getParameter<edm::InputTag>("recPFMHTLabel");
822  }
823  if (anpset.exists("genMETLabel")) {
826  }
827  if (anpset.exists("recCaloMETLabel")) {
828  _recLabels[EVTColContainer::CALOMET] = anpset.getParameter<edm::InputTag>("recCaloMETLabel");
830  }
831  if (anpset.exists("recCaloMHTLabel")) {
832  _recLabels[EVTColContainer::CALOMHT] = anpset.getParameter<edm::InputTag>("recCaloMHTLabel");
834  }
835  if (anpset.exists("hltMETLabel")) {
838  }
839  if (anpset.exists("recPFTauLabel")) {
840  _recLabels[EVTColContainer::PFTAU] = anpset.getParameter<edm::InputTag>("recPFTauLabel");
842  }
843  if (anpset.exists("recPFJetLabel")) {
844  _recLabels[EVTColContainer::PFJET] = anpset.getParameter<edm::InputTag>("recPFJetLabel");
846  }
847  if (anpset.exists("recCaloJetLabel")) {
848  _recLabels[EVTColContainer::CALOJET] = anpset.getParameter<edm::InputTag>("recCaloJetLabel");
850  }
851 
852  if (_recLabels.empty()) {
853  edm::LogError("ExoticaValidation") << "HLTExoticaSubAnalysis::getNamesOfObjects, "
854  << "Not included any object (recMuonLabel, recElecLabel, ...) "
855  << "in the analysis " << _analysisname;
856  return;
857  }
858 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
bool exists(std::string const &parameterName) const
checks if a parameter exists
Log< level::Error, false > LogError
std::map< unsigned int, edm::InputTag > _recLabels
std::string _analysisname
The name of this sub-analysis.
std::map< unsigned int, StringCutObjectSelector< reco::GenParticle > * > _genSelectorMap
#define LogDebug(id)

◆ getObjectsType()

const std::vector< unsigned int > HLTExoticaSubAnalysis::getObjectsType ( const std::string &  hltpath) const
private

closes analyze method

Return the objects (muons,electrons,photons,...) needed by a HLT path. Will in general return: 0 for muon, 1 for electron, 2 for photon, 3 for PFMET, 4 for PFTau, 5 for Jet. Notice that this function is really based on a parsing of the name of the path; any incongruences there may lead to problems.

Definition at line 752 of file HLTExoticaSubAnalysis.cc.

References EVTColContainer::CALOJET, EVTColContainer::CALOMET, EVTColContainer::CALOMHT, EVTColContainer::ELEC, EVTColContainer::GENMET, EVTColContainer::getTypeString(), TriggerAnalyzer::hltPath, mps_fire::i, LogDebug, EVTColContainer::MET, EVTColContainer::MUON, EVTColContainer::MUTRK, EVTColContainer::PFJET, EVTColContainer::PFMET, EVTColContainer::PFMHT, EVTColContainer::PFTAU, EVTColContainer::PHOTON, AlCaHLTBitMon_QueryRunRegistry::string, and EVTColContainer::TRACK.

752  {
753  LogDebug("ExoticaValidation") << "In HLTExoticaSubAnalysis::getObjectsType()";
754 
755  static const unsigned int objSize = 15;
756  static const unsigned int objtriggernames[] = {EVTColContainer::MUON,
770 
771  std::set<unsigned int> objsType;
772  // The object to deal has to be entered via the config .py
773  for (unsigned int i = 0; i < objSize; ++i) {
774  // std::cout << "(5) Gonna call with " << objtriggernames[i] << std::endl;
775  std::string objTypeStr = EVTColContainer::getTypeString(objtriggernames[i]);
776  // Check if it is needed this object for this trigger
777  if (!TString(hltPath).Contains(objTypeStr)) {
778  continue;
779  }
780 
781  objsType.insert(objtriggernames[i]);
782  }
783 
784  return std::vector<unsigned int>(objsType.begin(), objsType.end());
785 }
static const std::string getTypeString(const unsigned int &objtype)
Tranform types into strings.
#define LogDebug(id)

◆ initSelector()

void HLTExoticaSubAnalysis::initSelector ( const unsigned int &  objtype)
private

Initializes the selectors of the objects based on which object it is.

Definition at line 1126 of file HLTExoticaSubAnalysis.cc.

References _genMETSelector, _recCaloJetSelector, _recCaloMETSelector, _recCaloMHTSelector, _recCut, _recElecSelector, _recMETSelector, _recMuonSelector, _recMuonTrkSelector, _recPFJetSelector, _recPFMETSelector, _recPFMHTSelector, _recPFTauSelector, _recPhotonSelector, _recTrackSelector, EVTColContainer::CALOJET, EVTColContainer::CALOMET, EVTColContainer::CALOMHT, EVTColContainer::ELEC, EVTColContainer::GENMET, LogDebug, EVTColContainer::MET, EVTColContainer::MUON, EVTColContainer::MUTRK, EVTColContainer::PFJET, EVTColContainer::PFMET, EVTColContainer::PFMHT, EVTColContainer::PFTAU, EVTColContainer::PHOTON, and EVTColContainer::TRACK.

Referenced by analyze().

1126  {
1127  LogDebug("ExoticaValidation") << "In HLTExoticaSubAnalysis::initSelector()";
1128 
1129  if (objtype == EVTColContainer::MUON && _recMuonSelector == nullptr) {
1131  } else if (objtype == EVTColContainer::MUTRK && _recMuonTrkSelector == nullptr) {
1133  } else if (objtype == EVTColContainer::TRACK && _recTrackSelector == nullptr) {
1135  } else if (objtype == EVTColContainer::ELEC && _recElecSelector == nullptr) {
1137  } else if (objtype == EVTColContainer::PHOTON && _recPhotonSelector == nullptr) {
1139  } else if (objtype == EVTColContainer::MET && _recMETSelector == nullptr) {
1141  } else if (objtype == EVTColContainer::PFMET && _recPFMETSelector == nullptr) {
1143  } else if (objtype == EVTColContainer::PFMHT && _recPFMHTSelector == nullptr) {
1145  } else if (objtype == EVTColContainer::GENMET && _genMETSelector == nullptr) {
1147  } else if (objtype == EVTColContainer::CALOMET && _recCaloMETSelector == nullptr) {
1149  } else if (objtype == EVTColContainer::CALOMHT && _recCaloMHTSelector == nullptr) {
1151  } else if (objtype == EVTColContainer::PFTAU && _recPFTauSelector == nullptr) {
1153  } else if (objtype == EVTColContainer::PFJET && _recPFJetSelector == nullptr) {
1155  } else if (objtype == EVTColContainer::CALOJET && _recCaloJetSelector == nullptr) {
1157  }
1158  /* else
1159  {
1160  FIXME: ERROR NOT IMPLEMENTED
1161  }*/
1162 }
StringCutObjectSelector< reco::Track > * _recMuonTrkSelector
StringCutObjectSelector< reco::CaloJet > * _recCaloJetSelector
StringCutObjectSelector< reco::GenMET > * _genMETSelector
StringCutObjectSelector< reco::MET > * _recMETSelector
StringCutObjectSelector< reco::PFJet > * _recPFJetSelector
StringCutObjectSelector< reco::GsfElectron > * _recElecSelector
StringCutObjectSelector< reco::Muon > * _recMuonSelector
std::map< unsigned int, std::string > _recCut
StringCutObjectSelector< reco::Track > * _recTrackSelector
StringCutObjectSelector< reco::CaloMET > * _recCaloMHTSelector
StringCutObjectSelector< reco::PFMET > * _recPFMETSelector
StringCutObjectSelector< reco::Photon > * _recPhotonSelector
StringCutObjectSelector< reco::CaloMET > * _recCaloMETSelector
StringCutObjectSelector< reco::PFMET > * _recPFMHTSelector
StringCutObjectSelector< reco::PFTau > * _recPFTauSelector
#define LogDebug(id)

◆ insertCandidates()

void HLTExoticaSubAnalysis::insertCandidates ( const unsigned int &  objtype,
const EVTColContainer col,
std::vector< reco::LeafCandidate > *  matches,
std::map< int, double > &  theSumEt,
std::map< int, std::vector< const reco::Track *>> &  trkObjs 
)
private

This function applies the selectors initialized previously to the objects, and matches the passing objects to HLT objects.

This is a special case. Passing a PFMET* to the constructor of MatchStruct will trigger the usage of the special constructor which also sets the sumEt member.

Definition at line 1165 of file HLTExoticaSubAnalysis.cc.

References _genMETSelector, _recCaloJetSelector, _recCaloMETSelector, _recCaloMHTSelector, _recElecSelector, _recMuonSelector, _recMuonTrkSelector, _recPFJetSelector, _recPFMETSelector, _recPFMHTSelector, _recPFTauSelector, _recPhotonSelector, _recTrackSelector, EVTColContainer::CALOJET, EVTColContainer::caloJets, EVTColContainer::CALOMET, EVTColContainer::caloMETs, EVTColContainer::CALOMHT, EVTColContainer::caloMHTs, EVTColContainer::ELEC, EVTColContainer::electrons, EVTColContainer::GENMET, EVTColContainer::genMETs, mps_fire::i, LogDebug, visualization-live-secondInstance_cfg::m, oniaPATMuonsWithTrigger_cff::matches, EVTColContainer::MUON, EVTColContainer::muons, EVTColContainer::MUTRK, electrons_cff::objType, EVTColContainer::PFJET, EVTColContainer::pfJets, EVTColContainer::PFMET, EVTColContainer::pfMETs, EVTColContainer::PFMHT, EVTColContainer::pfMHTs, EVTColContainer::PFTAU, EVTColContainer::pfTaus, EVTColContainer::PHOTON, EVTColContainer::photons, EVTColContainer::TRACK, and EVTColContainer::tracks.

Referenced by analyze().

1169  {
1170  LogDebug("ExoticaValidation") << "In HLTExoticaSubAnalysis::insertCandidates()";
1171 
1172  theSumEt[objType] = -1;
1173 
1174  if (objType == EVTColContainer::MUON) {
1175  for (size_t i = 0; i < cols->muons->size(); i++) {
1176  LogDebug("ExoticaValidation") << "Inserting muon " << i;
1177  if (_recMuonSelector->operator()(cols->muons->at(i))) {
1178  reco::LeafCandidate m(0, cols->muons->at(i).p4(), cols->muons->at(i).vertex(), objType, 0, true);
1179  matches->push_back(m);
1180 
1181  // for making dxy plots
1182  trkObjs[objType].push_back(cols->muons->at(i).bestTrack());
1183  }
1184  }
1185  } else if (objType == EVTColContainer::MUTRK) {
1186  for (size_t i = 0; i < cols->tracks->size(); i++) {
1187  LogDebug("ExoticaValidation") << "Inserting muonTrack " << i;
1188  if (_recMuonTrkSelector->operator()(cols->tracks->at(i))) {
1189  ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>> mom4;
1190  ROOT::Math::XYZVector mom3 = cols->tracks->at(i).momentum();
1191  mom4.SetXYZT(mom3.x(), mom3.y(), mom3.z(), mom3.r());
1192  reco::LeafCandidate m(0, mom4, cols->tracks->at(i).vertex(), objType, 0, true);
1193  matches->push_back(m);
1194 
1195  // for making dxy plots
1196  trkObjs[objType].push_back(&cols->tracks->at(i));
1197  }
1198  }
1199  } else if (objType == EVTColContainer::TRACK) {
1200  for (size_t i = 0; i < cols->tracks->size(); i++) {
1201  LogDebug("ExoticaValidation") << "Inserting Track " << i;
1202  if (_recTrackSelector->operator()(cols->tracks->at(i))) {
1203  ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>> mom4;
1204  ROOT::Math::XYZVector mom3 = cols->tracks->at(i).momentum();
1205  mom4.SetXYZT(mom3.x(), mom3.y(), mom3.z(), mom3.r());
1206  reco::LeafCandidate m(0, mom4, cols->tracks->at(i).vertex(), objType, 0, true);
1207  matches->push_back(m);
1208  }
1209  }
1210  } else if (objType == EVTColContainer::ELEC) {
1211  for (size_t i = 0; i < cols->electrons->size(); i++) {
1212  LogDebug("ExoticaValidation") << "Inserting electron " << i;
1213  if (_recElecSelector->operator()(cols->electrons->at(i))) {
1214  reco::LeafCandidate m(0, cols->electrons->at(i).p4(), cols->electrons->at(i).vertex(), objType, 0, true);
1215  matches->push_back(m);
1216 
1217  // for making dxy plots
1218  trkObjs[objType].push_back(cols->electrons->at(i).bestTrack());
1219  }
1220  }
1221  } else if (objType == EVTColContainer::PHOTON) {
1222  for (size_t i = 0; i < cols->photons->size(); i++) {
1223  LogDebug("ExoticaValidation") << "Inserting photon " << i;
1224  if (_recPhotonSelector->operator()(cols->photons->at(i))) {
1225  reco::LeafCandidate m(0, cols->photons->at(i).p4(), cols->photons->at(i).vertex(), objType, 0, true);
1226  matches->push_back(m);
1227  }
1228  }
1229  } else if (objType == EVTColContainer::PFMET) {
1233  for (size_t i = 0; i < cols->pfMETs->size(); i++) {
1234  LogDebug("ExoticaValidation") << "Inserting PFMET " << i;
1235  if (_recPFMETSelector->operator()(cols->pfMETs->at(i))) {
1236  reco::LeafCandidate m(0, cols->pfMETs->at(i).p4(), cols->pfMETs->at(i).vertex(), objType, 0, true);
1237  matches->push_back(m);
1238  if (i == 0)
1239  theSumEt[objType] = cols->pfMETs->at(i).sumEt();
1240  }
1241  }
1242  } else if (objType == EVTColContainer::PFMHT) {
1243  for (size_t i = 0; i < cols->pfMHTs->size(); i++) {
1244  LogDebug("ExoticaValidation") << "Inserting PFMHT " << i;
1245  if (_recPFMHTSelector->operator()(cols->pfMHTs->at(i))) {
1246  reco::LeafCandidate m(0, cols->pfMHTs->at(i).p4(), cols->pfMHTs->at(i).vertex(), objType, 0, true);
1247  matches->push_back(m);
1248  if (i == 0)
1249  theSumEt[objType] = cols->pfMHTs->at(i).sumEt();
1250  }
1251  }
1252  } else if (objType == EVTColContainer::GENMET) {
1253  for (size_t i = 0; i < cols->genMETs->size(); i++) {
1254  LogDebug("ExoticaValidation") << "Inserting GENMET " << i;
1255  if (_genMETSelector->operator()(cols->genMETs->at(i))) {
1256  reco::LeafCandidate m(0, cols->genMETs->at(i).p4(), cols->genMETs->at(i).vertex(), objType, 0, true);
1257  matches->push_back(m);
1258  if (i == 0)
1259  theSumEt[objType] = cols->genMETs->at(i).sumEt();
1260  }
1261  }
1262  } else if (objType == EVTColContainer::CALOMET) {
1263  for (size_t i = 0; i < cols->caloMETs->size(); i++) {
1264  LogDebug("ExoticaValidation") << "Inserting CALOMET " << i;
1265  if (_recCaloMETSelector->operator()(cols->caloMETs->at(i))) {
1266  reco::LeafCandidate m(0, cols->caloMETs->at(i).p4(), cols->caloMETs->at(i).vertex(), objType, 0, true);
1267  matches->push_back(m);
1268  if (i == 0)
1269  theSumEt[objType] = cols->caloMETs->at(i).sumEt();
1270  }
1271  }
1272  } else if (objType == EVTColContainer::CALOMHT) {
1273  for (size_t i = 0; i < cols->caloMHTs->size(); i++) {
1274  LogDebug("ExoticaValidation") << "Inserting CaloMHT " << i;
1275  if (_recCaloMHTSelector->operator()(cols->caloMHTs->at(i))) {
1276  reco::LeafCandidate m(0, cols->caloMHTs->at(i).p4(), cols->caloMHTs->at(i).vertex(), objType, 0, true);
1277  matches->push_back(m);
1278  if (i == 0)
1279  theSumEt[objType] = cols->caloMHTs->at(i).sumEt();
1280  }
1281  }
1282  } else if (objType == EVTColContainer::PFTAU) {
1283  for (size_t i = 0; i < cols->pfTaus->size(); i++) {
1284  LogDebug("ExoticaValidation") << "Inserting PFtau " << i;
1285  if (_recPFTauSelector->operator()(cols->pfTaus->at(i))) {
1286  reco::LeafCandidate m(0, cols->pfTaus->at(i).p4(), cols->pfTaus->at(i).vertex(), objType, 0, true);
1287  matches->push_back(m);
1288  }
1289  }
1290  } else if (objType == EVTColContainer::PFJET) {
1291  for (size_t i = 0; i < cols->pfJets->size(); i++) {
1292  LogDebug("ExoticaValidation") << "Inserting jet " << i;
1293  if (_recPFJetSelector->operator()(cols->pfJets->at(i))) {
1294  reco::LeafCandidate m(0, cols->pfJets->at(i).p4(), cols->pfJets->at(i).vertex(), objType, 0, true);
1295  matches->push_back(m);
1296  }
1297  }
1298  } else if (objType == EVTColContainer::CALOJET) {
1299  for (size_t i = 0; i < cols->caloJets->size(); i++) {
1300  LogDebug("ExoticaValidation") << "Inserting jet " << i;
1301  if (_recCaloJetSelector->operator()(cols->caloJets->at(i))) {
1302  reco::LeafCandidate m(0, cols->caloJets->at(i).p4(), cols->caloJets->at(i).vertex(), objType, 0, true);
1303  matches->push_back(m);
1304  }
1305  }
1306  }
1307 
1308  /* else
1309  {
1310  FIXME: ERROR NOT IMPLEMENTED
1311  }*/
1312 }
StringCutObjectSelector< reco::Track > * _recMuonTrkSelector
StringCutObjectSelector< reco::CaloJet > * _recCaloJetSelector
StringCutObjectSelector< reco::GenMET > * _genMETSelector
StringCutObjectSelector< reco::PFJet > * _recPFJetSelector
StringCutObjectSelector< reco::GsfElectron > * _recElecSelector
StringCutObjectSelector< reco::Muon > * _recMuonSelector
StringCutObjectSelector< reco::Track > * _recTrackSelector
StringCutObjectSelector< reco::CaloMET > * _recCaloMHTSelector
Transform3DPJ::Vector XYZVector
StringCutObjectSelector< reco::PFMET > * _recPFMETSelector
StringCutObjectSelector< reco::Photon > * _recPhotonSelector
StringCutObjectSelector< reco::CaloMET > * _recCaloMETSelector
StringCutObjectSelector< reco::PFMET > * _recPFMHTSelector
StringCutObjectSelector< reco::PFTau > * _recPFTauSelector
#define LogDebug(id)

◆ registerConsumes()

void HLTExoticaSubAnalysis::registerConsumes ( edm::ConsumesCollector consCollector)
private

Registers consumption of objects.

Definition at line 862 of file HLTExoticaSubAnalysis.cc.

References _beamSpotLabel, _bsToken, _genParticleLabel, _genParticleToken, _recLabels, _tokens, _trigResultsLabel, _trigResultsToken, EVTColContainer::CALOJET, EVTColContainer::CALOMET, EVTColContainer::CALOMHT, edm::ConsumesCollector::consumes(), EVTColContainer::ELEC, EVTColContainer::GENMET, LogDebug, EVTColContainer::MET, EVTColContainer::MUON, EVTColContainer::MUTRK, EVTColContainer::PFJET, EVTColContainer::PFMET, EVTColContainer::PFMHT, EVTColContainer::PFTAU, EVTColContainer::PHOTON, unpackBuffers-CaloStage2::token, and EVTColContainer::TRACK.

Referenced by HLTExoticaSubAnalysis().

862  {
863  // Register that we are getting genParticles
865 
866  // Register that we are getting the trigger results
868 
869  // Register beamspot
870  _bsToken = iC.consumes<reco::BeamSpot>(_beamSpotLabel);
871 
872  // Loop over _recLabels, see what we need, and register.
873  // Then save the registered token in _tokens.
874  // Remember: _recLabels is a map<uint, edm::InputTag>
875  // Remember: _tokens is a map<uint, edm::EDGetToken>
876  LogDebug("ExoticaValidation") << "We have got " << _recLabels.size() << "recLabels";
877  for (std::map<unsigned int, edm::InputTag>::iterator it = _recLabels.begin(); it != _recLabels.end(); ++it) {
878  if (it->first == EVTColContainer::MUON) {
879  edm::EDGetTokenT<reco::MuonCollection> particularToken = iC.consumes<reco::MuonCollection>(it->second);
880  edm::EDGetToken token(particularToken);
881  _tokens[it->first] = token;
882  } else if (it->first == EVTColContainer::MUTRK) {
883  edm::EDGetTokenT<reco::TrackCollection> particularToken = iC.consumes<reco::TrackCollection>(it->second);
884  edm::EDGetToken token(particularToken);
885  _tokens[it->first] = token;
886  } else if (it->first == EVTColContainer::TRACK) {
887  edm::EDGetTokenT<reco::TrackCollection> particularToken = iC.consumes<reco::TrackCollection>(it->second);
888  edm::EDGetToken token(particularToken);
889  _tokens[it->first] = token;
890  } else if (it->first == EVTColContainer::ELEC) {
892  iC.consumes<reco::GsfElectronCollection>(it->second);
893  edm::EDGetToken token(particularToken);
894  _tokens[it->first] = token;
895  } else if (it->first == EVTColContainer::PHOTON) {
896  edm::EDGetTokenT<reco::PhotonCollection> particularToken = iC.consumes<reco::PhotonCollection>(it->second);
897  edm::EDGetToken token(particularToken);
898  _tokens[it->first] = token;
899  } else if (it->first == EVTColContainer::MET) {
900  edm::EDGetTokenT<reco::METCollection> particularToken = iC.consumes<reco::METCollection>(it->second);
901  edm::EDGetToken token(particularToken);
902  _tokens[it->first] = token;
903  } else if (it->first == EVTColContainer::PFMET) {
904  edm::EDGetTokenT<reco::PFMETCollection> particularToken = iC.consumes<reco::PFMETCollection>(it->second);
905  edm::EDGetToken token(particularToken);
906  _tokens[it->first] = token;
907  } else if (it->first == EVTColContainer::PFMHT) {
908  edm::EDGetTokenT<reco::PFMETCollection> particularToken = iC.consumes<reco::PFMETCollection>(it->second);
909  edm::EDGetToken token(particularToken);
910  _tokens[it->first] = token;
911  } else if (it->first == EVTColContainer::GENMET) {
912  edm::EDGetTokenT<reco::GenMETCollection> particularToken = iC.consumes<reco::GenMETCollection>(it->second);
913  edm::EDGetToken token(particularToken);
914  _tokens[it->first] = token;
915  } else if (it->first == EVTColContainer::CALOMET) {
916  edm::EDGetTokenT<reco::CaloMETCollection> particularToken = iC.consumes<reco::CaloMETCollection>(it->second);
917  edm::EDGetToken token(particularToken);
918  _tokens[it->first] = token;
919  } else if (it->first == EVTColContainer::CALOMHT) {
920  edm::EDGetTokenT<reco::CaloMETCollection> particularToken = iC.consumes<reco::CaloMETCollection>(it->second);
921  edm::EDGetToken token(particularToken);
922  _tokens[it->first] = token;
923  } else if (it->first == EVTColContainer::PFTAU) {
924  edm::EDGetTokenT<reco::PFTauCollection> particularToken = iC.consumes<reco::PFTauCollection>(it->second);
925  edm::EDGetToken token(particularToken);
926  _tokens[it->first] = token;
927  } else if (it->first == EVTColContainer::PFJET) {
928  edm::EDGetTokenT<reco::PFJetCollection> particularToken = iC.consumes<reco::PFJetCollection>(it->second);
929  edm::EDGetToken token(particularToken);
930  _tokens[it->first] = token;
931  } else if (it->first == EVTColContainer::CALOJET) {
932  edm::EDGetTokenT<reco::CaloJetCollection> particularToken = iC.consumes<reco::CaloJetCollection>(it->second);
933  edm::EDGetToken token(particularToken);
934  _tokens[it->first] = token;
935  } else {
936  edm::LogError("ExoticaValidation") << "HLTExoticaSubAnalysis::registerConsumes"
937  << " NOT IMPLEMENTED (yet) ERROR: '" << it->second.label() << "'";
938  }
939  }
940 }
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
std::vector< PFTau > PFTauCollection
collection of PFTau objects
Definition: PFTauFwd.h:9
std::vector< reco::GenMET > GenMETCollection
collection of GenMET objects
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
Log< level::Error, false > LogError
edm::EDGetTokenT< edm::TriggerResults > _trigResultsToken
std::vector< reco::MET > METCollection
collection of MET objects
Definition: METCollection.h:22
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
std::vector< Muon > MuonCollection
collection of Muon objects
Definition: MuonFwd.h:9
std::map< unsigned int, edm::InputTag > _recLabels
std::vector< reco::CaloMET > CaloMETCollection
collection of CaloMET objects
std::vector< Photon > PhotonCollection
collectin of Photon objects
Definition: PhotonFwd.h:9
std::map< unsigned int, edm::EDGetToken > _tokens
std::vector< PFJet > PFJetCollection
collection of PFJet objects
std::vector< reco::PFMET > PFMETCollection
collection of PFMET objects
edm::EDGetTokenT< reco::GenParticleCollection > _genParticleToken
And also the tokens to get the object collections.
edm::EDGetTokenT< reco::BeamSpot > _bsToken
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects
#define LogDebug(id)

◆ subAnalysisBookHistos()

void HLTExoticaSubAnalysis::subAnalysisBookHistos ( DQMStore::IBooker iBooker,
const edm::Run iRun,
const edm::EventSetup iSetup 
)

Method to book all relevant histograms in the DQMStore. Uses the IBooker interface for thread safety. Intended to be called from master object.

Definition at line 191 of file HLTExoticaSubAnalysis.cc.

References _analysisname, _drop_pt2, _drop_pt3, _plotters, _recLabels, ALCARECODTCalibSynchDQM_cff::baseDir, bookHist(), EVTColContainer::ELEC, EVTColContainer::getTypeString(), mps_fire::i, LogDebug, EVTColContainer::MUON, EVTColContainer::MUTRK, dqm::implementation::NavigatorBase::setCurrentFolder(), source, CalibrationSummaryClient_cfi::sources, and AlCaHLTBitMon_QueryRunRegistry::string.

193  {
194  LogDebug("ExoticaValidation") << "In HLTExoticaSubAnalysis::subAnalysisBookHistos()";
195 
196  // Create the folder structure inside HLT/Exotica
197  std::string baseDir = "HLT/Exotica/" + _analysisname + "/";
198  iBooker.setCurrentFolder(baseDir);
199 
200  // Book the gen/reco analysis-dependent histograms (denominators)
201  for (std::map<unsigned int, edm::InputTag>::const_iterator it = _recLabels.begin(); it != _recLabels.end(); ++it) {
202  const std::string objStr = EVTColContainer::getTypeString(it->first);
203  std::vector<std::string> sources(2);
204  sources[0] = "gen";
205  sources[1] = "rec";
206 
207  for (size_t i = 0; i < sources.size(); i++) {
209 
210  if (source == "gen") {
211  if (TString(objStr).Contains("MET") || TString(objStr).Contains("MHT") || TString(objStr).Contains("Jet")) {
212  continue;
213  } else {
214  bookHist(iBooker, source, objStr, "MaxPt1");
215  if (!_drop_pt2)
216  bookHist(iBooker, source, objStr, "MaxPt2");
217  if (!_drop_pt3)
218  bookHist(iBooker, source, objStr, "MaxPt3");
219  bookHist(iBooker, source, objStr, "Eta");
220  bookHist(iBooker, source, objStr, "Phi");
221 
222  // If the target is electron or muon,
223  // we will add Dxy plots.
224  if (it->first == EVTColContainer::ELEC || it->first == EVTColContainer::MUON ||
225  it->first == EVTColContainer::MUTRK) {
226  bookHist(iBooker, source, objStr, "Dxy");
227  }
228  }
229  } else { // reco
230  if (TString(objStr).Contains("MET") || TString(objStr).Contains("MHT")) {
231  bookHist(iBooker, source, objStr, "MaxPt1");
232  bookHist(iBooker, source, objStr, "SumEt");
233  } else {
234  bookHist(iBooker, source, objStr, "MaxPt1");
235  if (!_drop_pt2)
236  bookHist(iBooker, source, objStr, "MaxPt2");
237  if (!_drop_pt3)
238  bookHist(iBooker, source, objStr, "MaxPt3");
239  bookHist(iBooker, source, objStr, "Eta");
240  bookHist(iBooker, source, objStr, "Phi");
241 
242  // If the target is electron or muon,
243  // we will add Dxy plots.
244  if (it->first == EVTColContainer::ELEC || it->first == EVTColContainer::MUON ||
245  it->first == EVTColContainer::MUTRK) {
246  bookHist(iBooker, source, objStr, "Dxy");
247  }
248  }
249  }
250  }
251  } // closes loop in _recLabels
252 
253  // Call the plotterBookHistos() (which books all the path dependent
254  // histograms)
255  LogDebug("ExoticaValidation") << " number of plotters = " << _plotters.size();
256  for (std::vector<HLTExoticaPlotter>::iterator it = _plotters.begin(); it != _plotters.end(); ++it) {
257  it->plotterBookHistos(iBooker, iRun, iSetup);
258  }
259 }
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
std::vector< HLTExoticaPlotter > _plotters
The plotters: managers of each hlt path where the plots are done.
std::map< unsigned int, edm::InputTag > _recLabels
std::string _analysisname
The name of this sub-analysis.
static const std::string getTypeString(const unsigned int &objtype)
Tranform types into strings.
static std::string const source
Definition: EdmProvDump.cc:46
void bookHist(DQMStore::IBooker &iBooker, const std::string &source, const std::string &objType, const std::string &variable)
The internal functions to book and fill histograms.
#define LogDebug(id)

Member Data Documentation

◆ _analysisname

std::string HLTExoticaSubAnalysis::_analysisname
private

The name of this sub-analysis.

Definition at line 123 of file HLTExoticaSubAnalysis.h.

Referenced by beginRun(), endRun(), getNamesOfObjects(), and subAnalysisBookHistos().

◆ _beamSpotLabel

edm::InputTag HLTExoticaSubAnalysis::_beamSpotLabel
private

Definition at line 139 of file HLTExoticaSubAnalysis.h.

Referenced by registerConsumes().

◆ _bsToken

edm::EDGetTokenT<reco::BeamSpot> HLTExoticaSubAnalysis::_bsToken
private

Definition at line 144 of file HLTExoticaSubAnalysis.h.

Referenced by getHandlesToObjects(), and registerConsumes().

◆ _drop_pt2

bool HLTExoticaSubAnalysis::_drop_pt2
private

Definition at line 155 of file HLTExoticaSubAnalysis.h.

Referenced by analyze(), HLTExoticaSubAnalysis(), and subAnalysisBookHistos().

◆ _drop_pt3

bool HLTExoticaSubAnalysis::_drop_pt3
private

Definition at line 156 of file HLTExoticaSubAnalysis.h.

Referenced by analyze(), HLTExoticaSubAnalysis(), and subAnalysisBookHistos().

◆ _elements

std::map<std::string, MonitorElement *> HLTExoticaSubAnalysis::_elements
private

Structure of the MonitorElements.

Definition at line 193 of file HLTExoticaSubAnalysis.h.

Referenced by bookHist(), and fillHist().

◆ _genCut

std::map<unsigned int, std::string> HLTExoticaSubAnalysis::_genCut
private

gen/rec objects cuts

Definition at line 159 of file HLTExoticaSubAnalysis.h.

Referenced by analyze(), and HLTExoticaSubAnalysis().

◆ _genCut_leading

std::map<unsigned int, std::string> HLTExoticaSubAnalysis::_genCut_leading
private

gen/rec pt-leading objects cuts

Definition at line 162 of file HLTExoticaSubAnalysis.h.

Referenced by analyze(), and HLTExoticaSubAnalysis().

◆ _genMETSelector

StringCutObjectSelector<reco::GenMET>* HLTExoticaSubAnalysis::_genMETSelector
private

Definition at line 175 of file HLTExoticaSubAnalysis.h.

Referenced by initSelector(), insertCandidates(), and ~HLTExoticaSubAnalysis().

◆ _genParticleLabel

edm::InputTag HLTExoticaSubAnalysis::_genParticleLabel
private

Definition at line 137 of file HLTExoticaSubAnalysis.h.

Referenced by registerConsumes().

◆ _genParticleToken

edm::EDGetTokenT<reco::GenParticleCollection> HLTExoticaSubAnalysis::_genParticleToken
private

And also the tokens to get the object collections.

Definition at line 142 of file HLTExoticaSubAnalysis.h.

Referenced by getHandlesToObjects(), and registerConsumes().

◆ _genSelectorMap

std::map<unsigned int, StringCutObjectSelector<reco::GenParticle> *> HLTExoticaSubAnalysis::_genSelectorMap
private

The concrete String selectors (use the string cuts introduced via the config python)

Definition at line 167 of file HLTExoticaSubAnalysis.h.

Referenced by analyze(), getNamesOfObjects(), and ~HLTExoticaSubAnalysis().

◆ _hltConfig

HLTConfigProvider HLTExoticaSubAnalysis::_hltConfig
private

Interface to the HLT information.

Definition at line 190 of file HLTExoticaSubAnalysis.h.

Referenced by beginRun().

◆ _hltPaths

std::set<std::string> HLTExoticaSubAnalysis::_hltPaths
private

The hlt paths found in the hltConfig.

Definition at line 131 of file HLTExoticaSubAnalysis.h.

Referenced by beginRun().

◆ _hltPathsToCheck

std::vector<std::string> HLTExoticaSubAnalysis::_hltPathsToCheck
private

The hlt paths to check for.

Definition at line 129 of file HLTExoticaSubAnalysis.h.

Referenced by beginRun(), and HLTExoticaSubAnalysis().

◆ _hltProcessName

std::string HLTExoticaSubAnalysis::_hltProcessName
private

The labels of the object collections to be used in this analysis.

Definition at line 136 of file HLTExoticaSubAnalysis.h.

Referenced by beginRun().

◆ _minCandidates

unsigned int HLTExoticaSubAnalysis::_minCandidates
private

The minimum number of reco/gen candidates needed by the analysis.

Definition at line 126 of file HLTExoticaSubAnalysis.h.

Referenced by analyze(), and HLTExoticaSubAnalysis().

◆ _parametersDxy

std::vector<double> HLTExoticaSubAnalysis::_parametersDxy
private

Definition at line 152 of file HLTExoticaSubAnalysis.h.

Referenced by bookHist(), and HLTExoticaSubAnalysis().

◆ _parametersEta

std::vector<double> HLTExoticaSubAnalysis::_parametersEta
private

Some kinematical parameters.

Definition at line 148 of file HLTExoticaSubAnalysis.h.

Referenced by bookHist(), and HLTExoticaSubAnalysis().

◆ _parametersPhi

std::vector<double> HLTExoticaSubAnalysis::_parametersPhi
private

Definition at line 149 of file HLTExoticaSubAnalysis.h.

Referenced by bookHist(), and HLTExoticaSubAnalysis().

◆ _parametersTurnOn

std::vector<double> HLTExoticaSubAnalysis::_parametersTurnOn
private

Definition at line 150 of file HLTExoticaSubAnalysis.h.

Referenced by bookHist(), and HLTExoticaSubAnalysis().

◆ _parametersTurnOnSumEt

std::vector<double> HLTExoticaSubAnalysis::_parametersTurnOnSumEt
private

Definition at line 151 of file HLTExoticaSubAnalysis.h.

Referenced by bookHist(), and HLTExoticaSubAnalysis().

◆ _plotters

std::vector<HLTExoticaPlotter> HLTExoticaSubAnalysis::_plotters
private

The plotters: managers of each hlt path where the plots are done.

Definition at line 184 of file HLTExoticaSubAnalysis.h.

Referenced by analyze(), beginRun(), and subAnalysisBookHistos().

◆ _pset

edm::ParameterSet HLTExoticaSubAnalysis::_pset
private

Internal, working copy of the PSet passed from above.

Definition at line 120 of file HLTExoticaSubAnalysis.h.

Referenced by beginRun(), and HLTExoticaSubAnalysis().

◆ _recCaloJetSelector

StringCutObjectSelector<reco::CaloJet>* HLTExoticaSubAnalysis::_recCaloJetSelector
private

Definition at line 181 of file HLTExoticaSubAnalysis.h.

Referenced by initSelector(), insertCandidates(), and ~HLTExoticaSubAnalysis().

◆ _recCaloMETSelector

StringCutObjectSelector<reco::CaloMET>* HLTExoticaSubAnalysis::_recCaloMETSelector
private

Definition at line 176 of file HLTExoticaSubAnalysis.h.

Referenced by initSelector(), insertCandidates(), and ~HLTExoticaSubAnalysis().

◆ _recCaloMHTSelector

StringCutObjectSelector<reco::CaloMET>* HLTExoticaSubAnalysis::_recCaloMHTSelector
private

Definition at line 177 of file HLTExoticaSubAnalysis.h.

Referenced by initSelector(), insertCandidates(), and ~HLTExoticaSubAnalysis().

◆ _recCut

std::map<unsigned int, std::string> HLTExoticaSubAnalysis::_recCut
private

Definition at line 160 of file HLTExoticaSubAnalysis.h.

Referenced by HLTExoticaSubAnalysis(), and initSelector().

◆ _recCut_leading

std::map<unsigned int, std::string> HLTExoticaSubAnalysis::_recCut_leading
private

Definition at line 163 of file HLTExoticaSubAnalysis.h.

Referenced by analyze(), and HLTExoticaSubAnalysis().

◆ _recElecSelector

StringCutObjectSelector<reco::GsfElectron>* HLTExoticaSubAnalysis::_recElecSelector
private

Definition at line 171 of file HLTExoticaSubAnalysis.h.

Referenced by initSelector(), insertCandidates(), and ~HLTExoticaSubAnalysis().

◆ _recLabels

std::map<unsigned int, edm::InputTag> HLTExoticaSubAnalysis::_recLabels
private

◆ _recMETSelector

StringCutObjectSelector<reco::MET>* HLTExoticaSubAnalysis::_recMETSelector
private

Definition at line 172 of file HLTExoticaSubAnalysis.h.

Referenced by initSelector(), and ~HLTExoticaSubAnalysis().

◆ _recMuonSelector

StringCutObjectSelector<reco::Muon>* HLTExoticaSubAnalysis::_recMuonSelector
private

Definition at line 168 of file HLTExoticaSubAnalysis.h.

Referenced by initSelector(), insertCandidates(), and ~HLTExoticaSubAnalysis().

◆ _recMuonTrkSelector

StringCutObjectSelector<reco::Track>* HLTExoticaSubAnalysis::_recMuonTrkSelector
private

Definition at line 169 of file HLTExoticaSubAnalysis.h.

Referenced by initSelector(), insertCandidates(), and ~HLTExoticaSubAnalysis().

◆ _recPFJetSelector

StringCutObjectSelector<reco::PFJet>* HLTExoticaSubAnalysis::_recPFJetSelector
private

Definition at line 180 of file HLTExoticaSubAnalysis.h.

Referenced by initSelector(), insertCandidates(), and ~HLTExoticaSubAnalysis().

◆ _recPFMETSelector

StringCutObjectSelector<reco::PFMET>* HLTExoticaSubAnalysis::_recPFMETSelector
private

Definition at line 173 of file HLTExoticaSubAnalysis.h.

Referenced by initSelector(), insertCandidates(), and ~HLTExoticaSubAnalysis().

◆ _recPFMHTSelector

StringCutObjectSelector<reco::PFMET>* HLTExoticaSubAnalysis::_recPFMHTSelector
private

Definition at line 174 of file HLTExoticaSubAnalysis.h.

Referenced by initSelector(), insertCandidates(), and ~HLTExoticaSubAnalysis().

◆ _recPFTauSelector

StringCutObjectSelector<reco::PFTau>* HLTExoticaSubAnalysis::_recPFTauSelector
private

Definition at line 178 of file HLTExoticaSubAnalysis.h.

Referenced by initSelector(), insertCandidates(), and ~HLTExoticaSubAnalysis().

◆ _recPhotonSelector

StringCutObjectSelector<reco::Photon>* HLTExoticaSubAnalysis::_recPhotonSelector
private

Definition at line 179 of file HLTExoticaSubAnalysis.h.

Referenced by initSelector(), insertCandidates(), and ~HLTExoticaSubAnalysis().

◆ _recTrackSelector

StringCutObjectSelector<reco::Track>* HLTExoticaSubAnalysis::_recTrackSelector
private

Definition at line 170 of file HLTExoticaSubAnalysis.h.

Referenced by initSelector(), insertCandidates(), and ~HLTExoticaSubAnalysis().

◆ _shortpath2long

std::map<std::string, std::string> HLTExoticaSubAnalysis::_shortpath2long
private

Relation between the short and long versions of the path.

Definition at line 133 of file HLTExoticaSubAnalysis.h.

Referenced by analyze(), and beginRun().

◆ _tokens

std::map<unsigned int, edm::EDGetToken> HLTExoticaSubAnalysis::_tokens
private

Definition at line 145 of file HLTExoticaSubAnalysis.h.

Referenced by getHandlesToObjects(), and registerConsumes().

◆ _triggerCounter

std::map<std::string, int> HLTExoticaSubAnalysis::_triggerCounter
private

counting HLT passed events

Definition at line 187 of file HLTExoticaSubAnalysis.h.

Referenced by analyze(), beginRun(), and endRun().

◆ _trigResultsLabel

edm::InputTag HLTExoticaSubAnalysis::_trigResultsLabel
private

Definition at line 138 of file HLTExoticaSubAnalysis.h.

Referenced by registerConsumes().

◆ _trigResultsToken

edm::EDGetTokenT<edm::TriggerResults> HLTExoticaSubAnalysis::_trigResultsToken
private

Definition at line 143 of file HLTExoticaSubAnalysis.h.

Referenced by getHandlesToObjects(), and registerConsumes().