Back to home page

Project CMSSW displayed by LXR

 
 

    


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 /** \class CSCDetectorHit
0005  *
0006  * A CSCDetectorHit can represent a hit either on a wire
0007  * or a strip in the early stages of the Endcap Muon CSC
0008  * digitization. See documentation for MEDigitizer subpackage of Muon.
0009  *
0010  * \author Rick Wilkinson
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   /// strip or wire number
0031   int theElement;
0032   float theCharge;
0033   /// the position is along the element, with (0,0) the center of the chamber
0034   float thePosition;
0035   /// start counting time at the beam crossing
0036   float theTime;
0037   /// theSimHit that created this hit
0038   const PSimHit *theHitp;
0039 };
0040 
0041 #endif