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

#include <CbmMuchPoint.h>

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

Public Member Functions

 CbmMuchPoint ()
 
 CbmMuchPoint (int32_t trackID, int32_t detID, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, double tof, double length, double eLoss, int32_t eventId=0)
 
 CbmMuchPoint (const CbmMuchPoint &point, int32_t eventId=-1, double eventTime=0., double epochTime=0.)
 
virtual ~CbmMuchPoint ()
 
int32_t GetDetectorId () const
 
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
 
void PositionIn (TVector3 &pos) const
 
void PositionOut (TVector3 &pos) const
 
void MomentumOut (TVector3 &mom) const
 
double GetX (double z) const
 
double GetY (double z) const
 
bool IsUsable () const
 
void SetPositionOut (TVector3 pos)
 
void SetMomentumOut (TVector3 mom)
 
virtual void Print (const Option_t *opt) 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
 

Detailed Description

CbmMuchPoint.h

Author
M.Ryzhinskiy m.ryz.nosp@m.hins.nosp@m.kiy@g.nosp@m.si.d.nosp@m.e
Version
1.0
Since
21.03.07

Class for Monte Carlo points in MUon CHambers detector

Definition at line 27 of file CbmMuchPoint.h.

Constructor & Destructor Documentation

◆ CbmMuchPoint() [1/3]

CbmMuchPoint::CbmMuchPoint ( )

Default constructor

CbmMuchPoint.cxx

Author
M.Ryzhinskiy m.ryz.nosp@m.hins.nosp@m.kiy@g.nosp@m.si.d.nosp@m.e
Version
1.0
Since
21.03.07

Class for Monte Carlo points in MUon CHambers detector

Definition at line 25 of file CbmMuchPoint.cxx.

◆ CbmMuchPoint() [2/3]

CbmMuchPoint::CbmMuchPoint ( int32_t trackID,
int32_t detID,
TVector3 posIn,
TVector3 posOut,
TVector3 momIn,
TVector3 momOut,
double tof,
double length,
double eLoss,
int32_t eventId = 0 )

Constructor with arguments

Parameters
trackIDIndex of MCTrack
detIDDetector ID (including module number)
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]
eventIdMC event identifier

Definition at line 32 of file CbmMuchPoint.cxx.

◆ CbmMuchPoint() [3/3]

CbmMuchPoint::CbmMuchPoint ( const CbmMuchPoint & 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 47 of file CbmMuchPoint.cxx.

◆ ~CbmMuchPoint()

CbmMuchPoint::~CbmMuchPoint ( )
virtual

Destructor

Definition at line 64 of file CbmMuchPoint.cxx.

Member Function Documentation

◆ GetDetectorId()

int32_t CbmMuchPoint::GetDetectorId ( ) const
inline

Accessors

Definition at line 64 of file CbmMuchPoint.h.

◆ GetPxOut()

double CbmMuchPoint::GetPxOut ( ) const
inline

Definition at line 71 of file CbmMuchPoint.h.

References fPx_out.

Referenced by CbmLitMCTrackCreator::MuchPointCoordinatesAndMomentumToLitMCPoint().

◆ GetPyOut()

double CbmMuchPoint::GetPyOut ( ) const
inline

Definition at line 72 of file CbmMuchPoint.h.

References fPy_out.

Referenced by CbmLitMCTrackCreator::MuchPointCoordinatesAndMomentumToLitMCPoint().

◆ GetPzOut()

double CbmMuchPoint::GetPzOut ( ) const
inline

Definition at line 73 of file CbmMuchPoint.h.

References fPz_out.

Referenced by CbmLitMCTrackCreator::MuchPointCoordinatesAndMomentumToLitMCPoint().

◆ GetX()

double CbmMuchPoint::GetX ( double z) const

Point coordinates at given z from linear extrapolation

Definition at line 80 of file CbmMuchPoint.cxx.

References fX_out, and fZ_out.

◆ GetXIn()

◆ GetXOut()

◆ GetY()

double CbmMuchPoint::GetY ( double z) const

Definition at line 90 of file CbmMuchPoint.cxx.

References fY_out, and fZ_out.

◆ GetYIn()

◆ GetYOut()

◆ GetZIn()

◆ GetZOut()

double CbmMuchPoint::GetZOut ( ) const
inline

Definition at line 70 of file CbmMuchPoint.h.

References fZ_out.

Referenced by CbmLitMCTrackCreator::MuchPointCoordinatesAndMomentumToLitMCPoint().

◆ IsUsable()

bool CbmMuchPoint::IsUsable ( ) const

Check for distance between in and out

Definition at line 100 of file CbmMuchPoint.cxx.

References fZ_out.

◆ MomentumOut()

void CbmMuchPoint::MomentumOut ( TVector3 & mom) const
inline

Definition at line 76 of file CbmMuchPoint.h.

References fPx_out, fPy_out, and fPz_out.

◆ PositionIn()

void CbmMuchPoint::PositionIn ( TVector3 & pos) const
inline

◆ PositionOut()

void CbmMuchPoint::PositionOut ( TVector3 & pos) const
inline

◆ Print()

void CbmMuchPoint::Print ( const Option_t * opt) const
virtual

Output to screen

Definition at line 69 of file CbmMuchPoint.cxx.

◆ SetMomentumOut()

void CbmMuchPoint::SetMomentumOut ( TVector3 mom)
inline

Definition at line 108 of file CbmMuchPoint.h.

References fPx_out, fPy_out, and fPz_out.

◆ SetPositionOut()

void CbmMuchPoint::SetPositionOut ( TVector3 pos)
inline

Modifiers

Definition at line 100 of file CbmMuchPoint.h.

References fX_out, fY_out, fZ_out, and pos.

Member Data Documentation

◆ fPx_out

Double32_t CbmMuchPoint::fPx_out
protected

Definition at line 94 of file CbmMuchPoint.h.

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

◆ fPy_out

Double32_t CbmMuchPoint::fPy_out
protected

Definition at line 94 of file CbmMuchPoint.h.

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

◆ fPz_out

Double32_t CbmMuchPoint::fPz_out
protected

Definition at line 94 of file CbmMuchPoint.h.

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

◆ fX_out

Double32_t CbmMuchPoint::fX_out
protected

Definition at line 93 of file CbmMuchPoint.h.

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

◆ fY_out

Double32_t CbmMuchPoint::fY_out
protected

Definition at line 93 of file CbmMuchPoint.h.

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

◆ fZ_out

Double32_t CbmMuchPoint::fZ_out
protected

Definition at line 93 of file CbmMuchPoint.h.

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


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