CMS 3D CMS Logo

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::CSCDetectorHit ( int  element,
float  charge,
float  position,
float  time,
const PSimHit hitp 
)
inline

Definition at line 18 of file CSCDetectorHit.h.

Member Function Documentation

◆ getCharge()

float CSCDetectorHit::getCharge ( ) const
inline

Definition at line 22 of file CSCDetectorHit.h.

22 { return theCharge; }

References theCharge.

Referenced by CSCBaseElectronicsSim::amplifySignal().

◆ getElement()

int CSCDetectorHit::getElement ( ) const
inline

Definition at line 21 of file CSCDetectorHit.h.

21 { return theElement; }

References theElement.

Referenced by CSCBaseElectronicsSim::amplifySignal().

◆ getPosition()

float CSCDetectorHit::getPosition ( ) const
inline

Definition at line 23 of file CSCDetectorHit.h.

23 { return thePosition; }

References thePosition.

Referenced by CSCBaseElectronicsSim::amplifySignal().

◆ getSimHit()

const PSimHit* CSCDetectorHit::getSimHit ( ) const
inline

Definition at line 25 of file CSCDetectorHit.h.

25 { return theHitp; }

References theHitp.

◆ getTime()

float CSCDetectorHit::getTime ( void  ) const
inline

Definition at line 24 of file CSCDetectorHit.h.

24 { return theTime; }

References theTime.

Referenced by CSCBaseElectronicsSim::amplifySignal().

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 4 of file CSCDetectorHit.cc.

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

Member Data Documentation

◆ theCharge

float CSCDetectorHit::theCharge
private

Definition at line 32 of file CSCDetectorHit.h.

Referenced by getCharge().

◆ theElement

int CSCDetectorHit::theElement
private

strip or wire number

Definition at line 31 of file CSCDetectorHit.h.

Referenced by getElement().

◆ theHitp

const PSimHit* CSCDetectorHit::theHitp
private

theSimHit that created this hit

Definition at line 38 of file CSCDetectorHit.h.

Referenced by getSimHit().

◆ thePosition

float CSCDetectorHit::thePosition
private

the position is along the element, with (0,0) the center of the chamber

Definition at line 34 of file CSCDetectorHit.h.

Referenced by getPosition().

◆ theTime

float CSCDetectorHit::theTime
private

start counting time at the beam crossing

Definition at line 36 of file CSCDetectorHit.h.

Referenced by getTime().

CSCDetectorHit::theCharge
float theCharge
Definition: CSCDetectorHit.h:32
cms::cuda::stream
cudaStream_t stream
Definition: HistoContainer.h:57
protons_cff.time
time
Definition: protons_cff.py:39
CSCDetectorHit::theTime
float theTime
start counting time at the beam crossing
Definition: CSCDetectorHit.h:36
CSCDetectorHit::theElement
int theElement
strip or wire number
Definition: CSCDetectorHit.h:31
CSCDetectorHit::thePosition
float thePosition
the position is along the element, with (0,0) the center of the chamber
Definition: CSCDetectorHit.h:34
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
position
static int position[264][3]
Definition: ReadPGInfo.cc:289
CSCDetectorHit::theHitp
const PSimHit * theHitp
theSimHit that created this hit
Definition: CSCDetectorHit.h:38
hit
Definition: SiStripHitEffFromCalibTree.cc:88