39 processName_(ps.getParameter<std::
string>(
"processName")),
40 triggerName_(ps.getParameter<std::
string>(
"triggerName")),
41 triggerResultsTag_(ps.getParameter<edm::InputTag>(
"triggerResults")),
42 triggerEventWithRefsTag_(ps.getParameter<edm::InputTag>(
"triggerEventWithRefs"))
47 cout <<
"HLTEventAnalyzerRAW configuration: " << endl
75 if (triggerIndex>=
n) {
76 cout <<
"HLTEventAnalyzerRAW::analyze:"
78 <<
" not available in (new) config!" << endl;
79 cout <<
"Available TriggerNames are: " << endl;
85 cout <<
"HLTEventAnalyzerRAW::analyze:"
86 <<
" config extraction failure with process name "
104 cout <<
"HLTEventAnalyzerRAW::analyze: Error in getting TriggerResults product from Event!" << endl;
109 cout <<
"HLTEventAnalyzerRAW::analyze: Error in getting TriggerEventWithRefs product from Event!" << endl;
118 for (
unsigned int i=0;
i!=
n; ++
i) {
133 using namespace reco;
134 using namespace trigger;
143 if (triggerIndex>=
n) {
144 cout <<
"HLTEventAnalyzerRAW::analyzeTrigger: path "
145 << triggerName <<
" - not found!" << endl;
149 cout <<
"HLTEventAnalyzerRAW::analyzeTrigger: path "
150 << triggerName <<
" [" << triggerIndex <<
"]" << endl;
156 cout <<
" Trigger path status:"
162 cout <<
" Last active module - label/type: "
164 <<
" [" << moduleIndex <<
" out of 0-" << (
m-1) <<
" on this path]"
166 assert (moduleIndex<
m);
202 for (
unsigned int j=0;
j<=moduleIndex; ++
j) {
203 const string& moduleLabel(moduleLabels[
j]);
207 if (filterIndex<triggerEventWithRefsHandle_->
size()) {
208 cout <<
" Filter in slot " << j <<
" - label/type " << moduleLabel <<
"/" << moduleType << endl;
209 cout <<
" Filter packed up at: " << filterIndex << endl;
210 cout <<
" Accepted objects:" << endl;
213 const unsigned int nPhotons(
photonIds_.size());
215 cout <<
" Photons: " << nPhotons <<
" - the objects: # id pt" << endl;
216 for (
unsigned int i=0;
i!=nPhotons; ++
i) {
226 cout <<
" Electrons: " << nElectrons <<
" - the objects: # id pt" << endl;
227 for (
unsigned int i=0;
i!=nElectrons; ++
i) {
235 const unsigned int nMuons(
muonIds_.size());
237 cout <<
" Muons: " << nMuons <<
" - the objects: # id pt" << endl;
238 for (
unsigned int i=0;
i!=nMuons; ++
i) {
246 const unsigned int nJets(
jetIds_.size());
248 cout <<
" Jets: " << nJets <<
" - the objects: # id pt" << endl;
249 for (
unsigned int i=0;
i!=nJets; ++
i) {
259 cout <<
" Composites: " << nComposites <<
" - the objects: # id pt" << endl;
260 for (
unsigned int i=0;
i!=nComposites; ++
i) {
270 cout <<
" BaseMETs: " << nBaseMETs <<
" - the objects: # id pt" << endl;
271 for (
unsigned int i=0;
i!=nBaseMETs; ++
i) {
281 cout <<
" CaloMETs: " << nCaloMETs <<
" - the objects: # id pt" << endl;
282 for (
unsigned int i=0;
i!=nCaloMETs; ++
i) {
292 cout <<
" PixTracks: " << nPixTracks <<
" - the objects: # id pt" << endl;
293 for (
unsigned int i=0;
i!=nPixTracks; ++
i) {
301 const unsigned int nL1EM(
l1emIds_.size());
303 cout <<
" L1EM: " << nL1EM <<
" - the objects: # id pt" << endl;
304 for (
unsigned int i=0;
i!=nL1EM; ++
i) {
312 const unsigned int nL1Muon(
l1muonIds_.size());
314 cout <<
" L1Muon: " << nL1Muon <<
" - the objects: # id pt" << endl;
315 for (
unsigned int i=0;
i!=nL1Muon; ++
i) {
323 const unsigned int nL1Jet(
l1jetIds_.size());
325 cout <<
" L1Jet: " << nL1Jet <<
" - the objects: # id pt" << endl;
326 for (
unsigned int i=0;
i!=nL1Jet; ++
i) {
336 cout <<
" L1EtMiss: " << nL1EtMiss <<
" - the objects: # id pt" << endl;
337 for (
unsigned int i=0;
i!=nL1EtMiss; ++
i) {
347 cout <<
" L1HfRings: " << nL1HfRings <<
" - the objects: # id 4 4" << endl;
348 for (
unsigned int i=0;
i!=nL1HfRings; ++
i) {
363 const unsigned int nPFJets(
pfjetIds_.size());
365 cout <<
" PFJets: " << nPFJets <<
" - the objects: # id pt" << endl;
366 for (
unsigned int i=0;
i!=nPFJets; ++
i) {
374 const unsigned int nPFTaus(
pftauIds_.size());
376 cout <<
" PFTaus: " << nPFTaus <<
" - the objects: # id pt" << endl;
377 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
trigger::VRl1muon l1muonRefs_
trigger::Vids electronIds_
trigger::VRl1em l1emRefs_
trigger::VRpftau pftauRefs_
HLTEventAnalyzerRAW(const edm::ParameterSet &)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
trigger::VRpfjet pfjetRefs_
trigger::Vids photonIds_
payload extracted from TriggerEventWithRefs
trigger::VRl1jet l1jetRefs_
unsigned int triggerIndex(const std::string &triggerName) const
slot position of trigger path in trigger table (0 to size-1)
edm::InputTag triggerEventWithRefsTag_
trigger::VRcomposite compositeRefs_
trigger::VRphoton photonRefs_
trigger::Vids basemetIds_
unsigned int triggerIndex(std::string const &name) const
HLTConfigProvider hltConfig_
trigger::VRelectron electronRefs_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
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
trigger::VRl1hfrings l1hfringsRefs_
trigger::VRcalomet calometRefs_
virtual void analyzeTrigger(const edm::Event &, const edm::EventSetup &, const std::string &triggerName)
trigger::VRmuon muonRefs_
trigger::VRpixtrack pixtrackRefs_
edm::InputTag triggerResultsTag_
std::string processName_
module config parameters
trigger::VRbasemet basemetRefs_
tuple size
Write out results.