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)
19  : theElement(element), theCharge(charge), thePosition(position), theTime(time), theHitp(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
float getPosition() const
int getElement() const
const PSimHit * getSimHit() const
const PSimHit * theHitp
theSimHit that created this hit
float thePosition
the position is along the element, with (0,0) the center of the chamber
float theTime
start counting time at the beam crossing
float getCharge() const
CSCDetectorHit(int element, float charge, float position, float time, const PSimHit *hitp)
float getTime() const
int theElement
strip or wire number
static int position[264][3]
Definition: ReadPGInfo.cc:289
friend std::ostream & operator<<(std::ostream &, const CSCDetectorHit &)