1 #ifndef HLTReco_TriggerEventWithRefs_h
2 #define HLTReco_TriggerEventWithRefs_h
59 photons_(0),
electrons_(0),
muons_(0),
jets_(0),
composites_(0),
basemets_(0),
calomets_(0),
pixtracks_(0),
l1em_(0),
l1muon_(0),
l1jet_(0),
l1etmiss_(0),
l1hfrings_(0) {
63 size_type np,
size_type ne,
size_type nm,
size_type nj,
size_type nc,
size_type nB,
size_type nC,
size_type nt,
size_type l1em,
size_type l1muon,
size_type l1jet,
size_type l1etmiss,
size_type l1hfrings) :
65 photons_(np),
electrons_(ne),
muons_(nm),
jets_(nj),
composites_(nc),
basemets_(nB),
calomets_(nC),
pixtracks_(nt),
l1em_(l1em),
l1muon_(l1muon),
l1jet_(l1jet),
l1etmiss_(l1etmiss),
l1hfrings_(l1hfrings) { }
121 const std::string encodedFilterTag (filterTag.
encode());
134 return std::pair<size_type,size_type>(
begin,
end);
140 return std::pair<size_type,size_type>(
begin,
end);
146 return std::pair<size_type,size_type>(
begin,
end);
152 return std::pair<size_type,size_type>(
begin,
end);
158 return std::pair<size_type,size_type>(
begin,
end);
164 return std::pair<size_type,size_type>(
begin,
end);
170 return std::pair<size_type,size_type>(
begin,
end);
176 return std::pair<size_type,size_type>(
begin,
end);
182 return std::pair<size_type,size_type>(
begin,
end);
188 return std::pair<size_type,size_type>(
begin,
end);
194 return std::pair<size_type,size_type>(
begin,
end);
200 return std::pair<size_type,size_type>(
begin,
end);
206 return std::pair<size_type,size_type>(
begin,
end);
void getObjects(size_type filter, int id, VRelectron &electrons) const
void getObjects(size_type filter, Vids &ids, VRl1em &l1em) const
const Vids & muonIds() const
size_type addObjects(const Vids &ids, const VRphoton &refs)
void getObjects(Vids &ids, VRphoton &refs) const
various physics-level getters:
const VRjet & jetRefs() const
void getObjects(size_type filter, Vids &ids, VRl1jet &l1jet) const
std::vector< TriggerFilterObject > filterObjects_
the filters recorded here
const VRbasemet & basemetRefs() const
std::pair< size_type, size_type > compositeSlice(size_type filter) const
void addFilterObject(const edm::InputTag &filterTag, const TriggerFilterObjectWithRefs &tfowr)
setters - to build EDProduct
std::pair< size_type, size_type > l1etmissSlice(size_type filter) const
const VRcalomet & calometRefs() const
const Vids & compositeIds() const
TriggerEventWithRefs()
methods
std::vector< reco::METRef > VRbasemet
void getObjects(size_type filter, Vids &ids, VRbasemet &basemets) const
const std::string & usedProcessName() const
getters - for user access
const Vids & electronIds() const
void getObjects(size_type filter, Vids &ids, VRjet &jets) const
const edm::InputTag filterTag(size_type filterIndex) const
tag from index
const Vids & l1etmissIds() const
std::string usedProcessName_
data members
std::pair< size_type, size_type > calometSlice(size_type filter) const
const Vids & basemetIds() const
std::vector< l1extra::L1MuonParticleRef > VRl1muon
std::pair< size_type, size_type > jetSlice(size_type filter) const
U second(std::pair< T, U > const &p)
std::vector< l1extra::L1HFRingsRef > VRl1hfrings
void getObjects(size_type filter, int id, VRl1etmiss &l1etmiss) const
std::vector< reco::IsolatedPixelTrackCandidateRef > VRpixtrack
const Vids & l1muonIds() const
void getObjects(size_type filter, Vids &ids, VRmuon &muons) const
void getObjects(size_type filter, int id, VRbasemet &basemets) const
const VRl1muon & l1muonRefs() const
std::vector< l1extra::L1EtMissParticleRef > VRl1etmiss
std::pair< size_type, size_type > l1muonSlice(size_type filter) const
std::pair< size_type, size_type > muonSlice(size_type filter) const
void getObjects(size_type filter, int id, VRcalomet &calomets) const
const VRmuon & muonRefs() const
void getObjects(size_type filter, int id, VRl1em &l1em) const
void getObjects(size_type filter, Vids &ids, VRl1muon &l1muon) const
const VRcomposite & compositeRefs() const
TriggerFilterObject()
constructor
void getObjects(size_type filter, Vids &ids, VRcalomet &calomets) const
void getObjects(size_type filter, int id, VRl1hfrings &l1hfrings) const
const VRl1em & l1emRefs() const
std::pair< size_type, size_type > l1jetSlice(size_type filter) const
const Vids & l1hfringsIds() const
std::vector< l1extra::L1EmParticleRef > VRl1em
void getObjects(size_type filter, Vids &ids, VRcomposite &composites) const
const VRl1hfrings & l1hfringsRefs() const
void getObjects(size_type filter, int id, VRjet &jets) const
const Vids & l1jetIds() const
const Vids & pixtrackIds() const
size_type filterIndex(const edm::InputTag &filterTag) const
index from tag
void getObjects(size_type filter, int id, VRl1jet &l1jet) const
const VRl1jet & l1jetRefs() const
void getObjects(size_type filter, int id, VRpixtrack &pixtracks) const
const VRl1etmiss & l1etmissRefs() const
std::vector< reco::CaloJetRef > VRjet
tuple filter
USE THIS FOR SKIMMED TRACKS process.p = cms.Path(process.hltLevel1GTSeed*process.skimming*process.offlineBeamSpot*process.TrackRefitter2) OTHERWISE USE THIS.
void getObjects(size_type filter, Vids &ids, VRl1etmiss &l1etmiss) const
void getObjects(size_type filter, Vids &ids, VRl1hfrings &l1hfrings) const
void getObjects(size_type filter, Vids &ids, VRphoton &photons) const
extract Ref<C>s for a specific filter and of specific physics type
void getObjects(size_type filter, int id, VRmuon &muons) const
size_type size() const
number of filters
std::vector< reco::CompositeCandidateRef > VRcomposite
const VRphoton & photonRefs() const
std::vector< reco::RecoChargedCandidateRef > VRmuon
const Vids & calometIds() const
std::pair< size_type, size_type > photonSlice(size_type filter) const
slices of objects for a specific filter: [begin,end[
void getObjects(size_type filter, Vids &ids, VRelectron &electrons) const
std::pair< size_type, size_type > l1emSlice(size_type filter) const
TriggerFilterObject(const edm::InputTag &filterTag, size_type np, size_type ne, size_type nm, size_type nj, size_type nc, size_type nB, size_type nC, size_type nt, size_type l1em, size_type l1muon, size_type l1jet, size_type l1etmiss, size_type l1hfrings)
const VRelectron & electronRefs() const
void getObjects(size_type filter, int id, VRcomposite &composites) const
const Vids & photonIds() const
const Vids & l1emIds() const
TriggerEventWithRefs(const std::string &usedProcessName, size_type n)
std::pair< size_type, size_type > pixtrackSlice(size_type filter) const
const VRpixtrack & pixtrackRefs() const
void getObjects(size_type filter, Vids &ids, VRpixtrack &pixtracks) const
std::vector< reco::ElectronRef > VRelectron
std::pair< size_type, size_type > l1hfringsSlice(size_type filter) const
std::vector< reco::CaloMETRef > VRcalomet
Helper class: trigger objects firing a single filter.
const Vids & jetIds() const
std::vector< reco::RecoEcalCandidateRef > VRphoton
void getObjects(size_type filter, int id, VRphoton &photons) const
std::vector< l1extra::L1JetParticleRef > VRl1jet
void getObjects(size_type filter, int id, VRl1muon &l1muon) const
std::pair< size_type, size_type > basemetSlice(size_type filter) const
std::pair< size_type, size_type > electronSlice(size_type filter) const
std::string filterTag_
encoded InputTag of filter product