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

#include <DetectorPoint.h>

Inheritance diagram for SHiP::DetectorPoint:
[legend]
Collaboration diagram for SHiP::DetectorPoint:
[legend]

Public Member Functions

 DetectorPoint ()=default
 ~DetectorPoint () override=default
 DetectorPoint (Int_t eventID, Int_t trackID, Int_t detID, const TVector3 &pos, const TVector3 &mom, Double_t tof, Double_t length, Double_t eLoss, Int_t pdgCode, const TVector3 &Lpos, const TVector3 &Lmom)
 DetectorPoint (Int_t eventID, Int_t trackID, Int_t detID, const TVector3 &pos, const TVector3 &mom, Double_t tof, Double_t length, Double_t eLoss, Int_t pdgCode)
 DetectorPoint (const DetectorPoint &point)=default
DetectorPoint & operator= (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

 ClassDefOverride (SHiP::DetectorPoint, 1)

Detailed Description

Definition at line 14 of file DetectorPoint.h.

Constructor & Destructor Documentation

◆ DetectorPoint() [1/4]

SHiP::DetectorPoint::DetectorPoint ( )
default

◆ ~DetectorPoint()

SHiP::DetectorPoint::~DetectorPoint ( )
overridedefault

◆ DetectorPoint() [2/4]

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

Definition at line 10 of file DetectorPoint.cxx.

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

◆ DetectorPoint() [3/4]

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

Definition at line 21 of file DetectorPoint.cxx.

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

◆ DetectorPoint() [4/4]

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

Copy constructor

Member Function Documentation

◆ ClassDefOverride()

SHiP::DetectorPoint::ClassDefOverride ( SHiP::DetectorPoint ,
1  )
private

◆ extraPrintInfo()

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

Reimplemented in CaloScoringPlanePoint, strawtubesPoint, TimeDetPoint, UpstreamTaggerPoint, UpstreamTaggerScoringPoint, and vetoPoint.

Definition at line 42 of file DetectorPoint.cxx.

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

◆ LastMom()

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

Definition at line 37 of file DetectorPoint.h.

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

◆ LastPoint()

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

Definition at line 36 of file DetectorPoint.h.

36{ 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 35 of file DetectorPoint.h.

35{ return fPdgCode; }

◆ Print()

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

Definition at line 31 of file DetectorPoint.cxx.

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

Member Data Documentation

◆ fLmom

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

Definition at line 43 of file DetectorPoint.h.

◆ fLpos

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

Definition at line 43 of file DetectorPoint.h.

◆ fPdgCode

Int_t SHiP::DetectorPoint::fPdgCode
protected

Definition at line 42 of file DetectorPoint.h.


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