38 : inputTag_(ps.getParameter<edm::
InputTag>(
"inputTag")), inputToken_(consumes<trigger::TriggerEvent>(inputTag_)) {}
47 descriptions.
add(
"triggerSummaryAnalyzerAOD", desc);
55 using namespace trigger;
59 <<
"TriggerSummaryAnalyzerAOD: content of TriggerEvent: " <<
inputTag_.
encode() << endl;
64 LogVerbatim(
"TriggerSummaryAnalyzerAOD") <<
"Used Processname: " <<
handle->usedProcessName() << endl;
66 LogVerbatim(
"TriggerSummaryAnalyzerAOD") <<
"Number of packed Collections: " << nC << endl;
67 LogVerbatim(
"TriggerSummaryAnalyzerAOD") <<
"The Collections: #, tag, 1-past-end index" << endl;
70 << iC <<
" " <<
handle->collectionTag(iC).encode() <<
" " <<
handle->collectionKey(iC) << endl;
73 LogVerbatim(
"TriggerSummaryAnalyzerAOD") <<
"Number of TriggerObjects: " << nO << endl;
74 LogVerbatim(
"TriggerSummaryAnalyzerAOD") <<
"The TriggerObjects: #, id, pt, eta, phi, mass" << endl;
79 << iO <<
" " << TO.
id() <<
" " << TO.
pt() <<
" " << TO.
eta() <<
" " << TO.
phi() <<
" " << TO.
mass() << endl;
82 LogVerbatim(
"TriggerSummaryAnalyzerAOD") <<
"Number of TriggerFilters: " << nF << endl;
83 LogVerbatim(
"TriggerSummaryAnalyzerAOD") <<
"The Filters: #, tag, #ids/#keys, the id/key pairs" << endl;
90 << iF <<
" " <<
handle->filterTag(iF).encode() <<
" " << nI <<
"/" << nK <<
" the pairs: ";
93 LogVerbatim(
"TriggerSummaryAnalyzerAOD") <<
" " << VIDS[
i] <<
"/" << KEYS[
i];
99 LogVerbatim(
"TriggerSummaryAnalyzerAOD") <<
"Handle invalid! Check InputTag provided." << endl;
Log< level::Info, true > LogVerbatim
TriggerSummaryAnalyzerAOD(const edm::ParameterSet &)
void analyze(edm::StreamID, const edm::Event &, const edm::EventSetup &) const override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
const edm::EDGetTokenT< trigger::TriggerEvent > inputToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Single trigger physics object (e.g., an isolated muon)
const edm::InputTag inputTag_
InputTag of TriggerEvent to analyze.
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
std::vector< size_type > Keys
void add(std::string const &label, ParameterSetDescription const &psetDescription)