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),
56 _recPhotonSelector(0),
58 _recCaloJetSelector(0)
61 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::constructor()";
70 if (anpset.
exists(
"parametersTurnOn")) {
74 if (anpset.
exists(
"parametersEta")) {
78 if (anpset.
exists(
"parametersPhi")) {
82 if (anpset.
exists(
"parametersDxy")) {
86 if (anpset.
exists(
"parametersTurnOnSumEt")) {
90 if (anpset.
exists(
"dropPt2")) {
94 if (anpset.
exists(
"dropPt3")) {
108 for (std::map<unsigned int, edm::InputTag>::const_iterator it =
_recLabels.begin();
113 auto const genCutParam = objStr +
"_genCut_leading";
114 if (pset.
exists(genCutParam)) {
119 auto const recCutParam = objStr +
"_recCut_leading";
120 if (pset.
exists(recCutParam)) {
128 for (std::map<unsigned int, edm::InputTag>::const_iterator it =
_recLabels.begin();
132 auto const genCutParam = objStr +
"_genCut";
137 auto const recCutParam = objStr +
"_recCut";
205 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::subAnalysisBookHistos()";
212 for (std::map<unsigned int, edm::InputTag>::const_iterator it =
_recLabels.begin();
215 std::vector<std::string> sources(2);
219 for (
size_t i = 0;
i < sources.size();
i++) {
222 if ( source ==
"gen" ) {
223 if ( TString(objStr).Contains(
"MET") ||
224 TString(objStr).Contains(
"MHT") ||
225 TString(objStr).Contains(
"Jet") ) {
228 bookHist(iBooker, source, objStr,
"MaxPt1");
231 bookHist(iBooker, source, objStr,
"Eta");
232 bookHist(iBooker, source, objStr,
"Phi");
238 bookHist(iBooker, source, objStr,
"Dxy");
242 if ( TString(objStr).Contains(
"MET") ||
243 TString(objStr).Contains(
"MHT") ) {
244 bookHist(iBooker, source, objStr,
"MaxPt1");
245 bookHist(iBooker, source, objStr,
"SumEt");
247 bookHist(iBooker, source, objStr,
"MaxPt1");
250 bookHist(iBooker, source, objStr,
"Eta");
251 bookHist(iBooker, source, objStr,
"Phi");
257 bookHist(iBooker, source, objStr,
"Dxy");
267 for (std::vector<HLTExoticaPlotter>::iterator it =
_plotters.begin();
269 it->plotterBookHistos(iBooker, iRun, iSetup);
276 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::beginRun()";
282 bool changedConfig(
true);
284 edm::LogError(
"ExoticaValidation") <<
"HLTExoticaSubAnalysis::constructor(): "
285 <<
"Initialization of HLTConfigProvider failed!";
298 if (TString(thetriggername).Contains(pattern)) {
303 LogDebug(
"ExoticaValidation") <<
"--- TRIGGER PATH : " << thetriggername;
308 edm::LogWarning(
"ExoticaValidation") <<
"HLTExoticaSubAnalysis::constructor(): In "
317 <<
"\nHLT Trigger Paths found >>>";
318 for (std::set<std::string>::const_iterator
iter =
_hltPaths.begin();
320 LogTrace(
"ExoticaValidation") << (*iter) <<
"\n";
325 for (std::set<std::string>::iterator iPath =
_hltPaths.begin();
330 if (path.rfind(
"_v") < path.length()) {
331 shortpath = path.substr(0, path.rfind(
"_v"));
339 std::vector<unsigned int> objsNeedHLT;
340 for (std::map<unsigned int, edm::InputTag>::iterator it =
_recLabels.begin() ;
342 objsNeedHLT.push_back(it->first);
367 LogTrace(
"ExoticaValidation") <<
" --- " << shortpath;
382 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::analyze()";
403 std::vector<reco::LeafCandidate> matchesGen; matchesGen.clear();
404 std::vector<reco::LeafCandidate> matchesReco; matchesReco.clear();
405 std::map<int , double> theSumEt;
406 std::map<int, std::vector<const reco::Track*> > trkObjs;
413 for (std::map<unsigned int, edm::InputTag>::iterator it =
_recLabels.begin();
428 if ( TString(objTypeStr).Contains(
"MET") ||
429 TString(objTypeStr).Contains(
"MHT") ||
430 TString(objTypeStr).Contains(
"Jet") )
continue;
444 matchesGen.push_back(
v);
459 if(
verbose>0)
LogDebug(
"ExoticaValidation") <<
"-- enter loop over recLabels" ;
460 for (std::map<unsigned int, edm::InputTag>::iterator it =
_recLabels.begin();
470 <<
" sumEt=" << theSumEt[it->first] ;
481 for (std::vector<HLTExoticaPlotter>::iterator an =
_plotters.begin(); an !=
_plotters.end(); ++an) {
511 std::map<unsigned int, int> countobjects;
512 for (std::map<unsigned int, edm::InputTag>::iterator co =
_recLabels.begin();
515 countobjects.insert(std::pair<unsigned int, int>(co->first, 0));
521 int totalobjectssize = 1;
524 totalobjectssize *= countobjects.size();
527 bool isPassedLeadingCut =
true;
529 for (
size_t j = 0;
j != matchesGen.size(); ++
j) {
530 const unsigned int objType = matchesGen[
j].pdgId();
533 if ( !
select( matchesGen[
j] ) ) {
534 isPassedLeadingCut =
false;
540 std::vector<float> dxys; dxys.clear();
542 for (
size_t j = 0; (
j != matchesGen.size() ) && isPassedLeadingCut; ++
j) {
543 const unsigned int objType = matchesGen[
j].pdgId();
547 float pt = matchesGen[
j].pt();
549 if (countobjects[objType] == 0) {
550 this->
fillHist(
"gen", objTypeStr,
"MaxPt1", pt);
551 ++(countobjects[objType]);
554 else if (countobjects[objType] == 1 && !
_drop_pt2) {
555 this->
fillHist(
"gen", objTypeStr,
"MaxPt2", pt);
556 ++(countobjects[objType]);
559 else if (countobjects[objType] == 2 && !
_drop_pt3) {
560 this->
fillHist(
"gen", objTypeStr,
"MaxPt3", pt);
561 ++(countobjects[objType]);
566 if (counttotal == totalobjectssize) {
567 size_t max_size = matchesGen.size();
568 for (
size_t jj =
j;
jj < max_size;
jj++ ) {
569 matchesGen.erase(matchesGen.end());
575 float eta = matchesGen[
j].eta();
576 float phi = matchesGen[
j].phi();
578 this->
fillHist(
"gen", objTypeStr,
"Eta", eta);
579 this->
fillHist(
"gen", objTypeStr,
"Phi", phi);
586 float momphi = matchesGen[
j].momentum().phi();
587 float dxyGen = (-(vtx.x()-cols->
bs->
x0())*
sin(momphi)+(vtx.y()-cols->
bs->
y0())*
cos(momphi));
588 dxys.push_back(dxyGen);
589 this->
fillHist(
"gen", objTypeStr,
"Dxy", dxyGen);
596 for (std::vector<HLTExoticaPlotter>::iterator an =
_plotters.begin(); an !=
_plotters.end(); ++an) {
599 LogDebug(
"ExoticaValidation") <<
" preparing to call the plotters analysis";
600 an->analyze(ispassTrigger,
"gen", matchesGen, theSumEt, dxys);
601 LogDebug(
"ExoticaValidation") <<
" called the plotter";
623 std::map<unsigned int, int> countobjects;
624 for (std::map<unsigned int, edm::InputTag>::iterator co =
_recLabels.begin();
626 countobjects.insert(std::pair<unsigned int, int>(co->first, 0));
632 int totalobjectssize = 1;
635 totalobjectssize *= countobjects.size();
640 std::vector<float> dxys; dxys.clear();
642 bool isPassedLeadingCut =
true;
644 for (
size_t j = 0;
j != matchesReco.size(); ++
j) {
645 const unsigned int objType = matchesReco[
j].pdgId();
648 if ( !
select( matchesReco[
j] ) ) {
649 isPassedLeadingCut =
false;
655 for (
size_t j = 0; (
j != matchesReco.size() ) && isPassedLeadingCut; ++
j) {
656 const unsigned int objType = matchesReco[
j].pdgId();
660 float pt = matchesReco[
j].pt();
662 if (countobjects[objType] == 0) {
663 this->
fillHist(
"rec", objTypeStr,
"MaxPt1", pt);
664 ++(countobjects[objType]);
667 else if (countobjects[objType] == 1 && !
_drop_pt2) {
668 if( ! ( TString(objTypeStr).Contains(
"MET") || TString(objTypeStr).Contains(
"MHT") ) ) {
669 this->
fillHist(
"rec", objTypeStr,
"MaxPt2", pt);
671 ++(countobjects[objType]);
674 else if (countobjects[objType] == 2 && !
_drop_pt3) {
675 if( ! ( TString(objTypeStr).Contains(
"MET") || TString(objTypeStr).Contains(
"MHT") ) ) {
676 this->
fillHist(
"rec", objTypeStr,
"MaxPt3", pt);
678 ++(countobjects[objType]);
683 if (counttotal == totalobjectssize) {
684 size_t max_size = matchesReco.size();
685 for (
size_t jj =
j;
jj < max_size;
jj++ ) {
686 matchesReco.erase(matchesReco.end());
692 float eta = matchesReco[
j].eta();
693 float phi = matchesReco[
j].phi();
695 if ( !( TString(objTypeStr).Contains(
"MET") || TString(objTypeStr).Contains(
"MHT") ) ) {
696 this->
fillHist(
"rec", objTypeStr,
"Eta", eta);
697 this->
fillHist(
"rec", objTypeStr,
"Phi", phi);
700 this->
fillHist(
"rec", objTypeStr,
"SumEt", theSumEt[objType]);
703 if (trkObjs[objType].
size()>=
j+1) {
704 float dxyRec = trkObjs[objType].at(
j)->dxy(cols->
bs->
position());
705 this->
fillHist(
"rec", objTypeStr,
"Dxy", dxyRec);
706 dxys.push_back(dxyRec);
716 for (std::vector<HLTExoticaPlotter>::iterator an =
_plotters.begin(); an !=
_plotters.end(); ++an) {
719 LogDebug(
"ExoticaValidation") <<
" preparing to call the plotters analysis";
720 an->analyze(ispassTrigger,
"rec", matchesReco, theSumEt, dxys);
721 LogDebug(
"ExoticaValidation") <<
" called the plotter";
731 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::getObjectsType()";
733 static const unsigned int objSize = 14;
734 static const unsigned int objtriggernames[] = {
751 std::set<unsigned int> objsType;
753 for (
unsigned int i = 0;
i < objSize; ++
i) {
757 if (! TString(hltPath).Contains(objTypeStr)) {
761 objsType.insert(objtriggernames[i]);
764 return std::vector<unsigned int>(objsType.begin(), objsType.end());
770 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::getNamesOfObjects()";
772 if (anpset.
exists(
"recMuonLabel")) {
776 if (anpset.
exists(
"recMuonTrkLabel")) {
780 if (anpset.
exists(
"recTrackLabel")) {
784 if (anpset.
exists(
"recElecLabel")) {
788 if (anpset.
exists(
"recPhotonLabel")) {
792 if (anpset.
exists(
"recMETLabel")) {
796 if (anpset.
exists(
"recPFMETLabel")) {
800 if (anpset.
exists(
"recPFMHTLabel")) {
804 if (anpset.
exists(
"genMETLabel")) {
808 if (anpset.
exists(
"recCaloMETLabel")) {
812 if (anpset.
exists(
"hltMETLabel")) {
816 if (anpset.
exists(
"l1METLabel")) {
820 if (anpset.
exists(
"recPFTauLabel")) {
824 if (anpset.
exists(
"recPFJetLabel")) {
828 if (anpset.
exists(
"recCaloJetLabel")) {
834 edm::LogError(
"ExoticaValidation") <<
"HLTExoticaSubAnalysis::getNamesOfObjects, "
835 <<
"Not included any object (recMuonLabel, recElecLabel, ...) "
859 for (std::map<unsigned int, edm::InputTag>::iterator it =
_recLabels.begin();
932 edm::LogError(
"ExoticaValidation") <<
"HLTExoticaSubAnalysis::registerConsumes"
933 <<
" NOT IMPLEMENTED (yet) ERROR: '" << it->second.label() <<
"'";
942 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::getHandlesToObjects()";
950 LogDebug(
"ExoticaValidation") <<
"Added handle to triggerResults";
958 LogDebug(
"ExoticaValidation") <<
"Added handle to genParticles";
970 LogDebug(
"ExoticaValidation") <<
"We have got " <<
_tokens.size() <<
"tokens";
971 for (std::map<unsigned int, edm::EDGetToken>::iterator it =
_tokens.begin();
1044 edm::LogError(
"ExoticaValidation") <<
"HLTExoticaSubAnalysis::getHandlesToObjects "
1045 <<
" NOT IMPLEMENTED (yet) ERROR: '" << it->first <<
"'";
1056 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::bookHist()";
1058 sourceUpper[0] = std::toupper(sourceUpper[0]);
1062 if (variable.find(
"SumEt") != std::string::npos) {
1065 float *
edges =
new float[nBins + 1];
1066 for (
size_t i = 0;
i < nBins + 1;
i++) {
1069 h =
new TH1F(name.c_str(), title.c_str(), nBins,
edges);
1073 else if (variable.find(
"Dxy") != std::string::npos) {
1078 h =
new TH1F(name.c_str(), title.c_str(), nBins,
min,
max);
1081 else if (variable.find(
"MaxPt") != std::string::npos) {
1082 std::string desc = (variable ==
"MaxPt1") ?
"Leading" :
"Next-to-Leading";
1085 float *
edges =
new float[nBins + 1];
1086 for (
size_t i = 0;
i < nBins + 1;
i++) {
1089 h =
new TH1F(name.c_str(), title.c_str(), nBins,
edges);
1094 std::string symbol = (variable ==
"Eta") ?
"#eta" :
"#phi";
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);
1115 const float &
value)
1118 sourceUpper[0] = toupper(sourceUpper[0]);
1121 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::fillHist() " << name <<
" " <<
value;
1123 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::fillHist() " << name <<
" worked";
1130 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::initSelector()";
1169 std::map<int,double> & theSumEt,
std::map<
int,std::vector<const reco::Track*> > & trkObjs )
1172 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::insertCandidates()";
1174 theSumEt[objType] = -1;
1177 for (
size_t i = 0;
i < cols->
muons->size();
i++) {
1178 LogDebug(
"ExoticaValidation") <<
"Inserting muon " <<
i ;
1181 matches->push_back(
m);
1184 trkObjs[objType].push_back(cols->
muons->at(
i).bestTrack());
1188 for (
size_t i = 0;
i < cols->
tracks->size();
i++) {
1189 LogDebug(
"ExoticaValidation") <<
"Inserting muonTrack " <<
i ;
1191 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>> mom4;
1193 mom4.SetXYZT(mom3.x(),mom3.y(),mom3.z(),mom3.r());
1195 matches->push_back(
m);
1199 for (
size_t i = 0;
i < cols->
tracks->size();
i++) {
1200 LogDebug(
"ExoticaValidation") <<
"Inserting Track " <<
i ;
1202 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>> mom4;
1204 mom4.SetXYZT(mom3.x(),mom3.y(),mom3.z(),mom3.r());
1206 matches->push_back(
m);
1211 LogDebug(
"ExoticaValidation") <<
"Inserting electron " <<
i ;
1214 matches->push_back(
m);
1217 trkObjs[objType].push_back(cols->
electrons->at(
i).bestTrack());
1221 for (
size_t i = 0;
i < cols->
photons->size();
i++) {
1222 LogDebug(
"ExoticaValidation") <<
"Inserting photon " <<
i ;
1225 matches->push_back(
m);
1232 for (
size_t i = 0;
i < cols->
pfMETs->size();
i++) {
1233 LogDebug(
"ExoticaValidation") <<
"Inserting PFMET " <<
i ;
1236 matches->push_back(
m);
1237 if(
i==0) theSumEt[objType] = cols->
pfMETs->at(
i).sumEt();
1241 for (
size_t i = 0;
i < cols->
pfMHTs->size();
i++) {
1242 LogDebug(
"ExoticaValidation") <<
"Inserting PFMHT " <<
i ;
1245 matches->push_back(
m);
1246 if(
i==0) theSumEt[objType] = cols->
pfMHTs->at(
i).sumEt();
1250 for (
size_t i = 0;
i < cols->
genMETs->size();
i++) {
1251 LogDebug(
"ExoticaValidation") <<
"Inserting GENMET " <<
i ;
1254 matches->push_back(
m);
1255 if(
i==0) theSumEt[objType] = cols->
genMETs->at(
i).sumEt();
1259 for (
size_t i = 0;
i < cols->
caloMETs->size();
i++) {
1260 LogDebug(
"ExoticaValidation") <<
"Inserting CALOMET " <<
i ;
1263 matches->push_back(
m);
1264 if(
i==0) theSumEt[objType] = cols->
caloMETs->at(
i).sumEt();
1268 for (
size_t i = 0;
i < cols->
l1METs->size();
i++) {
1269 LogDebug(
"ExoticaValidation") <<
"Inserting L1MET " <<
i ;
1272 matches->push_back(
m);
1273 if(
i==0) theSumEt[objType] = cols->
l1METs->at(
i).etTotal();
1277 for (
size_t i = 0;
i < cols->
pfTaus->size();
i++) {
1278 LogDebug(
"ExoticaValidation") <<
"Inserting PFtau " <<
i ;
1281 matches->push_back(
m);
1285 for (
size_t i = 0;
i < cols->
pfJets->size();
i++) {
1286 LogDebug(
"ExoticaValidation") <<
"Inserting jet " <<
i ;
1289 matches->push_back(
m);
1293 for (
size_t i = 0;
i < cols->
caloJets->size();
i++) {
1294 LogDebug(
"ExoticaValidation") <<
"Inserting jet " <<
i ;
1297 matches->push_back(
m);
1310 std::stringstream
log;
1312 log <<
"===========================================================================" << std::endl;
1313 log <<
" Trigger Results ( " <<
_analysisname <<
" ) " << std::endl;
1314 log <<
"===========================================================================" << std::endl;
1315 log << std::setw(18) <<
"# of passed events : HLT path names" << std::endl;
1316 log <<
"-------------------:-------------------------------------------------------" << std::endl;
1317 for (std::map<std::string,int>::iterator it =
_triggerCounter.begin();
1319 log << std::setw(18) << it->second <<
" : " << it->first << std::endl;
1321 log <<
"===========================================================================" << std::endl;
1322 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
tuple path
else: Piece not in the list, fine.
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.
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
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 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