20 processName_(ps.getParameter<std::
string>(
"processName")),
21 triggerName_(ps.getParameter<std::
string>(
"triggerName")),
22 triggerResultsTag_(ps.getParameter<edm::InputTag>(
"triggerResults")),
24 triggerEventTag_(ps.getParameter<edm::InputTag>(
"triggerEvent")),
25 triggerEventToken_(consumes<trigger::TriggerEvent>(triggerEventTag_))
30 cout <<
"HLTEventAnalyzerAOD configuration: " << endl
52 descriptions.
add(
"hltEventAnalyzerAOD", desc);
68 if (triggerIndex>=
n) {
69 cout <<
"HLTEventAnalyzerAOD::analyze:"
71 <<
" not available in (new) config!" << endl;
72 cout <<
"Available TriggerNames are: " << endl;
85 cout <<
"HLTEventAnalyzerAOD::analyze:"
86 <<
" config extraction failure with process name "
103 cout <<
"HLTEventAnalyzerAOD::analyze: Error in getting TriggerResults product from Event!" << endl;
108 cout <<
"HLTEventAnalyzerAOD::analyze: Error in getting TriggerEvent product from Event!" << endl;
117 for (
unsigned int i=0;
i!=
n; ++
i) {
132 using namespace reco;
133 using namespace trigger;
142 if (triggerIndex>=
n) {
143 cout <<
"HLTEventAnalyzerAOD::analyzeTrigger: path "
144 << triggerName <<
" - not found!" << endl;
149 cout <<
"HLTEventAnalyzerAOD::analyzeTrigger: path "
150 << triggerName <<
" [" << triggerIndex <<
"] "
155 for (
unsigned int i=0;
i<prescalesInDetail.first.size(); ++
i) {
156 message <<
" " <<
i <<
":" << prescalesInDetail.first[
i].first <<
"/" << prescalesInDetail.first[
i].second;
158 cout <<
"HLTEventAnalyzerAOD::analyzeTrigger: path "
159 << triggerName <<
" [" << triggerIndex <<
"] "
161 <<
"prescales L1T: " << prescalesInDetail.first.size() <<
message.str()
163 <<
"prescale HLT: " << prescalesInDetail.second
171 cout <<
" Trigger path status:"
177 cout <<
" Last active module - label/type: "
179 <<
" [" << moduleIndex <<
" out of 0-" << (
m-1) <<
" on this path]"
181 assert (moduleIndex<
m);
185 for (
unsigned int j=0;
j<=moduleIndex; ++
j) {
186 const string& moduleLabel(moduleLabels[
j]);
190 if (filterIndex<triggerEventHandle_->sizeFilters()) {
191 cout <<
" 'L3' filter in slot " << j <<
" - label/type " << moduleLabel <<
"/" << moduleType << endl;
198 cout <<
" " << n <<
" accepted 'L3' objects found: " << endl;
202 cout <<
" " << i <<
" " << VIDS[
i] <<
"/" << KEYS[
i] <<
": "
203 << 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.
edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_
const std::string & triggerName(unsigned int triggerIndex) const
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::pair< std::vector< std::pair< std::string, int > >, int > prescaleValuesInDetail(const edm::Event &iEvent, const edm::EventSetup &iSetup, const std::string &trigger) const
edm::InputTag triggerEventTag_
edm::Handle< trigger::TriggerEvent > triggerEventHandle_
triggerResultsToken_(consumes< edm::TriggerResults >(edm::InputTag("TriggerResults")))
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
std::string processName_
module config parameters
edm::EDGetTokenT< trigger::TriggerEvent > triggerEventToken_
edm::InputTag triggerResultsTag_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
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)
d'tor
void add(std::string const &label, ParameterSetDescription const &psetDescription)
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 &)