File indexing completed on 2024-04-06 12:30:42
0001 #ifndef MU_END_DETECTOR_HIT_H
0002 #define MU_END_DETECTOR_HIT_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #include <iosfwd>
0014 class PSimHit;
0015
0016 class CSCDetectorHit {
0017 public:
0018 CSCDetectorHit(int element, float charge, float position, float time, const PSimHit *hitp)
0019 : theElement(element), theCharge(charge), thePosition(position), theTime(time), theHitp(hitp) {}
0020
0021 int getElement() const { return theElement; }
0022 float getCharge() const { return theCharge; }
0023 float getPosition() const { return thePosition; }
0024 float getTime() const { return theTime; }
0025 const PSimHit *getSimHit() const { return theHitp; }
0026
0027 friend std::ostream &operator<<(std::ostream &, const CSCDetectorHit &);
0028
0029 private:
0030
0031 int theElement;
0032 float theCharge;
0033
0034 float thePosition;
0035
0036 float theTime;
0037
0038 const PSimHit *theHitp;
0039 };
0040
0041 #endif