#include <EETriggerTowerTask.h>
Public Member Functions | |
EETriggerTowerTask (const edm::ParameterSet &ps) | |
Constructor. More... | |
virtual | ~EETriggerTowerTask () |
Destructor. More... | |
Public Member Functions inherited from edm::EDAnalyzer | |
EDAnalyzer () | |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Static Public Attributes | |
static const int | nSM = 18 |
number of supermodules More... | |
static const int | nTTEta = 20 |
number of trigger towers in eta More... | |
static const int | nTTPhi = 20 |
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::EDAnalyzer | |
CurrentProcessingContext const * | currentContext () const |
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... | |
Private Attributes | |
DQMStore * | dqmStore_ |
DQM back-end interface. More... | |
edm::InputTag | EEDigiCollection_ |
to find the input collection of crystal digis More... | |
edm::InputTag | emulCollection_ |
to find the input collection of emulated digis More... | |
bool | enableCleanup_ |
remove MEs More... | |
std::string | HLTCaloHLTBit_ |
std::string | HLTMuonHLTBit_ |
edm::InputTag | HLTResultsCollection_ |
to find the input collection of HLT bits More... | |
int | ievt_ |
local event counter More... | |
bool | init_ |
init flag More... | |
array1 | meEmulError_ |
array1 | meEmulMatch_ |
MonitorElement * | meEmulMatchIndex1D_ [2] |
1D emulator match 1D More... | |
MonitorElement * | meEmulMatchMaxIndex1D_ [2] |
MonitorElement * | meEtBxReal_ [2] |
number and ET average of TP vs bx for the whole EE+/- More... | |
array1 | meEtMapEmul_ |
Emulated Et vs ix vs iy, for each SM. More... | |
array1 | meEtMapReal_ |
Et vs ix vs iy, for each SM. More... | |
MonitorElement * | meEtSpectrumEmul_ [2] |
MonitorElement * | meEtSpectrumEmulMax_ [2] |
MonitorElement * | meEtSpectrumReal_ [2] |
ET spectrums for the whole EE+/-. More... | |
MonitorElement * | meOccupancyBxReal_ [2] |
bool | mergeRuns_ |
merge MEs across runs More... | |
MonitorElement * | meTCCTimingCalo_ [2] |
TCC timing. More... | |
MonitorElement * | meTCCTimingMuon_ [2] |
array1 | meVetoEmul_ |
Emulated fine grain veto vs ix vs iy, for each SM. More... | |
array1 | meVetoEmulError_ |
array1 | meVetoReal_ |
fine grain veto vs ix vs iy, for each SM More... | |
std::string | outputFile_ |
debug output root file. if empty, no output file created. More... | |
std::string | prefixME_ |
path to MEs More... | |
edm::InputTag | realCollection_ |
to find the input collection of real digis More... | |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
typedef WorkerT< EDAnalyzer > | WorkerType |
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 23 of file EETriggerTowerTask.h.
|
private |
1D array
Definition at line 72 of file EETriggerTowerTask.h.
EETriggerTowerTask::EETriggerTowerTask | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 32 of file EETriggerTowerTask.cc.
References dqmStore_, EEDigiCollection_, 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_, and reserveArray().
|
virtual |
|
protectedvirtual |
Analyze.
Implements edm::EDAnalyzer.
Definition at line 345 of file EETriggerTowerTask.cc.
References emulCollection_, edm::Event::getByLabel(), JetPDSkim_cfg::hltResults, HLTResultsCollection_, ievt_, init_, edm::InputTag::instance(), edm::InputTag::label(), LogDebug, meEtMapEmul_, meEtMapReal_, meVetoEmul_, meVetoReal_, processDigis(), realCollection_, and setup().
|
protectedvirtual |
BeginJob.
Reimplemented from edm::EDAnalyzer.
Definition at line 97 of file EETriggerTowerTask.cc.
References dqmStore_, ievt_, prefixME_, DQMStore::rmdir(), and DQMStore::setCurrentFolder().
|
protectedvirtual |
BeginRun.
Reimplemented from edm::EDAnalyzer.
Definition at line 108 of file EETriggerTowerTask.cc.
References Numbers::initGeometry(), mergeRuns_, and reset().
|
protected |
Cleanup.
Definition at line 321 of file EETriggerTowerTask.cc.
References dqmStore_, init_, outputFile_, prefixME_, DQMStore::rmdir(), and DQMStore::save().
Referenced by endJob().
|
protectedvirtual |
EndJob.
Reimplemented from edm::EDAnalyzer.
Definition at line 337 of file EETriggerTowerTask.cc.
References cleanup(), enableCleanup_, and ievt_.
|
protectedvirtual |
|
private |
process a collection of digis, either real or emulated
Definition at line 401 of file EETriggerTowerTask.cc.
References accept(), edm::EventBase::bunchCrossing(), Numbers::crystals(), EcalEndcap, EEDigiCollection_, MonitorElement::Fill(), edm::Event::getByLabel(), HLTCaloHLTBit_, HLTMuonHLTBit_, i, getHLTprescales::index, ecalpyutils::ism(), Numbers::iSM(), edm::HandleBase::isValid(), Numbers::iTCC(), Numbers::iTT(), EEDetId::ix(), j, meEmulError_, meEmulMatch_, meEmulMatchIndex1D_, meEmulMatchMaxIndex1D_, meEtBxReal_, meEtSpectrumEmul_, meEtSpectrumEmulMax_, meEtSpectrumReal_, meOccupancyBxReal_, meTCCTimingCalo_, meTCCTimingMuon_, meVetoEmulError_, 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 90 of file EETriggerTowerTask.cc.
References nSM.
Referenced by EETriggerTowerTask().
|
protected |
Reset.
Definition at line 120 of file EETriggerTowerTask.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 148 of file EETriggerTowerTask.cc.
References dqmStore_, init_, and prefixME_.
Referenced by analyze().
|
private |
book monitor elements for real, or emulated digis
Definition at line 164 of file EETriggerTowerTask.cc.
References DQMStore::book1D(), DQMStore::book2D(), DQMStore::book3D(), DQMStore::bookProfile(), DQMStore::bookProfile2D(), dqmStore_, HLTCaloHLTBit_, HLTMuonHLTBit_, i, Numbers::ix0EE(), Numbers::iy0EE(), meEmulError_, meEmulMatch_, meEmulMatchIndex1D_, meEmulMatchMaxIndex1D_, meEtBxReal_, meEtMapEmul_, meEtMapReal_, meEtSpectrumEmul_, meEtSpectrumEmulMax_, meEtSpectrumReal_, meOccupancyBxReal_, meTCCTimingCalo_, meTCCTimingMuon_, meVetoEmulError_, mergeVDriftHistosByStation::name, Numbers::sEE(), MonitorElement::setAxisTitle(), DQMStore::setCurrentFolder(), DQMStore::tag(), and fw3dlego::xbins.
|
private |
DQM back-end interface.
Definition at line 120 of file EETriggerTowerTask.h.
Referenced by beginJob(), cleanup(), EETriggerTowerTask(), and setup().
|
private |
to find the input collection of crystal digis
Definition at line 138 of file EETriggerTowerTask.h.
Referenced by EETriggerTowerTask(), and processDigis().
|
private |
to find the input collection of emulated digis
Definition at line 135 of file EETriggerTowerTask.h.
Referenced by analyze(), and EETriggerTowerTask().
|
private |
remove MEs
Definition at line 126 of file EETriggerTowerTask.h.
Referenced by EETriggerTowerTask(), and endJob().
|
private |
Definition at line 142 of file EETriggerTowerTask.h.
Referenced by EETriggerTowerTask(), processDigis(), and setup().
|
private |
Definition at line 143 of file EETriggerTowerTask.h.
Referenced by EETriggerTowerTask(), processDigis(), and setup().
|
private |
to find the input collection of HLT bits
Definition at line 141 of file EETriggerTowerTask.h.
Referenced by analyze(), and EETriggerTowerTask().
|
private |
local event counter
Definition at line 95 of file EETriggerTowerTask.h.
Referenced by analyze(), beginJob(), and endJob().
|
private |
init flag
Definition at line 117 of file EETriggerTowerTask.h.
Referenced by analyze(), cleanup(), EETriggerTowerTask(), and setup().
|
private |
error flag vs ix vs iy, 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 112 of file EETriggerTowerTask.h.
Referenced by EETriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
Definition at line 113 of file EETriggerTowerTask.h.
Referenced by EETriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
1D emulator match 1D
Definition at line 149 of file EETriggerTowerTask.h.
Referenced by EETriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
Definition at line 150 of file EETriggerTowerTask.h.
Referenced by EETriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
number and ET average of TP vs bx for the whole EE+/-
Definition at line 158 of file EETriggerTowerTask.h.
Referenced by EETriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
Emulated Et vs ix vs iy, for each SM.
Definition at line 104 of file EETriggerTowerTask.h.
Referenced by analyze(), EETriggerTowerTask(), reset(), and setup().
|
private |
Et vs ix vs iy, for each SM.
Definition at line 98 of file EETriggerTowerTask.h.
Referenced by analyze(), EETriggerTowerTask(), reset(), and setup().
|
private |
Definition at line 154 of file EETriggerTowerTask.h.
Referenced by EETriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
Definition at line 155 of file EETriggerTowerTask.h.
Referenced by EETriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
ET spectrums for the whole EE+/-.
Definition at line 153 of file EETriggerTowerTask.h.
Referenced by EETriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
Definition at line 159 of file EETriggerTowerTask.h.
Referenced by EETriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
merge MEs across runs
Definition at line 129 of file EETriggerTowerTask.h.
Referenced by beginRun(), and EETriggerTowerTask().
|
private |
TCC timing.
Definition at line 162 of file EETriggerTowerTask.h.
Referenced by EETriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
Definition at line 163 of file EETriggerTowerTask.h.
Referenced by EETriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
Emulated fine grain veto vs ix vs iy, for each SM.
Definition at line 107 of file EETriggerTowerTask.h.
Referenced by analyze(), EETriggerTowerTask(), and reset().
|
private |
Definition at line 114 of file EETriggerTowerTask.h.
Referenced by EETriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
fine grain veto vs ix vs iy, for each SM
Definition at line 101 of file EETriggerTowerTask.h.
Referenced by analyze(), EETriggerTowerTask(), and reset().
|
static |
number of supermodules
Definition at line 40 of file EETriggerTowerTask.h.
Referenced by reserveArray().
|
static |
number of trigger towers in eta
Definition at line 34 of file EETriggerTowerTask.h.
|
static |
number of trigger towers in phi
Definition at line 37 of file EETriggerTowerTask.h.
|
private |
debug output root file. if empty, no output file created.
Definition at line 146 of file EETriggerTowerTask.h.
Referenced by cleanup(), and EETriggerTowerTask().
|
private |
path to MEs
Definition at line 123 of file EETriggerTowerTask.h.
Referenced by beginJob(), cleanup(), EETriggerTowerTask(), and setup().
|
private |
to find the input collection of real digis
Definition at line 132 of file EETriggerTowerTask.h.
Referenced by analyze(), and EETriggerTowerTask().