21 processName_(ps.getParameter<std::string>(
"processName")),
22 triggerName_(ps.getParameter<std::string>(
"triggerName")),
23 triggerResultsTag_(ps.getParameter<edm::InputTag>(
"triggerResults")),
24 triggerEventTag_(ps.getParameter<edm::InputTag>(
"triggerEvent"))
29 cout <<
"HLTEventAnalyzerAOD configuration: " << endl
57 if (triggerIndex>=
n) {
58 cout <<
"HLTEventAnalyzerAOD::analyze:"
60 <<
" not available in (new) config!" << endl;
61 cout <<
"Available TriggerNames are: " << endl;
71 cout <<
"HLTEventAnalyzerAOD::analyze:"
72 <<
" config extraction failure with process name "
89 cout <<
"HLTEventAnalyzerAOD::analyze: Error in getting TriggerResults product from Event!" << endl;
94 cout <<
"HLTEventAnalyzerAOD::analyze: Error in getting TriggerEvent product from Event!" << endl;
103 for (
unsigned int i=0;
i!=
n; ++
i) {
118 using namespace reco;
119 using namespace trigger;
128 if (triggerIndex>=
n) {
129 cout <<
"HLTEventAnalyzerAOD::analyzeTrigger: path "
130 << triggerName <<
" - not found!" << endl;
135 cout <<
"HLTEventAnalyzerAOD::analyzeTrigger: path "
136 << triggerName <<
" [" << triggerIndex <<
"] "
145 cout <<
" Trigger path status:"
151 cout <<
" Last active module - label/type: "
153 <<
" [" << moduleIndex <<
" out of 0-" << (
m-1) <<
" on this path]"
155 assert (moduleIndex<
m);
159 for (
unsigned int j=0;
j<=moduleIndex; ++
j) {
164 if (filterIndex<triggerEventHandle_->sizeFilters()) {
165 cout <<
" 'L3' filter in slot " << j <<
" - label/type " << moduleLabel <<
"/" << moduleType << endl;
172 cout <<
" " << n <<
" accepted 'L3' objects found: " << endl;
176 cout <<
" " << i <<
" " << VIDS[
i] <<
"/" << KEYS[
i] <<
": "
177 << TO.
id() <<
" " << TO.
pt() <<
" " << TO.
eta() <<
" " << TO.
phi() <<
" " << TO.
mass()
unsigned int size() const
number of trigger paths in trigger table
void dump(const std::string &what) const
Dumping config info to cout.
virtual void analyzeTrigger(const edm::Event &, const edm::EventSetup &, const std::string &triggerName)
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
const std::string moduleType(const std::string &module) const
C++ class name of module.
const std::string & triggerName(unsigned int triggerIndex) const
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
edm::InputTag triggerEventTag_
edm::Handle< trigger::TriggerEvent > triggerEventHandle_
unsigned int triggerIndex(const std::string &triggerName) const
slot position of trigger path in trigger table (0 to size-1)
Single trigger physics object (e.g., an isolated muon)
unsigned int triggerIndex(std::string const &name) const
const T & max(const T &a, const T &b)
std::string processName_
module config parameters
edm::InputTag triggerResultsTag_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
edm::Handle< edm::TriggerResults > triggerResultsHandle_
additional class data memebers
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
std::vector< size_type > Keys
HLTEventAnalyzerAOD(const edm::ParameterSet &)
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
std::pair< int, int > prescaleValues(const edm::Event &iEvent, const edm::EventSetup &iSetup, const std::string &trigger) const
Combined L1T (pair.first) and HLT (pair.second) prescales per HLT path.
HLTConfigProvider hltConfig_
virtual void analyze(const edm::Event &, const edm::EventSetup &)
const std::string * moduleLabel() const