FairShip
Loading...
Searching...
No Matches
strawtubesPoint Class Reference

#include <strawtubesPoint.h>

Inheritance diagram for strawtubesPoint:
[legend]
Collaboration diagram for strawtubesPoint:
[legend]

Public Member Functions

 strawtubesPoint ()
 strawtubesPoint (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, Double_t dist)
 ~strawtubesPoint () override
Double_t dist2Wire () const
void extraPrintInfo () const override
 DetectorPoint ()=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
Public Member Functions inherited from SHiP::DetectorPoint
 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

Private Member Functions

 ClassDefOverride (strawtubesPoint, 5)

Private Attributes

Double_t fdist2Wire

Additional Inherited Members

Protected Attributes inherited from SHiP::DetectorPoint
Int_t fPdgCode
std::array< Double_t, 3 > fLpos
std::array< Double_t, 3 > fLmom

Detailed Description

Definition at line 14 of file strawtubesPoint.h.

Constructor & Destructor Documentation

◆ strawtubesPoint() [1/2]

strawtubesPoint::strawtubesPoint ( )

Default constructor

Definition at line 13 of file strawtubesPoint.cxx.

13: DetectorPoint() {}
DetectorPoint()=default

◆ strawtubesPoint() [2/2]

strawtubesPoint::strawtubesPoint ( 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,
Double_t dist )

Constructor with arguments

Parameters
trackIDIndex of MCTrack
detIDDetector ID
posCcoordinates at entrance to active volume [cm]
momMomentum of track at entrance [GeV]
tofTime since event start [ns]
lengthTrack length since creation [cm]
eLossEnergy deposit [GeV]

Definition at line 17 of file strawtubesPoint.cxx.

21 : DetectorPoint(eventID, trackID, detID, pos, mom, tof, length, eLoss,
22 pdgcode, pos, mom),
23 fdist2Wire(dist) {}

◆ ~strawtubesPoint()

strawtubesPoint::~strawtubesPoint ( )
overridedefault

Destructor

Member Function Documentation

◆ ClassDefOverride()

strawtubesPoint::ClassDefOverride ( strawtubesPoint ,
5  )
private

◆ DetectorPoint() [1/4]

◆ DetectorPoint() [2/4]

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

Copy constructor

◆ 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 24 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()} {}
std::array< Double_t, 3 > fLmom
std::array< Double_t, 3 > fLpos

◆ DetectorPoint() [4/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 19 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()} {}

◆ dist2Wire()

Double_t strawtubesPoint::dist2Wire ( ) const
inline

Output to screen

Definition at line 39 of file strawtubesPoint.h.

39{ return fdist2Wire; }

◆ extraPrintInfo()

void strawtubesPoint::extraPrintInfo ( ) const
overridevirtual

Reimplemented from SHiP::DetectorPoint.

Definition at line 30 of file strawtubesPoint.cxx.

30 {
31 LOG(info) << " Position (" << fX << ", " << fY << ", " << fZ << ", "
32 << fdist2Wire << ") cm";
33}

Member Data Documentation

◆ fdist2Wire

Double_t strawtubesPoint::fdist2Wire
private

Definition at line 43 of file strawtubesPoint.h.


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