/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DQM/EcalMonitorTasks/interface/TimingTask.h
86 строк
2 KB
Thomas Reis
Do not run on endcap collections for ECAL Phase 2 DQM tasks.
21 июл 2026, 12:21
21 июл 2026, 12:21
0021906
Код
Авторство
О чём код?
#ifndef DQM_EcalMonitorTasks_TimingTask_h #define DQM_EcalMonitorTasks_TimingTask_h #include "DQWorkerTask.h" #include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h" namespace ecaldqm { class TimingTask : public DQWorkerTask { public: TimingTask(); ~TimingTask() override {} bool filterRunType(short const*) override; bool analyze(void const*, Collections) override; void runOnRecHits(EcalRecHitCollection const&, Collections); void runOnUncalibRecHits(EcalUncalibratedRecHitCollection const&); private: void beginEvent(edm::Event const&, edm::EventSetup const&, bool const&, bool&) override; void setParams(edm::ParameterSet const&) override; bool doEndcaps_; std::vector<int> bxBinEdges_; double bxBin_; float chi2ThresholdEB_; float chi2ThresholdEE_; float energyThresholdEB_; float energyThresholdEE_; float energyThresholdEEFwd_; float timingVsBXThreshold_; float timeErrorThreshold_; bool splashSwitch_; // non corrected plots only turned on for offline MESet* meTimeMapByLS; MESet* meTimeMapByLS_nonCorr; MESet* meTimeAmp_nonCorr; MESet* meTimeAmpAll_nonCorr; MESet* meTimingVsBX_nonCorr; MESet* meTimeAll_nonCorr; MESet* meTimeAllMap_nonCorr; MESet* meTimeMap_nonCorr; MESet* meTime1D_nonCorr; }; inline bool TimingTask::analyze(void const* _p, Collections _collection) { switch (_collection) { case kEBRecHit: if (_p) runOnRecHits(*static_cast<EcalRecHitCollection const*>(_p), _collection); return true; break; case kEERecHit: if (doEndcaps_) { if (_p) runOnRecHits(*static_cast<EcalRecHitCollection const*>(_p), _collection); return true; } break; case kEBUncalibRecHit: if (_p) runOnUncalibRecHits(*static_cast<EcalUncalibratedRecHitCollection const*>(_p)); return true; break; case kEEUncalibRecHit: if (doEndcaps_) { if (_p) runOnUncalibRecHits(*static_cast<EcalUncalibratedRecHitCollection const*>(_p)); return true; } break; default: break; } return false; } } // namespace ecaldqm #endif