All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
sistrip::DigiCluster Class Reference

Digitization cluster class. More...

#include <DigiCluster.h>

Public Member Functions

 DigiCluster ()
 Constructor. More...
 
 DigiCluster (short int charge, float time, float depE, CLHEP::Hep3Vector position, short int iLayer, short int iLadder, short int iSensor, int cellID, EVENT::MCParticle *mcPart, EVENT::SimTrackerHit *simHit)
 Constructor setting charge, number of carriers, position, sensor ID and wafer ID. More...
 
 ~DigiCluster ()
 Destructor. More...
 
void setPosX (double posX)
 Set cluster position X. More...
 
void setPosY (double posY)
 Set cluster position Y. More...
 
void setPosZ (double posZ)
 Set cluster position Z. More...
 
void set3Position (const CLHEP::Hep3Vector &position)
 Set cluster position Three vector. More...
 
void setVelX (double velX)
 Set cluster velocity X. More...
 
void setVelY (double velY)
 Set cluster velocity Y. More...
 
void setVelZ (double velZ)
 Set cluster velocity Z. More...
 
void set3Velocity (const CLHEP::Hep3Vector &velocity)
 Set cluster velocity Three vector. More...
 
void setTime (float time)
 Set time when the cluster has been generated by a particle. More...
 
void setDriftTime (double driftTime)
 Set cluster total drift time. More...
 
void setDiffSigma (double diffSigma)
 Set cluster total diffusion sigma. More...
 
void setCharge (short int charge)
 Set cluster charge. More...
 
void setNCarriers (float depEnergy)
 Set number of charge carriers. More...
 
void setLayerID (short int iLayer)
 Set layer ID. More...
 
void setLadderID (short int iLadder)
 Set ladder ID. More...
 
void setSensorID (short int iSensor)
 Set sensor ID. More...
 
void setCellID (int cellID)
 Set cell ID. More...
 
void setMCParticle (EVENT::MCParticle *mcPart)
 Set pointer to MCParticle. More...
 
void setSimTrackerHit (EVENT::SimTrackerHit *simHit)
 Set pointer to SimTrackerHit. More...
 
double getPosX () const
 Get cluster position X. More...
 
double getPosY () const
 Get cluster position Y. More...
 
double getPosZ () const
 Get cluster position Z. More...
 
CLHEP::Hep3Vector get3Position () const
 Get cluster position Three vector. More...
 
double getVelX () const
 Get cluster velocity X. More...
 
double getVelY () const
 Get cluster velocity Y. More...
 
double getVelZ () const
 Get cluster velocity Z. More...
 
CLHEP::Hep3Vector get3Velocity () const
 Get cluster velocity Three vector. More...
 
float getTime () const
 Get time when the cluster has been generated by a particle. More...
 
double getDriftTime () const
 Get cluster total drift time. More...
 
double getDiffSigma () const
 Get cluster total diffusion sigma. More...
 
short int getCharge () const
 Get cluster charge. More...
 
int getNCarriers () const
 Get number of charge carriers. More...
 
short int getLayerID () const
 Get layer ID. More...
 
short int getLadderID () const
 Get ladder ID. More...
 
short int getSensorID () const
 Get sensor ID. More...
 
int getCellID () const
 Get cell ID. More...
 
EVENT::MCParticle * getMCParticle () const
 Get pointer to MCParticle which has created given cluster. More...
 
EVENT::SimTrackerHit * getSimTrackerHit () const
 Get pointer to SimTrackerHit from which the given cluster has been created. More...
 

Protected Attributes

CLHEP::Hep3Vector _position
 Cluster position in cm. More...
 
CLHEP::Hep3Vector _velocity
 Cluster velocity in cm/s. More...
 
float _time
 Time when the cluster has been generated by a particle in s. More...
 
double _driftTime
 Cluster total drift time in s. More...
 
double _diffSigma
 Cluster total diffusion sigma in cm. More...
 
short int _charge
 Cluster charge (e cluster = -1; h cluster = +1) More...
 
int _nCarriers
 Number of charge carriers, i.e. More...
 
short int _iLayer
 ID number of a layer. More...
 
short int _iLadder
 ID number of a ladder. More...
 
short int _iSensor
 ID number of a sensor. More...
 
int _iCell
 ID number of layer+ladder+sensor - encoded into one number. More...
 
EVENT::MCParticle * _MCPart
 Monte Carlo particle which has created cluster signal. More...
 
EVENT::SimTrackerHit * _simHit
 SimTrackerHit from which the cluster signal has been created. More...
 

Detailed Description

Digitization cluster class.

One cluster represents a bunch of either electrons or holes created by ionizing particle, where the number of charge carriers is proportional to the deposited energy by the particle. Energy necessary for creation of one e-h pair is defined in header file PhysicalConstants.h

Author
Z. Drasal, Charles University Prague

Definition at line 30 of file DigiCluster.h.

Constructor & Destructor Documentation

sistrip::DigiCluster::DigiCluster ( )

Constructor.

Definition at line 12 of file DigiCluster.cc.

sistrip::DigiCluster::DigiCluster ( short int  charge,
float  time,
float  depE,
CLHEP::Hep3Vector  position,
short int  iLayer,
short int  iLadder,
short int  iSensor,
int  cellID,
EVENT::MCParticle *  mcPart,
EVENT::SimTrackerHit *  simHit 
)
inline

Constructor setting charge, number of carriers, position, sensor ID and wafer ID.

Definition at line 38 of file DigiCluster.h.

sistrip::DigiCluster::~DigiCluster ( )

Destructor.

Definition at line 36 of file DigiCluster.cc.

Member Function Documentation

CLHEP::Hep3Vector sistrip::DigiCluster::get3Position ( ) const
inline

Get cluster position Three vector.

Definition at line 121 of file DigiCluster.h.

CLHEP::Hep3Vector sistrip::DigiCluster::get3Velocity ( ) const
inline

Get cluster velocity Three vector.

Definition at line 133 of file DigiCluster.h.

int sistrip::DigiCluster::getCellID ( ) const
inline

Get cell ID.

Definition at line 160 of file DigiCluster.h.

short int sistrip::DigiCluster::getCharge ( ) const
inline

Get cluster charge.

Definition at line 145 of file DigiCluster.h.

double sistrip::DigiCluster::getDiffSigma ( ) const
inline

Get cluster total diffusion sigma.

Definition at line 142 of file DigiCluster.h.

double sistrip::DigiCluster::getDriftTime ( ) const
inline

Get cluster total drift time.

Definition at line 139 of file DigiCluster.h.

short int sistrip::DigiCluster::getLadderID ( ) const
inline

Get ladder ID.

Definition at line 154 of file DigiCluster.h.

short int sistrip::DigiCluster::getLayerID ( ) const
inline

Get layer ID.

Definition at line 151 of file DigiCluster.h.

EVENT::MCParticle* sistrip::DigiCluster::getMCParticle ( ) const
inline

Get pointer to MCParticle which has created given cluster.

Definition at line 163 of file DigiCluster.h.

int sistrip::DigiCluster::getNCarriers ( ) const
inline

Get number of charge carriers.

Definition at line 148 of file DigiCluster.h.

double sistrip::DigiCluster::getPosX ( ) const
inline

Get cluster position X.

Definition at line 112 of file DigiCluster.h.

double sistrip::DigiCluster::getPosY ( ) const
inline

Get cluster position Y.

Definition at line 115 of file DigiCluster.h.

double sistrip::DigiCluster::getPosZ ( ) const
inline

Get cluster position Z.

Definition at line 118 of file DigiCluster.h.

short int sistrip::DigiCluster::getSensorID ( ) const
inline

Get sensor ID.

Definition at line 157 of file DigiCluster.h.

EVENT::SimTrackerHit* sistrip::DigiCluster::getSimTrackerHit ( ) const
inline

Get pointer to SimTrackerHit from which the given cluster has been created.

Definition at line 166 of file DigiCluster.h.

float sistrip::DigiCluster::getTime ( ) const
inline

Get time when the cluster has been generated by a particle.

Definition at line 136 of file DigiCluster.h.

double sistrip::DigiCluster::getVelX ( ) const
inline

Get cluster velocity X.

Definition at line 124 of file DigiCluster.h.

double sistrip::DigiCluster::getVelY ( ) const
inline

Get cluster velocity Y.

Definition at line 127 of file DigiCluster.h.

double sistrip::DigiCluster::getVelZ ( ) const
inline

Get cluster velocity Z.

Definition at line 130 of file DigiCluster.h.

void sistrip::DigiCluster::set3Position ( const CLHEP::Hep3Vector &  position)

Set cluster position Three vector.

Definition at line 44 of file DigiCluster.cc.

void sistrip::DigiCluster::set3Velocity ( const CLHEP::Hep3Vector &  velocity)

Set cluster velocity Three vector.

Definition at line 54 of file DigiCluster.cc.

void sistrip::DigiCluster::setCellID ( int  cellID)
inline

Set cell ID.

Definition at line 100 of file DigiCluster.h.

void sistrip::DigiCluster::setCharge ( short int  charge)
inline

Set cluster charge.

Definition at line 85 of file DigiCluster.h.

void sistrip::DigiCluster::setDiffSigma ( double  diffSigma)
inline

Set cluster total diffusion sigma.

Definition at line 82 of file DigiCluster.h.

void sistrip::DigiCluster::setDriftTime ( double  driftTime)
inline

Set cluster total drift time.

Definition at line 79 of file DigiCluster.h.

void sistrip::DigiCluster::setLadderID ( short int  iLadder)
inline

Set ladder ID.

Definition at line 94 of file DigiCluster.h.

void sistrip::DigiCluster::setLayerID ( short int  iLayer)
inline

Set layer ID.

Definition at line 91 of file DigiCluster.h.

void sistrip::DigiCluster::setMCParticle ( EVENT::MCParticle *  mcPart)
inline

Set pointer to MCParticle.

Definition at line 103 of file DigiCluster.h.

void sistrip::DigiCluster::setNCarriers ( float  depEnergy)
inline

Set number of charge carriers.

Definition at line 88 of file DigiCluster.h.

void sistrip::DigiCluster::setPosX ( double  posX)
inline

Set cluster position X.

Definition at line 52 of file DigiCluster.h.

void sistrip::DigiCluster::setPosY ( double  posY)
inline

Set cluster position Y.

Definition at line 55 of file DigiCluster.h.

void sistrip::DigiCluster::setPosZ ( double  posZ)
inline

Set cluster position Z.

Definition at line 58 of file DigiCluster.h.

void sistrip::DigiCluster::setSensorID ( short int  iSensor)
inline

Set sensor ID.

Definition at line 97 of file DigiCluster.h.

void sistrip::DigiCluster::setSimTrackerHit ( EVENT::SimTrackerHit *  simHit)
inline

Set pointer to SimTrackerHit.

Definition at line 106 of file DigiCluster.h.

void sistrip::DigiCluster::setTime ( float  time)
inline

Set time when the cluster has been generated by a particle.

Definition at line 76 of file DigiCluster.h.

void sistrip::DigiCluster::setVelX ( double  velX)
inline

Set cluster velocity X.

Definition at line 64 of file DigiCluster.h.

void sistrip::DigiCluster::setVelY ( double  velY)
inline

Set cluster velocity Y.

Definition at line 67 of file DigiCluster.h.

void sistrip::DigiCluster::setVelZ ( double  velZ)
inline

Set cluster velocity Z.

Definition at line 70 of file DigiCluster.h.

Member Data Documentation

short int sistrip::DigiCluster::_charge
protected

Cluster charge (e cluster = -1; h cluster = +1)

Definition at line 175 of file DigiCluster.h.

double sistrip::DigiCluster::_diffSigma
protected

Cluster total diffusion sigma in cm.

Definition at line 174 of file DigiCluster.h.

double sistrip::DigiCluster::_driftTime
protected

Cluster total drift time in s.

Definition at line 173 of file DigiCluster.h.

int sistrip::DigiCluster::_iCell
protected

ID number of layer+ladder+sensor - encoded into one number.

Definition at line 181 of file DigiCluster.h.

short int sistrip::DigiCluster::_iLadder
protected

ID number of a ladder.

Definition at line 179 of file DigiCluster.h.

short int sistrip::DigiCluster::_iLayer
protected

ID number of a layer.

Definition at line 178 of file DigiCluster.h.

short int sistrip::DigiCluster::_iSensor
protected

ID number of a sensor.

Definition at line 180 of file DigiCluster.h.

EVENT::MCParticle* sistrip::DigiCluster::_MCPart
protected

Monte Carlo particle which has created cluster signal.

Definition at line 183 of file DigiCluster.h.

int sistrip::DigiCluster::_nCarriers
protected

Number of charge carriers, i.e.

electrons, resp. holes

Definition at line 176 of file DigiCluster.h.

CLHEP::Hep3Vector sistrip::DigiCluster::_position
protected

Cluster position in cm.

Definition at line 170 of file DigiCluster.h.

EVENT::SimTrackerHit* sistrip::DigiCluster::_simHit
protected

SimTrackerHit from which the cluster signal has been created.

Definition at line 184 of file DigiCluster.h.

float sistrip::DigiCluster::_time
protected

Time when the cluster has been generated by a particle in s.

Definition at line 172 of file DigiCluster.h.

CLHEP::Hep3Vector sistrip::DigiCluster::_velocity
protected

Cluster velocity in cm/s.

Definition at line 171 of file DigiCluster.h.


The documentation for this class was generated from the following files: