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")),
44 _recMuonTrkSelector(0),
51 _recCaloMETSelector(0),
54 _recPhotonSelector(0),
56 _recCaloJetSelector(0)
59 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::constructor()";
68 if (anpset.
exists(
"parametersTurnOn")) {
72 if (anpset.
exists(
"parametersEta")) {
76 if (anpset.
exists(
"parametersPhi")) {
80 if (anpset.
exists(
"parametersDxy")) {
84 if (anpset.
exists(
"parametersTurnOnSumEt")) {
98 for (std::map<unsigned int, edm::InputTag>::const_iterator it =
_recLabels.begin();
103 auto const genCutParam = objStr +
"_genCut_leading";
104 if (pset.
exists(genCutParam)) {
109 auto const recCutParam = objStr +
"_recCut_leading";
110 if (pset.
exists(recCutParam)) {
118 for (std::map<unsigned int, edm::InputTag>::const_iterator it =
_recLabels.begin();
122 auto const genCutParam = objStr +
"_genCut";
127 auto const recCutParam = objStr +
"_recCut";
195 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::subAnalysisBookHistos()";
202 for (std::map<unsigned int, edm::InputTag>::const_iterator it =
_recLabels.begin();
205 std::vector<std::string> sources(2);
209 for (
size_t i = 0;
i < sources.size();
i++) {
212 if ( source ==
"gen" ) {
213 if ( TString(objStr).Contains(
"MET") ||
214 TString(objStr).Contains(
"MHT") ||
215 TString(objStr).Contains(
"Jet") ) {
218 bookHist(iBooker, source, objStr,
"MaxPt1");
219 bookHist(iBooker, source, objStr,
"MaxPt2");
220 bookHist(iBooker, source, objStr,
"MaxPt3");
221 bookHist(iBooker, source, objStr,
"Eta");
222 bookHist(iBooker, source, objStr,
"Phi");
228 bookHist(iBooker, source, objStr,
"Dxy");
232 if ( TString(objStr).Contains(
"MET") ||
233 TString(objStr).Contains(
"MHT") ) {
234 bookHist(iBooker, source, objStr,
"MaxPt1");
235 bookHist(iBooker, source, objStr,
"SumEt");
237 bookHist(iBooker, source, objStr,
"MaxPt1");
238 bookHist(iBooker, source, objStr,
"MaxPt2");
239 bookHist(iBooker, source, objStr,
"MaxPt3");
240 bookHist(iBooker, source, objStr,
"Eta");
241 bookHist(iBooker, source, objStr,
"Phi");
247 bookHist(iBooker, source, objStr,
"Dxy");
257 for (std::vector<HLTExoticaPlotter>::iterator it =
_plotters.begin();
259 it->plotterBookHistos(iBooker, iRun, iSetup);
266 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::beginRun()";
272 bool changedConfig(
true);
274 edm::LogError(
"ExoticaValidation") <<
"HLTExoticaSubAnalysis::constructor(): "
275 <<
"Initialization of HLTConfigProvider failed!";
288 if (TString(thetriggername).Contains(pattern)) {
293 std::cout <<
"--- TRIGGER PATH : " << thetriggername << std::endl;
298 edm::LogWarning(
"ExoticaValidation") <<
"HLTExoticaSubAnalysis::constructor(): In "
307 <<
"\nHLT Trigger Paths found >>>";
308 for (std::set<std::string>::const_iterator
iter =
_hltPaths.begin();
310 LogTrace(
"ExoticaValidation") << (*iter) <<
"\n";
315 for (std::set<std::string>::iterator iPath =
_hltPaths.begin();
320 if (path.rfind(
"_v") < path.length()) {
321 shortpath = path.substr(0, path.rfind(
"_v"));
329 std::vector<unsigned int> objsNeedHLT;
330 for (std::map<unsigned int, edm::InputTag>::iterator it =
_recLabels.begin() ;
332 objsNeedHLT.push_back(it->first);
357 LogTrace(
"ExoticaValidation") <<
" --- " << shortpath;
370 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::analyze()";
392 std::vector<reco::LeafCandidate> matchesGen; matchesGen.clear();
393 std::vector<reco::LeafCandidate> matchesReco; matchesReco.clear();
394 std::map<int , double> theSumEt;
395 std::map<int, std::vector<const reco::Track*> > trkObjs;
402 for (std::map<unsigned int, edm::InputTag>::iterator it =
_recLabels.begin();
417 if ( TString(objTypeStr).Contains(
"MET") ||
418 TString(objTypeStr).Contains(
"MHT") ||
419 TString(objTypeStr).Contains(
"Jet") )
continue;
433 matchesGen.push_back(
v);
449 for (std::map<unsigned int, edm::InputTag>::iterator it =
_recLabels.begin();
459 <<
" sumEt=" << theSumEt[it->first] << std::endl;
481 if(
verbose>2)
std::cerr <<
"### matchesGen.size() = " << matchesGen.size() << std::endl;
494 std::map<unsigned int, int> countobjects;
495 for (std::map<unsigned int, edm::InputTag>::iterator co =
_recLabels.begin();
498 countobjects.insert(std::pair<unsigned int, int>(co->first, 0));
504 int totalobjectssize3 = 3 * countobjects.size();
507 bool isPassedLeadingCut =
true;
509 for (
size_t j = 0;
j != matchesGen.size(); ++
j) {
510 const unsigned int objType = matchesGen[
j].pdgId();
513 if ( !
select( matchesGen[
j] ) ) {
514 isPassedLeadingCut =
false;
520 std::vector<float> dxys; dxys.clear();
522 for (
size_t j = 0; (
j != matchesGen.size() ) && isPassedLeadingCut; ++
j) {
523 const unsigned int objType = matchesGen[
j].pdgId();
527 float pt = matchesGen[
j].pt();
529 if (countobjects[objType] == 0) {
530 this->
fillHist(
"gen", objTypeStr,
"MaxPt1", pt);
531 ++(countobjects[objType]);
534 else if (countobjects[objType] == 1) {
535 this->
fillHist(
"gen", objTypeStr,
"MaxPt2", pt);
536 ++(countobjects[objType]);
539 else if (countobjects[objType] == 2) {
540 this->
fillHist(
"gen", objTypeStr,
"MaxPt3", pt);
541 ++(countobjects[objType]);
546 if (counttotal == totalobjectssize3) {
547 size_t max_size = matchesGen.size();
548 for (
size_t jj =
j;
jj < max_size;
jj++ ) {
549 matchesGen.erase(matchesGen.end());
555 float eta = matchesGen[
j].eta();
556 float phi = matchesGen[
j].phi();
558 this->
fillHist(
"gen", objTypeStr,
"Eta", eta);
559 this->
fillHist(
"gen", objTypeStr,
"Phi", phi);
566 float momphi = matchesGen[
j].momentum().phi();
567 float dxyGen = (-(vtx.x()-cols->
bs->
x0())*
sin(momphi)+(vtx.y()-cols->
bs->
y0())*
cos(momphi));
568 dxys.push_back(dxyGen);
569 this->
fillHist(
"gen", objTypeStr,
"Dxy", dxyGen);
576 for (std::vector<HLTExoticaPlotter>::iterator an =
_plotters.begin(); an !=
_plotters.end(); ++an) {
579 LogDebug(
"ExoticaValidation") <<
" preparing to call the plotters analysis";
580 an->analyze(ispassTrigger,
"gen", matchesGen, theSumEt, dxys);
581 LogDebug(
"ExoticaValidation") <<
" called the plotter";
588 if(
verbose>2)
std::cerr <<
"### matchesReco.size() = " << matchesReco.size() << std::endl;
604 std::map<unsigned int, int> countobjects;
605 for (std::map<unsigned int, edm::InputTag>::iterator co =
_recLabels.begin();
607 countobjects.insert(std::pair<unsigned int, int>(co->first, 0));
613 int totalobjectssize3 = 3 * countobjects.size();
618 std::vector<float> dxys; dxys.clear();
620 bool isPassedLeadingCut =
true;
622 for (
size_t j = 0;
j != matchesReco.size(); ++
j) {
623 const unsigned int objType = matchesReco[
j].pdgId();
626 if ( !
select( matchesReco[
j] ) ) {
627 isPassedLeadingCut =
false;
633 for (
size_t j = 0; (
j != matchesReco.size() ) && isPassedLeadingCut; ++
j) {
634 const unsigned int objType = matchesReco[
j].pdgId();
638 float pt = matchesReco[
j].pt();
640 if (countobjects[objType] == 0) {
641 this->
fillHist(
"rec", objTypeStr,
"MaxPt1", pt);
642 ++(countobjects[objType]);
645 else if (countobjects[objType] == 1) {
646 if( ! ( TString(objTypeStr).Contains(
"MET") || TString(objTypeStr).Contains(
"MHT") ) ) {
647 this->
fillHist(
"rec", objTypeStr,
"MaxPt2", pt);
649 ++(countobjects[objType]);
652 else if (countobjects[objType] == 2) {
653 if( ! ( TString(objTypeStr).Contains(
"MET") || TString(objTypeStr).Contains(
"MHT") ) ) {
654 this->
fillHist(
"rec", objTypeStr,
"MaxPt3", pt);
656 ++(countobjects[objType]);
661 if (counttotal == totalobjectssize3) {
662 size_t max_size = matchesReco.size();
663 for (
size_t jj =
j;
jj < max_size;
jj++ ) {
664 matchesReco.erase(matchesReco.end());
670 float eta = matchesReco[
j].eta();
671 float phi = matchesReco[
j].phi();
673 if ( !( TString(objTypeStr).Contains(
"MET") || TString(objTypeStr).Contains(
"MHT") ) ) {
674 this->
fillHist(
"rec", objTypeStr,
"Eta", eta);
675 this->
fillHist(
"rec", objTypeStr,
"Phi", phi);
678 this->
fillHist(
"rec", objTypeStr,
"SumEt", theSumEt[objType]);
681 if (trkObjs[objType].
size()>=
j+1) {
682 float dxyRec = trkObjs[objType].at(
j)->dxy(cols->
bs->
position());
683 this->
fillHist(
"rec", objTypeStr,
"Dxy", dxyRec);
684 dxys.push_back(dxyRec);
694 for (std::vector<HLTExoticaPlotter>::iterator an =
_plotters.begin(); an !=
_plotters.end(); ++an) {
697 LogDebug(
"ExoticaValidation") <<
" preparing to call the plotters analysis";
698 an->analyze(ispassTrigger,
"rec", matchesReco, theSumEt, dxys);
699 LogDebug(
"ExoticaValidation") <<
" called the plotter";
709 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::getObjectsType()";
711 static const unsigned int objSize = 14;
712 static const unsigned int objtriggernames[] = {
729 std::set<unsigned int> objsType;
731 for (
unsigned int i = 0;
i < objSize; ++
i) {
735 if (! TString(hltPath).Contains(objTypeStr)) {
739 objsType.insert(objtriggernames[i]);
742 return std::vector<unsigned int>(objsType.begin(), objsType.end());
748 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::getNamesOfObjects()";
750 if (anpset.
exists(
"recMuonLabel")) {
754 if (anpset.
exists(
"recMuonTrkLabel")) {
758 if (anpset.
exists(
"recTrackLabel")) {
762 if (anpset.
exists(
"recElecLabel")) {
766 if (anpset.
exists(
"recPhotonLabel")) {
770 if (anpset.
exists(
"recMETLabel")) {
774 if (anpset.
exists(
"recPFMETLabel")) {
778 if (anpset.
exists(
"recPFMHTLabel")) {
782 if (anpset.
exists(
"genMETLabel")) {
786 if (anpset.
exists(
"recCaloMETLabel")) {
790 if (anpset.
exists(
"hltMETLabel")) {
794 if (anpset.
exists(
"l1METLabel")) {
798 if (anpset.
exists(
"recPFTauLabel")) {
802 if (anpset.
exists(
"recPFJetLabel")) {
806 if (anpset.
exists(
"recCaloJetLabel")) {
812 edm::LogError(
"ExoticaValidation") <<
"HLTExoticaSubAnalysis::getNamesOfObjects, "
813 <<
"Not included any object (recMuonLabel, recElecLabel, ...) "
837 for (std::map<unsigned int, edm::InputTag>::iterator it =
_recLabels.begin();
910 edm::LogError(
"ExoticaValidation") <<
"HLTExoticaSubAnalysis::registerConsumes"
911 <<
" NOT IMPLEMENTED (yet) ERROR: '" << it->second.label() <<
"'";
920 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::getHandlesToObjects()";
928 LogDebug(
"ExoticaValidation") <<
"Added handle to triggerResults";
936 LogDebug(
"ExoticaValidation") <<
"Added handle to genParticles";
948 LogDebug(
"ExoticaValidation") <<
"We have got " <<
_tokens.size() <<
"tokens";
949 for (std::map<unsigned int, edm::EDGetToken>::iterator it =
_tokens.begin();
1022 edm::LogError(
"ExoticaValidation") <<
"HLTExoticaSubAnalysis::getHandlesToObjects "
1023 <<
" NOT IMPLEMENTED (yet) ERROR: '" << it->first <<
"'";
1034 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::bookHist()";
1036 sourceUpper[0] = std::toupper(sourceUpper[0]);
1040 if (variable.find(
"SumEt") != std::string::npos) {
1043 float *
edges =
new float[nBins + 1];
1044 for (
size_t i = 0;
i < nBins + 1;
i++) {
1047 h =
new TH1F(name.c_str(), title.c_str(), nBins,
edges);
1051 else if (variable.find(
"Dxy") != std::string::npos) {
1056 h =
new TH1F(name.c_str(), title.c_str(), nBins,
min,
max);
1059 else if (variable.find(
"MaxPt") != std::string::npos) {
1060 std::string desc = (variable ==
"MaxPt1") ?
"Leading" :
"Next-to-Leading";
1063 float *
edges =
new float[nBins + 1];
1064 for (
size_t i = 0;
i < nBins + 1;
i++) {
1067 h =
new TH1F(name.c_str(), title.c_str(), nBins,
edges);
1072 std::string symbol = (variable ==
"Eta") ?
"#eta" :
"#phi";
1075 int nBins = (int)params[0];
1076 double min = params[1];
1077 double max = params[2];
1078 h =
new TH1F(name.c_str(), title.c_str(), nBins,
min,
max);
1093 const float &
value)
1096 sourceUpper[0] = toupper(sourceUpper[0]);
1099 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::fillHist() " << name <<
" " <<
value;
1101 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::fillHist() " << name <<
" worked";
1108 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::initSelector()";
1147 std::map<int,double> & theSumEt,
std::map<
int,std::vector<const reco::Track*> > & trkObjs )
1150 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaSubAnalysis::insertCandidates()";
1152 theSumEt[objType] = -1;
1155 for (
size_t i = 0;
i < cols->
muons->size();
i++) {
1156 LogDebug(
"ExoticaValidation") <<
"Inserting muon " <<
i ;
1159 matches->push_back(
m);
1162 trkObjs[objType].push_back(cols->
muons->at(
i).bestTrack());
1166 for (
size_t i = 0;
i < cols->
tracks->size();
i++) {
1167 LogDebug(
"ExoticaValidation") <<
"Inserting muonTrack " <<
i ;
1169 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>> mom4;
1171 mom4.SetXYZT(mom3.x(),mom3.y(),mom3.z(),mom3.r());
1173 matches->push_back(
m);
1177 for (
size_t i = 0;
i < cols->
tracks->size();
i++) {
1178 LogDebug(
"ExoticaValidation") <<
"Inserting Track " <<
i ;
1180 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>> mom4;
1182 mom4.SetXYZT(mom3.x(),mom3.y(),mom3.z(),mom3.r());
1184 matches->push_back(
m);
1189 LogDebug(
"ExoticaValidation") <<
"Inserting electron " <<
i ;
1192 matches->push_back(
m);
1195 trkObjs[objType].push_back(cols->
electrons->at(
i).bestTrack());
1199 for (
size_t i = 0;
i < cols->
photons->size();
i++) {
1200 LogDebug(
"ExoticaValidation") <<
"Inserting photon " <<
i ;
1203 matches->push_back(
m);
1210 for (
size_t i = 0;
i < cols->
pfMETs->size();
i++) {
1211 LogDebug(
"ExoticaValidation") <<
"Inserting PFMET " <<
i ;
1214 matches->push_back(
m);
1215 if(
i==0) theSumEt[objType] = cols->
pfMETs->at(
i).sumEt();
1219 for (
size_t i = 0;
i < cols->
pfMHTs->size();
i++) {
1220 LogDebug(
"ExoticaValidation") <<
"Inserting PFMHT " <<
i ;
1223 matches->push_back(
m);
1224 if(
i==0) theSumEt[objType] = cols->
pfMHTs->at(
i).sumEt();
1228 for (
size_t i = 0;
i < cols->
genMETs->size();
i++) {
1229 LogDebug(
"ExoticaValidation") <<
"Inserting GENMET " <<
i ;
1232 matches->push_back(
m);
1233 if(
i==0) theSumEt[objType] = cols->
genMETs->at(
i).sumEt();
1237 for (
size_t i = 0;
i < cols->
caloMETs->size();
i++) {
1238 LogDebug(
"ExoticaValidation") <<
"Inserting CALOMET " <<
i ;
1241 matches->push_back(
m);
1242 if(
i==0) theSumEt[objType] = cols->
caloMETs->at(
i).sumEt();
1246 for (
size_t i = 0;
i < cols->
l1METs->size();
i++) {
1247 LogDebug(
"ExoticaValidation") <<
"Inserting L1MET " <<
i ;
1250 matches->push_back(
m);
1251 if(
i==0) theSumEt[objType] = cols->
l1METs->at(
i).etTotal();
1255 for (
size_t i = 0;
i < cols->
pfTaus->size();
i++) {
1256 LogDebug(
"ExoticaValidation") <<
"Inserting PFtau " <<
i ;
1259 matches->push_back(
m);
1263 for (
size_t i = 0;
i < cols->
pfJets->size();
i++) {
1264 LogDebug(
"ExoticaValidation") <<
"Inserting jet " <<
i ;
1267 matches->push_back(
m);
1271 for (
size_t i = 0;
i < cols->
caloJets->size();
i++) {
1272 LogDebug(
"ExoticaValidation") <<
"Inserting jet " <<
i ;
1275 matches->push_back(
m);
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
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)
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.
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.
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