38 processName_(ps.getParameter<std::
string>(
"processName")),
39 triggerName_(ps.getParameter<std::
string>(
"triggerName")),
40 triggerResultsTag_(ps.getParameter<edm::InputTag>(
"triggerResults")),
42 triggerEventWithRefsTag_(ps.getParameter<edm::InputTag>(
"triggerEventWithRefs")),
43 triggerEventWithRefsToken_(consumes<trigger::TriggerEventWithRefs>(triggerEventWithRefsTag_))
48 cout <<
"HLTEventAnalyzerRAW configuration: " << endl
70 descriptions.
add(
"hltEventAnalyzerRAW", desc);
86 if (triggerIndex>=
n) {
87 cout <<
"HLTEventAnalyzerRAW::analyze:"
89 <<
" not available in (new) config!" << endl;
90 cout <<
"Available TriggerNames are: " << endl;
96 cout <<
"HLTEventAnalyzerRAW::analyze:"
97 <<
" config extraction failure with process name "
115 cout <<
"HLTEventAnalyzerRAW::analyze: Error in getting TriggerResults product from Event!" << endl;
120 cout <<
"HLTEventAnalyzerRAW::analyze: Error in getting TriggerEventWithRefs product from Event!" << endl;
129 for (
unsigned int i=0;
i!=
n; ++
i) {
144 using namespace reco;
145 using namespace trigger;
154 if (triggerIndex>=
n) {
155 cout <<
"HLTEventAnalyzerRAW::analyzeTrigger: path "
156 << triggerName <<
" - not found!" << endl;
160 cout <<
"HLTEventAnalyzerRAW::analyzeTrigger: path "
161 << triggerName <<
" [" << triggerIndex <<
"]" << endl;
167 cout <<
" Trigger path status:"
173 cout <<
" Last active module - label/type: "
175 <<
" [" << moduleIndex <<
" out of 0-" << (
m-1) <<
" on this path]"
177 assert (moduleIndex<
m);
213 for (
unsigned int j=0;
j<=moduleIndex; ++
j) {
214 const string& moduleLabel(moduleLabels[
j]);
218 if (filterIndex<triggerEventWithRefsHandle_->
size()) {
219 cout <<
" Filter in slot " << j <<
" - label/type " << moduleLabel <<
"/" << moduleType << endl;
220 cout <<
" Filter packed up at: " << filterIndex << endl;
221 cout <<
" Accepted objects:" << endl;
224 const unsigned int nPhotons(
photonIds_.size());
226 cout <<
" Photons: " << nPhotons <<
" - the objects: # id pt" << endl;
227 for (
unsigned int i=0;
i!=nPhotons; ++
i) {
237 cout <<
" Electrons: " << nElectrons <<
" - the objects: # id pt" << endl;
238 for (
unsigned int i=0;
i!=nElectrons; ++
i) {
246 const unsigned int nMuons(
muonIds_.size());
248 cout <<
" Muons: " << nMuons <<
" - the objects: # id pt" << endl;
249 for (
unsigned int i=0;
i!=nMuons; ++
i) {
257 const unsigned int nJets(
jetIds_.size());
259 cout <<
" Jets: " << nJets <<
" - the objects: # id pt" << endl;
260 for (
unsigned int i=0;
i!=nJets; ++
i) {
270 cout <<
" Composites: " << nComposites <<
" - the objects: # id pt" << endl;
271 for (
unsigned int i=0;
i!=nComposites; ++
i) {
281 cout <<
" BaseMETs: " << nBaseMETs <<
" - the objects: # id pt" << endl;
282 for (
unsigned int i=0;
i!=nBaseMETs; ++
i) {
292 cout <<
" CaloMETs: " << nCaloMETs <<
" - the objects: # id pt" << endl;
293 for (
unsigned int i=0;
i!=nCaloMETs; ++
i) {
303 cout <<
" PixTracks: " << nPixTracks <<
" - the objects: # id pt" << endl;
304 for (
unsigned int i=0;
i!=nPixTracks; ++
i) {
312 const unsigned int nL1EM(
l1emIds_.size());
314 cout <<
" L1EM: " << nL1EM <<
" - the objects: # id pt" << endl;
315 for (
unsigned int i=0;
i!=nL1EM; ++
i) {
323 const unsigned int nL1Muon(
l1muonIds_.size());
325 cout <<
" L1Muon: " << nL1Muon <<
" - the objects: # id pt" << endl;
326 for (
unsigned int i=0;
i!=nL1Muon; ++
i) {
334 const unsigned int nL1Jet(
l1jetIds_.size());
336 cout <<
" L1Jet: " << nL1Jet <<
" - the objects: # id pt" << endl;
337 for (
unsigned int i=0;
i!=nL1Jet; ++
i) {
347 cout <<
" L1EtMiss: " << nL1EtMiss <<
" - the objects: # id pt" << endl;
348 for (
unsigned int i=0;
i!=nL1EtMiss; ++
i) {
358 cout <<
" L1HfRings: " << nL1HfRings <<
" - the objects: # id 4 4" << endl;
359 for (
unsigned int i=0;
i!=nL1HfRings; ++
i) {
374 const unsigned int nPFJets(
pfjetIds_.size());
376 cout <<
" PFJets: " << nPFJets <<
" - the objects: # id pt" << endl;
377 for (
unsigned int i=0;
i!=nPFJets; ++
i) {
385 const unsigned int nPFTaus(
pftauIds_.size());
387 cout <<
" PFTaus: " << nPFTaus <<
" - the objects: # id pt" << endl;
388 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_
trigger::VRl1em l1emRefs_
trigger::VRpftau pftauRefs_
HLTEventAnalyzerRAW(const edm::ParameterSet &)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_
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)
edm::InputTag triggerEventWithRefsTag_
trigger::VRcomposite compositeRefs_
trigger::VRphoton photonRefs_
trigger::Vids basemetIds_
unsigned int triggerIndex(std::string const &name) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
HLTConfigProvider hltConfig_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
trigger::VRelectron electronRefs_
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_
edm::EDGetTokenT< trigger::TriggerEventWithRefs > triggerEventWithRefsToken_
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)
trigger::VRmuon muonRefs_
trigger::VRpixtrack pixtrackRefs_
edm::InputTag triggerResultsTag_
std::string processName_
module config parameters
trigger::VRbasemet basemetRefs_
tuple size
Write out results.