32 _analysisname(analysisname),
34 _hltProcessName(pset.getParameter<
std::
string>(
"hltProcessName")),
35 _genParticleLabel(pset.getParameter<
std::
string>(
"genParticleLabel")),
36 _trigResultsLabel(
"TriggerResults",
"", _hltProcessName),
37 _beamSpotLabel(pset.getParameter<
std::
string>(
"beamSpotLabel")),
38 _parametersEta(pset.getParameter<
std::vector<double> >(
"parametersEta")),
39 _parametersPhi(pset.getParameter<
std::vector<double> >(
"parametersPhi")),
40 _parametersTurnOn(pset.getParameter<
std::vector<double> >(
"parametersTurnOn")),
41 _parametersTurnOnSumEt(pset.getParameter<
std::vector<double> >(
"parametersTurnOnSumEt")),
42 _parametersDxy(pset.getParameter<
std::vector<double> >(
"parametersDxy")),
62 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::constructor()";
71 if (anpset.
exists(
"parametersTurnOn")) {
75 if (anpset.
exists(
"parametersEta")) {
79 if (anpset.
exists(
"parametersPhi")) {
83 if (anpset.
exists(
"parametersDxy")) {
87 if (anpset.
exists(
"parametersTurnOnSumEt")) {
91 if (anpset.
exists(
"dropPt2")) {
95 if (anpset.
exists(
"dropPt3")) {
109 for (std::map<unsigned int, edm::InputTag>::const_iterator it =
_recLabels.begin();
114 auto const genCutParam = objStr +
"_genCut_leading";
115 if (pset.
exists(genCutParam)) {
120 auto const recCutParam = objStr +
"_recCut_leading";
121 if (pset.
exists(recCutParam)) {
129 for (std::map<unsigned int, edm::InputTag>::const_iterator it =
_recLabels.begin();
133 auto const genCutParam = objStr +
"_genCut";
138 auto const recCutParam = objStr +
"_recCut";
157 it->second =
nullptr;
208 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::subAnalysisBookHistos()";
215 for (std::map<unsigned int, edm::InputTag>::const_iterator it =
_recLabels.begin();
218 std::vector<std::string> sources(2);
222 for (
size_t i = 0;
i < sources.size();
i++) {
225 if ( source ==
"gen" ) {
226 if ( TString(objStr).Contains(
"MET") ||
227 TString(objStr).Contains(
"MHT") ||
228 TString(objStr).Contains(
"Jet") ) {
231 bookHist(iBooker, source, objStr,
"MaxPt1");
234 bookHist(iBooker, source, objStr,
"Eta");
235 bookHist(iBooker, source, objStr,
"Phi");
242 bookHist(iBooker, source, objStr,
"Dxy");
246 if ( TString(objStr).Contains(
"MET") ||
247 TString(objStr).Contains(
"MHT") ) {
248 bookHist(iBooker, source, objStr,
"MaxPt1");
249 bookHist(iBooker, source, objStr,
"SumEt");
251 bookHist(iBooker, source, objStr,
"MaxPt1");
254 bookHist(iBooker, source, objStr,
"Eta");
255 bookHist(iBooker, source, objStr,
"Phi");
262 bookHist(iBooker, source, objStr,
"Dxy");
272 for (std::vector<HLTExoticaPlotter>::iterator it =
_plotters.begin();
274 it->plotterBookHistos(iBooker, iRun, iSetup);
281 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::beginRun()";
287 bool changedConfig(
true);
289 edm::LogError(
"ExoticaValidation") <<
"HLTExoticaSubAnalysis::constructor(): " 290 <<
"Initialization of HLTConfigProvider failed!";
303 if (TString(thetriggername).Contains(pattern)) {
308 LogDebug(
"ExoticaValidation") <<
"--- TRIGGER PATH : " << thetriggername;
313 edm::LogWarning(
"ExoticaValidation") <<
"HLTExoticaSubAnalysis::constructor(): In " 322 <<
"\nHLT Trigger Paths found >>>";
323 for (std::set<std::string>::const_iterator iter =
_hltPaths.begin();
325 LogTrace(
"ExoticaValidation") << (*iter) <<
"\n";
330 for (std::set<std::string>::iterator iPath =
_hltPaths.begin();
335 if (path.rfind(
"_v") < path.length()) {
336 shortpath = path.substr(0, path.rfind(
"_v"));
344 std::vector<unsigned int> objsNeedHLT;
345 for (std::map<unsigned int, edm::InputTag>::iterator it =
_recLabels.begin() ;
347 objsNeedHLT.push_back(it->first);
372 LogTrace(
"ExoticaValidation") <<
" --- " << shortpath;
387 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::analyze()";
408 std::vector<reco::LeafCandidate> matchesGen; matchesGen.clear();
409 std::vector<reco::LeafCandidate> matchesReco; matchesReco.clear();
410 std::map<int , double> theSumEt;
411 std::map<int, std::vector<const reco::Track*> > trkObjs;
418 for (std::map<unsigned int, edm::InputTag>::iterator it =
_recLabels.begin();
433 if ( TString(objTypeStr).Contains(
"MET") ||
434 TString(objTypeStr).Contains(
"MHT") ||
435 TString(objTypeStr).Contains(
"Jet") )
continue;
449 matchesGen.push_back(
v);
464 if(
verbose>0)
LogDebug(
"ExoticaValidation") <<
"-- enter loop over recLabels" ;
465 for (std::map<unsigned int, edm::InputTag>::iterator it =
_recLabels.begin();
475 <<
" sumEt=" << theSumEt[it->first] ;
486 for (std::vector<HLTExoticaPlotter>::iterator an =
_plotters.begin(); an !=
_plotters.end(); ++an) {
516 std::map<unsigned int, int> countobjects;
517 for (std::map<unsigned int, edm::InputTag>::iterator co =
_recLabels.begin();
520 countobjects.insert(std::pair<unsigned int, int>(co->first, 0));
526 int totalobjectssize = 1;
529 totalobjectssize *= countobjects.size();
532 bool isPassedLeadingCut =
true;
534 for (
size_t j = 0; j != matchesGen.size(); ++j) {
535 const unsigned int objType = matchesGen[j].pdgId();
538 if ( !
select( matchesGen[j] ) ) {
539 isPassedLeadingCut =
false;
545 std::vector<float> dxys; dxys.clear();
547 for (
size_t j = 0; ( j != matchesGen.size() ) && isPassedLeadingCut; ++j) {
548 const unsigned int objType = matchesGen[j].pdgId();
552 float pt = matchesGen[j].pt();
554 if (countobjects[objType] == 0) {
555 this->
fillHist(
"gen", objTypeStr,
"MaxPt1", pt);
559 else if (countobjects[objType] == 1 && !
_drop_pt2) {
560 this->
fillHist(
"gen", objTypeStr,
"MaxPt2", pt);
564 else if (countobjects[objType] == 2 && !
_drop_pt3) {
565 this->
fillHist(
"gen", objTypeStr,
"MaxPt3", pt);
571 if (counttotal == totalobjectssize) {
572 size_t max_size = matchesGen.size();
573 for (
size_t jj = j;
jj < max_size;
jj++ ) {
574 matchesGen.erase(matchesGen.end());
580 float eta = matchesGen[j].eta();
581 float phi = matchesGen[j].phi();
583 this->
fillHist(
"gen", objTypeStr,
"Eta", eta);
584 this->
fillHist(
"gen", objTypeStr,
"Phi", phi);
592 float momphi = matchesGen[j].momentum().phi();
593 float dxyGen = (-(vtx.x()-cols->
bs->
x0())*
sin(momphi)+(vtx.y()-cols->
bs->
y0())*
cos(momphi));
594 dxys.push_back(dxyGen);
595 this->
fillHist(
"gen", objTypeStr,
"Dxy", dxyGen);
602 for (std::vector<HLTExoticaPlotter>::iterator an =
_plotters.begin(); an !=
_plotters.end(); ++an) {
605 LogDebug(
"ExoticaValidation") <<
" preparing to call the plotters analysis";
606 an->analyze(ispassTrigger,
"gen", matchesGen, theSumEt, dxys);
607 LogDebug(
"ExoticaValidation") <<
" called the plotter";
629 std::map<unsigned int, int> countobjects;
630 for (std::map<unsigned int, edm::InputTag>::iterator co =
_recLabels.begin();
632 countobjects.insert(std::pair<unsigned int, int>(co->first, 0));
638 int totalobjectssize = 1;
641 totalobjectssize *= countobjects.size();
646 std::vector<float> dxys; dxys.clear();
648 bool isPassedLeadingCut =
true;
650 for (
size_t j = 0; j != matchesReco.size(); ++j) {
651 const unsigned int objType = matchesReco[j].pdgId();
654 if ( !
select( matchesReco[j] ) ) {
655 isPassedLeadingCut =
false;
661 for (
size_t j = 0; ( j != matchesReco.size() ) && isPassedLeadingCut; ++j) {
662 const unsigned int objType = matchesReco[j].pdgId();
666 float pt = matchesReco[j].pt();
668 if (countobjects[objType] == 0) {
669 this->
fillHist(
"rec", objTypeStr,
"MaxPt1", pt);
673 else if (countobjects[objType] == 1 && !
_drop_pt2) {
674 if( ! ( TString(objTypeStr).Contains(
"MET") || TString(objTypeStr).Contains(
"MHT") ) ) {
675 this->
fillHist(
"rec", objTypeStr,
"MaxPt2", pt);
680 else if (countobjects[objType] == 2 && !
_drop_pt3) {
681 if( ! ( TString(objTypeStr).Contains(
"MET") || TString(objTypeStr).Contains(
"MHT") ) ) {
682 this->
fillHist(
"rec", objTypeStr,
"MaxPt3", pt);
689 if (counttotal == totalobjectssize) {
690 size_t max_size = matchesReco.size();
691 for (
size_t jj = j;
jj < max_size;
jj++ ) {
692 matchesReco.erase(matchesReco.end());
698 float eta = matchesReco[j].eta();
699 float phi = matchesReco[j].phi();
701 if ( !( TString(objTypeStr).Contains(
"MET") || TString(objTypeStr).Contains(
"MHT") ) ) {
702 this->
fillHist(
"rec", objTypeStr,
"Eta", eta);
703 this->
fillHist(
"rec", objTypeStr,
"Phi", phi);
706 this->
fillHist(
"rec", objTypeStr,
"SumEt", theSumEt[objType]);
709 if (trkObjs[objType].
size()>=j+1) {
711 this->
fillHist(
"rec", objTypeStr,
"Dxy", dxyRec);
712 dxys.push_back(dxyRec);
722 for (std::vector<HLTExoticaPlotter>::iterator an =
_plotters.begin(); an !=
_plotters.end(); ++an) {
725 LogDebug(
"ExoticaValidation") <<
" preparing to call the plotters analysis";
726 an->analyze(ispassTrigger,
"rec", matchesReco, theSumEt, dxys);
727 LogDebug(
"ExoticaValidation") <<
" called the plotter";
737 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::getObjectsType()";
739 static const unsigned int objSize = 15;
740 static const unsigned int objtriggernames[] = {
758 std::set<unsigned int> objsType;
760 for (
unsigned int i = 0;
i < objSize; ++
i) {
764 if (! TString(hltPath).Contains(objTypeStr)) {
768 objsType.insert(objtriggernames[i]);
771 return std::vector<unsigned int>(objsType.begin(), objsType.end());
777 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::getNamesOfObjects()";
779 if (anpset.
exists(
"recMuonLabel")) {
783 if (anpset.
exists(
"recMuonTrkLabel")) {
787 if (anpset.
exists(
"recTrackLabel")) {
791 if (anpset.
exists(
"recElecLabel")) {
795 if (anpset.
exists(
"recPhotonLabel")) {
799 if (anpset.
exists(
"recMETLabel")) {
803 if (anpset.
exists(
"recPFMETLabel")) {
807 if (anpset.
exists(
"recPFMHTLabel")) {
811 if (anpset.
exists(
"genMETLabel")) {
815 if (anpset.
exists(
"recCaloMETLabel")) {
819 if (anpset.
exists(
"recCaloMHTLabel")) {
823 if (anpset.
exists(
"hltMETLabel")) {
827 if (anpset.
exists(
"l1METLabel")) {
831 if (anpset.
exists(
"recPFTauLabel")) {
835 if (anpset.
exists(
"recPFJetLabel")) {
839 if (anpset.
exists(
"recCaloJetLabel")) {
845 edm::LogError(
"ExoticaValidation") <<
"HLTExoticaSubAnalysis::getNamesOfObjects, " 846 <<
"Not included any object (recMuonLabel, recElecLabel, ...) " 870 for (std::map<unsigned int, edm::InputTag>::iterator it =
_recLabels.begin();
948 edm::LogError(
"ExoticaValidation") <<
"HLTExoticaSubAnalysis::registerConsumes" 949 <<
" NOT IMPLEMENTED (yet) ERROR: '" << it->second.label() <<
"'";
958 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::getHandlesToObjects()";
966 LogDebug(
"ExoticaValidation") <<
"Added handle to triggerResults";
974 LogDebug(
"ExoticaValidation") <<
"Added handle to genParticles";
986 LogDebug(
"ExoticaValidation") <<
"We have got " <<
_tokens.size() <<
"tokens";
987 for (std::map<unsigned int, edm::EDGetToken>::iterator it =
_tokens.begin();
1065 edm::LogError(
"ExoticaValidation") <<
"HLTExoticaSubAnalysis::getHandlesToObjects " 1066 <<
" NOT IMPLEMENTED (yet) ERROR: '" << it->first <<
"'";
1077 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::bookHist()";
1079 sourceUpper[0] = std::toupper(sourceUpper[0]);
1083 if (variable.find(
"SumEt") != std::string::npos) {
1086 float * edges =
new float[nBins + 1];
1087 for (
size_t i = 0;
i < nBins + 1;
i++) {
1090 h =
new TH1F(name.c_str(), title.c_str(), nBins, edges);
1094 else if (variable.find(
"Dxy") != std::string::npos) {
1099 h =
new TH1F(name.c_str(), title.c_str(), nBins,
min,
max);
1102 else if (variable.find(
"MaxPt") != std::string::npos) {
1103 std::string desc = (variable ==
"MaxPt1") ?
"Leading" :
"Next-to-Leading";
1106 float * edges =
new float[nBins + 1];
1107 for (
size_t i = 0;
i < nBins + 1;
i++) {
1110 h =
new TH1F(name.c_str(), title.c_str(), nBins, edges);
1115 std::string symbol = (variable ==
"Eta") ?
"#eta" :
"#phi";
1118 int nBins = (
int)params[0];
1119 double min = params[1];
1120 double max = params[2];
1121 h =
new TH1F(name.c_str(), title.c_str(), nBins,
min,
max);
1136 const float &
value)
1139 sourceUpper[0] = toupper(sourceUpper[0]);
1142 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::fillHist() " << name <<
" " <<
value;
1144 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::fillHist() " << name <<
" worked";
1151 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::initSelector()";
1192 std::map<int,double> & theSumEt,
std::map<
int,std::vector<const reco::Track*> > & trkObjs )
1195 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::insertCandidates()";
1200 for (
size_t i = 0;
i < cols->
muons->size();
i++) {
1201 LogDebug(
"ExoticaValidation") <<
"Inserting muon " <<
i ;
1204 matches->push_back(
m);
1211 for (
size_t i = 0;
i < cols->
tracks->size();
i++) {
1212 LogDebug(
"ExoticaValidation") <<
"Inserting muonTrack " <<
i ;
1214 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>> mom4;
1216 mom4.SetXYZT(mom3.x(),mom3.y(),mom3.z(),mom3.r());
1218 matches->push_back(
m);
1225 for (
size_t i = 0;
i < cols->
tracks->size();
i++) {
1226 LogDebug(
"ExoticaValidation") <<
"Inserting Track " <<
i ;
1228 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>> mom4;
1230 mom4.SetXYZT(mom3.x(),mom3.y(),mom3.z(),mom3.r());
1232 matches->push_back(
m);
1237 LogDebug(
"ExoticaValidation") <<
"Inserting electron " <<
i ;
1240 matches->push_back(
m);
1247 for (
size_t i = 0;
i < cols->
photons->size();
i++) {
1248 LogDebug(
"ExoticaValidation") <<
"Inserting photon " <<
i ;
1251 matches->push_back(
m);
1258 for (
size_t i = 0;
i < cols->
pfMETs->size();
i++) {
1259 LogDebug(
"ExoticaValidation") <<
"Inserting PFMET " <<
i ;
1262 matches->push_back(
m);
1267 for (
size_t i = 0;
i < cols->
pfMHTs->size();
i++) {
1268 LogDebug(
"ExoticaValidation") <<
"Inserting PFMHT " <<
i ;
1271 matches->push_back(
m);
1276 for (
size_t i = 0;
i < cols->
genMETs->size();
i++) {
1277 LogDebug(
"ExoticaValidation") <<
"Inserting GENMET " <<
i ;
1280 matches->push_back(
m);
1285 for (
size_t i = 0;
i < cols->
caloMETs->size();
i++) {
1286 LogDebug(
"ExoticaValidation") <<
"Inserting CALOMET " <<
i ;
1289 matches->push_back(
m);
1294 for (
size_t i = 0;
i < cols->
caloMHTs->size();
i++) {
1295 LogDebug(
"ExoticaValidation") <<
"Inserting CaloMHT " <<
i ;
1298 matches->push_back(
m);
1303 for (
size_t i = 0;
i < cols->
l1METs->size();
i++) {
1304 LogDebug(
"ExoticaValidation") <<
"Inserting L1MET " <<
i ;
1307 matches->push_back(
m);
1312 for (
size_t i = 0;
i < cols->
pfTaus->size();
i++) {
1313 LogDebug(
"ExoticaValidation") <<
"Inserting PFtau " <<
i ;
1316 matches->push_back(
m);
1320 for (
size_t i = 0;
i < cols->
pfJets->size();
i++) {
1321 LogDebug(
"ExoticaValidation") <<
"Inserting jet " <<
i ;
1324 matches->push_back(
m);
1328 for (
size_t i = 0;
i < cols->
caloJets->size();
i++) {
1329 LogDebug(
"ExoticaValidation") <<
"Inserting jet " <<
i ;
1332 matches->push_back(
m);
1345 std::stringstream
log;
1347 log <<
"===========================================================================" << std::endl;
1348 log <<
" Trigger Results ( " <<
_analysisname <<
" ) " << std::endl;
1349 log <<
"===========================================================================" << std::endl;
1350 log << std::setw(18) <<
"# of passed events : HLT path names" << std::endl;
1351 log <<
"-------------------:-------------------------------------------------------" << std::endl;
1352 for (std::map<std::string,int>::iterator it =
_triggerCounter.begin();
1354 log << std::setw(18) << it->second <<
" : " << it->first << std::endl;
1356 log <<
"===========================================================================" << std::endl;
1357 LogDebug(
"ExoticaValidation") << log.str().data();
const std::vector< reco::Muon > * muons
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
StringCutObjectSelector< reco::Track > * _recMuonTrkSelector
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
T getParameter(std::string const &) const
unsigned int _minCandidates
The minimum number of reco/gen candidates needed by the analysis.
Entry const & retrieve(char const *) const
T getUntrackedParameter(std::string const &, T const &) const
void getNamesOfObjects(const edm::ParameterSet &anpset)
Creates the maps that map which collection should come from which label.
std::vector< PFTau > PFTauCollection
collection of PFTau objects
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
const std::vector< reco::CaloMET > * caloMETs
std::map< std::string, int > _triggerCounter
counting HLT passed events
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< reco::GenMET > GenMETCollection
collection of GenMET objects
std::map< unsigned int, std::string > _genCut
gen/rec objects cuts
Sin< T >::type sin(const T &t)
bool accept() const
Has at least one path accepted the event?
const std::vector< std::string > & triggerNames() const
names of trigger paths
std::vector< Track > TrackCollection
collection of Tracks
std::vector< HLTExoticaPlotter > _plotters
The plotters: managers of each hlt path where the plots are done.
bool exists(std::string const ¶meterName) const
checks if a parameter exists
StringCutObjectSelector< reco::CaloJet > * _recCaloJetSelector
StringCutObjectSelector< reco::GenMET > * _genMETSelector
std::vector< double > _parametersPhi
const std::vector< reco::CaloJet > * caloJets
void insert(bool ok_to_replace, char const *, Entry const &)
void fillHist(const std::string &source, const std::string &objType, const std::string &variable, const float &value)
const reco::GenParticleCollection * genParticles
container with all the objects needed
void analyze(const edm::Event &iEvent, const edm::EventSetup &iEventSetup, EVTColContainer *cols)
edm::InputTag _trigResultsLabel
StringCutObjectSelector< reco::MET > * _recMETSelector
edm::EDGetTokenT< edm::TriggerResults > _trigResultsToken
std::vector< reco::MET > METCollection
collection of MET objects
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
const std::vector< reco::PFTau > * pfTaus
std::vector< Muon > MuonCollection
collection of Muon objects
std::map< unsigned int, std::string > _genCut_leading
gen/rec pt-leading objects cuts
StringCutObjectSelector< reco::PFJet > * _recPFJetSelector
void setPFMHT(const reco::PFMETCollection *v)
U second(std::pair< T, U > const &p)
std::map< unsigned int, edm::InputTag > _recLabels
StringCutObjectSelector< reco::GsfElectron > * _recElecSelector
void set(const reco::MuonCollection *v)
Setter: multiple overloaded function.
std::map< unsigned int, std::string > _recCut_leading
const std::vector< reco::PFMET > * pfMHTs
Container::value_type value_type
StringCutObjectSelector< reco::Muon > * _recMuonSelector
unsigned int triggerIndex(std::string const &name) const
const std::vector< reco::GenMET > * genMETs
edm::ParameterSet _pset
Internal, working copy of the PSet passed from above.
const reco::BeamSpot * bs
void subAnalysisBookHistos(DQMStore::IBooker &iBooker, const edm::Run &iRun, const edm::EventSetup &iSetup)
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector
std::vector< double > _parametersEta
Some kinematical parameters.
std::map< unsigned int, std::string > _recCut
std::vector< double > _parametersDxy
Cos< T >::type cos(const T &t)
const std::vector< unsigned int > getObjectsType(const std::string &hltpath) const
closes analyze method
StringCutObjectSelector< reco::Track > * _recTrackSelector
MonitorElement * book1D(Args &&...args)
const std::vector< reco::PFJet > * pfJets
HLTConfigProvider _hltConfig
Interface to the HLT information.
const std::vector< reco::Track > * tracks
const std::vector< reco::Photon > * photons
~HLTExoticaSubAnalysis()
End Constructor.
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.
static const char *const trigNames[]
Transform3DPJ::Vector XYZVector
const std::vector< l1extra::L1EtMissParticle > * l1METs
void setCurrentFolder(const std::string &fullpath)
std::vector< reco::CaloMET > CaloMETCollection
collection of CaloMET objects
void registerConsumes(edm::ConsumesCollector &consCollector)
Registers consumption of objects.
T const * product() const
void getHandlesToObjects(const edm::Event &iEvent, EVTColContainer *col)
Gets the collections themselves.
XYZPointD XYZPoint
point in space with cartesian internal representation
StringCutObjectSelector< reco::PFMET > * _recPFMETSelector
std::string _analysisname
The name of this sub-analysis.
StringCutObjectSelector< reco::Photon > * _recPhotonSelector
std::vector< Photon > PhotonCollection
collectin of Photon objects
std::map< unsigned int, StringCutObjectSelector< reco::GenParticle > * > _genSelectorMap
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
void beginRun(const edm::Run &iRun, const edm::EventSetup &iEventSetup)
StringCutObjectSelector< l1extra::L1EtMissParticle > * _l1METSelector
const std::vector< reco::GsfElectron > * electrons
std::vector< double > _parametersTurnOn
std::map< unsigned int, edm::EDGetToken > _tokens
std::map< std::string, MonitorElement * > _elements
Structure of the MonitorElements.
StringCutObjectSelector< reco::CaloMET > * _recCaloMETSelector
std::vector< PFJet > PFJetCollection
collection of PFJet objects
HLTExoticaSubAnalysis(const edm::ParameterSet &pset, const std::string &analysisname, edm::ConsumesCollector &&consCollector)
Constructor.
std::vector< reco::PFMET > PFMETCollection
collection of PFMET objects
double y0() const
y coordinate
const std::vector< reco::CaloMET > * caloMHTs
edm::EDGetTokenT< reco::GenParticleCollection > _genParticleToken
And also the tokens to get the object collections.
virtual const Point & vertex() const =0
vertex position
const Point & position() const
position
void initSelector(const unsigned int &objtype)
Initializes the selectors of the objects based on which object it is.
std::vector< double > _parametersTurnOnSumEt
edm::InputTag _genParticleLabel
const std::vector< reco::PFMET > * pfMETs
std::set< std::string > _hltPaths
The hlt paths found in the hltConfig.
static const std::string getTypeString(const unsigned int &objtype)
Tranform types into strings.
edm::InputTag _beamSpotLabel
const edm::TriggerResults * triggerResults
StringCutObjectSelector< reco::PFMET > * _recPFMHTSelector
static std::string const source
edm::EDGetTokenT< reco::BeamSpot > _bsToken
StringCutObjectSelector< reco::PFTau > * _recPFTauSelector
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
void setCaloMHT(const reco::CaloMETCollection *v)
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.
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects
std::map< std::string, std::string > _shortpath2long
Relation between the short and long versions of the path.
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)
double x0() const
x coordinate