test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
18 public:
19  CSCDetectorHit(int element, float charge, float position, float time,
20  const PSimHit * hitp)
21  : theElement(element), theCharge(charge),
22  thePosition(position), theTime(time), theHitp(hitp) {}
23 
24  int getElement() const {return theElement;}
25  float getCharge() const {return theCharge;}
26  float getPosition() const {return thePosition;}
27  float getTime() const {return theTime;}
28  const PSimHit * getSimHit() const {return theHitp;}
29 
30  friend std::ostream & operator<<(std::ostream &, const CSCDetectorHit &);
31 private:
34  float theCharge;
36  float thePosition;
38  float theTime;
40  const PSimHit * theHitp;
41 };
42 
43 #endif
44 
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:509
friend std::ostream & operator<<(std::ostream &, const CSCDetectorHit &)