19 inputTag_(ps.getParameter<edm::InputTag>(
"inputTag"))
37 using namespace trigger;
41 cout <<
"TriggerSummaryAnalyzerAOD: content of TriggerEvent: " <<
inputTag_.
encode() << endl;
46 cout <<
"Used Processname: " <<
handle->usedProcessName() << endl;
48 cout <<
"Number of packed Collections: " << nC << endl;
49 cout <<
"The Collections: #, tag, 1-past-end index" << endl;
52 <<
handle->collectionTag(iC).encode() <<
" "
53 <<
handle->collectionKey(iC) << endl;
56 cout <<
"Number of TriggerObjects: " << nO << endl;
57 cout <<
"The TriggerObjects: #, id, pt, eta, phi, mass" << endl;
61 cout << iO <<
" " << TO.
id() <<
" " << TO.
pt() <<
" " << TO.
eta() <<
" " << TO.
phi() <<
" " << TO.
mass() << endl;
64 cout <<
"Number of TriggerFilters: " << nF << endl;
65 cout <<
"The Filters: #, tag, #ids/#keys, the id/key pairs" << endl;
71 cout << iF <<
" " <<
handle->filterTag(iF).encode()
72 <<
" " << nI <<
"/" << nK
76 cout <<
" " << VIDS[
i] <<
"/" << KEYS[
i];
82 cout <<
"Handle invalid! Check InputTag provided." << endl;
TriggerSummaryAnalyzerAOD(const edm::ParameterSet &)
~TriggerSummaryAnalyzerAOD()
Single trigger physics object (e.g., an isolated muon)
const T & max(const T &a, const T &b)
edm::InputTag inputTag_
InputTag of TriggerEvent to analyze.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
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