/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/TrackReco/interface/DeDxHit.h
48 строк
1 KB
Andre Govinda Stahl Leiton
Add new dEdx calibration and estimator
17 июн 2024, 02:55
17 июн 2024, 02:55
2ed86ee
Код
Авторство
О чём код?
#ifndef TrackDeDxHits_H #define TrackDeDxHits_H #include <cstdint> #include <vector> namespace reco { /** * Class defining the dedx hits, i.e. track hits with only dedx need informations */ class DeDxHit { public: DeDxHit() {} DeDxHit(float ch, float mom, float len, uint32_t rawDetId, float err = 0) : m_charge(ch), m_momentum(mom), m_pathLength(len), m_rawDetId(rawDetId), m_error(err) {} /// Return the angle and thick normalized, calibrated energy release float charge() const { return m_charge; } /// Return the momentum of the trajectory at the interaction point float momentum() const { return m_momentum; } /// Return the path length float pathLength() const { return m_pathLength; } /// Return the rawDetId uint32_t rawDetId() const { return m_rawDetId; } /// Return the error of the energy release float error() const { return m_error; } bool operator<(const DeDxHit &other) const { return m_charge < other.m_charge; } private: // Those data members should be "compressed" once usage // of ROOT/reflex precision specifier will be available in CMSSW float m_charge; float m_momentum; float m_pathLength; uint32_t m_rawDetId; float m_error; }; typedef std::vector<DeDxHit> DeDxHitCollection; } // namespace reco #endif