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")),
46 _recMuonTrkSelector(0),
53 _recCaloMETSelector(0),
54 _recCaloMHTSelector(0),
57 _recPhotonSelector(0),
59 _recCaloJetSelector(0)
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";
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");
241 bookHist(iBooker, source, objStr,
"Dxy");
245 if ( TString(objStr).Contains(
"MET") ||
246 TString(objStr).Contains(
"MHT") ) {
247 bookHist(iBooker, source, objStr,
"MaxPt1");
248 bookHist(iBooker, source, objStr,
"SumEt");
250 bookHist(iBooker, source, objStr,
"MaxPt1");
253 bookHist(iBooker, source, objStr,
"Eta");
254 bookHist(iBooker, source, objStr,
"Phi");
260 bookHist(iBooker, source, objStr,
"Dxy");
270 for (std::vector<HLTExoticaPlotter>::iterator it =
_plotters.begin();
272 it->plotterBookHistos(iBooker, iRun, iSetup);
279 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::beginRun()";
285 bool changedConfig(
true);
287 edm::LogError(
"ExoticaValidation") <<
"HLTExoticaSubAnalysis::constructor(): "
288 <<
"Initialization of HLTConfigProvider failed!";
301 if (TString(thetriggername).Contains(pattern)) {
306 LogDebug(
"ExoticaValidation") <<
"--- TRIGGER PATH : " << thetriggername;
311 edm::LogWarning(
"ExoticaValidation") <<
"HLTExoticaSubAnalysis::constructor(): In "
320 <<
"\nHLT Trigger Paths found >>>";
321 for (std::set<std::string>::const_iterator iter =
_hltPaths.begin();
323 LogTrace(
"ExoticaValidation") << (*iter) <<
"\n";
328 for (std::set<std::string>::iterator iPath =
_hltPaths.begin();
333 if (path.rfind(
"_v") < path.length()) {
334 shortpath = path.substr(0, path.rfind(
"_v"));
342 std::vector<unsigned int> objsNeedHLT;
343 for (std::map<unsigned int, edm::InputTag>::iterator it =
_recLabels.begin() ;
345 objsNeedHLT.push_back(it->first);
370 LogTrace(
"ExoticaValidation") <<
" --- " << shortpath;
385 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::analyze()";
406 std::vector<reco::LeafCandidate> matchesGen; matchesGen.clear();
407 std::vector<reco::LeafCandidate> matchesReco; matchesReco.clear();
408 std::map<int , double> theSumEt;
409 std::map<int, std::vector<const reco::Track*> > trkObjs;
416 for (std::map<unsigned int, edm::InputTag>::iterator it =
_recLabels.begin();
431 if ( TString(objTypeStr).Contains(
"MET") ||
432 TString(objTypeStr).Contains(
"MHT") ||
433 TString(objTypeStr).Contains(
"Jet") )
continue;
447 matchesGen.push_back(
v);
462 if(
verbose>0)
LogDebug(
"ExoticaValidation") <<
"-- enter loop over recLabels" ;
463 for (std::map<unsigned int, edm::InputTag>::iterator it =
_recLabels.begin();
473 <<
" sumEt=" << theSumEt[it->first] ;
484 for (std::vector<HLTExoticaPlotter>::iterator an =
_plotters.begin(); an !=
_plotters.end(); ++an) {
514 std::map<unsigned int, int> countobjects;
515 for (std::map<unsigned int, edm::InputTag>::iterator co =
_recLabels.begin();
518 countobjects.insert(std::pair<unsigned int, int>(co->first, 0));
524 int totalobjectssize = 1;
527 totalobjectssize *= countobjects.size();
530 bool isPassedLeadingCut =
true;
532 for (
size_t j = 0;
j != matchesGen.size(); ++
j) {
533 const unsigned int objType = matchesGen[
j].pdgId();
536 if ( !
select( matchesGen[
j] ) ) {
537 isPassedLeadingCut =
false;
543 std::vector<float> dxys; dxys.clear();
545 for (
size_t j = 0; (
j != matchesGen.size() ) && isPassedLeadingCut; ++
j) {
546 const unsigned int objType = matchesGen[
j].pdgId();
550 float pt = matchesGen[
j].pt();
552 if (countobjects[objType] == 0) {
553 this->
fillHist(
"gen", objTypeStr,
"MaxPt1", pt);
554 ++(countobjects[objType]);
557 else if (countobjects[objType] == 1 && !
_drop_pt2) {
558 this->
fillHist(
"gen", objTypeStr,
"MaxPt2", pt);
559 ++(countobjects[objType]);
562 else if (countobjects[objType] == 2 && !
_drop_pt3) {
563 this->
fillHist(
"gen", objTypeStr,
"MaxPt3", pt);
564 ++(countobjects[objType]);
569 if (counttotal == totalobjectssize) {
570 size_t max_size = matchesGen.size();
571 for (
size_t jj =
j;
jj < max_size;
jj++ ) {
572 matchesGen.erase(matchesGen.end());
578 float eta = matchesGen[
j].eta();
579 float phi = matchesGen[
j].phi();
581 this->
fillHist(
"gen", objTypeStr,
"Eta", eta);
582 this->
fillHist(
"gen", objTypeStr,
"Phi", phi);
589 float momphi = matchesGen[
j].momentum().phi();
590 float dxyGen = (-(vtx.x()-cols->
bs->
x0())*
sin(momphi)+(vtx.y()-cols->
bs->
y0())*
cos(momphi));
591 dxys.push_back(dxyGen);
592 this->
fillHist(
"gen", objTypeStr,
"Dxy", dxyGen);
599 for (std::vector<HLTExoticaPlotter>::iterator an =
_plotters.begin(); an !=
_plotters.end(); ++an) {
602 LogDebug(
"ExoticaValidation") <<
" preparing to call the plotters analysis";
603 an->analyze(ispassTrigger,
"gen", matchesGen, theSumEt, dxys);
604 LogDebug(
"ExoticaValidation") <<
" called the plotter";
626 std::map<unsigned int, int> countobjects;
627 for (std::map<unsigned int, edm::InputTag>::iterator co =
_recLabels.begin();
629 countobjects.insert(std::pair<unsigned int, int>(co->first, 0));
635 int totalobjectssize = 1;
638 totalobjectssize *= countobjects.size();
643 std::vector<float> dxys; dxys.clear();
645 bool isPassedLeadingCut =
true;
647 for (
size_t j = 0;
j != matchesReco.size(); ++
j) {
648 const unsigned int objType = matchesReco[
j].pdgId();
651 if ( !
select( matchesReco[
j] ) ) {
652 isPassedLeadingCut =
false;
658 for (
size_t j = 0; (
j != matchesReco.size() ) && isPassedLeadingCut; ++
j) {
659 const unsigned int objType = matchesReco[
j].pdgId();
663 float pt = matchesReco[
j].pt();
665 if (countobjects[objType] == 0) {
666 this->
fillHist(
"rec", objTypeStr,
"MaxPt1", pt);
667 ++(countobjects[objType]);
670 else if (countobjects[objType] == 1 && !
_drop_pt2) {
671 if( ! ( TString(objTypeStr).Contains(
"MET") || TString(objTypeStr).Contains(
"MHT") ) ) {
672 this->
fillHist(
"rec", objTypeStr,
"MaxPt2", pt);
674 ++(countobjects[objType]);
677 else if (countobjects[objType] == 2 && !
_drop_pt3) {
678 if( ! ( TString(objTypeStr).Contains(
"MET") || TString(objTypeStr).Contains(
"MHT") ) ) {
679 this->
fillHist(
"rec", objTypeStr,
"MaxPt3", pt);
681 ++(countobjects[objType]);
686 if (counttotal == totalobjectssize) {
687 size_t max_size = matchesReco.size();
688 for (
size_t jj =
j;
jj < max_size;
jj++ ) {
689 matchesReco.erase(matchesReco.end());
695 float eta = matchesReco[
j].eta();
696 float phi = matchesReco[
j].phi();
698 if ( !( TString(objTypeStr).Contains(
"MET") || TString(objTypeStr).Contains(
"MHT") ) ) {
699 this->
fillHist(
"rec", objTypeStr,
"Eta", eta);
700 this->
fillHist(
"rec", objTypeStr,
"Phi", phi);
703 this->
fillHist(
"rec", objTypeStr,
"SumEt", theSumEt[objType]);
706 if (trkObjs[objType].
size()>=
j+1) {
707 float dxyRec = trkObjs[objType].at(
j)->dxy(cols->
bs->
position());
708 this->
fillHist(
"rec", objTypeStr,
"Dxy", dxyRec);
709 dxys.push_back(dxyRec);
719 for (std::vector<HLTExoticaPlotter>::iterator an =
_plotters.begin(); an !=
_plotters.end(); ++an) {
722 LogDebug(
"ExoticaValidation") <<
" preparing to call the plotters analysis";
723 an->analyze(ispassTrigger,
"rec", matchesReco, theSumEt, dxys);
724 LogDebug(
"ExoticaValidation") <<
" called the plotter";
734 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::getObjectsType()";
736 static const unsigned int objSize = 15;
737 static const unsigned int objtriggernames[] = {
755 std::set<unsigned int> objsType;
757 for (
unsigned int i = 0;
i < objSize; ++
i) {
761 if (! TString(hltPath).Contains(objTypeStr)) {
765 objsType.insert(objtriggernames[i]);
768 return std::vector<unsigned int>(objsType.begin(), objsType.end());
774 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::getNamesOfObjects()";
776 if (anpset.
exists(
"recMuonLabel")) {
780 if (anpset.
exists(
"recMuonTrkLabel")) {
784 if (anpset.
exists(
"recTrackLabel")) {
788 if (anpset.
exists(
"recElecLabel")) {
792 if (anpset.
exists(
"recPhotonLabel")) {
796 if (anpset.
exists(
"recMETLabel")) {
800 if (anpset.
exists(
"recPFMETLabel")) {
804 if (anpset.
exists(
"recPFMHTLabel")) {
808 if (anpset.
exists(
"genMETLabel")) {
812 if (anpset.
exists(
"recCaloMETLabel")) {
816 if (anpset.
exists(
"recCaloMHTLabel")) {
820 if (anpset.
exists(
"hltMETLabel")) {
824 if (anpset.
exists(
"l1METLabel")) {
828 if (anpset.
exists(
"recPFTauLabel")) {
832 if (anpset.
exists(
"recPFJetLabel")) {
836 if (anpset.
exists(
"recCaloJetLabel")) {
842 edm::LogError(
"ExoticaValidation") <<
"HLTExoticaSubAnalysis::getNamesOfObjects, "
843 <<
"Not included any object (recMuonLabel, recElecLabel, ...) "
867 for (std::map<unsigned int, edm::InputTag>::iterator it =
_recLabels.begin();
945 edm::LogError(
"ExoticaValidation") <<
"HLTExoticaSubAnalysis::registerConsumes"
946 <<
" NOT IMPLEMENTED (yet) ERROR: '" << it->second.label() <<
"'";
955 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::getHandlesToObjects()";
963 LogDebug(
"ExoticaValidation") <<
"Added handle to triggerResults";
971 LogDebug(
"ExoticaValidation") <<
"Added handle to genParticles";
983 LogDebug(
"ExoticaValidation") <<
"We have got " <<
_tokens.size() <<
"tokens";
984 for (std::map<unsigned int, edm::EDGetToken>::iterator it =
_tokens.begin();
1062 edm::LogError(
"ExoticaValidation") <<
"HLTExoticaSubAnalysis::getHandlesToObjects "
1063 <<
" NOT IMPLEMENTED (yet) ERROR: '" << it->first <<
"'";
1074 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::bookHist()";
1076 sourceUpper[0] = std::toupper(sourceUpper[0]);
1080 if (variable.find(
"SumEt") != std::string::npos) {
1083 float *
edges =
new float[nBins + 1];
1084 for (
size_t i = 0;
i < nBins + 1;
i++) {
1087 h =
new TH1F(name.c_str(), title.c_str(), nBins,
edges);
1091 else if (variable.find(
"Dxy") != std::string::npos) {
1096 h =
new TH1F(name.c_str(), title.c_str(), nBins,
min,
max);
1099 else if (variable.find(
"MaxPt") != std::string::npos) {
1100 std::string desc = (variable ==
"MaxPt1") ?
"Leading" :
"Next-to-Leading";
1103 float *
edges =
new float[nBins + 1];
1104 for (
size_t i = 0;
i < nBins + 1;
i++) {
1107 h =
new TH1F(name.c_str(), title.c_str(), nBins,
edges);
1112 std::string symbol = (variable ==
"Eta") ?
"#eta" :
"#phi";
1115 int nBins = (int)params[0];
1116 double min = params[1];
1117 double max = params[2];
1118 h =
new TH1F(name.c_str(), title.c_str(), nBins,
min,
max);
1133 const float &
value)
1136 sourceUpper[0] = toupper(sourceUpper[0]);
1139 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::fillHist() " << name <<
" " <<
value;
1141 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::fillHist() " << name <<
" worked";
1148 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::initSelector()";
1189 std::map<int,double> & theSumEt,
std::map<
int,std::vector<const reco::Track*> > & trkObjs )
1192 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::insertCandidates()";
1194 theSumEt[objType] = -1;
1197 for (
size_t i = 0;
i < cols->
muons->size();
i++) {
1198 LogDebug(
"ExoticaValidation") <<
"Inserting muon " <<
i ;
1201 matches->push_back(
m);
1204 trkObjs[objType].push_back(cols->
muons->at(
i).bestTrack());
1208 for (
size_t i = 0;
i < cols->
tracks->size();
i++) {
1209 LogDebug(
"ExoticaValidation") <<
"Inserting muonTrack " <<
i ;
1211 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>> mom4;
1213 mom4.SetXYZT(mom3.x(),mom3.y(),mom3.z(),mom3.r());
1215 matches->push_back(
m);
1219 for (
size_t i = 0;
i < cols->
tracks->size();
i++) {
1220 LogDebug(
"ExoticaValidation") <<
"Inserting Track " <<
i ;
1222 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>> mom4;
1224 mom4.SetXYZT(mom3.x(),mom3.y(),mom3.z(),mom3.r());
1226 matches->push_back(
m);
1231 LogDebug(
"ExoticaValidation") <<
"Inserting electron " <<
i ;
1234 matches->push_back(
m);
1237 trkObjs[objType].push_back(cols->
electrons->at(
i).bestTrack());
1241 for (
size_t i = 0;
i < cols->
photons->size();
i++) {
1242 LogDebug(
"ExoticaValidation") <<
"Inserting photon " <<
i ;
1245 matches->push_back(
m);
1252 for (
size_t i = 0;
i < cols->
pfMETs->size();
i++) {
1253 LogDebug(
"ExoticaValidation") <<
"Inserting PFMET " <<
i ;
1256 matches->push_back(
m);
1257 if(
i==0) theSumEt[objType] = cols->
pfMETs->at(
i).sumEt();
1261 for (
size_t i = 0;
i < cols->
pfMHTs->size();
i++) {
1262 LogDebug(
"ExoticaValidation") <<
"Inserting PFMHT " <<
i ;
1265 matches->push_back(
m);
1266 if(
i==0) theSumEt[objType] = cols->
pfMHTs->at(
i).sumEt();
1270 for (
size_t i = 0;
i < cols->
genMETs->size();
i++) {
1271 LogDebug(
"ExoticaValidation") <<
"Inserting GENMET " <<
i ;
1274 matches->push_back(
m);
1275 if(
i==0) theSumEt[objType] = cols->
genMETs->at(
i).sumEt();
1279 for (
size_t i = 0;
i < cols->
caloMETs->size();
i++) {
1280 LogDebug(
"ExoticaValidation") <<
"Inserting CALOMET " <<
i ;
1283 matches->push_back(
m);
1284 if(
i==0) theSumEt[objType] = cols->
caloMETs->at(
i).sumEt();
1288 for (
size_t i = 0;
i < cols->
caloMHTs->size();
i++) {
1289 LogDebug(
"ExoticaValidation") <<
"Inserting CaloMHT " <<
i ;
1292 matches->push_back(
m);
1293 if(
i==0) theSumEt[objType] = cols->
caloMHTs->at(
i).sumEt();
1297 for (
size_t i = 0;
i < cols->
l1METs->size();
i++) {
1298 LogDebug(
"ExoticaValidation") <<
"Inserting L1MET " <<
i ;
1301 matches->push_back(
m);
1302 if(
i==0) theSumEt[objType] = cols->
l1METs->at(
i).etTotal();
1306 for (
size_t i = 0;
i < cols->
pfTaus->size();
i++) {
1307 LogDebug(
"ExoticaValidation") <<
"Inserting PFtau " <<
i ;
1310 matches->push_back(
m);
1314 for (
size_t i = 0;
i < cols->
pfJets->size();
i++) {
1315 LogDebug(
"ExoticaValidation") <<
"Inserting jet " <<
i ;
1318 matches->push_back(
m);
1322 for (
size_t i = 0;
i < cols->
caloJets->size();
i++) {
1323 LogDebug(
"ExoticaValidation") <<
"Inserting jet " <<
i ;
1326 matches->push_back(
m);
1339 std::stringstream
log;
1341 log <<
"===========================================================================" << std::endl;
1342 log <<
" Trigger Results ( " <<
_analysisname <<
" ) " << std::endl;
1343 log <<
"===========================================================================" << std::endl;
1344 log << std::setw(18) <<
"# of passed events : HLT path names" << std::endl;
1345 log <<
"-------------------:-------------------------------------------------------" << std::endl;
1346 for (std::map<std::string,int>::iterator it =
_triggerCounter.begin();
1348 log << std::setw(18) << it->second <<
" : " << it->first << std::endl;
1350 log <<
"===========================================================================" << std::endl;
1351 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
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) 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
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
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)
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
virtual const Point & vertex() const =0
vertex position
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
~HLTExoticaSubAnalysis()
End Constructor.
Container::value_type value_type
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.
const Point & position() const
position
void initSelector(const unsigned int &objtype)
Initializes the selectors of the objects based on which object it is.
volatile std::atomic< bool > shutdown_flag false
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
tuple size
Write out results.
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
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector