|
|
Go to the documentation of this file.
40 : processName_(ps.getParameter<
std::
string>(
"processName")),
41 triggerName_(ps.getParameter<
std::
string>(
"triggerName")),
42 triggerResultsTag_(ps.getParameter<
edm::
InputTag>(
"triggerResults")),
44 triggerEventWithRefsTag_(ps.getParameter<
edm::
InputTag>(
"triggerEventWithRefs")),
45 triggerEventWithRefsToken_(consumes<
trigger::TriggerEventWithRefs>(triggerEventWithRefsTag_)) {
49 LogVerbatim(
"HLTEventAnalyzerRAW") <<
"HLTEventAnalyzerRAW configuration: " << endl
67 descriptions.
add(
"hltEventAnalyzerRAW",
desc);
83 if (triggerIndex >=
n) {
85 <<
"HLTEventAnalyzerRAW::analyze:"
86 <<
" TriggerName " <<
triggerName_ <<
" not available in (new) config!" << endl;
87 LogVerbatim(
"HLTEventAnalyzerRAW") <<
"Available TriggerNames are: " << endl;
93 LogVerbatim(
"HLTEventAnalyzerRAW") <<
"HLTEventAnalyzerRAW::analyze:"
94 <<
" config extraction failure with process name " <<
processName_ << endl;
109 <<
"HLTEventAnalyzerRAW::analyze: Error in getting TriggerResults product from Event!" << endl;
115 <<
"HLTEventAnalyzerRAW::analyze: Error in getting TriggerEventWithRefs product from Event!" << endl;
124 for (
unsigned int i = 0;
i !=
n; ++
i) {
139 using namespace reco;
149 if (triggerIndex >=
n) {
150 LogVerbatim(
"HLTEventAnalyzerRAW") <<
"HLTEventAnalyzerRAW::analyzeTrigger: path " <<
triggerName <<
" - not found!"
156 << triggerIndex <<
"]" << endl;
162 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" Trigger path status:"
167 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" Last active module - label/type: " << moduleLabels[moduleIndex] <<
"/"
169 <<
" out of 0-" << (
m - 1) <<
" on this path]" << endl;
208 for (
unsigned int j = 0;
j <= moduleIndex; ++
j) {
213 if (filterIndex < triggerEventWithRefsHandle_->
size()) {
215 << moduleType << endl;
216 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" Filter packed up at: " << filterIndex << endl;
217 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" Accepted objects:" << endl;
220 const unsigned int nPhotons(
photonIds_.size());
222 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" Photons: " << nPhotons <<
" - the objects: # id pt" << endl;
223 for (
unsigned int i = 0;
i != nPhotons; ++
i) {
232 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" Electrons: " <<
nElectrons <<
" - the objects: # id pt" << endl;
242 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" Muons: " <<
nMuons <<
" - the objects: # id pt" << endl;
243 for (
unsigned int i = 0;
i !=
nMuons; ++
i) {
249 const unsigned int nJets(
jetIds_.size());
251 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" Jets: " << nJets <<
" - the objects: # id pt" << endl;
252 for (
unsigned int i = 0;
i != nJets; ++
i) {
259 if (nComposites > 0) {
260 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" Composites: " << nComposites <<
" - the objects: # id pt" << endl;
261 for (
unsigned int i = 0;
i != nComposites; ++
i) {
270 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" BaseMETs: " << nBaseMETs <<
" - the objects: # id pt" << endl;
271 for (
unsigned int i = 0;
i != nBaseMETs; ++
i) {
280 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" CaloMETs: " << nCaloMETs <<
" - the objects: # id pt" << endl;
281 for (
unsigned int i = 0;
i != nCaloMETs; ++
i) {
289 if (nPixTracks > 0) {
290 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" PixTracks: " << nPixTracks <<
" - the objects: # id pt" << endl;
291 for (
unsigned int i = 0;
i != nPixTracks; ++
i) {
298 const unsigned int nL1EM(
l1emIds_.size());
300 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" L1EM: " << nL1EM <<
" - the objects: # id pt" << endl;
301 for (
unsigned int i = 0;
i != nL1EM; ++
i) {
307 const unsigned int nL1Muon(
l1muonIds_.size());
309 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" L1Muon: " << nL1Muon <<
" - the objects: # id pt" << endl;
310 for (
unsigned int i = 0;
i != nL1Muon; ++
i) {
317 const unsigned int nL1Jet(
l1jetIds_.size());
319 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" L1Jet: " << nL1Jet <<
" - the objects: # id pt" << endl;
320 for (
unsigned int i = 0;
i != nL1Jet; ++
i) {
328 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" L1EtMiss: " << nL1EtMiss <<
" - the objects: # id pt" << endl;
329 for (
unsigned int i = 0;
i != nL1EtMiss; ++
i) {
337 if (nL1HfRings > 0) {
338 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" L1HfRings: " << nL1HfRings <<
" - the objects: # id 4 4" << endl;
339 for (
unsigned int i = 0;
i != nL1HfRings; ++
i) {
353 const unsigned int nPFJets(
pfjetIds_.size());
355 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" PFJets: " << nPFJets <<
" - the objects: # id pt" << endl;
356 for (
unsigned int i = 0;
i != nPFJets; ++
i) {
362 const unsigned int nPFTaus(
pftauIds_.size());
364 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" PFTaus: " << nPFTaus <<
" - the objects: # id pt" << endl;
365 for (
unsigned int i = 0;
i != nPFTaus; ++
i) {
371 const unsigned int nPfMETs(
pfmetIds_.size());
373 LogVerbatim(
"HLTEventAnalyzerRAW") <<
" PfMETs: " << nPfMETs <<
" - the objects: # id pt" << endl;
374 for (
unsigned int i = 0;
i != nPfMETs; ++
i) {
trigger::VRpixtrack pixtrackRefs_
trigger::VRl1jet l1jetRefs_
trigger::VRl1muon l1muonRefs_
const std::string moduleType(const std::string &module) const
C++ class name of module.
trigger::VRelectron electronRefs_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
trigger::Vids l1hfringsIds_
trigger::VRl1etmiss l1etmissRefs_
trigger::Vids pixtrackIds_
trigger::Vids compositeIds_
bool wasrun() const
Was at least one path run?
trigger::Vids calometIds_
void getObjects(size_type filter, Vids &ids, VRphoton &photons) const
extract Ref<C>s for a specific filter and of specific physics type
trigger::VRpfmet pfmetRefs_
bool error() const
Has any path encountered an error (exception)
edm::Handle< edm::TriggerResults > triggerResultsHandle_
additional class data memebers
HLTEventAnalyzerRAW(const edm::ParameterSet &)
edm::Handle< trigger::TriggerEventWithRefs > triggerEventWithRefsHandle_
void dump(const std::string &what) const
Dumping config info to cout.
void beginRun(edm::Run const &, edm::EventSetup const &) override
virtual void analyzeTrigger(const edm::Event &, const edm::EventSetup &, const std::string &triggerName)
unsigned int index(const unsigned int i) const
Get index (slot position) of module giving the decision of the ith path.
trigger::VRl1em l1emRefs_
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
HLTConfigProvider hltConfig_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
unsigned int size() const
Get number of paths stored.
trigger::Vids l1etmissIds_
trigger::VRpfjet pfjetRefs_
trigger::VRbasemet basemetRefs_
~HLTEventAnalyzerRAW() override
void analyze(const edm::Event &, const edm::EventSetup &) override
const edm::InputTag triggerResultsTag_
size_type filterIndex(const edm::InputTag &filterTag) const
index from tag
unsigned int size() const
number of trigger paths in trigger table
trigger::VRmuon muonRefs_
const std::string triggerName_
trigger::VRphoton photonRefs_
trigger::VRl1hfrings l1hfringsRefs_
trigger::Vids photonIds_
payload extracted from TriggerEventWithRefs
const edm::InputTag triggerEventWithRefsTag_
trigger::Vids electronIds_
unsigned int triggerIndex(const std::string &triggerName) const
slot position of trigger path in trigger table (0 to size-1)
trigger::VRcomposite compositeRefs_
trigger::VRpftau pftauRefs_
const edm::EDGetTokenT< trigger::TriggerEventWithRefs > triggerEventWithRefsToken_
trigger::Vids basemetIds_
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
Log< level::Info, true > LogVerbatim
void endRun(edm::Run const &, edm::EventSetup const &) override
const edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_
bool accept() const
Has at least one path accepted the event?
const std::string & triggerName(unsigned int triggerIndex) const
trigger::VRcalomet calometRefs_
const std::string processName_
module config parameters