A light-weight TRD hit class for online reconstruction, based on CbmTrdHit. .
More...
#include <Hit.h>
|
| Hit () |
| Default constructor.
|
|
| Hit (int32_t address, const ROOT::Math::XYZVector &pos, const ROOT::Math::XYZVector &dpos, double dxy, int32_t refId, double eLoss, double time=0., double timeError=0.) |
| Standard constructor.
|
|
| Hit (int32_t address, double x, double y, double z, double dx, double dy, double dz, double dxy, int32_t refId, double time=-1., double timeError=-1.) |
| Standard constructor.
|
|
| ~Hit () |
| Destructor.
|
|
int32_t | GetPlaneId () const |
|
double | GetELoss () const |
|
bool | GetClassType () const |
|
bool | GetMaxType () const |
|
bool | HasOverFlow () const |
|
bool | IsRowCross () const |
|
bool | IsUsed () const |
|
double | X () const |
|
double | Y () const |
|
double | Z () const |
|
double | Dx () const |
|
double | Dy () const |
|
double | Dz () const |
|
double | Dxy () const |
|
int32_t | GetRefId () const |
|
int32_t | Address () const |
|
double | Time () const |
|
double | TimeError () const |
|
void | Position (ROOT::Math::XYZVector &pos) const |
| Copies hit position to pos.
|
|
void | PositionError (ROOT::Math::XYZVector &dpos) const |
| Copies hit position error to pos.
|
|
void | SetELoss (double loss) |
|
void | SetOverFlow (bool set=true) |
| Mark overflow in one or more digits which define the hit.
|
|
void | SetRowCross (bool set=true) |
| Mark hit reconstructed between pad rows.
|
|
void | SetClassType (bool set=true) |
| Type of pad layout used in reconstruction R[0], T[1].
|
|
void | SetMaxType (bool set=true) |
| Extra bool definition for the hit (e.g. the type of maximum for triangular pads).
|
|
void | SetX (double x) |
|
void | SetY (double y) |
|
void | SetZ (double z) |
|
void | SetDx (double dx) |
|
void | SetDy (double dy) |
|
void | SetDz (double dz) |
|
void | SetDxy (double dxy) |
|
void | SetRefId (int32_t refId) |
|
void | SetAddress (int32_t address) |
|
void | SetTime (double time) |
|
void | SetTime (double time, double error) |
|
void | SetTimeError (double error) |
|
void | SetPosition (const ROOT::Math::XYZVector &pos) |
| Sets position of the hit.
|
|
void | SetPositionError (const ROOT::Math::XYZVector &dpos) |
|
|
template<class Archive > |
void | serialize (Archive &ar, unsigned int) |
|
|
double | fX |
|
double | fY |
|
double | fZ |
| X, Y, Z positions of hit [cm].
|
|
double | fDx |
|
double | fDy |
|
double | fDz |
| X, Y, Z errors [cm].
|
|
double | fDxy |
| X-Y covariance of the hit [cm**2].
|
|
int32_t | fRefId |
| some reference id (usually to cluster, digi or MC point)
|
|
int32_t | fAddress |
| detector unique identifier
|
|
double | fTime |
| Hit time [ns].
|
|
double | fTimeError |
| Error of hit time [ns].
|
|
uint8_t | fDefine |
|
int32_t | fNeighborId |
|
Double32_t | fELoss |
|
A light-weight TRD hit class for online reconstruction, based on CbmTrdHit. .
Definition at line 33 of file detectors/trd/Hit.h.
◆ HitDef
Enumerator |
---|
kType | set type of pad layout
|
kMaxType | set type of pad on which the maximum charge is found
|
kRowCross | mark hit defined by 2 clusters
|
kOvfl | mark over-flow in the data
|
Definition at line 35 of file detectors/trd/Hit.h.
◆ Hit() [1/3]
cbm::algo::trd::Hit::Hit |
( |
| ) |
|
Default constructor.
Definition at line 15 of file Hit.cxx.
◆ Hit() [2/3]
cbm::algo::trd::Hit::Hit |
( |
int32_t | address, |
|
|
const ROOT::Math::XYZVector & | pos, |
|
|
const ROOT::Math::XYZVector & | dpos, |
|
|
double | dxy, |
|
|
int32_t | refId, |
|
|
double | eLoss, |
|
|
double | time = 0., |
|
|
double | timeError = 0. ) |
Standard constructor.
- Parameters
-
address | Unique detector ID |
pos | Position in global c.s. [cm] |
dpos | Errors of position in global c.s. [cm] |
dxy | XY correlation of the hit |
refId | Index of digi or cluster |
eLoss | TR + dEdx |
Definition at line 17 of file Hit.cxx.
References fELoss.
◆ Hit() [3/3]
cbm::algo::trd::Hit::Hit |
( |
int32_t | address, |
|
|
double | x, |
|
|
double | y, |
|
|
double | z, |
|
|
double | dx, |
|
|
double | dy, |
|
|
double | dz, |
|
|
double | dxy, |
|
|
int32_t | refId, |
|
|
double | time = -1., |
|
|
double | timeError = -1. ) |
Standard constructor.
- Parameters
-
[in] | address | Detector unique identifier. |
[in] | x | X position of the hit [cm]. |
[in] | y | Y position of the hit [cm]. |
[in] | z | Z position of the hit [cm]. |
[in] | dx | X position error of the hit [cm]. |
[in] | dy | Y position error of the hit [cm]. |
[in] | dz | Z position error of the hit [cm]. |
[in] | dxy | X-Y covariance of the hit [cm**2]. |
[in] | refId | Some reference ID. |
[in] | time | Hit time [ns]. |
[in] | timeError | Error of hit time [ns]. |
Definition at line 24 of file Hit.cxx.
◆ ~Hit()
cbm::algo::trd::Hit::~Hit |
( |
| ) |
|
|
inline |
◆ Address()
int32_t cbm::algo::trd::Hit::Address |
( |
| ) |
const |
|
inline |
◆ Dx()
double cbm::algo::trd::Hit::Dx |
( |
| ) |
const |
|
inline |
◆ Dxy()
double cbm::algo::trd::Hit::Dxy |
( |
| ) |
const |
|
inline |
◆ Dy()
double cbm::algo::trd::Hit::Dy |
( |
| ) |
const |
|
inline |
◆ Dz()
double cbm::algo::trd::Hit::Dz |
( |
| ) |
const |
|
inline |
◆ GetClassType()
bool cbm::algo::trd::Hit::GetClassType |
( |
| ) |
const |
|
inline |
◆ GetELoss()
double cbm::algo::trd::Hit::GetELoss |
( |
| ) |
const |
|
inline |
◆ GetMaxType()
bool cbm::algo::trd::Hit::GetMaxType |
( |
| ) |
const |
|
inline |
◆ GetPlaneId()
int32_t cbm::algo::trd::Hit::GetPlaneId |
( |
| ) |
const |
|
inline |
◆ GetRefId()
int32_t cbm::algo::trd::Hit::GetRefId |
( |
| ) |
const |
|
inline |
◆ HasOverFlow()
bool cbm::algo::trd::Hit::HasOverFlow |
( |
| ) |
const |
|
inline |
◆ IsRowCross()
bool cbm::algo::trd::Hit::IsRowCross |
( |
| ) |
const |
|
inline |
◆ IsUsed()
bool cbm::algo::trd::Hit::IsUsed |
( |
| ) |
const |
|
inline |
◆ Position()
void cbm::algo::trd::Hit::Position |
( |
ROOT::Math::XYZVector & | pos | ) |
const |
Copies hit position to pos.
- Parameters
-
Definition at line 43 of file Hit.cxx.
References pos, X(), Y(), and Z().
◆ PositionError()
void cbm::algo::trd::Hit::PositionError |
( |
ROOT::Math::XYZVector & | dpos | ) |
const |
Copies hit position error to pos.
- Parameters
-
pos | Output hit position error. |
Definition at line 45 of file Hit.cxx.
References dpos, Dx(), Dy(), and Dz().
◆ serialize()
template<class Archive >
void cbm::algo::trd::Hit::serialize |
( |
Archive & | ar, |
|
|
unsigned int | ) |
|
inlineprivate |
Definition at line 174 of file detectors/trd/Hit.h.
References fAddress, fDefine, fDx, fDxy, fDy, fDz, fELoss, fNeighborId, fRefId, fTime, fTimeError, fX, fY, and fZ.
◆ SetAddress()
void cbm::algo::trd::Hit::SetAddress |
( |
int32_t | address | ) |
|
|
inline |
◆ SetClassType()
void cbm::algo::trd::Hit::SetClassType |
( |
bool | set = true | ) |
|
|
inline |
◆ SetDx()
void cbm::algo::trd::Hit::SetDx |
( |
double | dx | ) |
|
|
inline |
◆ SetDxy()
void cbm::algo::trd::Hit::SetDxy |
( |
double | dxy | ) |
|
|
inline |
◆ SetDy()
void cbm::algo::trd::Hit::SetDy |
( |
double | dy | ) |
|
|
inline |
◆ SetDz()
void cbm::algo::trd::Hit::SetDz |
( |
double | dz | ) |
|
|
inline |
◆ SetELoss()
void cbm::algo::trd::Hit::SetELoss |
( |
double | loss | ) |
|
|
inline |
◆ SetMaxType()
void cbm::algo::trd::Hit::SetMaxType |
( |
bool | set = true | ) |
|
|
inline |
◆ SetOverFlow()
void cbm::algo::trd::Hit::SetOverFlow |
( |
bool | set = true | ) |
|
|
inline |
◆ SetPosition()
void cbm::algo::trd::Hit::SetPosition |
( |
const ROOT::Math::XYZVector & | pos | ) |
|
◆ SetPositionError()
void cbm::algo::trd::Hit::SetPositionError |
( |
const ROOT::Math::XYZVector & | dpos | ) |
|
◆ SetRefId()
void cbm::algo::trd::Hit::SetRefId |
( |
int32_t | refId | ) |
|
|
inline |
◆ SetRowCross()
void cbm::algo::trd::Hit::SetRowCross |
( |
bool | set = true | ) |
|
|
inline |
◆ SetTime() [1/2]
void cbm::algo::trd::Hit::SetTime |
( |
double | time | ) |
|
|
inline |
◆ SetTime() [2/2]
void cbm::algo::trd::Hit::SetTime |
( |
double | time, |
|
|
double | error ) |
|
inline |
◆ SetTimeError()
void cbm::algo::trd::Hit::SetTimeError |
( |
double | error | ) |
|
|
inline |
◆ SetX()
void cbm::algo::trd::Hit::SetX |
( |
double | x | ) |
|
|
inline |
◆ SetY()
void cbm::algo::trd::Hit::SetY |
( |
double | y | ) |
|
|
inline |
◆ SetZ()
void cbm::algo::trd::Hit::SetZ |
( |
double | z | ) |
|
|
inline |
◆ Time()
double cbm::algo::trd::Hit::Time |
( |
| ) |
const |
|
inline |
◆ TimeError()
double cbm::algo::trd::Hit::TimeError |
( |
| ) |
const |
|
inline |
◆ X()
double cbm::algo::trd::Hit::X |
( |
| ) |
const |
|
inline |
◆ Y()
double cbm::algo::trd::Hit::Y |
( |
| ) |
const |
|
inline |
◆ Z()
double cbm::algo::trd::Hit::Z |
( |
| ) |
const |
|
inline |
◆ boost::serialization::access
friend class boost::serialization::access |
|
friend |
◆ fAddress
int32_t cbm::algo::trd::Hit::fAddress |
|
private |
◆ fDefine
uint8_t cbm::algo::trd::Hit::fDefine |
|
private |
◆ fDx
double cbm::algo::trd::Hit::fDx |
|
private |
◆ fDxy
double cbm::algo::trd::Hit::fDxy |
|
private |
◆ fDy
double cbm::algo::trd::Hit::fDy |
|
private |
◆ fDz
double cbm::algo::trd::Hit::fDz |
|
private |
◆ fELoss
Double32_t cbm::algo::trd::Hit::fELoss |
|
private |
◆ fNeighborId
int32_t cbm::algo::trd::Hit::fNeighborId |
|
private |
◆ fRefId
int32_t cbm::algo::trd::Hit::fRefId |
|
private |
◆ fTime
double cbm::algo::trd::Hit::fTime |
|
private |
◆ fTimeError
double cbm::algo::trd::Hit::fTimeError |
|
private |
◆ fX
double cbm::algo::trd::Hit::fX |
|
private |
◆ fY
double cbm::algo::trd::Hit::fY |
|
private |
◆ fZ
double cbm::algo::trd::Hit::fZ |
|
private |
The documentation for this class was generated from the following files: