/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Validation/HGCalValidation/interface/ValidHit.h
43 строки
1 KB
Bruno Alves
apply code checks and format
04 мар 2021, 11:26
04 мар 2021, 11:26
2d5343a
Код
Авторство
О чём код?
#ifndef Validation_HGCalBValidation_ValidHit_h #define Validation_HGCalBValidation_ValidHit_h #include "TObject.h" #include <iostream> #include <vector> class ValidHit { public: ValidHit() : energy_(0), time_(0), timeError_(0), id_(0), flagBits_(0), son_(0) {} ValidHit(float energy, float time, float timeError, uint32_t id, uint32_t flagBits, uint8_t son) : energy_(energy), time_(time), timeError_(timeError), id_(id), flagBits_(flagBits), son_(son) {} ValidHit(const ValidHit &other) { energy_ = other.energy_; time_ = other.time_; timeError_ = other.timeError_; id_ = other.id_; flagBits_ = other.flagBits_; son_ = other.son_; } virtual ~ValidHit() {} float energy() { return energy_; } float time() { return time_; } float timeError() { return timeError_; } uint32_t id() { return id_; } uint32_t flagBits() { return flagBits_; } uint8_t son() { return son_; } float energy_; //calibrated energy of the rechit float time_; //time jitter of the UncalibRecHit float timeError_; //time resolution uint32_t id_; //rechit detId uint32_t flagBits_; //rechit flags describing its status (DataFormats/HGCRecHit/interface/HGCRecHit.h) uint8_t son_; //signal over noise ClassDef(ValidHit, 1) }; typedef std::vector<ValidHit> ValidHitCollection; #endif //Validation_HGCalBValidation_ValidHit_h