29 namespace ca = cbm::algo::ca;
360 std::string
ToString(
int verbose,
bool printHeader =
false)
const;
Compile-time constants definition for the CA tracking algorithm.
Data structure to represent a MC link in CA tracking MC module.
friend fvec sqrt(const fvec &a)
void SetCharge(double charge)
Sets particle charge [e].
double GetTyIn() const
Gets slope along x-axis at entrance to station.
double GetPt() const
Gets track transverse momentum at reference z of station [GeV/c].
int GetInvSpeed() const
Gets inverse speed at reference z of station [ns/cm].
double fMass
Particle mass [GeV/c2].
double GetTxIn() const
Gets slope along x-axis at entrance to station.
double fCharge
Particle charge [e].
void SetPdgCode(int pdg)
Sets PDG code.
void SetPy(double py)
Sets track momentum y component at reference z of station [GeV/c].
double GetPxOut() const
Gets track momentum x component at exit of station [GeV/c].
ca::EDetectorID GetDetectorId() const
Gets detector ID.
double GetTxOut() const
Gets slope along x-axis at exit of station.
void SetYIn(double y)
Sets y coordinate at entrance to station [cm].
double GetThetaIn() const
Gets polar angle at entrance to station [rad].
~McPoint()=default
Destructor.
std::array< double, 3 > fPosOut
Position at exit of station [cm].
void SetDetectorId(ca::EDetectorID detId)
Sets detector ID.
void SetZ(double z)
Sets z coordinate at reference z of station [cm].
void SetPx(double px)
Sets track momentum x component at reference z of station [GeV/c].
double GetPhi() const
Gets track azimuthal angle at reference z of station [rad].
double GetPIn() const
Gets track momentum absolute value at entrance to station [GeV/c].
void SetYOut(double y)
Sets x coordinate at exit of station [cm].
int GetFileId() const
Gets MC file ID.
int fId
Index of MC point in the external MC point container.
double GetPz() const
Gets track momentum z component at reference z of station [GeV/c].
int fMotherId
Index of mother track in CA internal data structures (within event/TS)
double GetQpIn() const
Gets track momentum absolute value at entrance to station [ec/GeV].
int GetLocalStationId() const
Gets local index of tracking station in the detector subsystem.
double GetTime() const
Gets time [ns].
void SetMass(double mass)
Sets particle mass [GeV/c2].
void SetActiveStationId(int stationId)
Sets global index of active station.
double GetPOut() const
Gets track momentum absolute value at exit of station [GeV/c].
double GetPhiOut() const
Gets track azimuthal angle at exit of station [rad].
double GetP() const
Gets track momentum absolute value at reference z of station [GeV/c].
McLinkKey fLinkKey
Link key of point.
double GetZIn() const
Gets z coordinate at entrance to station [cm].
int fPdgCode
Particle PDG code.
double GetMass() const
Gets mass of the particle [GeV/c2].
double GetQpOut() const
Gets track momentum absolute value at exit of station [ec/GeV].
double fTime
Point time [ns].
std::array< double, 3 > fMomIn
Momentum at entrance to station [GeV/c].
double GetPx() const
Gets track momentum x component at reference z of station [GeV/c].
double GetYOut() const
Gets y coordinate at exit of station [cm].
int GetInvSpeedIn() const
Gets inverse speed at entrance to station [ns/cm].
std::array< double, 3 > fMom
Momentum at reference z of station [GeV/c].
std::array< double, 3 > fPosIn
Position at entrance to station [cm].
void SetXOut(double x)
Sets x coordinate at exit of station [cm].
McPoint & operator=(const McPoint &)=default
Copy assignment operator.
double GetY() const
Gets y coordinate at reference z of station [cm].
double GetPzOut() const
Gets track momentum z component at exit of station [GeV/c].
void SetPxIn(double px)
Sets track momentum x component at entrance to station [GeV/c].
int GetExternalId() const
Gets MC external ID.
std::array< double, 3 > fMomOut
Momentum at exit of station [cm].
int GetActiveStationId() const
Gets global ID of the active tracking station.
McPoint(McPoint &&)=default
Move constructor.
void SetPyIn(double py)
Sets track momentum y component at entrance to station [GeV/c].
int fActiveStationId
Global index of active tracking station.
double GetXOut() const
Gets x coordinate at exit of station [cm].
int fTrackId
Index of associated MC track in CA internal track container within TS/event.
double GetQp() const
Gets track charge over momentum at reference z of station [ec/GeV].
std::string ToString(int verbose, bool printHeader=false) const
Prints content for a given verbosity level.
void SetFileId(int fileId)
Sets index of MC file containing this point.
double GetPhiIn() const
Gets track azimuthal angle at entrance to station [rad].
void SetTrackId(int trackId)
Sets track ID in the CA internal track container (within event/TS)
double GetCharge() const
Gets charge of the particle [e].
int GetTrackId() const
Gets ID of track from the internal CA MC track container (within event/TS)
double GetPyOut() const
Gets track momentum y component at exit of station [GeV/c].
void SetTime(double time)
Sets time [ns].
int GetPdgCode() const
Gets PDG code of the particle.
void SetZIn(double z)
Sets z coordinate at entrance to station [cm].
void SetPzIn(double pz)
Sets track momentum z component at entrance to station [GeV/c].
void SetPyOut(double py)
Sets track momentum y component at exit of station [GeV/c].
void SetEventId(int eventId)
Sets index of MC event containing this point.
McPoint(const McPoint &)=default
Copy constructor.
McPoint & operator=(McPoint &&)=default
Move assignment operator.
ca::EDetectorID fDetectorId
Detector ID of MC point.
int GetEventId() const
Gets MC event ID.
double GetTyOut() const
Gets slope along x-axis at exit of station.
double GetPxIn() const
Gets track momentum x component at entrance to station [GeV/c].
const auto & GetHitIndexes() const
Gets container of matched hit indexes.
double GetX() const
Gets x coordinate at reference z of station [cm].
double GetYIn() const
Gets y coordinate at entrance to station [cm].
int GetId() const
Gets index of this point in internal CA container.
int GetInvSpeedOut() const
Gets inverse speed at exit of station [ns/cm].
void SetPzOut(double pz)
Sets track momentum z component at exit of station [GeV/c].
double GetZOut() const
Gets z coordinate at exit of station [cm].
int GetMotherId() const
Gets mother ID of the track.
double GetTx() const
Gets slope along x-axis at reference z of station.
ca::Vector< int > fvHitIndexes
Indexes of hits, assigned to this point.
void SetX(double x)
Sets x coordinate at reference z of station [cm].
double GetThetaOut() const
Gets polar angle at exit of station [rad].
double GetPtIn() const
Gets track transverse momentum at entrance to station [GeV/c].
McLinkKey GetLinkKey() const
Gets link key.
double GetPy() const
Gets track momentum y component at reference z of station [GeV/c].
double GetPtOut() const
Gets track transverse momentum at exit of station [GeV/c].
void SetY(double y)
Sets y coordinate at reference z of station [cm].
double GetXIn() const
Gets x coordinate at entrance to station [cm].
double GetTheta() const
Gets polar angle at reference z of station [rad].
void SetPxOut(double px)
Sets track momentum x component at exit of station [GeV/c].
double GetZ() const
Gets z coordinate at reference z of station [cm].
void SetXIn(double x)
Sets x coordinate at entrance to station [cm].
void SetLocalStationId(int localStationId)
Sets local index of tracking station in the detector subsystem.
void SetExternalId(int id)
Sets index of this point in external data structures.
std::array< double, 3 > fPos
Position at reference z of station [cm].
double GetPzIn() const
Gets track momentum z component at entrance to station [GeV/c].
void SetMotherId(int motherId)
Sets index of mother track in the internal CA data structures.
double GetPyIn() const
Gets track momentum y component at entrance to station [GeV/c].
void AddHitID(int iH)
Adds index of hits from the container of hits of event/TS.
void SetId(int id)
Sets index of this point in the CA internal structure.
McPoint()=default
Default constructor.
double GetTy() const
Gets slope along x-axis at reference z of station.
void SetPz(double pz)
Sets track momentum z component at reference z of station [GeV/c].
void SetZOut(double z)
Sets z coordinate at exit of station [cm].
constexpr fscal SpeedOfLightInv
Inverse speed of light [ns/cm].
constexpr T2 Undef
Undefined values.
TODO: SZh 8.11.2022: add selection of parameterisation.
EDetectorID
Enumeration for the tracking detector subsystems in CBM-CA.