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

#include <muonPoint.h>

Inheritance diagram for muonPoint:
Collaboration diagram for muonPoint:

Public Member Functions

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

Private Member Functions

 muonPoint (const muonPoint &point)
 
muonPoint operator= (const muonPoint &point)
 

Private Attributes

Int_t fPdgCode
 

Detailed Description

Definition at line 10 of file muonPoint.h.

Constructor & Destructor Documentation

◆ muonPoint() [1/3]

muonPoint::muonPoint ( )

Default constructor

Definition at line 9 of file muonPoint.cxx.

10 : FairMCPoint()
11{
12}

◆ muonPoint() [2/3]

muonPoint::muonPoint ( 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 muonPoint.cxx.

20 : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss), fPdgCode(pdgcode)
21{
22}
Int_t fPdgCode
Definition muonPoint.h:42

◆ ~muonPoint()

muonPoint::~muonPoint ( )
virtual

Destructor

Definition at line 26 of file muonPoint.cxx.

26{ }

◆ muonPoint() [3/3]

muonPoint::muonPoint ( const muonPoint point)
private

Member Function Documentation

◆ operator=()

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

◆ PdgCode()

Int_t muonPoint::PdgCode ( ) const
inline

Definition at line 38 of file muonPoint.h.

38{return fPdgCode;}

◆ Print()

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

Output to screen

Definition at line 30 of file muonPoint.cxx.

31{
32 cout << "-I- muonPoint: muon 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 muonPoint::fPdgCode
private

Copy constructor

Definition at line 42 of file muonPoint.h.


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