39 processName_(ps.getParameter<std::
string>(
"processName")),
40 triggerName_(ps.getParameter<std::
string>(
"triggerName")),
41 triggerResultsTag_(ps.getParameter<edm::
InputTag>(
"triggerResults")),
43 triggerEventWithRefsTag_(ps.getParameter<edm::
InputTag>(
"triggerEventWithRefs")),
44 triggerEventWithRefsToken_(consumes<trigger::TriggerEventWithRefs>(triggerEventWithRefsTag_))
49 LogVerbatim(
"HLTEventAnalyzerRAW") <<
"HLTEventAnalyzerRAW configuration: " << endl
71 descriptions.
add(
"hltEventAnalyzerRAW", desc);
90 if (triggerIndex>=
n) {
91 LogVerbatim(
"HLTEventAnalyzerRAW") <<
"HLTEventAnalyzerRAW::analyze:"
93 <<
" not available in (new) config!" << endl;
94 LogVerbatim(
"HLTEventAnalyzerRAW") <<
"Available TriggerNames are: " << endl;
100 LogVerbatim(
"HLTEventAnalyzerRAW") <<
"HLTEventAnalyzerRAW::analyze:"
101 <<
" config extraction failure with process name "
119 LogVerbatim(
"HLTEventAnalyzerRAW") <<
"HLTEventAnalyzerRAW::analyze: Error in getting TriggerResults product from Event!" << endl;
124 LogVerbatim(
"HLTEventAnalyzerRAW") <<
"HLTEventAnalyzerRAW::analyze: Error in getting TriggerEventWithRefs product from Event!" << endl;
133 for (
unsigned int i=0;
i!=
n; ++
i) {
148 using namespace reco;
149 using namespace trigger;
158 if (triggerIndex>=
n) {
159 LogVerbatim(
"HLTEventAnalyzerRAW") <<
"HLTEventAnalyzerRAW::analyzeTrigger: path "
160 << triggerName <<
" - not found!" << endl;
164 LogVerbatim(
"HLTEventAnalyzerRAW") <<
"HLTEventAnalyzerRAW::analyzeTrigger: path "
165 << triggerName <<
" [" << triggerIndex <<
"]" << endl;
171 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" Trigger path status:"
177 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" Last active module - label/type: "
179 <<
" [" << moduleIndex <<
" out of 0-" << (
m-1) <<
" on this path]"
217 for (
unsigned int j=0;
j<=moduleIndex; ++
j) {
218 const string& moduleLabel(moduleLabels[
j]);
222 if (filterIndex<triggerEventWithRefsHandle_->
size()) {
223 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" Filter in slot " << j <<
" - label/type " << moduleLabel <<
"/" << moduleType << endl;
224 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" Filter packed up at: " << filterIndex << endl;
225 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" Accepted objects:" << endl;
228 const unsigned int nPhotons(
photonIds_.size());
230 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" Photons: " << nPhotons <<
" - the objects: # id pt" << endl;
231 for (
unsigned int i=0;
i!=nPhotons; ++
i) {
241 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" Electrons: " << nElectrons <<
" - the objects: # id pt" << endl;
242 for (
unsigned int i=0;
i!=nElectrons; ++
i) {
250 const unsigned int nMuons(
muonIds_.size());
252 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" Muons: " << nMuons <<
" - the objects: # id pt" << endl;
253 for (
unsigned int i=0;
i!=nMuons; ++
i) {
261 const unsigned int nJets(
jetIds_.size());
263 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" Jets: " << nJets <<
" - the objects: # id pt" << endl;
264 for (
unsigned int i=0;
i!=nJets; ++
i) {
274 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" Composites: " << nComposites <<
" - the objects: # id pt" << endl;
275 for (
unsigned int i=0;
i!=nComposites; ++
i) {
285 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" BaseMETs: " << nBaseMETs <<
" - the objects: # id pt" << endl;
286 for (
unsigned int i=0;
i!=nBaseMETs; ++
i) {
296 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" CaloMETs: " << nCaloMETs <<
" - the objects: # id pt" << endl;
297 for (
unsigned int i=0;
i!=nCaloMETs; ++
i) {
307 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" PixTracks: " << nPixTracks <<
" - the objects: # id pt" << endl;
308 for (
unsigned int i=0;
i!=nPixTracks; ++
i) {
316 const unsigned int nL1EM(
l1emIds_.size());
318 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" L1EM: " << nL1EM <<
" - the objects: # id pt" << endl;
319 for (
unsigned int i=0;
i!=nL1EM; ++
i) {
327 const unsigned int nL1Muon(
l1muonIds_.size());
329 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" L1Muon: " << nL1Muon <<
" - the objects: # id pt" << endl;
330 for (
unsigned int i=0;
i!=nL1Muon; ++
i) {
338 const unsigned int nL1Jet(
l1jetIds_.size());
340 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" L1Jet: " << nL1Jet <<
" - the objects: # id pt" << endl;
341 for (
unsigned int i=0;
i!=nL1Jet; ++
i) {
351 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" L1EtMiss: " << nL1EtMiss <<
" - the objects: # id pt" << endl;
352 for (
unsigned int i=0;
i!=nL1EtMiss; ++
i) {
362 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" L1HfRings: " << nL1HfRings <<
" - the objects: # id 4 4" << endl;
363 for (
unsigned int i=0;
i!=nL1HfRings; ++
i) {
378 const unsigned int nPFJets(
pfjetIds_.size());
380 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" PFJets: " << nPFJets <<
" - the objects: # id pt" << endl;
381 for (
unsigned int i=0;
i!=nPFJets; ++
i) {
389 const unsigned int nPFTaus(
pftauIds_.size());
391 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" PFTaus: " << nPFTaus <<
" - the objects: # id pt" << endl;
392 for (
unsigned int i=0;
i!=nPFTaus; ++
i) {
unsigned int size() const
number of trigger paths in trigger table
void dump(const std::string &what) const
Dumping config info to cout.
trigger::Vids compositeIds_
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
trigger::Vids calometIds_
const std::string moduleType(const std::string &module) const
C++ class name of module.
trigger::Vids l1etmissIds_
edm::Handle< edm::TriggerResults > triggerResultsHandle_
additional class data memebers
const std::string & triggerName(unsigned int triggerIndex) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
trigger::VRl1muon l1muonRefs_
trigger::Vids electronIds_
const edm::InputTag triggerEventWithRefsTag_
trigger::VRl1em l1emRefs_
trigger::VRpftau pftauRefs_
virtual void endRun(edm::Run const &, edm::EventSetup const &) override
HLTEventAnalyzerRAW(const edm::ParameterSet &)
const edm::InputTag triggerResultsTag_
trigger::VRpfjet pfjetRefs_
trigger::Vids photonIds_
payload extracted from TriggerEventWithRefs
trigger::VRl1jet l1jetRefs_
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)
virtual void beginRun(edm::Run const &, edm::EventSetup const &) override
trigger::VRcomposite compositeRefs_
const std::string processName_
module config parameters
const edm::EDGetTokenT< trigger::TriggerEventWithRefs > triggerEventWithRefsToken_
trigger::VRphoton photonRefs_
trigger::Vids basemetIds_
unsigned int triggerIndex(std::string const &name) const
virtual ~HLTEventAnalyzerRAW()
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
HLTConfigProvider hltConfig_
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
trigger::VRelectron electronRefs_
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
const edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_
trigger::Vids pixtrackIds_
trigger::Vids l1hfringsIds_
trigger::VRl1etmiss l1etmissRefs_
edm::Handle< trigger::TriggerEventWithRefs > triggerEventWithRefsHandle_
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)
trigger::VRl1hfrings l1hfringsRefs_
trigger::VRcalomet calometRefs_
virtual void analyzeTrigger(const edm::Event &, const edm::EventSetup &, const std::string &triggerName)
const std::string triggerName_
trigger::VRmuon muonRefs_
trigger::VRpixtrack pixtrackRefs_
trigger::VRbasemet basemetRefs_
tuple size
Write out results.