#include <EBTriggerTowerTask.h>
Static Public Attributes | |
static const int | nSM = 36 |
number of supermodules More... | |
static const int | nTTEta = 17 |
number of trigger towers in eta More... | |
static const int | nTTPhi = 4 |
number of trigger towers in phi More... | |
Protected Member Functions | |
void | analyze (const edm::Event &e, const edm::EventSetup &c) |
Analyze. More... | |
void | beginJob (void) |
BeginJob. More... | |
void | beginRun (const edm::Run &r, const edm::EventSetup &c) |
BeginRun. More... | |
void | cleanup (void) |
Cleanup. More... | |
void | endJob (void) |
EndJob. More... | |
void | endRun (const edm::Run &r, const edm::EventSetup &c) |
EndRun. More... | |
void | reset (void) |
Reset. More... | |
void | setup (void) |
Setup. More... | |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Private Types | |
typedef std::vector < MonitorElement * > | array1 |
1D array More... | |
Private Member Functions | |
void | processDigis (const edm::Event &e, const edm::Handle< EcalTrigPrimDigiCollection > &digis, array1 &meEtMap, array1 &meVeto, const edm::Handle< EcalTrigPrimDigiCollection > &compDigis=edm::Handle< EcalTrigPrimDigiCollection >(), const edm::Handle< edm::TriggerResults > &hltResults=edm::Handle< edm::TriggerResults >()) |
process a collection of digis, either real or emulated More... | |
void | reserveArray (array1 &array) |
reserve an array to hold one histogram per supermodule More... | |
void | setup (std::string const &nameext, std::string const &folder, bool emulated) |
book monitor elements for real, or emulated digis More... | |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Definition at line 22 of file EBTriggerTowerTask.h.
|
private |
1D array
Definition at line 71 of file EBTriggerTowerTask.h.
EBTriggerTowerTask::EBTriggerTowerTask | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 24 of file EBTriggerTowerTask.cc.
References dqmStore_, EBDigiCollection_, emulCollection_, enableCleanup_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HLTCaloHLTBit_, HLTMuonHLTBit_, HLTResultsCollection_, init_, LogDebug, meEmulError_, meEmulMatch_, meEmulMatchIndex1D_, meEmulMatchMaxIndex1D_, meEtBxReal_, meEtMapEmul_, meEtMapReal_, meEtSpectrumEmul_, meEtSpectrumEmulMax_, meEtSpectrumReal_, meOccupancyBxReal_, mergeRuns_, meTCCTimingCalo_, meTCCTimingMuon_, meVetoEmul_, meVetoEmulError_, meVetoReal_, cppFunctionSkipper::operator, outputFile_, prefixME_, realCollection_, reserveArray(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
|
protectedvirtual |
Analyze.
Implements edm::EDAnalyzer.
Definition at line 273 of file EBTriggerTowerTask.cc.
References emulCollection_, edm::Event::getByToken(), JetPDSkim_cfg::hltResults, HLTResultsCollection_, ievt_, init_, LogDebug, meEtMapEmul_, meEtMapReal_, meVetoEmul_, meVetoReal_, processDigis(), realCollection_, and setup().
|
protectedvirtual |
BeginJob.
Reimplemented from edm::EDAnalyzer.
Definition at line 80 of file EBTriggerTowerTask.cc.
References dqmStore_, ievt_, prefixME_, DQMStore::rmdir(), and DQMStore::setCurrentFolder().
|
protectedvirtual |
BeginRun.
Reimplemented from edm::EDAnalyzer.
Definition at line 91 of file EBTriggerTowerTask.cc.
References Numbers::initGeometry(), mergeRuns_, and reset().
|
protected |
Cleanup.
Definition at line 249 of file EBTriggerTowerTask.cc.
References dqmStore_, init_, outputFile_, prefixME_, DQMStore::rmdir(), and DQMStore::save().
Referenced by endJob().
|
protectedvirtual |
EndJob.
Reimplemented from edm::EDAnalyzer.
Definition at line 265 of file EBTriggerTowerTask.cc.
References cleanup(), enableCleanup_, and ievt_.
|
protectedvirtual |
|
private |
process a collection of digis, either real or emulated
Definition at line 321 of file EBTriggerTowerTask.cc.
References funct::abs(), accept(), edm::EventBase::bunchCrossing(), EBDigiCollection_, EcalBarrel, MonitorElement::Fill(), edm::Event::getByToken(), HLTCaloHLTBit_, HLTMuonHLTBit_, getHLTprescales::index, Numbers::iSM(), edm::HandleBase::isValid(), Numbers::iTCC(), Numbers::iTT(), j, meEmulError_, meEmulMatch_, meEmulMatchIndex1D_, meEmulMatchMaxIndex1D_, meEtBxReal_, meEtSpectrumEmul_, meEtSpectrumEmulMax_, meEtSpectrumReal_, meOccupancyBxReal_, meTCCTimingCalo_, meTCCTimingMuon_, meVetoEmulError_, AlCaHLTBitMon_QueryRunRegistry::string, Numbers::subDet(), edm::TriggerNames::triggerName(), and edm::Event::triggerNames().
Referenced by analyze().
|
private |
reserve an array to hold one histogram per supermodule
Definition at line 73 of file EBTriggerTowerTask.cc.
References nSM.
Referenced by EBTriggerTowerTask().
|
protected |
Reset.
Definition at line 103 of file EBTriggerTowerTask.cc.
References i, meEmulError_, meEmulMatch_, meEmulMatchIndex1D_, meEmulMatchMaxIndex1D_, meEtBxReal_, meEtMapEmul_, meEtMapReal_, meEtSpectrumEmul_, meEtSpectrumEmulMax_, meEtSpectrumReal_, meOccupancyBxReal_, meTCCTimingCalo_, meTCCTimingMuon_, meVetoEmul_, meVetoEmulError_, meVetoReal_, and MonitorElement::Reset().
Referenced by beginRun().
|
protected |
Setup.
Definition at line 129 of file EBTriggerTowerTask.cc.
References dqmStore_, init_, and prefixME_.
Referenced by analyze().
|
private |
book monitor elements for real, or emulated digis
Definition at line 145 of file EBTriggerTowerTask.cc.
References DQMStore::book1D(), DQMStore::book2D(), DQMStore::book3D(), DQMStore::bookProfile(), DQMStore::bookProfile2D(), dqmStore_, HLTCaloHLTBit_, HLTMuonHLTBit_, i, meEmulError_, meEmulMatch_, meEmulMatchIndex1D_, meEmulMatchMaxIndex1D_, meEtBxReal_, meEtMapEmul_, meEtMapReal_, meEtSpectrumEmul_, meEtSpectrumEmulMax_, meEtSpectrumReal_, meOccupancyBxReal_, meTCCTimingCalo_, meTCCTimingMuon_, meVetoEmulError_, mergeVDriftHistosByStation::name, nTTEta, nTTPhi, Numbers::sEB(), MonitorElement::setAxisTitle(), DQMStore::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, DQMStore::tag(), and fw3dlego::xbins.
|
private |
DQM back-end interface.
Definition at line 119 of file EBTriggerTowerTask.h.
Referenced by beginJob(), cleanup(), EBTriggerTowerTask(), and setup().
|
private |
to find the input collection of crystal digis
Definition at line 137 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), and processDigis().
|
private |
to find the input collection of emulated digis
Definition at line 134 of file EBTriggerTowerTask.h.
Referenced by analyze(), and EBTriggerTowerTask().
|
private |
remove MEs
Definition at line 125 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), and endJob().
|
private |
Definition at line 141 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), and setup().
|
private |
Definition at line 142 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), and setup().
|
private |
to find the input collection of HLT bits
Definition at line 140 of file EBTriggerTowerTask.h.
Referenced by analyze(), and EBTriggerTowerTask().
|
private |
local event counter
Definition at line 94 of file EBTriggerTowerTask.h.
Referenced by analyze(), beginJob(), and endJob().
|
private |
init flag
Definition at line 116 of file EBTriggerTowerTask.h.
Referenced by analyze(), cleanup(), EBTriggerTowerTask(), and setup().
|
private |
error flag vs iphi vs ieta, for each SM the error flag is set to true in case of a discrepancy between the emulator and the real data
Definition at line 111 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
Definition at line 112 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
1D emulator match 1D
Definition at line 148 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
Definition at line 149 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
number and ET average of TP vs bx
Definition at line 157 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
Emulated Et vs ix vs iy, for each SM.
Definition at line 103 of file EBTriggerTowerTask.h.
Referenced by analyze(), EBTriggerTowerTask(), reset(), and setup().
|
private |
Et vs ix vs iy, for each SM.
Definition at line 97 of file EBTriggerTowerTask.h.
Referenced by analyze(), EBTriggerTowerTask(), reset(), and setup().
|
private |
Definition at line 153 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
Definition at line 154 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
ET spectrums for the whole EB.
Definition at line 152 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
Definition at line 158 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
merge MEs across runs
Definition at line 128 of file EBTriggerTowerTask.h.
Referenced by beginRun(), and EBTriggerTowerTask().
|
private |
TCC timing.
Definition at line 161 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
Definition at line 162 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
Emulated fine grain veto vs iphi vs ieta, for each SM.
Definition at line 106 of file EBTriggerTowerTask.h.
Referenced by analyze(), EBTriggerTowerTask(), and reset().
|
private |
Definition at line 113 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
fine grain veto vs iphi vs ieta, for each SM
Definition at line 100 of file EBTriggerTowerTask.h.
Referenced by analyze(), EBTriggerTowerTask(), and reset().
|
static |
number of supermodules
Definition at line 39 of file EBTriggerTowerTask.h.
Referenced by reserveArray().
|
static |
number of trigger towers in eta
Definition at line 33 of file EBTriggerTowerTask.h.
Referenced by setup().
|
static |
number of trigger towers in phi
Definition at line 36 of file EBTriggerTowerTask.h.
Referenced by setup().
|
private |
debug output root file. if empty, no output file created.
Definition at line 145 of file EBTriggerTowerTask.h.
Referenced by cleanup(), and EBTriggerTowerTask().
|
private |
path to MEs
Definition at line 122 of file EBTriggerTowerTask.h.
Referenced by beginJob(), cleanup(), EBTriggerTowerTask(), and setup().
|
private |
to find the input collection of real digis
Definition at line 131 of file EBTriggerTowerTask.h.
Referenced by analyze(), and EBTriggerTowerTask().