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

#include <ecalPoint.h>

Inheritance diagram for ecalPoint:
Collaboration diagram for ecalPoint:

Public Member Functions

 ecalPoint ()
 
 ecalPoint (Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Int_t pdgcode=0)
 
 ecalPoint (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 ~ecalPoint ()
 
virtual void Print (const Option_t *opt) const
 

Private Member Functions

 ecalPoint (const ecalPoint &point)
 
ecalPoint operator= (const ecalPoint &point)
 

Private Attributes

Int_t fPdgCode
 

Friends

class ecal
 

Detailed Description

Definition at line 12 of file ecalPoint.h.

Constructor & Destructor Documentation

◆ ecalPoint() [1/4]

ecalPoint::ecalPoint ( )

Default constructor

Definition at line 9 of file ecalPoint.cxx.

10 : FairMCPoint()
11{
12}

◆ ecalPoint() [2/4]

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

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

◆ ecalPoint() [3/4]

ecalPoint::ecalPoint ( 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 ecalPoint.h.

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

◆ ~ecalPoint()

ecalPoint::~ecalPoint ( )
virtual

Destructor

Definition at line 26 of file ecalPoint.cxx.

26{ }

◆ ecalPoint() [4/4]

ecalPoint::ecalPoint ( const ecalPoint point)
private

Copy constructor

Member Function Documentation

◆ GetPdgCode()

Int_t ecalPoint::GetPdgCode ( ) const
inline

Definition at line 44 of file ecalPoint.h.

44{return fPdgCode;}

◆ operator=()

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

◆ PdgCode()

Int_t ecalPoint::PdgCode ( ) const
inline

Definition at line 45 of file ecalPoint.h.

45{return fPdgCode;}

◆ Print()

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

Output to screen

Definition at line 30 of file ecalPoint.cxx.

31{
32 cout << "-I- ecalPoint: ecal 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

◆ ecal

friend class ecal
friend

Definition at line 14 of file ecalPoint.h.

Member Data Documentation

◆ fPdgCode

Int_t ecalPoint::fPdgCode
private

Definition at line 58 of file ecalPoint.h.


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