18 inputTag_(ps.getParameter<edm::
InputTag>(
"inputTag")),
19 inputToken_(consumes<trigger::TriggerEvent>(inputTag_))
33 descriptions.
add(
"triggerSummaryAnalyzerAOD", desc);
43 using namespace trigger;
47 LogVerbatim(
"TriggerSummaryAnalyzerAOD") <<
"TriggerSummaryAnalyzerAOD: content of TriggerEvent: " <<
inputTag_.
encode() << endl;
52 LogVerbatim(
"TriggerSummaryAnalyzerAOD") <<
"Used Processname: " <<
handle->usedProcessName() << endl;
54 LogVerbatim(
"TriggerSummaryAnalyzerAOD") <<
"Number of packed Collections: " << nC << endl;
55 LogVerbatim(
"TriggerSummaryAnalyzerAOD") <<
"The Collections: #, tag, 1-past-end index" << endl;
57 LogVerbatim(
"TriggerSummaryAnalyzerAOD") << iC <<
" "
58 <<
handle->collectionTag(iC).encode() <<
" "
59 <<
handle->collectionKey(iC) << endl;
62 LogVerbatim(
"TriggerSummaryAnalyzerAOD") <<
"Number of TriggerObjects: " << nO << endl;
63 LogVerbatim(
"TriggerSummaryAnalyzerAOD") <<
"The TriggerObjects: #, id, pt, eta, phi, mass" << endl;
67 LogVerbatim(
"TriggerSummaryAnalyzerAOD") << iO <<
" " << TO.
id() <<
" " << TO.
pt() <<
" " << TO.
eta() <<
" " << TO.
phi() <<
" " << TO.
mass() << endl;
70 LogVerbatim(
"TriggerSummaryAnalyzerAOD") <<
"Number of TriggerFilters: " << nF << endl;
71 LogVerbatim(
"TriggerSummaryAnalyzerAOD") <<
"The Filters: #, tag, #ids/#keys, the id/key pairs" << endl;
77 LogVerbatim(
"TriggerSummaryAnalyzerAOD") << iF <<
" " <<
handle->filterTag(iF).encode()
78 <<
" " << nI <<
"/" << nK
82 LogVerbatim(
"TriggerSummaryAnalyzerAOD") <<
" " << VIDS[
i] <<
"/" << KEYS[
i];
88 LogVerbatim(
"TriggerSummaryAnalyzerAOD") <<
"Handle invalid! Check InputTag provided." << endl;
TriggerSummaryAnalyzerAOD(const edm::ParameterSet &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const edm::EDGetTokenT< trigger::TriggerEvent > inputToken_
virtual ~TriggerSummaryAnalyzerAOD()
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)
virtual void analyze(const edm::Event &, const edm::EventSetup &) override