FairRoot/PandaRoot
Public Member Functions | Protected Attributes | List of all members
PndHypGePoint Class Reference

#include <PndHypGePoint.h>

Inheritance diagram for PndHypGePoint:

Public Member Functions

 PndHypGePoint ()
 
 PndHypGePoint (Int_t trackID, Int_t evtID, Int_t pdgCode, Double_t charge, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Short_t copy)
 
 PndHypGePoint (const PndHypGePoint &point)
 
virtual ~PndHypGePoint ()
 
Int_t GetTrackID () const
 
Int_t GetEventID () const
 
Int_t GetDetectorID () const
 
Double_t GetX () const
 
Double_t GetY () const
 
Double_t GetZ () const
 
Double_t GetPx () const
 
Double_t GetPy () const
 
Double_t GetPz () const
 
Double_t GetTime () const
 
Double_t GetLength () const
 
Double_t GetEnergyLoss () const
 
Double_t GetpdgCode () const
 
void Position (TVector3 &pos)
 
void Momentum (TVector3 &mom)
 
void SetTrackID (Int_t id)
 
void SetEventID (Int_t id)
 
void SetDetectorID (Short_t copy)
 
void SetTime (Double_t time)
 
void SetLength (Double_t length)
 
void SetEnergyLoss (Double_t eLoss)
 
void SetpdgCode (Int_t pdgCode)
 
void SetPosition (const TVector3 &pos)
 
void SetMomentum (const TVector3 &mom)
 
virtual void Print (const Option_t *opt) const
 

Protected Attributes

Int_t fEventID
 
TLorentzVector fPos
 
TLorentzVector fMom
 
Double_t fELoss
 
Double_t fmass
 
Double_t fcharge
 
Double_t fTime
 
Short_t fnCopy
 
Int_t fpdgCode
 

Detailed Description

Definition at line 16 of file PndHypGePoint.h.

Constructor & Destructor Documentation

PndHypGePoint::PndHypGePoint ( )

Default constructor

Definition at line 15 of file PndHypGePoint.cxx.

References fcharge, fELoss, fEventID, fnCopy, fpdgCode, fTime, fX, fY, and fZ.

15  : FairMCPoint() {
16  fTrackID = -1;
17  //fDetectorID = -1;
18  fEventID = -1;
19  fX = fY = fZ = 0.;
20  fPx = fPy = fPz = 0.;
21  fTime = fcharge = 0.;
22  fLength = 0.;
23  fELoss = 0.;
24  fpdgCode = 0;
25  fnCopy = -1;
26 }
Double_t fX
Definition: PndCaloDraw.cxx:34
Double_t fTime
Definition: PndHypGePoint.h:88
Double_t fELoss
Definition: PndHypGePoint.h:88
Double_t fZ
Definition: PndCaloDraw.cxx:34
Double_t fcharge
Definition: PndHypGePoint.h:88
Double_t fY
Definition: PndCaloDraw.cxx:34
Short_t fnCopy
Definition: PndHypGePoint.h:89
PndHypGePoint::PndHypGePoint ( Int_t  trackID,
Int_t  evtID,
Int_t  pdgCode,
Double_t  charge,
TVector3  pos,
TVector3  mom,
Double_t  tof,
Double_t  length,
Double_t  eLoss,
Short_t  copy 
)

Constructor with arguments

Parameters
trackIDIndex of MCTrack
detIDDetector ID
posInCcoordinates at entrance to active volume [cm]
posOutCoordinates at exit of active volume [cm]
momInMomentum of track at entrance [GeV]
momOutMomentum of track at exit [GeV]
tofTime since event start [ns]
lengthTrack length since creation [cm]
eLossEnergy deposit [GeV]

Definition at line 32 of file PndHypGePoint.cxx.

References fcharge, fELoss, fEventID, fnCopy, fpdgCode, fTime, fX, fY, and fZ.

34  {
35  fTrackID = trackID;
36  //fDetectorID = detID; '
37  fcharge = charge;
38  fpdgCode = pdgCode;
39 
40  fEventID = evtID;
41  fX = pos.X();
42  fY = pos.Y();
43  fZ = pos.Z();
44  fPx = mom.Px();
45  fPy = mom.Py();
46  fPz = mom.Pz();
47  fTime = tof;
48  fLength = length;
49  fELoss = eLoss;
50 
51  fnCopy = copy;
52 }
TVector3 pos
Double_t fX
Definition: PndCaloDraw.cxx:34
Double_t fTime
Definition: PndHypGePoint.h:88
Double_t mom
Definition: plot_dirc.C:14
Double_t fELoss
Definition: PndHypGePoint.h:88
Double_t fZ
Definition: PndCaloDraw.cxx:34
Double_t fcharge
Definition: PndHypGePoint.h:88
Double_t fY
Definition: PndCaloDraw.cxx:34
Short_t fnCopy
Definition: PndHypGePoint.h:89
PndHypGePoint::PndHypGePoint ( const PndHypGePoint point)
inline

Copy constructor

Definition at line 43 of file PndHypGePoint.h.

References point.

43 { *this = point; };
TClonesArray * point
Definition: anaLmdDigi.C:29
PndHypGePoint::~PndHypGePoint ( )
virtual

Destructor

Definition at line 56 of file PndHypGePoint.cxx.

56 { }

Member Function Documentation

Int_t PndHypGePoint::GetDetectorID ( ) const
inline
Double_t PndHypGePoint::GetEnergyLoss ( ) const
inline
Int_t PndHypGePoint::GetEventID ( ) const
inline

Definition at line 52 of file PndHypGePoint.h.

Referenced by PndHypFullAna::SetEnergySpectra(), and PndHypFullIdealAna::SetEnergySpectra().

52 { return fEventID; };
Double_t PndHypGePoint::GetLength ( ) const
inline

Definition at line 61 of file PndHypGePoint.h.

61 { return fLength; };
Double_t PndHypGePoint::GetpdgCode ( ) const
inline
Double_t PndHypGePoint::GetPx ( ) const
inline
Double_t PndHypGePoint::GetPy ( ) const
inline
Double_t PndHypGePoint::GetPz ( ) const
inline
Double_t PndHypGePoint::GetTime ( ) const
inline

Definition at line 60 of file PndHypGePoint.h.

60 { return fTime; };
Double_t fTime
Definition: PndHypGePoint.h:88
Int_t PndHypGePoint::GetTrackID ( ) const
inline
Double_t PndHypGePoint::GetX ( ) const
inline
Double_t PndHypGePoint::GetY ( ) const
inline
Double_t PndHypGePoint::GetZ ( ) const
inline
void PndHypGePoint::Momentum ( TVector3 &  mom)
inline

Definition at line 65 of file PndHypGePoint.h.

Referenced by PndHypGeIdealTrackFinderTask::Exec().

65 { mom.SetXYZ(fPx, fPy, fPz); };
Double_t mom
Definition: plot_dirc.C:14
void PndHypGePoint::Position ( TVector3 &  pos)
inline

Definition at line 64 of file PndHypGePoint.h.

References fX, fY, and fZ.

64 { pos.SetXYZ(fX, fY, fZ); };
TVector3 pos
Double_t fX
Definition: PndCaloDraw.cxx:34
Double_t fZ
Definition: PndCaloDraw.cxx:34
Double_t fY
Definition: PndCaloDraw.cxx:34
void PndHypGePoint::Print ( const Option_t *  opt) const
virtual

Output to screen

Definition at line 60 of file PndHypGePoint.cxx.

References fELoss, fTime, fX, fY, and fZ.

60  {
61  cout << "-I- PndHypGePoint: HYPGE Point for track " << fTrackID
62  << endl;
63  cout << " Position (" << fX << ", " << fY << ", " << fZ
64  << ") cm" << endl;
65  cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz
66  << ") GeV" << endl;
67  cout << " Time " << fTime << " ns, Length " << fLength
68  << " cm, Energy loss " << fELoss*1.0e06 << " keV" << endl;
69 }
Double_t fX
Definition: PndCaloDraw.cxx:34
Double_t fTime
Definition: PndHypGePoint.h:88
Double_t fELoss
Definition: PndHypGePoint.h:88
Double_t fZ
Definition: PndCaloDraw.cxx:34
Double_t fY
Definition: PndCaloDraw.cxx:34
void PndHypGePoint::SetDetectorID ( Short_t  copy)
inline

Definition at line 71 of file PndHypGePoint.h.

71 { fnCopy = copy; };
Short_t fnCopy
Definition: PndHypGePoint.h:89
void PndHypGePoint::SetEnergyLoss ( Double_t  eLoss)
inline

Definition at line 74 of file PndHypGePoint.h.

74 { fELoss = eLoss; };
Double_t fELoss
Definition: PndHypGePoint.h:88
void PndHypGePoint::SetEventID ( Int_t  id)
inline

Definition at line 70 of file PndHypGePoint.h.

70 { fEventID = id; };
void PndHypGePoint::SetLength ( Double_t  length)
inline

Definition at line 73 of file PndHypGePoint.h.

73 { fLength = length; };
void PndHypGePoint::SetMomentum ( const TVector3 &  mom)
inline

Definition at line 102 of file PndHypGePoint.h.

102  {
103  fPx = mom.Px();
104  fPy = mom.Py();
105  fPz = mom.Pz();
106 }
Double_t mom
Definition: plot_dirc.C:14
void PndHypGePoint::SetpdgCode ( Int_t  pdgCode)
inline

Definition at line 75 of file PndHypGePoint.h.

75 { fpdgCode = pdgCode; };
void PndHypGePoint::SetPosition ( const TVector3 &  pos)
inline

Definition at line 96 of file PndHypGePoint.h.

References fX, fY, and fZ.

96  {
97  fX = pos.X();
98  fY = pos.Y();
99  fZ = pos.Z();
100 }
TVector3 pos
Double_t fX
Definition: PndCaloDraw.cxx:34
Double_t fZ
Definition: PndCaloDraw.cxx:34
Double_t fY
Definition: PndCaloDraw.cxx:34
void PndHypGePoint::SetTime ( Double_t  time)
inline

Definition at line 72 of file PndHypGePoint.h.

72 { fTime = time; };
Double_t fTime
Definition: PndHypGePoint.h:88
void PndHypGePoint::SetTrackID ( Int_t  id)
inline

Modifiers

Definition at line 69 of file PndHypGePoint.h.

Referenced by PndHypGe::CopyClones().

69 { fTrackID = id; };

Member Data Documentation

Double_t PndHypGePoint::fcharge
protected

Definition at line 88 of file PndHypGePoint.h.

Referenced by PndHypGePoint().

Double_t PndHypGePoint::fELoss
protected

Definition at line 88 of file PndHypGePoint.h.

Referenced by PndHypGePoint(), and Print().

Int_t PndHypGePoint::fEventID
protected

Definition at line 85 of file PndHypGePoint.h.

Referenced by PndHypGePoint().

Double_t PndHypGePoint::fmass
protected

Definition at line 88 of file PndHypGePoint.h.

TLorentzVector PndHypGePoint::fMom
protected

Definition at line 87 of file PndHypGePoint.h.

Short_t PndHypGePoint::fnCopy
protected

Definition at line 89 of file PndHypGePoint.h.

Referenced by PndHypGePoint().

Int_t PndHypGePoint::fpdgCode
protected

Definition at line 90 of file PndHypGePoint.h.

Referenced by PndHypGePoint().

TLorentzVector PndHypGePoint::fPos
protected

Definition at line 86 of file PndHypGePoint.h.

Double_t PndHypGePoint::fTime
protected

Definition at line 88 of file PndHypGePoint.h.

Referenced by PndHypGePoint(), and Print().


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