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

#include <hcalPoint.h>

Inheritance diagram for hcalPoint:
Collaboration diagram for hcalPoint:

Public Member Functions

 hcalPoint ()
 
 hcalPoint (Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Int_t pdgcode=0)
 
 hcalPoint (Int_t trackID, Int_t detID, Double32_t tof, Double32_t eloss, UInt_t EventId=0)
 
Int_t GetPdgCode () const
 
Int_t PdgCode () const
 
virtual ~hcalPoint ()
 
virtual void Print (const Option_t *opt) const
 

Private Member Functions

 hcalPoint (const hcalPoint &point)
 
hcalPoint operator= (const hcalPoint &point)
 

Private Attributes

Int_t fPdgCode
 

Friends

class hcal
 

Detailed Description

Definition at line 12 of file hcalPoint.h.

Constructor & Destructor Documentation

◆ hcalPoint() [1/4]

hcalPoint::hcalPoint ( )

Default constructor

Definition at line 9 of file hcalPoint.cxx.

10 : FairMCPoint()
11{
12}

◆ hcalPoint() [2/4]

hcalPoint::hcalPoint ( Int_t  trackID,
Int_t  detID,
TVector3  pos,
TVector3  mom,
Double_t  tof,
Double_t  length,
Double_t  eLoss,
Int_t  pdgcode = 0 
)

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 hcalPoint.cxx.

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

◆ hcalPoint() [3/4]

hcalPoint::hcalPoint ( Int_t  trackID,
Int_t  detID,
Double32_t  tof,
Double32_t  eloss,
UInt_t  EventId = 0 
)
inline

Constructor with arguments for lite points

Parameters
trackIDIndex of MCTrack
detIDDetector ID
tofTime since event start [ns]
eLossEnergy deposit [GeV]

Definition at line 40 of file hcalPoint.h.

41 : FairMCPoint(trackID, detID, TVector3(-1111, -1111, -1111), TVector3(-1111, -1111, -1111), tof, -1111, eloss, EventId), fPdgCode(0)
42 {};

◆ ~hcalPoint()

hcalPoint::~hcalPoint ( )
virtual

Destructor

Definition at line 26 of file hcalPoint.cxx.

26{ }

◆ hcalPoint() [4/4]

hcalPoint::hcalPoint ( const hcalPoint point)
private

Copy constructor

Member Function Documentation

◆ GetPdgCode()

Int_t hcalPoint::GetPdgCode ( ) const
inline

Definition at line 44 of file hcalPoint.h.

44{return fPdgCode;}

◆ operator=()

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

◆ PdgCode()

Int_t hcalPoint::PdgCode ( ) const
inline

Definition at line 45 of file hcalPoint.h.

45{return fPdgCode;}

◆ Print()

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

Output to screen

Definition at line 30 of file hcalPoint.cxx.

31{
32 cout << "-I- hcalPoint: hcal point for track " << fTrackID
33 << "(PDG=" << fPdgCode << ") 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}

Friends And Related Symbol Documentation

◆ hcal

friend class hcal
friend

Definition at line 14 of file hcalPoint.h.

Member Data Documentation

◆ fPdgCode

Int_t hcalPoint::fPdgCode
private

Definition at line 58 of file hcalPoint.h.


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