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

#include <HptPoint.h>

Inheritance diagram for HptPoint:
Collaboration diagram for HptPoint:

Public Member Functions

 HptPoint ()
 
 HptPoint (Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Int_t pdgcode)
 
virtual ~HptPoint ()
 
virtual void Print (const Option_t *opt) const
 
Int_t PdgCode () const
 

Private Member Functions

 HptPoint (const HptPoint &point)
 
HptPoint operator= (const HptPoint &point)
 

Private Attributes

Int_t fPdgCode
 

Detailed Description

Definition at line 10 of file HptPoint.h.

Constructor & Destructor Documentation

◆ HptPoint() [1/3]

HptPoint::HptPoint ( )

Default constructor

Definition at line 9 of file HptPoint.cxx.

10 : FairMCPoint()
11{
12}

◆ HptPoint() [2/3]

HptPoint::HptPoint ( 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 15 of file HptPoint.cxx.

19 : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss), fPdgCode(pdgcode)
20{
21}
Int_t fPdgCode
Definition HptPoint.h:44

◆ ~HptPoint()

HptPoint::~HptPoint ( )
virtual

Destructor

Definition at line 26 of file HptPoint.cxx.

26{ }

◆ HptPoint() [3/3]

HptPoint::HptPoint ( const HptPoint point)
private

Member Function Documentation

◆ operator=()

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

◆ PdgCode()

Int_t HptPoint::PdgCode ( ) const
inline

Definition at line 39 of file HptPoint.h.

39{return fPdgCode;}

◆ Print()

void HptPoint::Print ( const Option_t *  opt) const
virtual

Output to screen

Definition at line 30 of file HptPoint.cxx.

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

Member Data Documentation

◆ fPdgCode

Int_t HptPoint::fPdgCode
private

Copy constructor

Definition at line 44 of file HptPoint.h.


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