test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes | Friends
CSCDetectorHit Class Reference

#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 PSimHitgetSimHit () const
 
float getTime () const
 

Private Attributes

float theCharge
 
int theElement
 strip or wire number More...
 
const PSimHittheHitp
 theSimHit that created this hit More...
 
float thePosition
 the position is along the element, with (0,0) the center of the chamber More...
 
float theTime
 start counting time at the beam crossing More...
 

Friends

std::ostream & operator<< (std::ostream &, const CSCDetectorHit &)
 

Detailed Description

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.

Author
Rick Wilkinson

Definition at line 16 of file CSCDetectorHit.h.

Constructor & Destructor Documentation

CSCDetectorHit::CSCDetectorHit ( int  element,
float  charge,
float  position,
float  time,
const PSimHit hitp 
)
inline

Definition at line 19 of file CSCDetectorHit.h.

21  : theElement(element), theCharge(charge),
const PSimHit * theHitp
theSimHit that created this hit
double charge(const std::vector< uint8_t > &Ampls)
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
int theElement
strip or wire number
static int position[264][3]
Definition: ReadPGInfo.cc:509

Member Function Documentation

float CSCDetectorHit::getCharge ( ) const
inline

Definition at line 25 of file CSCDetectorHit.h.

References theCharge.

Referenced by CSCBaseElectronicsSim::amplifySignal(), and operator<<().

25 {return theCharge;}
int CSCDetectorHit::getElement ( ) const
inline

Definition at line 24 of file CSCDetectorHit.h.

References theElement.

Referenced by CSCBaseElectronicsSim::amplifySignal(), and operator<<().

24 {return theElement;}
int theElement
strip or wire number
float CSCDetectorHit::getPosition ( ) const
inline

Definition at line 26 of file CSCDetectorHit.h.

References thePosition.

Referenced by CSCBaseElectronicsSim::amplifySignal(), and operator<<().

26 {return thePosition;}
float thePosition
the position is along the element, with (0,0) the center of the chamber
const PSimHit* CSCDetectorHit::getSimHit ( ) const
inline

Definition at line 28 of file CSCDetectorHit.h.

References theHitp.

28 {return theHitp;}
const PSimHit * theHitp
theSimHit that created this hit
float CSCDetectorHit::getTime ( void  ) const
inline

Definition at line 27 of file CSCDetectorHit.h.

References theTime.

Referenced by CSCBaseElectronicsSim::amplifySignal(), and operator<<().

27 {return theTime;}
float theTime
start counting time at the beam crossing

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const CSCDetectorHit hit 
)
friend

Definition at line 4 of file CSCDetectorHit.cc.

4  {
5  stream << "element: " << hit.getElement()
6  << " charge: " << hit.getCharge()
7  << " pos: " << hit.getPosition()
8  << " time: " << hit.getTime() << std::endl;
9  return stream;
10 }
float getPosition() const
int getElement() const
float getCharge() const
float getTime() const

Member Data Documentation

float CSCDetectorHit::theCharge
private

Definition at line 34 of file CSCDetectorHit.h.

Referenced by getCharge().

int CSCDetectorHit::theElement
private

strip or wire number

Definition at line 33 of file CSCDetectorHit.h.

Referenced by getElement().

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().