FairShip
Loading...
Searching...
No Matches
SHiP::DetectorPoint Class Reference

#include <DetectorPoint.h>

Inheritance diagram for SHiP::DetectorPoint:
Collaboration diagram for SHiP::DetectorPoint:

Public Member Functions

 DetectorPoint ()
 
 ~DetectorPoint ()=default
 
 DetectorPoint (Int_t eventID, Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Int_t pdgCode, TVector3 Lpos, TVector3 Lmom)
 
 DetectorPoint (Int_t eventID, Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Int_t pdgCode)
 
 DetectorPoint (const DetectorPoint &point)=default
 
DetectorPointoperator= (const DetectorPoint &point)=default
 
virtual void Print () const
 
Int_t PdgCode () const
 
TVector3 LastPoint () const
 
TVector3 LastMom () const
 
virtual void extraPrintInfo () const
 

Protected Attributes

Int_t fPdgCode
 
std::array< Double_t, 3 > fLpos
 
std::array< Double_t, 3 > fLmom
 

Private Member Functions

 ClassDef (SHiP::DetectorPoint, 1)
 

Detailed Description

Definition at line 14 of file DetectorPoint.h.

Constructor & Destructor Documentation

◆ DetectorPoint() [1/4]

SHiP::DetectorPoint::DetectorPoint ( )
inline

Definition at line 16 of file DetectorPoint.h.

16{};

◆ ~DetectorPoint()

SHiP::DetectorPoint::~DetectorPoint ( )
default

◆ DetectorPoint() [2/4]

SHiP::DetectorPoint::DetectorPoint ( Int_t  eventID,
Int_t  trackID,
Int_t  detID,
TVector3  pos,
TVector3  mom,
Double_t  tof,
Double_t  length,
Double_t  eLoss,
Int_t  pdgCode,
TVector3  Lpos,
TVector3  Lmom 
)

Definition at line 10 of file DetectorPoint.cxx.

14 : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss, eventID),
15 fPdgCode(pdgcode),
16 fLpos{Lpos.X(), Lpos.Y(), Lpos.Z()},
17 fLmom{Lmom.X(), Lmom.Y(), Lmom.Z()} {}
std::array< Double_t, 3 > fLmom
Definition: DetectorPoint.h:42
std::array< Double_t, 3 > fLpos
Definition: DetectorPoint.h:42

◆ DetectorPoint() [3/4]

SHiP::DetectorPoint::DetectorPoint ( Int_t  eventID,
Int_t  trackID,
Int_t  detID,
TVector3  pos,
TVector3  mom,
Double_t  tof,
Double_t  length,
Double_t  eLoss,
Int_t  pdgCode 
)

Definition at line 20 of file DetectorPoint.cxx.

24 : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss, eventID),
25 fPdgCode(pdgcode),
26 fLpos{pos.X(), pos.Y(), pos.Z()},
27 fLmom{mom.X(), mom.Y(), mom.Z()} {}

◆ DetectorPoint() [4/4]

SHiP::DetectorPoint::DetectorPoint ( const DetectorPoint point)
default

Copy constructor

Member Function Documentation

◆ ClassDef()

SHiP::DetectorPoint::ClassDef ( SHiP::DetectorPoint  ,
 
)
private

◆ extraPrintInfo()

void SHiP::DetectorPoint::extraPrintInfo ( ) const
virtual

Reimplemented in splitcalPoint, strawtubesPoint, TimeDetPoint, UpstreamTaggerPoint, and vetoPoint.

Definition at line 41 of file DetectorPoint.cxx.

41 {
42 LOG(info) << "Nothing to see here";
43}

◆ LastMom()

TVector3 SHiP::DetectorPoint::LastMom ( ) const
inline

Definition at line 36 of file DetectorPoint.h.

36{ return TVector3(fLmom[0], fLmom[1], fLmom[2]); }

◆ LastPoint()

TVector3 SHiP::DetectorPoint::LastPoint ( ) const
inline

Definition at line 35 of file DetectorPoint.h.

35{ return TVector3(fLpos[0], fLpos[1], fLpos[2]); }

◆ operator=()

DetectorPoint & SHiP::DetectorPoint::operator= ( const DetectorPoint point)
default

◆ PdgCode()

Int_t SHiP::DetectorPoint::PdgCode ( ) const
inline

Definition at line 34 of file DetectorPoint.h.

34{ return fPdgCode; }

◆ Print()

void SHiP::DetectorPoint::Print ( ) const
virtual

Definition at line 30 of file DetectorPoint.cxx.

30 {
31 LOG(info) << "-I- " << ClassName() << " point for track " << fTrackID
32 << " in detector " << fDetectorID;
33 LOG(info) << " Position (" << fX << ", " << fY << ", " << fZ << ") cm";
34 LOG(info) << " Momentum (" << fPx << ", " << fPy << ", " << fPz << ") GeV";
35 LOG(info) << " Time " << fTime << " ns, Length " << fLength
36 << " cm, Energy loss " << fELoss * 1.0e06 << " keV";
38}
virtual void extraPrintInfo() const

Member Data Documentation

◆ fLmom

std::array<Double_t, 3> SHiP::DetectorPoint::fLmom
protected

Definition at line 42 of file DetectorPoint.h.

◆ fLpos

std::array<Double_t, 3> SHiP::DetectorPoint::fLpos
protected

Definition at line 42 of file DetectorPoint.h.

◆ fPdgCode

Int_t SHiP::DetectorPoint::fPdgCode
protected

Definition at line 41 of file DetectorPoint.h.


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