#include <CSCDetectorHit.h>
Public Member Functions | |
CSCDetectorHit (int element, float charge, float position, float time, const PSimHit *hitp) | |
float | getCharge () const |
int | getElement () const |
float | getPosition () const |
const PSimHit * | getSimHit () const |
float | getTime () const |
Private Attributes | |
float | theCharge |
int | theElement |
strip or wire number | |
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 | |
Friends | |
std::ostream & | operator<< (std::ostream &, const CSCDetectorHit &) |
A CSCDetectorHit can represent a hit either on a wire or a strip in the early stages of the Endcap Muon CSC digitization. See documentation for MEDigitizer subpackage of Muon.
Definition at line 16 of file CSCDetectorHit.h.
CSCDetectorHit::CSCDetectorHit | ( | int | element, |
float | charge, | ||
float | position, | ||
float | time, | ||
const PSimHit * | hitp | ||
) | [inline] |
Definition at line 19 of file CSCDetectorHit.h.
: theElement(element), theCharge(charge), thePosition(position), theTime(time), theHitp(hitp) {}
int TrackFitter::getCharge | ( | ) | const [inline] |
Definition at line 25 of file CSCDetectorHit.h.
References theCharge.
Referenced by CSCBaseElectronicsSim::amplifySignal(), and operator<<().
{return theCharge;}
int CSCDetectorHit::getElement | ( | ) | const [inline] |
Definition at line 24 of file CSCDetectorHit.h.
References theElement.
Referenced by CSCBaseElectronicsSim::amplifySignal(), and operator<<().
{return theElement;}
float CSCDetectorHit::getPosition | ( | ) | const [inline] |
Definition at line 26 of file CSCDetectorHit.h.
References thePosition.
Referenced by CSCBaseElectronicsSim::amplifySignal(), and operator<<().
{return thePosition;}
const PSimHit* CSCDetectorHit::getSimHit | ( | ) | const [inline] |
float CSCDetectorHit::getTime | ( | void | ) | const [inline] |
Definition at line 27 of file CSCDetectorHit.h.
References theTime.
Referenced by CSCBaseElectronicsSim::amplifySignal(), and operator<<().
{return theTime;}
std::ostream& operator<< | ( | std::ostream & | stream, |
const CSCDetectorHit & | hit | ||
) | [friend] |
Definition at line 4 of file CSCDetectorHit.cc.
{ stream << "element: " << hit.getElement() << " charge: " << hit.getCharge() << " pos: " << hit.getPosition() << " time: " << hit.getTime() << std::endl; return stream; }
float CSCDetectorHit::theCharge [private] |
Definition at line 34 of file CSCDetectorHit.h.
Referenced by getCharge().
int CSCDetectorHit::theElement [private] |
const PSimHit* CSCDetectorHit::theHitp [private] |
theSimHit that created this hit
Definition at line 40 of file CSCDetectorHit.h.
Referenced by getSimHit().
float CSCDetectorHit::thePosition [private] |
the position is along the element, with (0,0) the center of the chamber
Definition at line 36 of file CSCDetectorHit.h.
Referenced by getPosition().
float CSCDetectorHit::theTime [private] |
start counting time at the beam crossing
Definition at line 38 of file CSCDetectorHit.h.
Referenced by getTime().