CbmRoot
CbmStsPoint Class Reference

#include <CbmStsPoint.h>

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

Public Member Functions

 CbmStsPoint ()
 
 CbmStsPoint (Int_t trackID, Int_t detID, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t tof, Double_t length, Double_t eLoss, Int_t pid=0, Int_t eventId=0, Int_t index=0, Short_t flag=3)
 
 CbmStsPoint (const CbmStsPoint &point, Int_t eventId=-1, Double_t eventTime=0., Double_t epochTime=0.)
 
virtual ~CbmStsPoint ()
 
Double_t GetXIn () const
 
Double_t GetYIn () const
 
Double_t GetZIn () const
 
Double_t GetXOut () const
 
Double_t GetYOut () const
 
Double_t GetZOut () const
 
Double_t GetPxOut () const
 
Double_t GetPyOut () const
 
Double_t GetPzOut () const
 
Int_t GetPid () const
 
Int_t GetIndex () const
 
Bool_t IsEntry () const
 
Bool_t IsExit () const
 
void PositionIn (TVector3 &pos)
 
void PositionOut (TVector3 &pos)
 
void MomentumOut (TVector3 &mom)
 
Double_t GetX (Double_t z) const
 
Double_t GetY (Double_t z) const
 
Bool_t IsUsable () const
 
void SetPositionOut (TVector3 pos)
 
void SetMomentumOut (TVector3 mom)
 
virtual void SetTrackID (Int_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
 
Int_t fPid
 
Int_t fIndex
 

Particle ID [PDG code]

More...
 
Short_t fFlag
 

Index of point in its TClonesArray

More...
 

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 27 of file CbmStsPoint.h.

Constructor & Destructor Documentation

◆ CbmStsPoint() [1/3]

CbmStsPoint::CbmStsPoint ( )

Default constructor

Definition at line 23 of file CbmStsPoint.cxx.

◆ CbmStsPoint() [2/3]

CbmStsPoint::CbmStsPoint ( Int_t  trackID,
Int_t  detID,
TVector3  posIn,
TVector3  posOut,
TVector3  momIn,
TVector3  momOut,
Double_t  tof,
Double_t  length,
Double_t  eLoss,
Int_t  pid = 0,
Int_t  eventId = 0,
Int_t  index = 0,
Short_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 38 of file CbmStsPoint.cxx.

References kMCTrack, and ToIntegralType().

◆ CbmStsPoint() [3/3]

CbmStsPoint::CbmStsPoint ( const CbmStsPoint point,
Int_t  eventId = -1,
Double_t  eventTime = 0.,
Double_t  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 72 of file CbmStsPoint.cxx.

◆ ~CbmStsPoint()

CbmStsPoint::~CbmStsPoint ( )
virtual

Destructor

Definition at line 67 of file CbmStsPoint.cxx.

Member Function Documentation

◆ GetIndex()

Int_t CbmStsPoint::GetIndex ( ) const
inline

Definition at line 91 of file CbmStsPoint.h.

References fIndex.

◆ GetPid()

Int_t CbmStsPoint::GetPid ( ) const
inline

Definition at line 90 of file CbmStsPoint.h.

References fPid.

Referenced by CbmStsSimSensor::ProcessPoint().

◆ GetPxOut()

Double_t CbmStsPoint::GetPxOut ( ) const
inline

◆ GetPyOut()

Double_t CbmStsPoint::GetPyOut ( ) const
inline

◆ GetPzOut()

Double_t CbmStsPoint::GetPzOut ( ) const
inline

◆ GetX()

Double_t CbmStsPoint::GetX ( Double_t  z) const

Point coordinates at given z from linear extrapolation

Definition at line 96 of file CbmStsPoint.cxx.

References fX_out, and fZ_out.

Referenced by CbmL1::InputPerformance(), and CbmRecoQa::record().

◆ GetXIn()

◆ GetXOut()

◆ GetY()

Double_t CbmStsPoint::GetY ( Double_t  z) const

Definition at line 106 of file CbmStsPoint.cxx.

References fY_out, and fZ_out.

Referenced by CbmL1::InputPerformance(), and CbmRecoQa::record().

◆ GetYIn()

◆ GetYOut()

◆ GetZIn()

◆ GetZOut()

◆ IsEntry()

Bool_t CbmStsPoint::IsEntry ( ) const
inline

Definition at line 92 of file CbmStsPoint.h.

References fFlag.

Referenced by CbmStsSimSensor::ProcessPoint().

◆ IsExit()

Bool_t CbmStsPoint::IsExit ( ) const
inline

Definition at line 93 of file CbmStsPoint.h.

References fFlag.

◆ IsUsable()

Bool_t CbmStsPoint::IsUsable ( ) const

Check for distance between in and out

Definition at line 116 of file CbmStsPoint.cxx.

References fZ_out.

◆ MomentumOut()

void CbmStsPoint::MomentumOut ( TVector3 &  mom)
inline

◆ PositionIn()

void CbmStsPoint::PositionIn ( TVector3 &  pos)
inline

Definition at line 95 of file CbmStsPoint.h.

References pos.

◆ PositionOut()

void CbmStsPoint::PositionOut ( TVector3 &  pos)
inline

◆ SetMomentumOut()

void CbmStsPoint::SetMomentumOut ( TVector3  mom)
inline

Definition at line 141 of file CbmStsPoint.h.

References fPx_out, fPy_out, and fPz_out.

◆ SetPositionOut()

void CbmStsPoint::SetPositionOut ( TVector3  pos)
inline

Modifiers

Definition at line 134 of file CbmStsPoint.h.

References fX_out, fY_out, fZ_out, and pos.

◆ SetTrackID()

virtual void CbmStsPoint::SetTrackID ( Int_t  id)
inlinevirtual

Definition at line 112 of file CbmStsPoint.h.

◆ ToString()

string CbmStsPoint::ToString ( ) const

String output

Definition at line 125 of file CbmStsPoint.cxx.

References fX_out, fY_out, and fZ_out.

Member Data Documentation

◆ fFlag

Short_t CbmStsPoint::fFlag
protected

Index of point in its TClonesArray

Definition at line 127 of file CbmStsPoint.h.

Referenced by IsEntry(), and IsExit().

◆ fIndex

Int_t CbmStsPoint::fIndex
protected

Particle ID [PDG code]

Definition at line 126 of file CbmStsPoint.h.

Referenced by GetIndex().

◆ fPid

Int_t CbmStsPoint::fPid
protected

Definition at line 125 of file CbmStsPoint.h.

Referenced by GetPid().

◆ fPx_out

Double32_t CbmStsPoint::fPx_out
protected

Definition at line 124 of file CbmStsPoint.h.

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

◆ fPy_out

Double32_t CbmStsPoint::fPy_out
protected

Definition at line 124 of file CbmStsPoint.h.

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

◆ fPz_out

Double32_t CbmStsPoint::fPz_out
protected

Definition at line 124 of file CbmStsPoint.h.

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

◆ fX_out

Double32_t CbmStsPoint::fX_out
protected

Definition at line 123 of file CbmStsPoint.h.

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

◆ fY_out

Double32_t CbmStsPoint::fY_out
protected

Definition at line 123 of file CbmStsPoint.h.

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

◆ fZ_out

Double32_t CbmStsPoint::fZ_out
protected

Definition at line 123 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: