/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
SimMuon/CSCDigitizer/src/CSCDetectorHit.h
41 строка
1 KB
Christopher Jones
Replace forward references with includes of Fwd.h files
18 фев 2026, 17:29
18 фев 2026, 17:29
bb39da7
Код
Авторство
О чём код?
#ifndef MU_END_DETECTOR_HIT_H #define MU_END_DETECTOR_HIT_H /** \class CSCDetectorHit * * A CSCDetectorHit can represent a hit either on a wire * or a strip in the early stages of the Endcap Muon CSC * digitization. See documentation for MEDigitizer subpackage of Muon. * * \author Rick Wilkinson */ #include <iosfwd> #include "SimDataFormats/TrackingHit/interface/PSimHitFwd.h" class CSCDetectorHit { public: CSCDetectorHit(int element, float charge, float position, float time, const PSimHit *hitp) : theElement(element), theCharge(charge), thePosition(position), theTime(time), theHitp(hitp) {} int getElement() const { return theElement; } float getCharge() const { return theCharge; } float getPosition() const { return thePosition; } float getTime() const { return theTime; } const PSimHit *getSimHit() const { return theHitp; } friend std::ostream &operator<<(std::ostream &, const CSCDetectorHit &); private: /// strip or wire number int theElement; float theCharge; /// the position is along the element, with (0,0) the center of the chamber float thePosition; /// start counting time at the beam crossing float theTime; /// theSimHit that created this hit const PSimHit *theHitp; }; #endif