#include <TriggerSummaryProducerAOD.h>
Classes | |
struct | OrderInputTag |
InputTag ordering class. More... | |
Public Member Functions | |
virtual void | endJob () |
template<typename C > | |
void | fillFilterObjectMember (const int &, const int &, const edm::Ref< C > &) |
void | fillFilterObjectMember (const int &, const int &, const edm::Ref< l1extra::L1HFRingsCollection > &) |
void | fillFilterObjectMember (const int &, const int &, const edm::Ref< l1extra::L1EtMissParticleCollection > &) |
void | fillFilterObjectMember (const int &, const int &, const edm::Ref< reco::CaloMETCollection > &) |
void | fillFilterObjectMember (const int &, const int &, const edm::Ref< reco::METCollection > &) |
template<typename C > | |
void | fillFilterObjectMembers (const edm::Event &, const edm::InputTag &tag, const trigger::Vids &, const std::vector< edm::Ref< C > > &) |
template<typename T > | |
void | fillTriggerObject (const T &) |
void | fillTriggerObject (const l1extra::L1HFRings &) |
void | fillTriggerObject (const l1extra::L1EtMissParticle &) |
void | fillTriggerObject (const reco::CaloMET &) |
void | fillTriggerObject (const reco::MET &) |
template<typename C > | |
void | fillTriggerObjectCollections (const edm::Event &) |
virtual void | produce (edm::Event &, const edm::EventSetup &) |
TriggerSummaryProducerAOD (const edm::ParameterSet &) | |
~TriggerSummaryProducerAOD () | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
boost::function< void(const BranchDescription &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Private Types | |
typedef std::set < edm::InputTag, OrderInputTag > | InputTagSet |
Private Attributes | |
InputTagSet | collectionTagsEvent_ |
list of L3 collection tags More... | |
InputTagSet | collectionTagsGlobal_ |
InputTagSet | filterTagsEvent_ |
list of L3 filter tags More... | |
InputTagSet | filterTagsGlobal_ |
std::vector< edm::Handle < trigger::TriggerFilterObjectWithRefs > > | fobs_ |
handles to the filter objects More... | |
trigger::Vids | ids_ |
ids More... | |
trigger::Keys | keys_ |
keys More... | |
std::vector< bool > | maskFilters_ |
packing decision More... | |
std::map< edm::ProductID, unsigned int > | offset_ |
global map for indices into toc_: offset per input L3 collection More... | |
std::string | pn_ |
process name More... | |
edm::ProcessNameSelector | selector_ |
selector for getMany methods More... | |
std::vector< std::string > | tags_ |
edm::service::TriggerNamesService * | tns_ |
the pointer to the current TriggerNamesService More... | |
trigger::TriggerObjectCollection | toc_ |
trigger object collection More... | |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDProducer | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
template<class TProducer , class TMethod > | |
void | callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod) |
This class is an EDProducer making the HLT summary object for AOD
See header file for documentation
Definition at line 43 of file TriggerSummaryProducerAOD.h.
|
private |
Definition at line 101 of file TriggerSummaryProducerAOD.h.
|
explicit |
Definition at line 60 of file TriggerSummaryProducerAOD.cc.
References collectionTagsEvent_, collectionTagsGlobal_, filterTagsEvent_, filterTagsGlobal_, edm::service::TriggerNamesService::getProcessName(), LogDebug, cppFunctionSkipper::operator, pn_, selector_, and tns_.
TriggerSummaryProducerAOD::~TriggerSummaryProducerAOD | ( | ) |
Definition at line 106 of file TriggerSummaryProducerAOD.cc.
|
virtual |
Reimplemented from edm::EDProducer.
Definition at line 521 of file TriggerSummaryProducerAOD.cc.
References collectionTagsGlobal_, benchmark_cfg::fb, vdt::fe, and filterTagsGlobal_.
void TriggerSummaryProducerAOD::fillFilterObjectMember | ( | const int & | offset, |
const int & | id, | ||
const edm::Ref< C > & | ref | ||
) |
Definition at line 449 of file TriggerSummaryProducerAOD.cc.
References ids_, edm::Ref< C, T, F >::key(), and keys_.
Referenced by fillFilterObjectMembers().
void TriggerSummaryProducerAOD::fillFilterObjectMember | ( | const int & | offset, |
const int & | id, | ||
const edm::Ref< l1extra::L1HFRingsCollection > & | ref | ||
) |
Definition at line 457 of file TriggerSummaryProducerAOD.cc.
References ids_, edm::Ref< C, T, F >::key(), keys_, and trigger::TriggerL1HfBitCounts.
void TriggerSummaryProducerAOD::fillFilterObjectMember | ( | const int & | offset, |
const int & | id, | ||
const edm::Ref< l1extra::L1EtMissParticleCollection > & | ref | ||
) |
Definition at line 471 of file TriggerSummaryProducerAOD.cc.
References ids_, edm::Ref< C, T, F >::key(), keys_, trigger::TriggerL1ETT, and trigger::TriggerL1HTT.
void TriggerSummaryProducerAOD::fillFilterObjectMember | ( | const int & | offset, |
const int & | id, | ||
const edm::Ref< reco::CaloMETCollection > & | ref | ||
) |
Definition at line 485 of file TriggerSummaryProducerAOD.cc.
References ids_, edm::Ref< C, T, F >::key(), keys_, trigger::TriggerELongit, trigger::TriggerHLongit, trigger::TriggerMETSig, trigger::TriggerMHTSig, trigger::TriggerTET, and trigger::TriggerTHT.
void TriggerSummaryProducerAOD::fillFilterObjectMember | ( | const int & | offset, |
const int & | id, | ||
const edm::Ref< reco::METCollection > & | ref | ||
) |
Definition at line 503 of file TriggerSummaryProducerAOD.cc.
References ids_, edm::Ref< C, T, F >::key(), keys_, trigger::TriggerELongit, trigger::TriggerHLongit, trigger::TriggerMETSig, trigger::TriggerMHTSig, trigger::TriggerTET, and trigger::TriggerTHT.
void TriggerSummaryProducerAOD::fillFilterObjectMembers | ( | const edm::Event & | iEvent, |
const edm::InputTag & | tag, | ||
const trigger::Vids & | ids, | ||
const std::vector< edm::Ref< C > > & | refs | ||
) |
this routine takes a vector of Ref<C>s and determines the corresponding vector of keys (i.e., indices) into the TriggerObjectCollection
Definition at line 408 of file TriggerSummaryProducerAOD.cc.
References funct::C, edm::InputTag::encode(), fillFilterObjectMember(), edm::Event::getProvenance(), i, instance, diffTwoXMLs::label, min, edm::Provenance::moduleLabel(), n, mergeVDriftHistosByStation::name, offset_, evf::utils::pid, LaserDQM_cfg::process, edm::Provenance::processName(), edm::Provenance::productInstanceName(), and dt_dqm_sourceclient_common_cff::reco.
Referenced by produce().
void TriggerSummaryProducerAOD::fillTriggerObject | ( | const T & | object | ) |
Definition at line 337 of file TriggerSummaryProducerAOD.cc.
References toc_.
Referenced by fillTriggerObjectCollections().
void TriggerSummaryProducerAOD::fillTriggerObject | ( | const l1extra::L1HFRings & | object | ) |
Definition at line 345 of file TriggerSummaryProducerAOD.cc.
References toc_, trigger::TriggerL1HfBitCounts, and trigger::TriggerL1HfRingEtSums.
void TriggerSummaryProducerAOD::fillTriggerObject | ( | const l1extra::L1EtMissParticle & | object | ) |
Definition at line 364 of file TriggerSummaryProducerAOD.cc.
References toc_, trigger::TriggerL1ETT, and trigger::TriggerL1HTT.
void TriggerSummaryProducerAOD::fillTriggerObject | ( | const reco::CaloMET & | object | ) |
Definition at line 381 of file TriggerSummaryProducerAOD.cc.
References dt_dqm_sourceclient_common_cff::reco, toc_, trigger::TriggerELongit, trigger::TriggerMETSig, and trigger::TriggerTET.
void TriggerSummaryProducerAOD::fillTriggerObject | ( | const reco::MET & | object | ) |
Definition at line 394 of file TriggerSummaryProducerAOD.cc.
References dt_dqm_sourceclient_common_cff::reco, toc_, trigger::TriggerHLongit, trigger::TriggerMHTSig, and trigger::TriggerTHT.
void TriggerSummaryProducerAOD::fillTriggerObjectCollections | ( | const edm::Event & | iEvent | ) |
this routine accesses the original (L3) collections (with C++ typename C), extracts 4-momentum and id of each collection member, and packs this up
end loop over handles
Definition at line 296 of file TriggerSummaryProducerAOD.cc.
References collectionTagsEvent_, fillTriggerObject(), edm::Event::getMany(), i, instance, keys_, diffTwoXMLs::label, edm::Provenance::moduleLabel(), n, offset_, evf::utils::pid, LaserDQM_cfg::process, edm::Provenance::processName(), edm::Provenance::productInstanceName(), dt_dqm_sourceclient_common_cff::reco, selector_, findQualityFiles::size, tags_, and toc_.
|
virtual |
get hold of filter objects
check whether collection tags are recorded in filterobjects; if so, these are L3 collections to be packed up, and the corresponding filter is a L3 filter also to be packed up. Record the InputTags of those L3 filters and L3 collections.
check uniqueness count
accumulate for endJob printout
debug printout
event-by-event tags
Now the processing: first trigger objects from L3 collections, then L3 filter objects
create trigger objects, fill triggerobjectcollection and offset map
construct single AOD product, reserving capacity
fill trigger object collection
fill the L3 filter objects
Implements edm::EDProducer.
Definition at line 144 of file TriggerSummaryProducerAOD.cc.
References collectionTagsEvent_, collectionTagsGlobal_, benchmark_cfg::fb, vdt::fe, fillFilterObjectMembers(), filterTagsEvent_, filterTagsGlobal_, fobs_, edm::Event::getMany(), ids_, iEvent, instance, edm::isDebugEnabled(), keys_, diffTwoXMLs::label, LogDebug, LogTrace, maskFilters_, offset_, pn_, LaserDQM_cfg::process, edm::Event::put(), dt_dqm_sourceclient_common_cff::reco, selector_, tags_, and toc_.
|
private |
list of L3 collection tags
Definition at line 108 of file TriggerSummaryProducerAOD.h.
Referenced by fillTriggerObjectCollections(), produce(), and TriggerSummaryProducerAOD().
|
private |
Definition at line 109 of file TriggerSummaryProducerAOD.h.
Referenced by endJob(), produce(), and TriggerSummaryProducerAOD().
|
private |
list of L3 filter tags
Definition at line 104 of file TriggerSummaryProducerAOD.h.
Referenced by produce(), and TriggerSummaryProducerAOD().
|
private |
Definition at line 105 of file TriggerSummaryProducerAOD.h.
Referenced by endJob(), produce(), and TriggerSummaryProducerAOD().
|
private |
handles to the filter objects
Definition at line 118 of file TriggerSummaryProducerAOD.h.
Referenced by produce().
|
private |
ids
Definition at line 122 of file TriggerSummaryProducerAOD.h.
Referenced by fillFilterObjectMember(), and produce().
|
private |
keys
Definition at line 120 of file TriggerSummaryProducerAOD.h.
Referenced by fillFilterObjectMember(), fillTriggerObjectCollections(), and produce().
|
private |
packing decision
Definition at line 125 of file TriggerSummaryProducerAOD.h.
Referenced by produce().
|
private |
global map for indices into toc_: offset per input L3 collection
Definition at line 115 of file TriggerSummaryProducerAOD.h.
Referenced by fillFilterObjectMembers(), fillTriggerObjectCollections(), and produce().
|
private |
process name
Definition at line 75 of file TriggerSummaryProducerAOD.h.
Referenced by produce(), and TriggerSummaryProducerAOD().
|
private |
selector for getMany methods
Definition at line 78 of file TriggerSummaryProducerAOD.h.
Referenced by fillTriggerObjectCollections(), produce(), and TriggerSummaryProducerAOD().
|
private |
Definition at line 113 of file TriggerSummaryProducerAOD.h.
Referenced by fillTriggerObjectCollections(), and produce().
|
private |
the pointer to the current TriggerNamesService
Definition at line 81 of file TriggerSummaryProducerAOD.h.
Referenced by TriggerSummaryProducerAOD().
|
private |
trigger object collection
Definition at line 112 of file TriggerSummaryProducerAOD.h.
Referenced by fillTriggerObject(), fillTriggerObjectCollections(), and produce().