1 #ifndef HLTRIGGEROFFLINE_EXOTICA_EVTCOLCONTAINER_CC 2 #define HLTRIGGEROFFLINE_EXOTICA_EVTCOLCONTAINER_CC 70 const std::vector<reco::Muon> *
muons;
71 const std::vector<reco::Track> *
tracks;
74 const std::vector<reco::MET> *
METs;
75 const std::vector<reco::PFMET> *
pfMETs;
76 const std::vector<reco::PFMET> *
pfMHTs;
80 const std::vector<l1extra::L1EtMissParticle> *
l1METs;
81 const std::vector<reco::PFTau> *
pfTaus;
82 const std::vector<reco::PFJet> *
pfJets;
108 bool isAllInit() {
return (nInitialized == nOfCollections); }
115 genParticles =
nullptr;
130 triggerResults =
nullptr;
193 const unsigned int getSize(
const unsigned int &objtype)
const {
194 unsigned int size = 0;
196 size = muons->size();
198 size = tracks->size();
200 size = tracks->size();
202 size = electrons->size();
204 size = photons->size();
208 size = pfMETs->size();
210 size = pfMHTs->size();
212 size = genMETs->size();
214 size = caloMETs->size();
216 size = caloMHTs->size();
218 size = l1METs->size();
220 size = pfTaus->size();
222 size = pfJets->size();
224 size = caloJets->size();
237 objTypestr =
"refittedStandAloneMuons";
239 objTypestr =
"Track";
243 objTypestr =
"Photon";
247 objTypestr =
"PFMET";
249 objTypestr =
"PFMHT";
251 objTypestr =
"GenMET";
253 objTypestr =
"CaloMET";
255 objTypestr =
"CaloMHT";
257 objTypestr =
"l1MET";
259 objTypestr =
"PFTau";
261 objTypestr =
"PFJet";
263 objTypestr =
"CaloJet";
265 edm::LogError(
"ExoticaValidations") <<
"EVTColContainer::getTypeString, " 266 <<
"NOT Implemented error (object type id='" << objtype <<
"')" << std::endl;
const std::vector< reco::Muon > * muons
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
std::vector< PFTau > PFTauCollection
collection of PFTau objects
const std::vector< reco::CaloMET > * caloMETs
std::vector< reco::GenMET > GenMETCollection
collection of GenMET objects
std::vector< Track > TrackCollection
collection of Tracks
const std::vector< reco::MET > * METs
const std::vector< reco::CaloJet > * caloJets
const reco::GenParticleCollection * genParticles
container with all the objects needed
const unsigned int getSize(const unsigned int &objtype) const
Get size of collections.
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
void setPFMHT(const reco::PFMETCollection *v)
const std::vector< reco::PFMET > * pfMHTs
const std::vector< reco::GenMET > * genMETs
const reco::BeamSpot * bs
const std::vector< reco::PFJet > * pfJets
const std::vector< reco::Track > * tracks
const std::vector< reco::Photon > * photons
void reset()
Reset: clear all collections.
const std::vector< l1extra::L1EtMissParticle > * l1METs
std::vector< reco::CaloMET > CaloMETCollection
collection of CaloMET objects
std::vector< Photon > PhotonCollection
collectin of Photon objects
const std::vector< reco::GsfElectron > * electrons
std::vector< PFJet > PFJetCollection
collection of PFJet objects
std::vector< reco::PFMET > PFMETCollection
collection of PFMET objects
const std::vector< reco::CaloMET > * caloMHTs
const std::vector< reco::PFMET > * pfMETs
static const std::string getTypeString(const unsigned int &objtype)
Tranform types into strings.
const edm::TriggerResults * triggerResults
void setCaloMHT(const reco::CaloMETCollection *v)
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects
Computes the MET from a collection of PFCandidates. HF missing!