CMS 3D CMS Logo

CSCDetectorHit.h
Go to the documentation of this file.
1 #ifndef MU_END_DETECTOR_HIT_H
2 #define MU_END_DETECTOR_HIT_H
3 
13 #include <iosfwd>
14 class PSimHit;
15 
17 public:
18  CSCDetectorHit(int element, float charge, float position, float time, const PSimHit *hitp)
20 
21  int getElement() const { return theElement; }
22  float getCharge() const { return theCharge; }
23  float getPosition() const { return thePosition; }
24  float getTime() const { return theTime; }
25  const PSimHit *getSimHit() const { return theHitp; }
26 
27  friend std::ostream &operator<<(std::ostream &, const CSCDetectorHit &);
28 
29 private:
32  float theCharge;
34  float thePosition;
36  float theTime;
38  const PSimHit *theHitp;
39 };
40 
41 #endif
const PSimHit * theHitp
theSimHit that created this hit
float getPosition() const
float thePosition
the position is along the element, with (0,0) the center of the chamber
float getTime() const
float theTime
start counting time at the beam crossing
CSCDetectorHit(int element, float charge, float position, float time, const PSimHit *hitp)
int getElement() const
int theElement
strip or wire number
const PSimHit * getSimHit() const
float getCharge() const
static int position[264][3]
Definition: ReadPGInfo.cc:289
friend std::ostream & operator<<(std::ostream &, const CSCDetectorHit &)