CbmRoot
Loading...
Searching...
No Matches
CbmStsPoint Class Reference

#include <CbmStsPoint.h>

Inheritance diagram for CbmStsPoint:
[legend]
Collaboration diagram for CbmStsPoint:
[legend]

Public Member Functions

 CbmStsPoint ()
 
 CbmStsPoint (int32_t trackID, int32_t detID, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, double tof, double length, double eLoss, int32_t pid=0, int32_t eventId=0, int32_t index=0, int16_t flag=3)
 
 CbmStsPoint (const CbmStsPoint &point, int32_t eventId=-1, double eventTime=0., double epochTime=0.)
 
virtual ~CbmStsPoint ()
 
double GetXIn () const
 
double GetYIn () const
 
double GetZIn () const
 
double GetXOut () const
 
double GetYOut () const
 
double GetZOut () const
 
double GetPxOut () const
 
double GetPyOut () const
 
double GetPzOut () const
 
int32_t GetPid () const
 
int32_t GetIndex () const
 
bool IsEntry () const
 
bool IsExit () const
 
void PositionIn (TVector3 &pos)
 
void PositionOut (TVector3 &pos)
 
void MomentumOut (TVector3 &mom)
 
double GetX (double z) const
 
double GetY (double z) const
 
bool IsUsable () const
 
void SetPositionOut (TVector3 pos)
 
void SetMomentumOut (TVector3 mom)
 
virtual void SetTrackID (int32_t id)
 
std::string ToString () const
 

Protected Attributes

Double32_t fX_out
 
Double32_t fY_out
 
Double32_t fZ_out
 
Double32_t fPx_out
 
Double32_t fPy_out
 
Double32_t fPz_out
 
int32_t fPid
 
int32_t fIndex
 
int16_t fFlag
 

Detailed Description

CbmStsPoint.h

Author
V.Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e

Interception of MC track with a STS detetcor. Holds in addition to the base class the coordinates and momentum at the exit from the active volume.

Definition at line 32 of file CbmStsPoint.h.

Constructor & Destructor Documentation

◆ CbmStsPoint() [1/3]

CbmStsPoint::CbmStsPoint ( )

Default constructor

Definition at line 27 of file CbmStsPoint.cxx.

◆ CbmStsPoint() [2/3]

CbmStsPoint::CbmStsPoint ( int32_t trackID,
int32_t detID,
TVector3 posIn,
TVector3 posOut,
TVector3 momIn,
TVector3 momOut,
double tof,
double length,
double eLoss,
int32_t pid = 0,
int32_t eventId = 0,
int32_t index = 0,
int16_t flag = 3 )

Constructor with arguments

Parameters
trackIDIndex of MCTrack
detIDDetector ID
posInCoordinates at entrance to active volume [cm]
posOutCoordinates at exit of active volume [cm]
momInMomentum of track at entrance [GeV]
momOutMomentum of track at exit [GeV]
tofTime since event start [ns]
lengthTrack length since creation [cm]
eLossEnergy deposit [GeV]
pidParticle ID (PDG code)
eventIdMC event identifier
indexIndex of point in TClonesArray
flag+1 if entering, +2 if leaving the sensor

Definition at line 44 of file CbmStsPoint.cxx.

References kMCTrack, and ToIntegralType().

◆ CbmStsPoint() [3/3]

CbmStsPoint::CbmStsPoint ( const CbmStsPoint & point,
int32_t eventId = -1,
double eventTime = 0.,
double epochTime = 0. )

Copy constructor with event and epoch time Re-calculates time w.r.t. epoch time start

Parameters
eventIdMC event identifier (negative values keep original event ID)
eventTimeMC event time [ns]
epochTimeepoch start time [ns]

Definition at line 69 of file CbmStsPoint.cxx.

◆ ~CbmStsPoint()

CbmStsPoint::~CbmStsPoint ( )
virtual

Destructor

Definition at line 64 of file CbmStsPoint.cxx.

Member Function Documentation

◆ GetIndex()

int32_t CbmStsPoint::GetIndex ( ) const
inline

Definition at line 83 of file CbmStsPoint.h.

References fIndex.

◆ GetPid()

int32_t CbmStsPoint::GetPid ( ) const
inline

Definition at line 82 of file CbmStsPoint.h.

References fPid.

Referenced by CbmStsSimSensor::ProcessPoint().

◆ GetPxOut()

double CbmStsPoint::GetPxOut ( ) const
inline

◆ GetPyOut()

double CbmStsPoint::GetPyOut ( ) const
inline

◆ GetPzOut()

double CbmStsPoint::GetPzOut ( ) const
inline

◆ GetX()

double CbmStsPoint::GetX ( double z) const

Point coordinates at given z from linear extrapolation

Definition at line 90 of file CbmStsPoint.cxx.

References fX_out, and fZ_out.

Referenced by CbmRecoQa::record().

◆ GetXIn()

◆ GetXOut()

◆ GetY()

double CbmStsPoint::GetY ( double z) const

Definition at line 101 of file CbmStsPoint.cxx.

References fY_out, and fZ_out.

Referenced by CbmRecoQa::record().

◆ GetYIn()

◆ GetYOut()

◆ GetZIn()

double CbmStsPoint::GetZIn ( ) const
inline

◆ GetZOut()

double CbmStsPoint::GetZOut ( ) const
inline

◆ IsEntry()

bool CbmStsPoint::IsEntry ( ) const
inline

Definition at line 84 of file CbmStsPoint.h.

References fFlag.

Referenced by CbmStsSimSensor::ProcessPoint().

◆ IsExit()

bool CbmStsPoint::IsExit ( ) const
inline

Definition at line 85 of file CbmStsPoint.h.

References fFlag.

◆ IsUsable()

bool CbmStsPoint::IsUsable ( ) const

Check for distance between in and out

Definition at line 111 of file CbmStsPoint.cxx.

References fZ_out.

◆ MomentumOut()

void CbmStsPoint::MomentumOut ( TVector3 & mom)
inline

Definition at line 89 of file CbmStsPoint.h.

References fPx_out, fPy_out, and fPz_out.

◆ PositionIn()

void CbmStsPoint::PositionIn ( TVector3 & pos)
inline

Definition at line 87 of file CbmStsPoint.h.

References pos.

◆ PositionOut()

void CbmStsPoint::PositionOut ( TVector3 & pos)
inline

Definition at line 88 of file CbmStsPoint.h.

References fX_out, fY_out, fZ_out, and pos.

◆ SetMomentumOut()

void CbmStsPoint::SetMomentumOut ( TVector3 mom)
inline

Definition at line 135 of file CbmStsPoint.h.

References fPx_out, fPy_out, and fPz_out.

◆ SetPositionOut()

void CbmStsPoint::SetPositionOut ( TVector3 pos)
inline

Modifiers

Definition at line 127 of file CbmStsPoint.h.

References fX_out, fY_out, fZ_out, and pos.

◆ SetTrackID()

virtual void CbmStsPoint::SetTrackID ( int32_t id)
inlinevirtual

Definition at line 104 of file CbmStsPoint.h.

◆ ToString()

string CbmStsPoint::ToString ( ) const

String output

Definition at line 121 of file CbmStsPoint.cxx.

References fX_out, fY_out, and fZ_out.

Member Data Documentation

◆ fFlag

int16_t CbmStsPoint::fFlag
protected

‍Index of point in its TClonesArray

Definition at line 120 of file CbmStsPoint.h.

Referenced by IsEntry(), and IsExit().

◆ fIndex

int32_t CbmStsPoint::fIndex
protected

‍Particle ID [PDG code]

Definition at line 119 of file CbmStsPoint.h.

Referenced by GetIndex().

◆ fPid

int32_t CbmStsPoint::fPid
protected

Definition at line 118 of file CbmStsPoint.h.

Referenced by GetPid().

◆ fPx_out

Double32_t CbmStsPoint::fPx_out
protected

Definition at line 117 of file CbmStsPoint.h.

Referenced by GetPxOut(), MomentumOut(), and SetMomentumOut().

◆ fPy_out

Double32_t CbmStsPoint::fPy_out
protected

Definition at line 117 of file CbmStsPoint.h.

Referenced by GetPyOut(), MomentumOut(), and SetMomentumOut().

◆ fPz_out

Double32_t CbmStsPoint::fPz_out
protected

Definition at line 117 of file CbmStsPoint.h.

Referenced by GetPzOut(), MomentumOut(), and SetMomentumOut().

◆ fX_out

Double32_t CbmStsPoint::fX_out
protected

Definition at line 116 of file CbmStsPoint.h.

Referenced by GetX(), GetXOut(), PositionOut(), SetPositionOut(), and ToString().

◆ fY_out

Double32_t CbmStsPoint::fY_out
protected

Definition at line 116 of file CbmStsPoint.h.

Referenced by GetY(), GetYOut(), PositionOut(), SetPositionOut(), and ToString().

◆ fZ_out

Double32_t CbmStsPoint::fZ_out
protected

Definition at line 116 of file CbmStsPoint.h.

Referenced by GetX(), GetY(), GetZOut(), IsUsable(), PositionOut(), SetPositionOut(), and ToString().


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