BmnRoot
Loading...
Searching...
No Matches
BmnSsdPoint Class Reference

#include <BmnSsdPoint.h>

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

Public Member Functions

 BmnSsdPoint ()
 
 BmnSsdPoint (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)
 
 BmnSsdPoint (const BmnSsdPoint &point, Int_t eventId=-1, Double_t eventTime=0., Double_t epochTime=0.)
 
virtual ~BmnSsdPoint ()
 
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]


 
Short_t fFlag
 

‍Index of point in its TClonesArray


 

Detailed Description

Definition at line 26 of file BmnSsdPoint.h.

Constructor & Destructor Documentation

◆ BmnSsdPoint() [1/3]

BmnSsdPoint::BmnSsdPoint ( )

Default constructor

Definition at line 17 of file BmnSsdPoint.cxx.

◆ BmnSsdPoint() [2/3]

BmnSsdPoint::BmnSsdPoint ( 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 35 of file BmnSsdPoint.cxx.

References kMCTrack.

◆ BmnSsdPoint() [3/3]

BmnSsdPoint::BmnSsdPoint ( const BmnSsdPoint 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 63 of file BmnSsdPoint.cxx.

◆ ~BmnSsdPoint()

BmnSsdPoint::~BmnSsdPoint ( )
virtual

Destructor

Definition at line 57 of file BmnSsdPoint.cxx.

Member Function Documentation

◆ GetIndex()

Int_t BmnSsdPoint::GetIndex ( ) const
inline

Definition at line 84 of file BmnSsdPoint.h.

References fIndex.

◆ GetPid()

Int_t BmnSsdPoint::GetPid ( ) const
inline

Definition at line 83 of file BmnSsdPoint.h.

References fPid.

Referenced by BmnSsdSensor::ProcessPoint().

◆ GetPxOut()

Double_t BmnSsdPoint::GetPxOut ( ) const
inline

Definition at line 80 of file BmnSsdPoint.h.

References fPx_out.

Referenced by BmnSsdSensor::ProcessPoint().

◆ GetPyOut()

Double_t BmnSsdPoint::GetPyOut ( ) const
inline

Definition at line 81 of file BmnSsdPoint.h.

References fPy_out.

Referenced by BmnSsdSensor::ProcessPoint().

◆ GetPzOut()

Double_t BmnSsdPoint::GetPzOut ( ) const
inline

Definition at line 82 of file BmnSsdPoint.h.

References fPz_out.

Referenced by BmnSsdSensor::ProcessPoint().

◆ GetX()

Double_t BmnSsdPoint::GetX ( Double_t  z) const

Point coordinates at given z from linear extrapolation

Definition at line 86 of file BmnSsdPoint.cxx.

References fX_out, and fZ_out.

◆ GetXIn()

Double_t BmnSsdPoint::GetXIn ( ) const
inline

Accessors

Definition at line 74 of file BmnSsdPoint.h.

Referenced by BmnSsdSensor::ProcessPoint().

◆ GetXOut()

Double_t BmnSsdPoint::GetXOut ( ) const
inline

Definition at line 77 of file BmnSsdPoint.h.

References fX_out.

Referenced by BmnSsdSensor::ProcessPoint().

◆ GetY()

Double_t BmnSsdPoint::GetY ( Double_t  z) const

Definition at line 96 of file BmnSsdPoint.cxx.

References fY_out, and fZ_out.

◆ GetYIn()

Double_t BmnSsdPoint::GetYIn ( ) const
inline

Definition at line 75 of file BmnSsdPoint.h.

Referenced by BmnSsdSensor::ProcessPoint().

◆ GetYOut()

Double_t BmnSsdPoint::GetYOut ( ) const
inline

Definition at line 78 of file BmnSsdPoint.h.

References fY_out.

Referenced by BmnSsdSensor::ProcessPoint().

◆ GetZIn()

Double_t BmnSsdPoint::GetZIn ( ) const
inline

Definition at line 76 of file BmnSsdPoint.h.

Referenced by BmnSsdSensor::ProcessPoint().

◆ GetZOut()

Double_t BmnSsdPoint::GetZOut ( ) const
inline

Definition at line 79 of file BmnSsdPoint.h.

References fZ_out.

Referenced by BmnSsdSensor::ProcessPoint().

◆ IsEntry()

Bool_t BmnSsdPoint::IsEntry ( ) const
inline

Definition at line 85 of file BmnSsdPoint.h.

References fFlag.

Referenced by BmnSsdSensor::ProcessPoint().

◆ IsExit()

Bool_t BmnSsdPoint::IsExit ( ) const
inline

Definition at line 86 of file BmnSsdPoint.h.

References fFlag.

Referenced by BmnSsdSensor::ProcessPoint().

◆ IsUsable()

Bool_t BmnSsdPoint::IsUsable ( ) const

Check for distance between in and out

Definition at line 107 of file BmnSsdPoint.cxx.

References fZ_out.

◆ MomentumOut()

void BmnSsdPoint::MomentumOut ( TVector3 &  mom)
inline

Definition at line 90 of file BmnSsdPoint.h.

References fPx_out, fPy_out, and fPz_out.

◆ PositionIn()

void BmnSsdPoint::PositionIn ( TVector3 &  pos)
inline

Definition at line 88 of file BmnSsdPoint.h.

◆ PositionOut()

void BmnSsdPoint::PositionOut ( TVector3 &  pos)
inline

Definition at line 89 of file BmnSsdPoint.h.

References fX_out, fY_out, and fZ_out.

◆ SetMomentumOut()

void BmnSsdPoint::SetMomentumOut ( TVector3  mom)
inline

Definition at line 140 of file BmnSsdPoint.h.

References fPx_out, fPy_out, and fPz_out.

◆ SetPositionOut()

void BmnSsdPoint::SetPositionOut ( TVector3  pos)
inline

Modifiers

Definition at line 133 of file BmnSsdPoint.h.

References fX_out, fY_out, and fZ_out.

◆ SetTrackID()

virtual void BmnSsdPoint::SetTrackID ( Int_t  id)
inlinevirtual

Definition at line 105 of file BmnSsdPoint.h.

◆ ToString()

string BmnSsdPoint::ToString ( ) const

String output

Definition at line 117 of file BmnSsdPoint.cxx.

References fX_out, fY_out, and fZ_out.

Member Data Documentation

◆ fFlag

Short_t BmnSsdPoint::fFlag
protected

‍Index of point in its TClonesArray

Definition at line 123 of file BmnSsdPoint.h.

Referenced by IsEntry(), and IsExit().

◆ fIndex

Int_t BmnSsdPoint::fIndex
protected

‍Particle ID [PDG code]

Definition at line 122 of file BmnSsdPoint.h.

Referenced by GetIndex().

◆ fPid

Int_t BmnSsdPoint::fPid
protected

Definition at line 121 of file BmnSsdPoint.h.

Referenced by GetPid().

◆ fPx_out

Double32_t BmnSsdPoint::fPx_out
protected

Definition at line 120 of file BmnSsdPoint.h.

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

◆ fPy_out

Double32_t BmnSsdPoint::fPy_out
protected

Definition at line 120 of file BmnSsdPoint.h.

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

◆ fPz_out

Double32_t BmnSsdPoint::fPz_out
protected

Definition at line 120 of file BmnSsdPoint.h.

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

◆ fX_out

Double32_t BmnSsdPoint::fX_out
protected

Definition at line 119 of file BmnSsdPoint.h.

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

◆ fY_out

Double32_t BmnSsdPoint::fY_out
protected

Definition at line 119 of file BmnSsdPoint.h.

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

◆ fZ_out

Double32_t BmnSsdPoint::fZ_out
protected

Definition at line 119 of file BmnSsdPoint.h.

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


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