SND@LHC Software
Loading...
Searching...
No Matches
splitcalPoint Class Reference

#include <splitcalPoint.h>

Inheritance diagram for splitcalPoint:
Collaboration diagram for splitcalPoint:

Public Member Functions

 splitcalPoint ()
 
 splitcalPoint (Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Int_t pdgCode)
 
virtual ~splitcalPoint ()
 
virtual void Print () const
 
Int_t PdgCode () const
 

Private Member Functions

 splitcalPoint (const splitcalPoint &point)
 
splitcalPoint operator= (const splitcalPoint &point)
 

Private Attributes

Int_t fPdgCode
 

Detailed Description

Definition at line 10 of file splitcalPoint.h.

Constructor & Destructor Documentation

◆ splitcalPoint() [1/3]

splitcalPoint::splitcalPoint ( )

Default constructor

Definition at line 9 of file splitcalPoint.cxx.

10 : FairMCPoint()
11{
12}

◆ splitcalPoint() [2/3]

splitcalPoint::splitcalPoint ( Int_t  trackID,
Int_t  detID,
TVector3  pos,
TVector3  mom,
Double_t  tof,
Double_t  length,
Double_t  eLoss,
Int_t  pdgCode 
)

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 16 of file splitcalPoint.cxx.

20 : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss), fPdgCode(pdgcode)
21{
22}

◆ ~splitcalPoint()

splitcalPoint::~splitcalPoint ( )
virtual

Destructor

Definition at line 26 of file splitcalPoint.cxx.

26{ }

◆ splitcalPoint() [3/3]

splitcalPoint::splitcalPoint ( const splitcalPoint point)
private

Member Function Documentation

◆ operator=()

splitcalPoint splitcalPoint::operator= ( const splitcalPoint point)
private

◆ PdgCode()

Int_t splitcalPoint::PdgCode ( ) const
inline

Definition at line 39 of file splitcalPoint.h.

39{return fPdgCode;}

◆ Print()

void splitcalPoint::Print ( ) const
virtual

Output to screen

Definition at line 31 of file splitcalPoint.cxx.

32{
33 cout << "-I- splitcalPoint: splitcal point for track " << fTrackID
34 << " in detector " << fDetectorID << endl;
35 cout << " Position (" << fX << ", " << fY << ", " << fZ
36 << ") cm" << endl;
37 cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz
38 << ") GeV" << endl;
39 cout << " Time " << fTime << " ns, Length " << fLength
40 << " cm, Energy loss " << fELoss*1.0e06 << " keV" << endl;
41}

Member Data Documentation

◆ fPdgCode

Int_t splitcalPoint::fPdgCode
private

Copy constructor

Definition at line 43 of file splitcalPoint.h.


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