![]() |
FairShip
|
Digitised scoring-plane hit with a particle-identification outcome. More...
#include <CaloScoringPlaneHit.h>
Public Member Functions | |
| CaloScoringPlaneHit () | |
| CaloScoringPlaneHit (const CaloScoringPlanePoint *p, Double_t t0, Double_t pos_res, Double_t time_res, Int_t pid, TRandom *rng=nullptr) | |
| ~CaloScoringPlaneHit () override=default | |
| CaloScoringPlaneHit (const CaloScoringPlaneHit &hit)=default | |
| CaloScoringPlaneHit & | operator= (const CaloScoringPlaneHit &hit)=default |
| Double_t | GetX () const |
| Double_t | GetY () const |
| Double_t | GetZ () const |
| TVector3 | GetXYZ () const |
| Double_t | GetTime () const |
| Double_t | GetPx () const |
| Double_t | GetPy () const |
| Double_t | GetPz () const |
| TVector3 | GetMom () const |
| Double_t | GetP () const |
| Int_t | GetPid () const |
| void | SetPid (Int_t pid) |
| Bool_t | IsIdentified () const |
| Bool_t | IsElectron () const |
| Bool_t | IsHadron () const |
| Bool_t | IsMuon () const |
| void | Print () const |
| void | Print (const Option_t *opt="") const override |
| Public Member Functions inherited from SHiP::DetectorHit | |
| DetectorHit () | |
| DetectorHit (Int_t detID, Float_t digi) | |
| ~DetectorHit () override=default | |
| Double_t | GetDigi () const |
| Int_t | GetDetectorID () const |
| void | SetDigi (Float_t d) |
| void | SetDetectorID (Int_t detID) |
| void | Print (const Option_t *opt="") const override |
Private Member Functions | |
| ClassDefOverride (CaloScoringPlaneHit, 1) | |
Private Attributes | |
| Double_t | fX = 0. |
| smeared x (cm) | |
| Double_t | fY = 0. |
| smeared y (cm) | |
| Double_t | fZ = 0. |
| z of the MC point (cm) | |
| Double_t | fTime = 0. |
| smeared time incl. t0 (ns) | |
| Double_t | fPx = 0. |
| MC-truth momentum (GeV/c). | |
| Double_t | fPy = 0. |
| Double_t | fPz = 0. |
| Int_t | fPid = CaloScoringPlanePID::kUnknown |
| identified species | |
Additional Inherited Members | |
| Protected Member Functions inherited from SHiP::DetectorHit | |
| ClassDefOverride (SHiP::DetectorHit, 1) | |
| Protected Attributes inherited from SHiP::DetectorHit | |
| Float_t | fdigi |
| digitized detector hit | |
| Int_t | fDetectorID |
| Detector unique identifier. | |
Digitised scoring-plane hit with a particle-identification outcome.
Position and time are smeared from the MC point; the momentum is the MC-truth momentum at the plane. The PID outcome (electron / hadron / muon, or unknown) is drawn with CaloScoringPlanePID from energy-dependent confusion matrices and stored as a CaloScoringPlanePID::Species value. The MC truth link is kept in the separate digiCaloScoringPlane2MC branch.
Definition at line 24 of file CaloScoringPlaneHit.h.
| CaloScoringPlaneHit::CaloScoringPlaneHit | ( | ) |
Definition at line 13 of file CaloScoringPlaneHit.cxx.
| CaloScoringPlaneHit::CaloScoringPlaneHit | ( | const CaloScoringPlanePoint * | p, |
| Double_t | t0, | ||
| Double_t | pos_res, | ||
| Double_t | time_res, | ||
| Int_t | pid, | ||
| TRandom * | rng = nullptr ) |
| p | MC point |
| t0 | event time offset (ns) |
| pos_res | Gaussian x/y resolution (cm), 0 = no smearing |
| time_res | Gaussian time resolution (ns), 0 = no smearing |
| pid | identified species (CaloScoringPlanePID::Species) |
| rng | generator for the smearing (gRandom if null); nothing is drawn without smearing |
Definition at line 15 of file CaloScoringPlaneHit.cxx.
|
overridedefault |
|
default |
|
private |
|
inline |
Definition at line 54 of file CaloScoringPlaneHit.h.
|
inline |
Definition at line 55 of file CaloScoringPlaneHit.h.
|
inline |
Identified species, a CaloScoringPlanePID::Species value.
Definition at line 58 of file CaloScoringPlaneHit.h.
|
inline |
Definition at line 51 of file CaloScoringPlaneHit.h.
|
inline |
Definition at line 52 of file CaloScoringPlaneHit.h.
|
inline |
Definition at line 53 of file CaloScoringPlaneHit.h.
|
inline |
Definition at line 49 of file CaloScoringPlaneHit.h.
|
inline |
Definition at line 45 of file CaloScoringPlaneHit.h.
|
inline |
Definition at line 48 of file CaloScoringPlaneHit.h.
|
inline |
Definition at line 46 of file CaloScoringPlaneHit.h.
|
inline |
Definition at line 47 of file CaloScoringPlaneHit.h.
|
inline |
Definition at line 61 of file CaloScoringPlaneHit.h.
|
inline |
Definition at line 62 of file CaloScoringPlaneHit.h.
|
inline |
Definition at line 60 of file CaloScoringPlaneHit.h.
|
inline |
Definition at line 63 of file CaloScoringPlaneHit.h.
|
default |
| void CaloScoringPlaneHit::Print | ( | ) | const |
Definition at line 37 of file CaloScoringPlaneHit.cxx.
|
inlineoverride |
Definition at line 36 of file DetectorHit.h.
|
inline |
Definition at line 59 of file CaloScoringPlaneHit.h.
|
private |
identified species
Definition at line 76 of file CaloScoringPlaneHit.h.
|
private |
MC-truth momentum (GeV/c).
Definition at line 73 of file CaloScoringPlaneHit.h.
|
private |
Definition at line 74 of file CaloScoringPlaneHit.h.
|
private |
Definition at line 75 of file CaloScoringPlaneHit.h.
|
private |
smeared time incl. t0 (ns)
Definition at line 72 of file CaloScoringPlaneHit.h.
|
private |
smeared x (cm)
Definition at line 69 of file CaloScoringPlaneHit.h.
|
private |
smeared y (cm)
Definition at line 70 of file CaloScoringPlaneHit.h.
|
private |
z of the MC point (cm)
Definition at line 71 of file CaloScoringPlaneHit.h.