/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/Scouting/interface/Run3ScoutingEBRecHit.h
35 строк
1 KB
elfontan
Fixes to Scouting Calo RecHits DataFormats and producer (PR review)
22 июл 2025, 12:25
22 июл 2025, 12:25
247f9c3
Код
Авторство
О чём код?
#ifndef DataFormats_Scouting_Run3ScoutingEBRecHit_h #define DataFormats_Scouting_Run3ScoutingEBRecHit_h #include <vector> #include <stdint.h> // Updated Run 3 HLT-Scouting data format to include calo recHits information: // - EBRecHits collection (ECAL Barrel) // Saved information is specific to each hit type: energy, time, flags, and detId are available for EB recHits // // IMPORTANT: any changes to Run3ScoutingEBRecHit must be backward-compatible! class Run3ScoutingEBRecHit { public: Run3ScoutingEBRecHit(float energy, float time, unsigned int detId, uint32_t flags) : energy_{energy}, time_{time}, detId_{detId}, flags_{flags} {} Run3ScoutingEBRecHit() : energy_{0}, time_{0}, detId_{0}, flags_{0} {} float energy() const { return energy_; } float time() const { return time_; } unsigned int detId() const { return detId_; } uint32_t flags() const { return flags_; } private: float energy_; float time_; unsigned int detId_; uint32_t flags_; // NOTE: types are kept the same as in the origin of the data in reco::PFRecHit }; using Run3ScoutingEBRecHitCollection = std::vector<Run3ScoutingEBRecHit>; #endif