#include <EBTriggerTowerTask.h>
Public Member Functions | |
EBTriggerTowerTask (const edm::ParameterSet &ps) | |
Constructor. More... | |
virtual | ~EBTriggerTowerTask () |
Destructor. More... | |
Public Member Functions inherited from edm::EDAnalyzer | |
EDAnalyzer () | |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
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::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 | EBDigiCollection_ |
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_ |
1D emulator match 1D More... | |
MonitorElement * | meEmulMatchMaxIndex1D_ |
MonitorElement * | meEtBxReal_ |
number and ET average of TP vs bx 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_ |
MonitorElement * | meEtSpectrumEmulMax_ |
MonitorElement * | meEtSpectrumReal_ |
ET spectrums for the whole EB. More... | |
MonitorElement * | meOccupancyBxReal_ |
bool | mergeRuns_ |
merge MEs across runs More... | |
MonitorElement * | meTCCTimingCalo_ |
TCC timing. More... | |
MonitorElement * | meTCCTimingMuon_ |
array1 | meVetoEmul_ |
Emulated fine grain veto vs iphi vs ieta, for each SM. More... | |
array1 | meVetoEmulError_ |
array1 | meVetoReal_ |
fine grain veto vs iphi vs ieta, 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) |
Definition at line 23 of file EBTriggerTowerTask.h.
|
private |
1D array
Definition at line 72 of file EBTriggerTowerTask.h.
EBTriggerTowerTask::EBTriggerTowerTask | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 27 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_, cmsCodeRules.cppFunctionSkipper::operator, outputFile_, prefixME_, realCollection_, and reserveArray().
|
virtual |
|
protectedvirtual |
Analyze.
Implements edm::EDAnalyzer.
Definition at line 278 of file EBTriggerTowerTask.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 83 of file EBTriggerTowerTask.cc.
References dqmStore_, ievt_, prefixME_, DQMStore::rmdir(), and DQMStore::setCurrentFolder().
|
protectedvirtual |
BeginRun.
Reimplemented from edm::EDAnalyzer.
Definition at line 94 of file EBTriggerTowerTask.cc.
References Numbers::initGeometry(), mergeRuns_, and reset().
|
protected |
Cleanup.
Definition at line 254 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 270 of file EBTriggerTowerTask.cc.
References cleanup(), enableCleanup_, and ievt_.
|
protectedvirtual |
|
private |
process a collection of digis, either real or emulated
Definition at line 334 of file EBTriggerTowerTask.cc.
References abs, accept(), edm::EventBase::bunchCrossing(), EBDigiCollection_, EcalBarrel, MonitorElement::Fill(), edm::Event::getByLabel(), 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_, 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 76 of file EBTriggerTowerTask.cc.
References nSM.
Referenced by EBTriggerTowerTask().
|
protected |
Reset.
Definition at line 106 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 132 of file EBTriggerTowerTask.cc.
References dqmStore_, init_, and prefixME_.
Referenced by analyze().
|
private |
book monitor elements for real, or emulated digis
Definition at line 148 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_, meVetoEmul_, meVetoEmulError_, meVetoReal_, mergeVDriftHistosByStation::name, nTTEta, nTTPhi, Numbers::sEB(), MonitorElement::setAxisTitle(), DQMStore::setCurrentFolder(), DQMStore::tag(), and fw3dlego::xbins.
|
private |
DQM back-end interface.
Definition at line 120 of file EBTriggerTowerTask.h.
Referenced by beginJob(), cleanup(), EBTriggerTowerTask(), and setup().
|
private |
to find the input collection of crystal digis
Definition at line 138 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), and processDigis().
|
private |
to find the input collection of emulated digis
Definition at line 135 of file EBTriggerTowerTask.h.
Referenced by analyze(), and EBTriggerTowerTask().
|
private |
remove MEs
Definition at line 126 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), and endJob().
|
private |
Definition at line 142 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), and setup().
|
private |
Definition at line 143 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), and setup().
|
private |
to find the input collection of HLT bits
Definition at line 141 of file EBTriggerTowerTask.h.
Referenced by analyze(), and EBTriggerTowerTask().
|
private |
local event counter
Definition at line 95 of file EBTriggerTowerTask.h.
Referenced by analyze(), beginJob(), and endJob().
|
private |
init flag
Definition at line 117 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 112 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
Definition at line 113 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
1D emulator match 1D
Definition at line 149 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
Definition at line 150 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
number and ET average of TP vs bx
Definition at line 158 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
Emulated Et vs ix vs iy, for each SM.
Definition at line 104 of file EBTriggerTowerTask.h.
Referenced by analyze(), EBTriggerTowerTask(), reset(), and setup().
|
private |
Et vs ix vs iy, for each SM.
Definition at line 98 of file EBTriggerTowerTask.h.
Referenced by analyze(), EBTriggerTowerTask(), reset(), and setup().
|
private |
Definition at line 154 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
Definition at line 155 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
ET spectrums for the whole EB.
Definition at line 153 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
Definition at line 159 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
merge MEs across runs
Definition at line 129 of file EBTriggerTowerTask.h.
Referenced by beginRun(), and EBTriggerTowerTask().
|
private |
TCC timing.
Definition at line 162 of file EBTriggerTowerTask.h.
Referenced by EBTriggerTowerTask(), processDigis(), reset(), and setup().
|
private |
Definition at line 163 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 107 of file EBTriggerTowerTask.h.
Referenced by analyze(), EBTriggerTowerTask(), reset(), and setup().
|
private |
Definition at line 114 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 101 of file EBTriggerTowerTask.h.
Referenced by analyze(), EBTriggerTowerTask(), reset(), and setup().
|
static |
number of supermodules
Definition at line 40 of file EBTriggerTowerTask.h.
Referenced by reserveArray().
|
static |
number of trigger towers in eta
Definition at line 34 of file EBTriggerTowerTask.h.
Referenced by setup().
|
static |
number of trigger towers in phi
Definition at line 37 of file EBTriggerTowerTask.h.
Referenced by setup().
|
private |
debug output root file. if empty, no output file created.
Definition at line 146 of file EBTriggerTowerTask.h.
Referenced by cleanup(), and EBTriggerTowerTask().
|
private |
path to MEs
Definition at line 123 of file EBTriggerTowerTask.h.
Referenced by beginJob(), cleanup(), EBTriggerTowerTask(), and setup().
|
private |
to find the input collection of real digis
Definition at line 132 of file EBTriggerTowerTask.h.
Referenced by analyze(), and EBTriggerTowerTask().