30 : pn_(ps.getParameter<
std::
string>(
"processName")) {
36 edm::LogError(
"TriggerSummaryProducerRaw") <<
"HLT Error: TriggerNamesService not available!";
41 LogDebug(
"TriggerSummaryProducerRaw") <<
"Using process name: '" <<
pn_ <<
"'";
42 produces<trigger::TriggerEventWithRefs>();
47 callWhenNewProductsRegistered(getterOfProducts_);
59 descriptions.
add(
"triggerSummaryProducerRAW", desc);
69 std::vector<edm::Handle<trigger::TriggerFilterObjectWithRefs> > fobs;
72 const unsigned int nfob(fobs.size());
73 LogDebug(
"TriggerSummaryProducerRaw") <<
"Number of filter objects found: " << nfob;
77 for (
unsigned int ifob = 0; ifob != nfob; ++ifob) {
79 const string&
instance(fobs[ifob].provenance()->productInstanceName());
82 LogTrace(
"TriggerSummaryProducerRaw")
83 << ifob <<
" " << tag << endl
85 <<
" 1/" << fobs[ifob]->photonSize() <<
" 2/" << fobs[ifob]->electronSize() <<
" 3/" << fobs[ifob]->muonSize()
86 <<
" 4/" << fobs[ifob]->jetSize() <<
" 5/" << fobs[ifob]->compositeSize() <<
" 6/" << fobs[ifob]->basemetSize()
87 <<
" 7/" << fobs[ifob]->calometSize()
89 <<
" 8/" << fobs[ifob]->pixtrackSize() <<
" 9/" << fobs[ifob]->l1emSize() <<
" A/" << fobs[ifob]->l1muonSize()
90 <<
" B/" << fobs[ifob]->l1jetSize() <<
" C/" << fobs[ifob]->l1etmissSize() <<
" D/" 91 << fobs[ifob]->l1hfringsSize() <<
" E/" << fobs[ifob]->pfjetSize() <<
" F/" << fobs[ifob]->pftauSize() <<
" G/" 92 << fobs[ifob]->pfmetSize() <<
" I/" << fobs[ifob]->l1tmuonSize() <<
" J/" << fobs[ifob]->l1tegammaSize()
93 <<
" K/" << fobs[ifob]->l1tjetSize() <<
" L/" << fobs[ifob]->l1ttauSize() <<
" M/" << fobs[ifob]->l1tetsumSize()
95 LogTrace(
"TriggerSummaryProducerRaw")
96 <<
"TriggerSummaryProducerRaw::addFilterObjects( )" 97 <<
"\n fobs[ifob]->l1tmuonIds().size() = " << fobs[ifob]->l1tmuonIds().size()
98 <<
"\n fobs[ifob]->l1tmuonRefs().size() = " << fobs[ifob]->l1tmuonRefs().size() << endl;
99 LogTrace(
"TriggerSummaryProducerRaw")
100 <<
"TriggerSummaryProducerRaw::addFilterObjects( )" 101 <<
"\n fobs[ifob]->l1tegammaIds().size() = " << fobs[ifob]->l1tegammaIds().size()
102 <<
"\n fobs[ifob]->l1tegammaRefs().size() = " << fobs[ifob]->l1tegammaRefs().size() << endl;
103 LogTrace(
"TriggerSummaryProducerRaw")
104 <<
"TriggerSummaryProducerRaw::addFilterObjects( )" 105 <<
"\n fobs[ifob]->l1tjetIds().size() = " << fobs[ifob]->l1tjetIds().size()
106 <<
"\n fobs[ifob]->l1tjetRefs().size() = " << fobs[ifob]->l1tjetRefs().size() << endl;
107 LogTrace(
"TriggerSummaryProducerRaw")
108 <<
"TriggerSummaryProducerRaw::addFilterObjects( )" 109 <<
"\n fobs[ifob]->l1ttauIds().size() = " << fobs[ifob]->l1ttauIds().size()
110 <<
"\n fobs[ifob]->l1ttauRefs().size() = " << fobs[ifob]->l1ttauRefs().size() << endl;
111 LogTrace(
"TriggerSummaryProducerRaw")
112 <<
"TriggerSummaryProducerRaw::addFilterObjects( )" 113 <<
"\n fobs[ifob]->l1tetsumIds().size() = " << fobs[ifob]->l1tetsumIds().size()
114 <<
"\n fobs[ifob]->l1tetsumRefs().size() = " << fobs[ifob]->l1tetsumRefs().size() << endl;
115 product->addFilterObject(tag, *fobs[ifob]);
120 LogTrace(
"TriggerSummaryProducerRaw") <<
"Number of filter objects packed: " << ref->
size();
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::string const & getProcessName() const
static PFTauRenderPlugin instance
edm::GetterOfProducts< trigger::TriggerFilterObjectWithRefs > getterOfProducts_
void fillHandles(edm::Event const &event, std::vector< edm::Handle< T >> &handles) const
TriggerSummaryProducerRAW(const edm::ParameterSet &)
~TriggerSummaryProducerRAW() override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::string pn_
process name
size_type size() const
number of filters
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void produce(edm::Event &, const edm::EventSetup &) override