CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/SimMuon/CSCDigitizer/src/CSCDetectorHit.h

Go to the documentation of this file.
00001 #ifndef MU_END_DETECTOR_HIT_H
00002 #define MU_END_DETECTOR_HIT_H
00003 
00013 #include <iosfwd>
00014 class PSimHit;
00015 
00016 class CSCDetectorHit
00017 {
00018 public:
00019   CSCDetectorHit(int element, float charge, float position, float time,
00020                    const PSimHit * hitp)
00021     : theElement(element), theCharge(charge),
00022       thePosition(position),   theTime(time), theHitp(hitp) {}
00023 
00024   int   getElement()  const {return theElement;}
00025   float getCharge()   const {return theCharge;}
00026   float getPosition() const {return thePosition;}
00027   float getTime()     const {return theTime;}
00028   const PSimHit * getSimHit() const {return theHitp;}
00029 
00030   friend std::ostream & operator<<(std::ostream &, const CSCDetectorHit &);
00031 private:
00033   int   theElement;
00034   float theCharge;
00036   float thePosition; 
00038   float theTime;
00040   const PSimHit * theHitp;
00041 };
00042 
00043 #endif
00044