17 inputTag_(ps.getParameter<edm::InputTag>(
"inputTag")),
18 inputToken_(consumes<trigger::TriggerEvent>(inputTag_))
32 descriptions.
add(
"triggerSummaryAnalyzerAOD", desc);
42 using namespace trigger;
46 cout <<
"TriggerSummaryAnalyzerAOD: content of TriggerEvent: " <<
inputTag_.
encode() << endl;
51 cout <<
"Used Processname: " <<
handle->usedProcessName() << endl;
53 cout <<
"Number of packed Collections: " << nC << endl;
54 cout <<
"The Collections: #, tag, 1-past-end index" << endl;
57 <<
handle->collectionTag(iC).encode() <<
" "
58 <<
handle->collectionKey(iC) << endl;
61 cout <<
"Number of TriggerObjects: " << nO << endl;
62 cout <<
"The TriggerObjects: #, id, pt, eta, phi, mass" << endl;
66 cout << iO <<
" " << TO.
id() <<
" " << TO.
pt() <<
" " << TO.
eta() <<
" " << TO.
phi() <<
" " << TO.
mass() << endl;
69 cout <<
"Number of TriggerFilters: " << nF << endl;
70 cout <<
"The Filters: #, tag, #ids/#keys, the id/key pairs" << endl;
76 cout << iF <<
" " <<
handle->filterTag(iF).encode()
77 <<
" " << nI <<
"/" << nK
81 cout <<
" " << VIDS[
i] <<
"/" << KEYS[
i];
87 cout <<
"Handle invalid! Check InputTag provided." << endl;
TriggerSummaryAnalyzerAOD(const edm::ParameterSet &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
~TriggerSummaryAnalyzerAOD()
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Single trigger physics object (e.g., an isolated muon)
const T & max(const T &a, const T &b)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::InputTag inputTag_
InputTag of TriggerEvent to analyze.
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
std::vector< size_type > Keys
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< trigger::TriggerEvent > inputToken_