29 : pn_(ps.getParameter<std::
string>(
"processName")), putToken_{produces<trigger::TriggerEventWithRefs>()} {
35 edm::LogError(
"TriggerSummaryProducerRaw") <<
"HLT Error: TriggerNamesService not available!";
40 LogDebug(
"TriggerSummaryProducerRaw") <<
"Using process name: '" <<
pn_ <<
"'";
57 descriptions.
add(
"triggerSummaryProducerRAW", desc);
65 using namespace trigger;
67 std::vector<edm::Handle<trigger::TriggerFilterObjectWithRefs> > fobs;
70 const unsigned int nfob(fobs.size());
71 LogDebug(
"TriggerSummaryProducerRaw") <<
"Number of filter objects found: " << nfob;
75 for (
unsigned int ifob = 0; ifob != nfob; ++ifob) {
76 const string&
label(fobs[ifob].provenance()->moduleLabel());
77 const string&
instance(fobs[ifob].provenance()->productInstanceName());
80 LogTrace(
"TriggerSummaryProducerRaw")
81 << ifob <<
" " << tag <<
"\n"
83 <<
" 1/" << fobs[ifob]->photonSize() <<
" 2/" << fobs[ifob]->electronSize() <<
" 3/" << fobs[ifob]->muonSize()
84 <<
" 4/" << fobs[ifob]->jetSize() <<
" 5/" << fobs[ifob]->compositeSize() <<
" 6/" << fobs[ifob]->basemetSize()
85 <<
" 7/" << fobs[ifob]->calometSize()
87 <<
" 8/" << fobs[ifob]->pixtrackSize() <<
" 9/" << fobs[ifob]->l1emSize() <<
" A/" << fobs[ifob]->l1muonSize()
88 <<
" B/" << fobs[ifob]->l1jetSize() <<
" C/" << fobs[ifob]->l1etmissSize() <<
" D/"
89 << fobs[ifob]->l1hfringsSize() <<
" E/" << fobs[ifob]->pfjetSize() <<
" F/" << fobs[ifob]->pftauSize() <<
" G/"
90 << fobs[ifob]->pfmetSize() <<
" I/" << fobs[ifob]->l1tmuonSize() <<
" J/" << fobs[ifob]->l1tegammaSize()
91 <<
" K/" << fobs[ifob]->l1tjetSize() <<
" L/" << fobs[ifob]->l1ttauSize() <<
" M/" << fobs[ifob]->l1tetsumSize()
92 <<
" N/" << fobs[ifob]->l1ttkmuonSize() <<
" O/" << fobs[ifob]->l1ttkeleSize() <<
" P/"
93 << fobs[ifob]->l1ttkemSize() <<
" Q/" << fobs[ifob]->l1tpfjetSize() <<
" R/" << fobs[ifob]->l1tpftauSize()
94 <<
" S/" << fobs[ifob]->l1thpspftauSize() <<
" T/" << fobs[ifob]->l1tpftrackSize() <<
" U/"
95 << fobs[ifob]->l1tmuonShowerSize();
96 LogTrace(
"TriggerSummaryProducerRaw")
97 <<
"TriggerSummaryProducerRaw::addFilterObjects( )"
98 <<
"\n fobs[ifob]->l1tmuonIds().size() = " << fobs[ifob]->l1tmuonIds().size()
99 <<
"\n fobs[ifob]->l1tmuonRefs().size() = " << fobs[ifob]->l1tmuonRefs().size();
100 LogTrace(
"TriggerSummaryProducerRaw")
101 <<
"TriggerSummaryProducerRaw::addFilterObjects( )"
102 <<
"\n fobs[ifob]->l1tegammaIds().size() = " << fobs[ifob]->l1tegammaIds().size()
103 <<
"\n fobs[ifob]->l1tegammaRefs().size() = " << fobs[ifob]->l1tegammaRefs().size();
104 LogTrace(
"TriggerSummaryProducerRaw") <<
"TriggerSummaryProducerRaw::addFilterObjects( )"
105 <<
"\n fobs[ifob]->l1tjetIds().size() = " << fobs[ifob]->l1tjetIds().size()
106 <<
"\n fobs[ifob]->l1tjetRefs().size() = " << fobs[ifob]->l1tjetRefs().size();
107 LogTrace(
"TriggerSummaryProducerRaw") <<
"TriggerSummaryProducerRaw::addFilterObjects( )"
108 <<
"\n fobs[ifob]->l1ttauIds().size() = " << fobs[ifob]->l1ttauIds().size()
109 <<
"\n fobs[ifob]->l1ttauRefs().size() = " << fobs[ifob]->l1ttauRefs().size();
110 LogTrace(
"TriggerSummaryProducerRaw")
111 <<
"TriggerSummaryProducerRaw::addFilterObjects( )"
112 <<
"\n fobs[ifob]->l1tetsumIds().size() = " << fobs[ifob]->l1tetsumIds().size()
113 <<
"\n fobs[ifob]->l1tetsumRefs().size() = " << fobs[ifob]->l1tetsumRefs().size();
114 LogTrace(
"TriggerSummaryProducerRaw")
115 <<
"TriggerSummaryProducerRaw::addFilterObjects( )"
116 <<
"\n fobs[ifob]->l1tmuonShowerIds().size() = " << fobs[ifob]->l1tmuonShowerIds().size()
117 <<
"\n fobs[ifob]->l1tmuonShowerRefs().size() = " << fobs[ifob]->l1tmuonShowerRefs().size();
123 LogTrace(
"TriggerSummaryProducerRaw") <<
"Number of filter objects packed: " << ref->size();
void callWhenNewProductsRegistered(std::function< void(BranchDescription const &)> const &func)
pathNames_ & tns()), endPathNames_(&tns.getEndPaths()), wantSummary_(tns.wantSummary()
std::string const & getProcessName() const
void addFilterObject(const edm::InputTag &filterTag, const TriggerFilterObjectWithRefs &tfowr)
setters - to build EDProduct
static PFTauRenderPlugin instance
const edm::EDPutTokenT< trigger::TriggerEventWithRefs > putToken_
edm::GetterOfProducts< trigger::TriggerFilterObjectWithRefs > getterOfProducts_
void fillHandles(edm::Event const &event, std::vector< edm::Handle< T >> &handles) const
TriggerSummaryProducerRAW(const edm::ParameterSet &)
Log< level::Error, false > LogError
~TriggerSummaryProducerRAW() override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
std::string pn_
process name
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)