CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Static Public Member Functions | Private Types | Private Attributes
TriggerSummaryProducerAOD Class Reference

#include <TriggerSummaryProducerAOD.h>

Inheritance diagram for TriggerSummaryProducerAOD:
edm::stream::EDProducer< edm::GlobalCache< GlobalInputTags > >

Classes

struct  OrderInputTag
 InputTag ordering class. More...
 

Public Member Functions

void endStream () override
 
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::PFMETCollection > &)
 
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::PFMET &)
 
void fillTriggerObject (const reco::CaloMET &)
 
void fillTriggerObject (const reco::MET &)
 
template<typename C >
void fillTriggerObjectCollections (const edm::Event &, edm::GetterOfProducts< C > &)
 
void produce (edm::Event &, const edm::EventSetup &) override
 
 TriggerSummaryProducerAOD (const edm::ParameterSet &, const GlobalInputTags *)
 
 ~TriggerSummaryProducerAOD () override
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< GlobalInputTags > >
 EDProducer ()=default
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
static void globalEndJob (const GlobalInputTags *)
 
static std::unique_ptr< GlobalInputTagsinitializeGlobalCache (edm::ParameterSet const &)
 

Private Types

typedef std::set< edm::InputTag, OrderInputTagInputTagSet
 

Private Attributes

InputTagSet collectionTagsEvent_
 list of L3 collection tags More...
 
InputTagSet collectionTagsStream_
 
InputTagSet filterTagsEvent_
 list of L3 filter tags More...
 
InputTagSet filterTagsStream_
 
edm::GetterOfProducts< reco::CaloJetCollectiongetCaloJetCollection_
 
edm::GetterOfProducts< reco::CaloMETCollectiongetCaloMETCollection_
 
edm::GetterOfProducts< reco::CompositeCandidateCollectiongetCompositeCandidateCollection_
 
edm::GetterOfProducts< reco::ElectronCollectiongetElectronCollection_
 
edm::GetterOfProducts< reco::IsolatedPixelTrackCandidateCollectiongetIsolatedPixelTrackCandidateCollection_
 
edm::GetterOfProducts< l1extra::L1EmParticleCollectiongetL1EmParticleCollection_
 
edm::GetterOfProducts< l1extra::L1EtMissParticleCollectiongetL1EtMissParticleCollection_
 
edm::GetterOfProducts< l1extra::L1HFRingsCollectiongetL1HFRingsCollection_
 
edm::GetterOfProducts< l1extra::L1JetParticleCollectiongetL1JetParticleCollection_
 
edm::GetterOfProducts< l1extra::L1MuonParticleCollectiongetL1MuonParticleCollection_
 
edm::GetterOfProducts< l1t::EGammaBxCollectiongetL1TEGammaParticleCollection_
 
edm::GetterOfProducts< l1t::EtSumBxCollectiongetL1TEtSumParticleCollection_
 
edm::GetterOfProducts< l1t::JetBxCollectiongetL1TJetParticleCollection_
 
edm::GetterOfProducts< l1t::MuonBxCollectiongetL1TMuonParticleCollection_
 
edm::GetterOfProducts< l1t::TauBxCollectiongetL1TTauParticleCollection_
 
edm::GetterOfProducts< reco::METCollectiongetMETCollection_
 
edm::GetterOfProducts< reco::PFJetCollectiongetPFJetCollection_
 
edm::GetterOfProducts< reco::PFMETCollectiongetPFMETCollection_
 
edm::GetterOfProducts< reco::PFTauCollectiongetPFTauCollection_
 
edm::GetterOfProducts< reco::RecoChargedCandidateCollectiongetRecoChargedCandidateCollection_
 
edm::GetterOfProducts< reco::RecoEcalCandidateCollectiongetRecoEcalCandidateCollection_
 
edm::GetterOfProducts< trigger::TriggerFilterObjectWithRefsgetTriggerFilterObjectWithRefs_
 
trigger::Vids ids_
 ids More...
 
trigger::Keys keys_
 keys More...
 
std::vector< bool > maskFilters_
 packing decision More...
 
std::vector< std::regex > moduleLabelPatternsToMatch_
 module labels which should be avoided More...
 
std::vector< std::regex > moduleLabelPatternsToSkip_
 
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...
 
std::vector< std::string > tags_
 
bool throw_
 throw on error More...
 
trigger::TriggerObjectCollection toc_
 trigger object collection More...
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< GlobalInputTags > >
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 

Detailed Description

This class is an EDProducer making the HLT summary object for AOD

Author
Martin Grunewald

See header file for documentation

Author
Martin Grunewald

Definition at line 84 of file TriggerSummaryProducerAOD.h.

Member Typedef Documentation

Definition at line 150 of file TriggerSummaryProducerAOD.h.

Constructor & Destructor Documentation

TriggerSummaryProducerAOD::TriggerSummaryProducerAOD ( const edm::ParameterSet ps,
const GlobalInputTags gt 
)
explicit

Definition at line 76 of file TriggerSummaryProducerAOD.cc.

References collectionTagsEvent_, collectionTagsStream_, relativeConstraints::empty, filterTagsEvent_, filterTagsStream_, getCaloJetCollection_, getCaloMETCollection_, getCompositeCandidateCollection_, getElectronCollection_, getIsolatedPixelTrackCandidateCollection_, getL1EmParticleCollection_, getL1EtMissParticleCollection_, getL1HFRingsCollection_, getL1JetParticleCollection_, getL1MuonParticleCollection_, getL1TEGammaParticleCollection_, getL1TEtSumParticleCollection_, getL1TJetParticleCollection_, getL1TMuonParticleCollection_, getL1TTauParticleCollection_, getMETCollection_, getPFJetCollection_, getPFMETCollection_, getPFTauCollection_, edm::service::TriggerNamesService::getProcessName(), getRecoChargedCandidateCollection_, getRecoEcalCandidateCollection_, getTriggerFilterObjectWithRefs_, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, instance, edm::Service< T >::isAvailable(), label, LogDebug, match(), HLT_2018_cff::moduleLabelPatternsToMatch, moduleLabelPatternsToMatch_, HLT_2018_cff::moduleLabelPatternsToSkip, moduleLabelPatternsToSkip_, pn_, LaserDQM_cfg::process, AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, unpackBuffers-CaloStage2::token, and ~TriggerSummaryProducerAOD().

77  : throw_(ps.getParameter<bool>("throw")),
78  pn_(ps.getParameter<std::string>("processName")),
80  convertToRegex(ps.getParameter<std::vector<std::string>>("moduleLabelPatternsToMatch"))),
82  convertToRegex(ps.getParameter<std::vector<std::string>>("moduleLabelPatternsToSkip"))),
83  filterTagsEvent_(pn_ != "*"),
84  filterTagsStream_(pn_ != "*"),
85  collectionTagsEvent_(pn_ != "*"),
86  collectionTagsStream_(pn_ != "*"),
87  toc_(),
88  tags_(),
89  offset_(),
90  keys_(),
91  ids_(),
92  maskFilters_() {
93  if (pn_ == "@") {
95  if (tns.isAvailable()) {
96  pn_ = tns->getProcessName();
97  } else {
98  edm::LogError("TriggerSummaryProducerAOD") << "HLT Error: TriggerNamesService not available!";
99  pn_ = "*";
100  }
101 
102  filterTagsEvent_ = InputTagSet(pn_ != "*");
106  }
107  LogDebug("TriggerSummaryProducerAOD") << "Using process name: '" << pn_ << "'";
108 
109  filterTagsStream_.clear();
110  collectionTagsStream_.clear();
111 
112  produces<trigger::TriggerEvent>();
113 
114  auto const* pProcessName = &pn_;
117  auto productMatch = [pProcessName, &moduleLabelPatternsToSkip, &moduleLabelPatternsToMatch](
118  edm::BranchDescription const& iBranch) -> bool {
119  if (iBranch.processName() == *pProcessName || *pProcessName == "*") {
120  auto const& label = iBranch.moduleLabel();
121  for (auto& match : moduleLabelPatternsToMatch) {
122  if (std::regex_match(label, match)) {
123  //make sure this is not in the reject list
124  for (auto& reject : moduleLabelPatternsToSkip) {
125  if (std::regex_match(label, reject)) {
126  return false;
127  }
128  }
129  return true;
130  }
131  }
132  }
133  return false;
134  };
135 
159 
160  callWhenNewProductsRegistered([this](edm::BranchDescription const& bd) {
167  getMETCollection_(bd);
183  });
184 }
#define LogDebug(id)
T getParameter(std::string const &) const
edm::GetterOfProducts< l1t::TauBxCollection > getL1TTauParticleCollection_
std::vector< std::regex > moduleLabelPatternsToSkip_
edm::GetterOfProducts< l1extra::L1JetParticleCollection > getL1JetParticleCollection_
edm::GetterOfProducts< reco::IsolatedPixelTrackCandidateCollection > getIsolatedPixelTrackCandidateCollection_
edm::GetterOfProducts< reco::RecoEcalCandidateCollection > getRecoEcalCandidateCollection_
std::string const & getProcessName() const
edm::GetterOfProducts< l1extra::L1MuonParticleCollection > getL1MuonParticleCollection_
trigger::TriggerObjectCollection toc_
trigger object collection
edm::GetterOfProducts< reco::PFTauCollection > getPFTauCollection_
std::vector< bool > maskFilters_
packing decision
edm::GetterOfProducts< reco::METCollection > getMETCollection_
edm::GetterOfProducts< l1t::JetBxCollection > getL1TJetParticleCollection_
std::map< edm::ProductID, unsigned int > offset_
global map for indices into toc_: offset per input L3 collection
edm::GetterOfProducts< reco::CaloJetCollection > getCaloJetCollection_
edm::GetterOfProducts< l1extra::L1EtMissParticleCollection > getL1EtMissParticleCollection_
std::vector< std::string > tags_
edm::GetterOfProducts< reco::PFJetCollection > getPFJetCollection_
char const * label
edm::GetterOfProducts< reco::RecoChargedCandidateCollection > getRecoChargedCandidateCollection_
edm::GetterOfProducts< l1extra::L1HFRingsCollection > getL1HFRingsCollection_
std::vector< std::regex > moduleLabelPatternsToMatch_
module labels which should be avoided
bool isAvailable() const
Definition: Service.h:40
std::set< edm::InputTag, OrderInputTag > InputTagSet
edm::GetterOfProducts< l1t::MuonBxCollection > getL1TMuonParticleCollection_
edm::GetterOfProducts< reco::CaloMETCollection > getCaloMETCollection_
edm::GetterOfProducts< reco::ElectronCollection > getElectronCollection_
InputTagSet collectionTagsEvent_
list of L3 collection tags
edm::GetterOfProducts< reco::CompositeCandidateCollection > getCompositeCandidateCollection_
edm::GetterOfProducts< trigger::TriggerFilterObjectWithRefs > getTriggerFilterObjectWithRefs_
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
Definition: Utils.h:10
edm::GetterOfProducts< reco::PFMETCollection > getPFMETCollection_
InputTagSet filterTagsEvent_
list of L3 filter tags
edm::GetterOfProducts< l1t::EtSumBxCollection > getL1TEtSumParticleCollection_
edm::GetterOfProducts< l1extra::L1EmParticleCollection > getL1EmParticleCollection_
edm::GetterOfProducts< l1t::EGammaBxCollection > getL1TEGammaParticleCollection_
TriggerSummaryProducerAOD::~TriggerSummaryProducerAOD ( )
overridedefault

Member Function Documentation

void TriggerSummaryProducerAOD::endStream ( )
override

Definition at line 659 of file TriggerSummaryProducerAOD.cc.

References collectionTagsStream_, and filterTagsStream_.

659  {
660  globalCache()->collectionTagsGlobal_.insert(collectionTagsStream_.begin(), collectionTagsStream_.end());
661  globalCache()->filterTagsGlobal_.insert(filterTagsStream_.begin(), filterTagsStream_.end());
662  return;
663 }
void TriggerSummaryProducerAOD::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 218 of file TriggerSummaryProducerAOD.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterDescriptionNode::setComment(), and AlCaHLTBitMon_QueryRunRegistry::string.

218  {
220  desc.add<bool>("throw", false)->setComment("Throw exception or LogError");
221  desc.add<std::string>("processName", "@")
222  ->setComment(
223  "Process name to use when getting data. The value of '@' is used to denote the current process name.");
224  desc.add<std::vector<std::string>>("moduleLabelPatternsToMatch", std::vector<std::string>(1, "hlt*"))
225  ->setComment("glob patterns for module labels to get data.");
226  desc.add<std::vector<std::string>>("moduleLabelPatternsToSkip", std::vector<std::string>())
227  ->setComment("module labels for data products which should not be gotten.");
228  descriptions.add("triggerSummaryProducerAOD", desc);
229 }
void setComment(std::string const &value)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
template<typename C >
void TriggerSummaryProducerAOD::fillFilterObjectMember ( const int &  offset,
const int &  id,
const edm::Ref< C > &  ref 
)

Definition at line 565 of file TriggerSummaryProducerAOD.cc.

References ids_, edm::Ref< C, T, F >::key(), and keys_.

Referenced by fillFilterObjectMembers().

565  {
566  keys_.push_back(offset + ref.key());
567  ids_.push_back(id);
568 
569  return;
570 }
key_type key() const
Accessor for product key.
Definition: Ref.h:250
void TriggerSummaryProducerAOD::fillFilterObjectMember ( const int &  offset,
const int &  id,
const edm::Ref< l1extra::L1HFRingsCollection > &  ref 
)

Definition at line 572 of file TriggerSummaryProducerAOD.cc.

References ids_, edm::Ref< C, T, F >::key(), keys_, and trigger::TriggerL1HfBitCounts.

574  {
575  using namespace trigger;
576 
577  if (id == TriggerL1HfBitCounts) {
578  keys_.push_back(offset + 2 * ref.key() + 1);
579  } else { // if (ids[i]==TriggerL1HfRingEtSums) {
580  keys_.push_back(offset + 2 * ref.key() + 0);
581  }
582  ids_.push_back(id);
583 
584  return;
585 }
key_type key() const
Accessor for product key.
Definition: Ref.h:250
void TriggerSummaryProducerAOD::fillFilterObjectMember ( const int &  offset,
const int &  id,
const edm::Ref< l1extra::L1EtMissParticleCollection > &  ref 
)

Definition at line 587 of file TriggerSummaryProducerAOD.cc.

References ids_, edm::Ref< C, T, F >::key(), keys_, trigger::TriggerL1ETT, and trigger::TriggerL1HTT.

589  {
590  using namespace trigger;
591 
592  if ((id == TriggerL1ETT) || (id == TriggerL1HTT)) {
593  keys_.push_back(offset + 2 * ref.key() + 1);
594  } else {
595  keys_.push_back(offset + 2 * ref.key() + 0);
596  }
597  ids_.push_back(id);
598 
599  return;
600 }
key_type key() const
Accessor for product key.
Definition: Ref.h:250
void TriggerSummaryProducerAOD::fillFilterObjectMember ( const int &  offset,
const int &  id,
const edm::Ref< reco::PFMETCollection > &  ref 
)

Definition at line 602 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.

604  {
605  using namespace trigger;
606 
607  if ((id == TriggerTHT) || (id == TriggerTET)) {
608  keys_.push_back(offset + 4 * ref.key() + 1);
609  } else if ((id == TriggerMETSig) || (id == TriggerMHTSig)) {
610  keys_.push_back(offset + 4 * ref.key() + 2);
611  } else if ((id == TriggerELongit) || (id == TriggerHLongit)) {
612  keys_.push_back(offset + 4 * ref.key() + 3);
613  } else {
614  keys_.push_back(offset + 4 * ref.key() + 0);
615  }
616  ids_.push_back(id);
617 
618  return;
619 }
key_type key() const
Accessor for product key.
Definition: Ref.h:250
void TriggerSummaryProducerAOD::fillFilterObjectMember ( const int &  offset,
const int &  id,
const edm::Ref< reco::CaloMETCollection > &  ref 
)

Definition at line 621 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.

623  {
624  using namespace trigger;
625 
626  if ((id == TriggerTHT) || (id == TriggerTET)) {
627  keys_.push_back(offset + 4 * ref.key() + 1);
628  } else if ((id == TriggerMETSig) || (id == TriggerMHTSig)) {
629  keys_.push_back(offset + 4 * ref.key() + 2);
630  } else if ((id == TriggerELongit) || (id == TriggerHLongit)) {
631  keys_.push_back(offset + 4 * ref.key() + 3);
632  } else {
633  keys_.push_back(offset + 4 * ref.key() + 0);
634  }
635  ids_.push_back(id);
636 
637  return;
638 }
key_type key() const
Accessor for product key.
Definition: Ref.h:250
void TriggerSummaryProducerAOD::fillFilterObjectMember ( const int &  offset,
const int &  id,
const edm::Ref< reco::METCollection > &  ref 
)

Definition at line 640 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.

642  {
643  using namespace trigger;
644 
645  if ((id == TriggerTHT) || (id == TriggerTET)) {
646  keys_.push_back(offset + 4 * ref.key() + 1);
647  } else if ((id == TriggerMETSig) || (id == TriggerMHTSig)) {
648  keys_.push_back(offset + 4 * ref.key() + 2);
649  } else if ((id == TriggerELongit) || (id == TriggerHLongit)) {
650  keys_.push_back(offset + 4 * ref.key() + 3);
651  } else {
652  keys_.push_back(offset + 4 * ref.key() + 0);
653  }
654  ids_.push_back(id);
655 
656  return;
657 }
key_type key() const
Accessor for product key.
Definition: Ref.h:250
template<typename C >
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 512 of file TriggerSummaryProducerAOD.cc.

References gen::C, edm::InputTag::encode(), Exception, fillFilterObjectMember(), edm::Event::getProvenance(), mps_fire::i, HLT_2018_cff::InputTag, instance, edm::ProductID::isValid(), label, min(), edm::Provenance::moduleLabel(), dqmiodumpmetadata::n, Skims_PA_cff::name, offset_, LaserDQM_cfg::process, edm::Provenance::processName(), edm::Provenance::productInstanceName(), and throw_.

Referenced by produce().

515  {
519 
520  using namespace std;
521  using namespace edm;
522  using namespace reco;
523  using namespace l1extra;
524  using namespace trigger;
525 
526  if (ids.size() != refs.size()) {
527  LogError("TriggerSummaryProducerAOD") << "Vector length is different: " << ids.size() << " " << refs.size();
528  }
529 
530  const unsigned int n(min(ids.size(), refs.size()));
531  for (unsigned int i = 0; i != n; ++i) {
532  const ProductID pid(refs[i].id());
533  if (!(pid.isValid())) {
534  std::ostringstream ost;
535  ost << "Iinvalid pid: " << pid << " FilterTag / Key: " << tag.encode() << " / " << i << "of" << n
536  << " CollectionTag / Key: "
537  << " <Unrecoverable>"
538  << " / " << refs[i].key() << " CollectionType: " << typeid(C).name();
539  if (throw_) {
540  throw cms::Exception("TriggerSummaryProducerAOD") << ost.str();
541  } else {
542  LogError("TriggerSummaryProducerAOD") << ost.str();
543  }
544  } else if (offset_.find(pid) == offset_.end()) {
545  const string& label(iEvent.getProvenance(pid).moduleLabel());
546  const string& instance(iEvent.getProvenance(pid).productInstanceName());
547  const string& process(iEvent.getProvenance(pid).processName());
548  std::ostringstream ost;
549  ost << "Uunknown pid: " << pid << " FilterTag / Key: " << tag.encode() << " / " << i << "of" << n
550  << " CollectionTag / Key: " << InputTag(label, instance, process).encode() << " / " << refs[i].key()
551  << " CollectionType: " << typeid(C).name();
552  if (throw_) {
553  throw cms::Exception("TriggerSummaryProducerAOD") << ost.str();
554  } else {
555  LogError("TriggerSummaryProducerAOD") << ost.str();
556  }
557  } else {
558  fillFilterObjectMember(offset_[pid], ids[i], refs[i]);
559  }
560  }
561  return;
562 }
static PFTauRenderPlugin instance
std::map< edm::ProductID, unsigned int > offset_
global map for indices into toc_: offset per input L3 collection
void fillFilterObjectMember(const int &, const int &, const edm::Ref< C > &)
std::string const & processName() const
Definition: Provenance.h:57
std::string encode() const
Definition: InputTag.cc:159
char const * label
T min(T a, T b)
Definition: MathUtil.h:58
std::string const & moduleLabel() const
Definition: Provenance.h:55
fixed size matrix
HLT enums.
std::string const & productInstanceName() const
Definition: Provenance.h:58
Provenance getProvenance(BranchID const &theID) const
Definition: Event.cc:114
template<typename T >
void TriggerSummaryProducerAOD::fillTriggerObject ( const T object)

Definition at line 434 of file TriggerSummaryProducerAOD.cc.

References toc_.

Referenced by fillTriggerObjectCollections().

434  {
435  using namespace trigger;
436  toc_.push_back(TriggerObject(object));
437 
438  return;
439 }
trigger::TriggerObjectCollection toc_
trigger object collection
void TriggerSummaryProducerAOD::fillTriggerObject ( const l1extra::L1HFRings object)

Definition at line 441 of file TriggerSummaryProducerAOD.cc.

References toc_, trigger::TriggerL1HfBitCounts, and trigger::TriggerL1HfRingEtSums.

441  {
442  using namespace l1extra;
443  using namespace trigger;
444 
446  object.hfEtSum(L1HFRings::kRing1PosEta),
447  object.hfEtSum(L1HFRings::kRing1NegEta),
448  object.hfEtSum(L1HFRings::kRing2PosEta),
449  object.hfEtSum(L1HFRings::kRing2NegEta)));
451  object.hfBitCount(L1HFRings::kRing1PosEta),
452  object.hfBitCount(L1HFRings::kRing1NegEta),
453  object.hfBitCount(L1HFRings::kRing2PosEta),
454  object.hfBitCount(L1HFRings::kRing2NegEta)));
455 
456  return;
457 }
trigger::TriggerObjectCollection toc_
trigger object collection
void TriggerSummaryProducerAOD::fillTriggerObject ( const l1extra::L1EtMissParticle object)

Definition at line 459 of file TriggerSummaryProducerAOD.cc.

References toc_, trigger::TriggerL1ETT, and trigger::TriggerL1HTT.

459  {
460  using namespace l1extra;
461  using namespace trigger;
462 
463  toc_.push_back(TriggerObject(object));
464  if (object.type() == L1EtMissParticle::kMET) {
465  toc_.push_back(TriggerObject(TriggerL1ETT, object.etTotal(), 0.0, 0.0, 0.0));
466  } else if (object.type() == L1EtMissParticle::kMHT) {
467  toc_.push_back(TriggerObject(TriggerL1HTT, object.etTotal(), 0.0, 0.0, 0.0));
468  } else {
469  toc_.push_back(TriggerObject(0, object.etTotal(), 0.0, 0.0, 0.0));
470  }
471 
472  return;
473 }
type
Definition: HCALResponse.h:21
trigger::TriggerObjectCollection toc_
trigger object collection
void TriggerSummaryProducerAOD::fillTriggerObject ( const reco::PFMET object)

Definition at line 475 of file TriggerSummaryProducerAOD.cc.

References objects.METAnalyzer::sumEt, toc_, trigger::TriggerELongit, trigger::TriggerMETSig, and trigger::TriggerTET.

475  {
476  using namespace reco;
477  using namespace trigger;
478 
479  toc_.push_back(TriggerObject(object));
480  toc_.push_back(TriggerObject(TriggerTET, object.sumEt(), 0.0, 0.0, 0.0));
481  toc_.push_back(TriggerObject(TriggerMETSig, object.mEtSig(), 0.0, 0.0, 0.0));
482  toc_.push_back(TriggerObject(TriggerELongit, object.e_longitudinal(), 0.0, 0.0, 0.0));
483 
484  return;
485 }
trigger::TriggerObjectCollection toc_
trigger object collection
fixed size matrix
void TriggerSummaryProducerAOD::fillTriggerObject ( const reco::CaloMET object)

Definition at line 487 of file TriggerSummaryProducerAOD.cc.

References objects.METAnalyzer::sumEt, toc_, trigger::TriggerELongit, trigger::TriggerMETSig, and trigger::TriggerTET.

487  {
488  using namespace reco;
489  using namespace trigger;
490 
491  toc_.push_back(TriggerObject(object));
492  toc_.push_back(TriggerObject(TriggerTET, object.sumEt(), 0.0, 0.0, 0.0));
493  toc_.push_back(TriggerObject(TriggerMETSig, object.mEtSig(), 0.0, 0.0, 0.0));
494  toc_.push_back(TriggerObject(TriggerELongit, object.e_longitudinal(), 0.0, 0.0, 0.0));
495 
496  return;
497 }
trigger::TriggerObjectCollection toc_
trigger object collection
fixed size matrix
void TriggerSummaryProducerAOD::fillTriggerObject ( const reco::MET object)

Definition at line 499 of file TriggerSummaryProducerAOD.cc.

References objects.METAnalyzer::sumEt, toc_, trigger::TriggerHLongit, trigger::TriggerMHTSig, and trigger::TriggerTHT.

499  {
500  using namespace reco;
501  using namespace trigger;
502 
503  toc_.push_back(TriggerObject(object));
504  toc_.push_back(TriggerObject(TriggerTHT, object.sumEt(), 0.0, 0.0, 0.0));
505  toc_.push_back(TriggerObject(TriggerMHTSig, object.mEtSig(), 0.0, 0.0, 0.0));
506  toc_.push_back(TriggerObject(TriggerHLongit, object.e_longitudinal(), 0.0, 0.0, 0.0));
507 
508  return;
509 }
trigger::TriggerObjectCollection toc_
trigger object collection
fixed size matrix
template<typename C >
void TriggerSummaryProducerAOD::fillTriggerObjectCollections ( const edm::Event iEvent,
edm::GetterOfProducts< C > &  getter 
)

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 392 of file TriggerSummaryProducerAOD.cc.

References oniaPATMuonsWithTrigger_cff::collections, collectionTagsEvent_, edm::GetterOfProducts< T >::fillHandles(), fillTriggerObject(), mps_fire::i, instance, keys_, label, edm::Provenance::moduleLabel(), dqmiodumpmetadata::n, offset_, LaserDQM_cfg::process, edm::Provenance::processName(), edm::Provenance::productInstanceName(), findQualityFiles::size, tags_, and toc_.

393  {
397 
398  using namespace std;
399  using namespace edm;
400  using namespace reco;
401  using namespace l1extra;
402  using namespace trigger;
403  using namespace l1t;
404 
405  vector<Handle<C>> collections;
406  getter.fillHandles(iEvent, collections);
407  const unsigned int nc(collections.size());
408 
409  for (unsigned int ic = 0; ic != nc; ++ic) {
410  const Provenance& provenance(*(collections[ic].provenance()));
411  const string& label(provenance.moduleLabel());
412  const string& instance(provenance.productInstanceName());
413  const string& process(provenance.processName());
414  const InputTag collectionTag(label, instance, process);
415 
416  if (collectionTagsEvent_.find(collectionTag) != collectionTagsEvent_.end()) {
417  const ProductID pid(collections[ic].provenance()->productID());
418  if (offset_.find(pid) != offset_.end()) {
419  LogError("TriggerSummaryProducerAOD") << "Duplicate pid: " << pid;
420  }
421  offset_[pid] = toc_.size();
422  const unsigned int n(collections[ic]->size());
423  for (unsigned int i = 0; i != n; ++i) {
424  fillTriggerObject((*collections[ic])[i]);
425  }
426  tags_.push_back(collectionTag.encode());
427  keys_.push_back(toc_.size());
428  }
429 
430  }
431 }
size
Write out results.
trigger::TriggerObjectCollection toc_
trigger object collection
static PFTauRenderPlugin instance
void fillHandles(edm::Event const &event, std::vector< edm::Handle< T >> &handles) const
std::map< edm::ProductID, unsigned int > offset_
global map for indices into toc_: offset per input L3 collection
delete x;
Definition: CaloConfig.h:22
std::vector< std::string > tags_
char const * label
fixed size matrix
HLT enums.
InputTagSet collectionTagsEvent_
list of L3 collection tags
void TriggerSummaryProducerAOD::globalEndJob ( const GlobalInputTags globalInputTags)
static

Definition at line 665 of file TriggerSummaryProducerAOD.cc.

References EcalCalibMonitorTasks_cfi::collectionTags, GlobalInputTags::collectionTagsGlobal_, HLT_2018_cff::distance, benchmark_cfg::fb, and GlobalInputTags::filterTagsGlobal_.

665  {
666  using namespace std;
667  using namespace edm;
668  using namespace trigger;
669 
670  LogVerbatim("TriggerSummaryProducerAOD") << endl;
671  LogVerbatim("TriggerSummaryProducerAOD") << "TriggerSummaryProducerAOD::globalEndJob - accumulated tags:" << endl;
672 
673  InputTagSet filterTags(false);
675 
676  filterTags.insert(globalInputTags->filterTagsGlobal_.begin(), globalInputTags->filterTagsGlobal_.end());
677  collectionTags.insert(globalInputTags->collectionTagsGlobal_.begin(), globalInputTags->collectionTagsGlobal_.end());
678 
679  const unsigned int nc(collectionTags.size());
680  const unsigned int nf(filterTags.size());
681  LogVerbatim("TriggerSummaryProducerAOD") << " Overall number of Collections/Filters: " << nc << "/" << nf << endl;
682 
683  LogVerbatim("TriggerSummaryProducerAOD") << " The collections: " << nc << endl;
684  const InputTagSet::const_iterator cb(collectionTags.begin());
685  const InputTagSet::const_iterator ce(collectionTags.end());
686  for (InputTagSet::const_iterator ci = cb; ci != ce; ++ci) {
687  LogVerbatim("TriggerSummaryProducerAOD") << " " << distance(cb, ci) << " " << ci->encode() << endl;
688  }
689 
690  LogVerbatim("TriggerSummaryProducerAOD") << " The filters:" << nf << endl;
691  const InputTagSet::const_iterator fb(filterTags.begin());
692  const InputTagSet::const_iterator fe(filterTags.end());
693  for (InputTagSet::const_iterator fi = fb; fi != fe; ++fi) {
694  LogVerbatim("TriggerSummaryProducerAOD") << " " << distance(fb, fi) << " " << fi->encode() << endl;
695  }
696 
697  LogVerbatim("TriggerSummaryProducerAOD") << "TriggerSummaryProducerAOD::endJob." << endl;
698  LogVerbatim("TriggerSummaryProducerAOD") << endl;
699 
700  return;
701 }
tbb::concurrent_unordered_set< edm::InputTag, InputTagHash > filterTagsGlobal_
std::set< edm::InputTag, OrderInputTag > InputTagSet
HLT enums.
tbb::concurrent_unordered_set< edm::InputTag, InputTagHash > collectionTagsGlobal_
static std::unique_ptr<GlobalInputTags> TriggerSummaryProducerAOD::initializeGlobalCache ( edm::ParameterSet const &  )
inlinestatic

Definition at line 94 of file TriggerSummaryProducerAOD.h.

References GlobalPosition_Frontier_DevDB_cff::tag.

94  {
95  return std::unique_ptr<GlobalInputTags>(new GlobalInputTags());
96  };
void TriggerSummaryProducerAOD::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
override

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

Definition at line 232 of file TriggerSummaryProducerAOD.cc.

References collectionTagsEvent_, collectionTagsStream_, HLT_2018_cff::distance, benchmark_cfg::fb, fillFilterObjectMembers(), edm::GetterOfProducts< T >::fillHandles(), filterTagsEvent_, filterTagsStream_, getCaloJetCollection_, getCaloMETCollection_, getCompositeCandidateCollection_, getElectronCollection_, getIsolatedPixelTrackCandidateCollection_, getL1EmParticleCollection_, getL1EtMissParticleCollection_, getL1HFRingsCollection_, getL1JetParticleCollection_, getL1MuonParticleCollection_, getL1TEGammaParticleCollection_, getL1TEtSumParticleCollection_, getL1TJetParticleCollection_, getL1TMuonParticleCollection_, getL1TTauParticleCollection_, getMETCollection_, getPFJetCollection_, getPFMETCollection_, getPFTauCollection_, getRecoChargedCandidateCollection_, getRecoEcalCandidateCollection_, getTriggerFilterObjectWithRefs_, ids_, iEvent, HLT_2018_cff::InputTag, instance, edm::isDebugEnabled(), keys_, label, LogDebug, LogTrace, maskFilters_, HerwigMaxPtPartonFilter_cfi::moduleLabel, eostools::move(), offset_, pn_, LaserDQM_cfg::process, SimL1EmulatorRepack_CalouGT_cff::processName, trigger::TriggerEvent::sizeFilters(), trigger::TriggerEvent::sizeObjects(), tags_, toc_, and ZCounting_cff::TriggerEvent.

232  {
233  using namespace std;
234  using namespace edm;
235  using namespace reco;
236  using namespace l1extra;
237  using namespace trigger;
238  using namespace l1t;
239 
240  std::vector<edm::Handle<trigger::TriggerFilterObjectWithRefs>> fobs;
242 
243  const unsigned int nfob(fobs.size());
244  LogTrace("TriggerSummaryProducerAOD") << "Number of filter objects found: " << nfob;
245 
246  string tagLabel, tagInstance, tagProcess;
247 
253  maskFilters_.clear();
254  maskFilters_.resize(nfob);
255  filterTagsEvent_.clear();
256  collectionTagsEvent_.clear();
257  unsigned int nf(0);
258  for (unsigned int ifob = 0; ifob != nfob; ++ifob) {
259  maskFilters_[ifob] = false;
260  const vector<string>& collectionTags_(fobs[ifob]->getCollectionTagsAsStrings());
261  const unsigned int ncol(collectionTags_.size());
262  if (ncol > 0) {
263  nf++;
264  maskFilters_[ifob] = true;
265  const string& label(fobs[ifob].provenance()->moduleLabel());
266  const string& instance(fobs[ifob].provenance()->productInstanceName());
267  const string& process(fobs[ifob].provenance()->processName());
269  for (unsigned int icol = 0; icol != ncol; ++icol) {
270  // overwrite process name (usually not set)
271  tokenizeTag(collectionTags_[icol], tagLabel, tagInstance, tagProcess);
272  collectionTagsEvent_.insert(InputTag(tagLabel, tagInstance, pn_));
273  }
274  }
275  }
277  if (filterTagsEvent_.size() != nf) {
278  LogError("TriggerSummaryProducerAOD")
279  << "Mismatch in number of filter tags: " << filterTagsEvent_.size() << "!=" << nf;
280  }
281 
284  filterTagsStream_.insert(filterTagsEvent_.begin(), filterTagsEvent_.end());
285 
287  if (isDebugEnabled()) {
289  const unsigned int nc(collectionTagsEvent_.size());
290  LogTrace("TriggerSummaryProducerAOD") << "Number of unique collections requested " << nc;
291  const InputTagSet::const_iterator cb(collectionTagsEvent_.begin());
292  const InputTagSet::const_iterator ce(collectionTagsEvent_.end());
293  for (InputTagSet::const_iterator ci = cb; ci != ce; ++ci) {
294  LogTrace("TriggerSummaryProducerAOD") << distance(cb, ci) << " " << ci->encode();
295  }
296  const unsigned int nf(filterTagsEvent_.size());
297  LogTrace("TriggerSummaryProducerAOD") << "Number of unique filters requested " << nf;
298  const InputTagSet::const_iterator fb(filterTagsEvent_.begin());
299  const InputTagSet::const_iterator fe(filterTagsEvent_.end());
300  for (InputTagSet::const_iterator fi = fb; fi != fe; ++fi) {
301  LogTrace("TriggerSummaryProducerAOD") << distance(fb, fi) << " " << fi->encode();
302  }
303  }
304 
310  toc_.clear();
311  tags_.clear();
312  keys_.clear();
313  offset_.clear();
314  fillTriggerObjectCollections<RecoEcalCandidateCollection>(iEvent, getRecoEcalCandidateCollection_);
315  fillTriggerObjectCollections<ElectronCollection>(iEvent, getElectronCollection_);
316  fillTriggerObjectCollections<RecoChargedCandidateCollection>(iEvent, getRecoChargedCandidateCollection_);
317  fillTriggerObjectCollections<CaloJetCollection>(iEvent, getCaloJetCollection_);
318  fillTriggerObjectCollections<CompositeCandidateCollection>(iEvent, getCompositeCandidateCollection_);
319  fillTriggerObjectCollections<METCollection>(iEvent, getMETCollection_);
320  fillTriggerObjectCollections<CaloMETCollection>(iEvent, getCaloMETCollection_);
321  fillTriggerObjectCollections<IsolatedPixelTrackCandidateCollection>(iEvent,
324  fillTriggerObjectCollections<L1EmParticleCollection>(iEvent, getL1EmParticleCollection_);
325  fillTriggerObjectCollections<L1MuonParticleCollection>(iEvent, getL1MuonParticleCollection_);
326  fillTriggerObjectCollections<L1JetParticleCollection>(iEvent, getL1JetParticleCollection_);
327  fillTriggerObjectCollections<L1EtMissParticleCollection>(iEvent, getL1EtMissParticleCollection_);
328  fillTriggerObjectCollections<L1HFRingsCollection>(iEvent, getL1HFRingsCollection_);
329  fillTriggerObjectCollections<MuonBxCollection>(iEvent, getL1TMuonParticleCollection_);
330  fillTriggerObjectCollections<EGammaBxCollection>(iEvent, getL1TEGammaParticleCollection_);
331  fillTriggerObjectCollections<JetBxCollection>(iEvent, getL1TJetParticleCollection_);
332  fillTriggerObjectCollections<TauBxCollection>(iEvent, getL1TTauParticleCollection_);
333  fillTriggerObjectCollections<EtSumBxCollection>(iEvent, getL1TEtSumParticleCollection_);
335  fillTriggerObjectCollections<PFJetCollection>(iEvent, getPFJetCollection_);
336  fillTriggerObjectCollections<PFTauCollection>(iEvent, getPFTauCollection_);
337  fillTriggerObjectCollections<PFMETCollection>(iEvent, getPFMETCollection_);
339  const unsigned int nk(tags_.size());
340  LogDebug("TriggerSummaryProducerAOD") << "Number of collections found: " << nk;
341  const unsigned int no(toc_.size());
342  LogDebug("TriggerSummaryProducerAOD") << "Number of physics objects found: " << no;
343 
346  unique_ptr<TriggerEvent> product(new TriggerEvent(pn_, nk, no, nf));
347 
349  product->addCollections(tags_, keys_);
350  product->addObjects(toc_);
351 
353  for (unsigned int ifob = 0; ifob != nfob; ++ifob) {
354  if (maskFilters_[ifob]) {
355  const string& label(fobs[ifob].provenance()->moduleLabel());
356  const string& instance(fobs[ifob].provenance()->productInstanceName());
357  const string& process(fobs[ifob].provenance()->processName());
358  const edm::InputTag filterTag(label, instance, process);
359  ids_.clear();
360  keys_.clear();
361  fillFilterObjectMembers(iEvent, filterTag, fobs[ifob]->photonIds(), fobs[ifob]->photonRefs());
362  fillFilterObjectMembers(iEvent, filterTag, fobs[ifob]->electronIds(), fobs[ifob]->electronRefs());
363  fillFilterObjectMembers(iEvent, filterTag, fobs[ifob]->muonIds(), fobs[ifob]->muonRefs());
364  fillFilterObjectMembers(iEvent, filterTag, fobs[ifob]->jetIds(), fobs[ifob]->jetRefs());
365  fillFilterObjectMembers(iEvent, filterTag, fobs[ifob]->compositeIds(), fobs[ifob]->compositeRefs());
366  fillFilterObjectMembers(iEvent, filterTag, fobs[ifob]->basemetIds(), fobs[ifob]->basemetRefs());
367  fillFilterObjectMembers(iEvent, filterTag, fobs[ifob]->calometIds(), fobs[ifob]->calometRefs());
368  fillFilterObjectMembers(iEvent, filterTag, fobs[ifob]->pixtrackIds(), fobs[ifob]->pixtrackRefs());
369  fillFilterObjectMembers(iEvent, filterTag, fobs[ifob]->l1emIds(), fobs[ifob]->l1emRefs());
370  fillFilterObjectMembers(iEvent, filterTag, fobs[ifob]->l1muonIds(), fobs[ifob]->l1muonRefs());
371  fillFilterObjectMembers(iEvent, filterTag, fobs[ifob]->l1jetIds(), fobs[ifob]->l1jetRefs());
372  fillFilterObjectMembers(iEvent, filterTag, fobs[ifob]->l1etmissIds(), fobs[ifob]->l1etmissRefs());
373  fillFilterObjectMembers(iEvent, filterTag, fobs[ifob]->l1hfringsIds(), fobs[ifob]->l1hfringsRefs());
374  fillFilterObjectMembers(iEvent, filterTag, fobs[ifob]->l1tmuonIds(), fobs[ifob]->l1tmuonRefs());
375  fillFilterObjectMembers(iEvent, filterTag, fobs[ifob]->l1tegammaIds(), fobs[ifob]->l1tegammaRefs());
376  fillFilterObjectMembers(iEvent, filterTag, fobs[ifob]->l1tjetIds(), fobs[ifob]->l1tjetRefs());
377  fillFilterObjectMembers(iEvent, filterTag, fobs[ifob]->l1ttauIds(), fobs[ifob]->l1ttauRefs());
378  fillFilterObjectMembers(iEvent, filterTag, fobs[ifob]->l1tetsumIds(), fobs[ifob]->l1tetsumRefs());
379  fillFilterObjectMembers(iEvent, filterTag, fobs[ifob]->pfjetIds(), fobs[ifob]->pfjetRefs());
380  fillFilterObjectMembers(iEvent, filterTag, fobs[ifob]->pftauIds(), fobs[ifob]->pftauRefs());
381  fillFilterObjectMembers(iEvent, filterTag, fobs[ifob]->pfmetIds(), fobs[ifob]->pfmetRefs());
382  product->addFilter(filterTag, ids_, keys_);
383  }
384  }
385 
386  OrphanHandle<TriggerEvent> ref = iEvent.put(std::move(product));
387  LogTrace("TriggerSummaryProducerAOD") << "Number of physics objects packed: " << ref->sizeObjects();
388  LogTrace("TriggerSummaryProducerAOD") << "Number of filter objects packed: " << ref->sizeFilters();
389 }
#define LogDebug(id)
bool isDebugEnabled()
edm::GetterOfProducts< l1t::TauBxCollection > getL1TTauParticleCollection_
edm::GetterOfProducts< l1extra::L1JetParticleCollection > getL1JetParticleCollection_
edm::GetterOfProducts< reco::IsolatedPixelTrackCandidateCollection > getIsolatedPixelTrackCandidateCollection_
edm::GetterOfProducts< reco::RecoEcalCandidateCollection > getRecoEcalCandidateCollection_
edm::GetterOfProducts< l1extra::L1MuonParticleCollection > getL1MuonParticleCollection_
trigger::size_type sizeFilters() const
Definition: TriggerEvent.h:146
trigger::TriggerObjectCollection toc_
trigger object collection
edm::GetterOfProducts< reco::PFTauCollection > getPFTauCollection_
static PFTauRenderPlugin instance
std::vector< bool > maskFilters_
packing decision
edm::GetterOfProducts< reco::METCollection > getMETCollection_
edm::GetterOfProducts< l1t::JetBxCollection > getL1TJetParticleCollection_
void fillHandles(edm::Event const &event, std::vector< edm::Handle< T >> &handles) const
void fillFilterObjectMembers(const edm::Event &, const edm::InputTag &tag, const trigger::Vids &, const std::vector< edm::Ref< C >> &)
std::map< edm::ProductID, unsigned int > offset_
global map for indices into toc_: offset per input L3 collection
edm::GetterOfProducts< reco::CaloJetCollection > getCaloJetCollection_
delete x;
Definition: CaloConfig.h:22
edm::GetterOfProducts< l1extra::L1EtMissParticleCollection > getL1EtMissParticleCollection_
std::vector< std::string > tags_
edm::GetterOfProducts< reco::PFJetCollection > getPFJetCollection_
char const * label
int iEvent
Definition: GenABIO.cc:224
edm::GetterOfProducts< reco::RecoChargedCandidateCollection > getRecoChargedCandidateCollection_
edm::GetterOfProducts< l1extra::L1HFRingsCollection > getL1HFRingsCollection_
edm::GetterOfProducts< l1t::MuonBxCollection > getL1TMuonParticleCollection_
#define LogTrace(id)
trigger::size_type sizeObjects() const
Definition: TriggerEvent.h:145
edm::GetterOfProducts< reco::CaloMETCollection > getCaloMETCollection_
edm::GetterOfProducts< reco::ElectronCollection > getElectronCollection_
fixed size matrix
HLT enums.
InputTagSet collectionTagsEvent_
list of L3 collection tags
edm::GetterOfProducts< reco::CompositeCandidateCollection > getCompositeCandidateCollection_
edm::GetterOfProducts< trigger::TriggerFilterObjectWithRefs > getTriggerFilterObjectWithRefs_
edm::GetterOfProducts< reco::PFMETCollection > getPFMETCollection_
InputTagSet filterTagsEvent_
list of L3 filter tags
edm::GetterOfProducts< l1t::EtSumBxCollection > getL1TEtSumParticleCollection_
edm::GetterOfProducts< l1extra::L1EmParticleCollection > getL1EmParticleCollection_
def move(src, dest)
Definition: eostools.py:511
edm::GetterOfProducts< l1t::EGammaBxCollection > getL1TEGammaParticleCollection_

Member Data Documentation

InputTagSet TriggerSummaryProducerAOD::collectionTagsEvent_
private

list of L3 collection tags

Definition at line 157 of file TriggerSummaryProducerAOD.h.

Referenced by fillTriggerObjectCollections(), produce(), and TriggerSummaryProducerAOD().

InputTagSet TriggerSummaryProducerAOD::collectionTagsStream_
private

Definition at line 158 of file TriggerSummaryProducerAOD.h.

Referenced by endStream(), produce(), and TriggerSummaryProducerAOD().

InputTagSet TriggerSummaryProducerAOD::filterTagsEvent_
private

list of L3 filter tags

Definition at line 153 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

InputTagSet TriggerSummaryProducerAOD::filterTagsStream_
private

Definition at line 154 of file TriggerSummaryProducerAOD.h.

Referenced by endStream(), produce(), and TriggerSummaryProducerAOD().

edm::GetterOfProducts<reco::CaloJetCollection> TriggerSummaryProducerAOD::getCaloJetCollection_
private

Definition at line 178 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

edm::GetterOfProducts<reco::CaloMETCollection> TriggerSummaryProducerAOD::getCaloMETCollection_
private

Definition at line 181 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

edm::GetterOfProducts<reco::CompositeCandidateCollection> TriggerSummaryProducerAOD::getCompositeCandidateCollection_
private

Definition at line 179 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

edm::GetterOfProducts<reco::ElectronCollection> TriggerSummaryProducerAOD::getElectronCollection_
private

Definition at line 176 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

edm::GetterOfProducts<reco::IsolatedPixelTrackCandidateCollection> TriggerSummaryProducerAOD::getIsolatedPixelTrackCandidateCollection_
private

Definition at line 183 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

edm::GetterOfProducts<l1extra::L1EmParticleCollection> TriggerSummaryProducerAOD::getL1EmParticleCollection_
private

Definition at line 184 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

edm::GetterOfProducts<l1extra::L1EtMissParticleCollection> TriggerSummaryProducerAOD::getL1EtMissParticleCollection_
private

Definition at line 187 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

edm::GetterOfProducts<l1extra::L1HFRingsCollection> TriggerSummaryProducerAOD::getL1HFRingsCollection_
private

Definition at line 188 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

edm::GetterOfProducts<l1extra::L1JetParticleCollection> TriggerSummaryProducerAOD::getL1JetParticleCollection_
private

Definition at line 186 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

edm::GetterOfProducts<l1extra::L1MuonParticleCollection> TriggerSummaryProducerAOD::getL1MuonParticleCollection_
private

Definition at line 185 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

edm::GetterOfProducts<l1t::EGammaBxCollection> TriggerSummaryProducerAOD::getL1TEGammaParticleCollection_
private

Definition at line 192 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

edm::GetterOfProducts<l1t::EtSumBxCollection> TriggerSummaryProducerAOD::getL1TEtSumParticleCollection_
private

Definition at line 195 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

edm::GetterOfProducts<l1t::JetBxCollection> TriggerSummaryProducerAOD::getL1TJetParticleCollection_
private

Definition at line 193 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

edm::GetterOfProducts<l1t::MuonBxCollection> TriggerSummaryProducerAOD::getL1TMuonParticleCollection_
private

Definition at line 191 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

edm::GetterOfProducts<l1t::TauBxCollection> TriggerSummaryProducerAOD::getL1TTauParticleCollection_
private

Definition at line 194 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

edm::GetterOfProducts<reco::METCollection> TriggerSummaryProducerAOD::getMETCollection_
private

Definition at line 180 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

edm::GetterOfProducts<reco::PFJetCollection> TriggerSummaryProducerAOD::getPFJetCollection_
private

Definition at line 189 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

edm::GetterOfProducts<reco::PFMETCollection> TriggerSummaryProducerAOD::getPFMETCollection_
private

Definition at line 182 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

edm::GetterOfProducts<reco::PFTauCollection> TriggerSummaryProducerAOD::getPFTauCollection_
private

Definition at line 190 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

edm::GetterOfProducts<reco::RecoChargedCandidateCollection> TriggerSummaryProducerAOD::getRecoChargedCandidateCollection_
private

Definition at line 177 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

edm::GetterOfProducts<reco::RecoEcalCandidateCollection> TriggerSummaryProducerAOD::getRecoEcalCandidateCollection_
private

Definition at line 175 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

edm::GetterOfProducts<trigger::TriggerFilterObjectWithRefs> TriggerSummaryProducerAOD::getTriggerFilterObjectWithRefs_
private

Definition at line 174 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

trigger::Vids TriggerSummaryProducerAOD::ids_
private

ids

Definition at line 169 of file TriggerSummaryProducerAOD.h.

Referenced by fillFilterObjectMember(), and produce().

trigger::Keys TriggerSummaryProducerAOD::keys_
private
std::vector<bool> TriggerSummaryProducerAOD::maskFilters_
private

packing decision

Definition at line 172 of file TriggerSummaryProducerAOD.h.

Referenced by produce().

std::vector<std::regex> TriggerSummaryProducerAOD::moduleLabelPatternsToMatch_
private

module labels which should be avoided

Definition at line 129 of file TriggerSummaryProducerAOD.h.

Referenced by TriggerSummaryProducerAOD().

std::vector<std::regex> TriggerSummaryProducerAOD::moduleLabelPatternsToSkip_
private

Definition at line 130 of file TriggerSummaryProducerAOD.h.

Referenced by TriggerSummaryProducerAOD().

std::map<edm::ProductID, unsigned int> TriggerSummaryProducerAOD::offset_
private

global map for indices into toc_: offset per input L3 collection

Definition at line 164 of file TriggerSummaryProducerAOD.h.

Referenced by fillFilterObjectMembers(), fillTriggerObjectCollections(), and produce().

std::string TriggerSummaryProducerAOD::pn_
private

process name

Definition at line 127 of file TriggerSummaryProducerAOD.h.

Referenced by produce(), and TriggerSummaryProducerAOD().

std::vector<std::string> TriggerSummaryProducerAOD::tags_
private

Definition at line 162 of file TriggerSummaryProducerAOD.h.

Referenced by fillTriggerObjectCollections(), and produce().

bool TriggerSummaryProducerAOD::throw_
private

throw on error

Definition at line 125 of file TriggerSummaryProducerAOD.h.

Referenced by fillFilterObjectMembers().

trigger::TriggerObjectCollection TriggerSummaryProducerAOD::toc_
private

trigger object collection

Definition at line 161 of file TriggerSummaryProducerAOD.h.

Referenced by fillTriggerObject(), fillTriggerObjectCollections(), and produce().