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

#include <PndHypPoint.h>

Inheritance diagram for PndHypPoint:

Public Member Functions

 PndHypPoint ()
 
 PndHypPoint (Int_t trackID, Int_t evtID, Int_t detID, TString detName, TVector3 posin, TVector3 momin, TVector3 posout, TVector3 momout, Double_t tof, Double_t length, Double_t eLoss, Double_t charge, Double_t mass, Int_t pdgCode, Double_t distance, Double_t PLin, Double_t PLout)
 
 PndHypPoint (const PndHypPoint &point)
 
virtual ~PndHypPoint ()
 
Int_t GetEventID () const
 
Int_t GetVolumeID () const
 
Double_t GetXin () const
 
Double_t GetYin () const
 
Double_t GetZin () const
 
Double_t GetPxin () const
 
Double_t GetPyin () const
 
Double_t GetPzin () const
 
Double_t GetPLin () const
 
Double_t GetPLout () const
 
Double_t GetXout () const
 
Double_t GetYout () const
 
Double_t GetZout () const
 
Double_t GetPxout () const
 
Double_t GetPyout () const
 
Double_t GetPzout () const
 
Double_t Getdist () const
 
TString GetDetName () const
 
Double_t GetMass () const
 
void PositionIn (TVector3 &pos)
 
void MomentumIn (TVector3 &mom)
 
void PositionOut (TVector3 &pos)
 
void MomentumOut (TVector3 &mom)
 
void SetEventID (Int_t ev)
 
void SetPositionIn (const TVector3 &pos)
 
void SetMomentumIn (const TVector3 &mom)
 
void SetPositionOut (const TVector3 &pos)
 
void SetMomentumOut (const TVector3 &mom)
 
virtual void Print (const Option_t *opt) const
 

Protected Attributes

Int_t fEventID
 
Double_t fPLin
 
Double_t fPLout
 
Double_t fmass
 
Double_t fcharge
 
Double_t fXin
 
Double_t fYin
 
Double_t fZin
 
Double_t fPxin
 
Double_t fPyin
 
Double_t fPzin
 
Double_t fXout
 
Double_t fYout
 
Double_t fZout
 
Double_t fPxout
 
Double_t fPyout
 
Double_t fPzout
 
Double_t fdist
 
TString fDetName
 
Int_t fVolumeID
 
Int_t fpdgCode
 

Detailed Description

Definition at line 20 of file PndHypPoint.h.

Constructor & Destructor Documentation

PndHypPoint::PndHypPoint ( )

Default constructor

Definition at line 16 of file PndHypPoint.cxx.

16  : FairMCPoint(),
17  fEventID(-1),
18  fPLin(0), fPLout(0),
19  fmass(0), fcharge(0),
20  fXin(0.), fYin(0.), fZin(0.),
21  fPxin(0.),fPyin(0.),fPzin(0.),
22  fXout(0.), fYout(0.), fZout(0.),
23  fPxout(0.),fPyout(0.),fPzout(0.), fdist(0.),
24  fDetName(""),
25  fVolumeID(0), fpdgCode(0)
26 {
27  fTime = 0.;
28 }
Double_t fXout
Definition: PndHypPoint.h:169
TString fDetName
Definition: PndHypPoint.h:173
Double_t fZin
Definition: PndHypPoint.h:167
Double_t fPLout
Definition: PndHypPoint.h:163
Double_t fZout
Definition: PndHypPoint.h:169
Double_t fPxout
Definition: PndHypPoint.h:170
Double_t fYout
Definition: PndHypPoint.h:169
Double_t fPLin
Definition: PndHypPoint.h:163
Double_t fPzin
Definition: PndHypPoint.h:168
Int_t fpdgCode
Definition: PndHypPoint.h:175
Double_t fdist
Definition: PndHypPoint.h:170
Double_t fPyout
Definition: PndHypPoint.h:170
Double_t fXin
Definition: PndHypPoint.h:167
Double_t fPzout
Definition: PndHypPoint.h:170
Double_t fcharge
Definition: PndHypPoint.h:165
Double_t fYin
Definition: PndHypPoint.h:167
Double_t fmass
Definition: PndHypPoint.h:165
Double_t fPxin
Definition: PndHypPoint.h:168
Int_t fVolumeID
Definition: PndHypPoint.h:175
Int_t fEventID
Definition: PndHypPoint.h:161
Double_t fPyin
Definition: PndHypPoint.h:168
PndHypPoint::PndHypPoint ( Int_t  trackID,
Int_t  evtID,
Int_t  detID,
TString  detName,
TVector3  posin,
TVector3  momin,
TVector3  posout,
TVector3  momout,
Double_t  tof,
Double_t  length,
Double_t  eLoss,
Double_t  charge,
Double_t  mass,
Int_t  pdgCode,
Double_t  distance,
Double_t  PLin,
Double_t  PLout 
)

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]
posInLocalLocal coordinates at entrance to active volume [cm]
posOutLocalLocal coordinates at exit of active volume [cm]
tofTime since event start [ns]
lengthTrack length since creation [cm]
eLossEnergy deposit [GeV]

Definition at line 34 of file PndHypPoint.cxx.

45 : FairMCPoint(trackID, detID, posin, momin, tof, length, eLoss),
46  fEventID(evtID),
47  fPLin(PLin),
48  fPLout(PLout),
49  fmass(mass),
50  fcharge(charge),
51  fXin(posin.X()),
52  fYin(posin.Y()),
53  fZin(posin.Z()),
54  fPxin(momin.X()),
55  fPyin(momin.Py()),
56  fPzin(momin.Pz()),
57  fXout(posout.X()),
58  fYout(posout.Y()),
59  fZout(posout.Z()),
60  fPxout(momout.Px()),
61  fPyout(momout.Py()),
62  fPzout(momout.Pz()),
63  fdist(dist),
64  fDetName(detName),
65  fVolumeID(detID),
66  fpdgCode(pdgCode)
67 {
68 
69 }
Double_t fXout
Definition: PndHypPoint.h:169
TString fDetName
Definition: PndHypPoint.h:173
Double_t fZin
Definition: PndHypPoint.h:167
Double_t fPLout
Definition: PndHypPoint.h:163
Double_t fZout
Definition: PndHypPoint.h:169
Double_t fPxout
Definition: PndHypPoint.h:170
Double_t fYout
Definition: PndHypPoint.h:169
Double_t fPLin
Definition: PndHypPoint.h:163
Double_t fPzin
Definition: PndHypPoint.h:168
Int_t fpdgCode
Definition: PndHypPoint.h:175
Double_t fdist
Definition: PndHypPoint.h:170
Double_t fPyout
Definition: PndHypPoint.h:170
Double_t fXin
Definition: PndHypPoint.h:167
Double_t fPzout
Definition: PndHypPoint.h:170
Double_t fcharge
Definition: PndHypPoint.h:165
Double_t fYin
Definition: PndHypPoint.h:167
Double_t fmass
Definition: PndHypPoint.h:165
Double_t fPxin
Definition: PndHypPoint.h:168
Int_t fVolumeID
Definition: PndHypPoint.h:175
Int_t fEventID
Definition: PndHypPoint.h:161
Double_t fPyin
Definition: PndHypPoint.h:168
PndHypPoint::PndHypPoint ( const PndHypPoint point)
inline

Copy constructor

Definition at line 59 of file PndHypPoint.h.

References point.

59  : FairMCPoint(point),
60  fEventID(point.fEventID),
61  fPLin(point.fPLin),
62  fPLout(point.fPLout),
63  fmass(point.fmass),
64  fcharge(point.fcharge),
65  fXin(point.fXin),
66  fYin(point.fYin),
67  fZin(point.fZin),
68  fPxin(point.fPxin),
69  fPyin(point.fPyin),
70  fPzin(point.fPzin),
71  fXout(point.fXout),
72  fYout(point.fYout),
73  fZout(point.fZout),
74  fPxout(point.fPxout),
75  fPyout(point.fPyout),
76  fPzout(point.fPzout),
77  fdist(point.fdist),
78  fDetName(point.fDetName),
79  fVolumeID(point.fVolumeID),
80  fpdgCode(point.fpdgCode)
81  { *this = point; };
Double_t fXout
Definition: PndHypPoint.h:169
TString fDetName
Definition: PndHypPoint.h:173
Double_t fZin
Definition: PndHypPoint.h:167
Double_t fPLout
Definition: PndHypPoint.h:163
Double_t fZout
Definition: PndHypPoint.h:169
Double_t fPxout
Definition: PndHypPoint.h:170
Double_t fYout
Definition: PndHypPoint.h:169
Double_t fPLin
Definition: PndHypPoint.h:163
Double_t fPzin
Definition: PndHypPoint.h:168
Int_t fpdgCode
Definition: PndHypPoint.h:175
Double_t fdist
Definition: PndHypPoint.h:170
Double_t fPyout
Definition: PndHypPoint.h:170
Double_t fXin
Definition: PndHypPoint.h:167
Double_t fPzout
Definition: PndHypPoint.h:170
Double_t fcharge
Definition: PndHypPoint.h:165
Double_t fYin
Definition: PndHypPoint.h:167
Double_t fmass
Definition: PndHypPoint.h:165
Double_t fPxin
Definition: PndHypPoint.h:168
Int_t fVolumeID
Definition: PndHypPoint.h:175
Int_t fEventID
Definition: PndHypPoint.h:161
Double_t fPyin
Definition: PndHypPoint.h:168
PndSdsMCPoint * point
Definition: anaLmdCluster.C:72
PndHypPoint::~PndHypPoint ( )
virtual

Destructor

Definition at line 73 of file PndHypPoint.cxx.

73 { }

Member Function Documentation

TString PndHypPoint::GetDetName ( ) const
inline
Double_t PndHypPoint::Getdist ( ) const
inline

Definition at line 116 of file PndHypPoint.h.

116 { return fdist; };
Double_t fdist
Definition: PndHypPoint.h:170
Int_t PndHypPoint::GetEventID ( ) const
inline
Double_t PndHypPoint::GetMass ( ) const
inline

Definition at line 120 of file PndHypPoint.h.

120 { return fmass; };
Double_t fmass
Definition: PndHypPoint.h:165
Double_t PndHypPoint::GetPLin ( ) const
inline

Definition at line 107 of file PndHypPoint.h.

107 { return fPLin; };
Double_t fPLin
Definition: PndHypPoint.h:163
Double_t PndHypPoint::GetPLout ( ) const
inline

Definition at line 108 of file PndHypPoint.h.

108 { return fPLout; };
Double_t fPLout
Definition: PndHypPoint.h:163
Double_t PndHypPoint::GetPxin ( ) const
inline

Definition at line 95 of file PndHypPoint.h.

Referenced by ana_MCpid().

95 { return fPxin; };
Double_t fPxin
Definition: PndHypPoint.h:168
Double_t PndHypPoint::GetPxout ( ) const
inline

Definition at line 113 of file PndHypPoint.h.

113 { return fPxout; };
Double_t fPxout
Definition: PndHypPoint.h:170
Double_t PndHypPoint::GetPyin ( ) const
inline

Definition at line 96 of file PndHypPoint.h.

Referenced by ana_MCpid().

96 { return fPyin; };
Double_t fPyin
Definition: PndHypPoint.h:168
Double_t PndHypPoint::GetPyout ( ) const
inline

Definition at line 114 of file PndHypPoint.h.

114 { return fPyout; };
Double_t fPyout
Definition: PndHypPoint.h:170
Double_t PndHypPoint::GetPzin ( ) const
inline

Definition at line 97 of file PndHypPoint.h.

Referenced by ana_MCpid().

97 { return fPzin; };
Double_t fPzin
Definition: PndHypPoint.h:168
Double_t PndHypPoint::GetPzout ( ) const
inline

Definition at line 115 of file PndHypPoint.h.

115 { return fPzout; };
Double_t fPzout
Definition: PndHypPoint.h:170
Int_t PndHypPoint::GetVolumeID ( ) const
inline
Double_t PndHypPoint::GetXin ( ) const
inline

Definition at line 92 of file PndHypPoint.h.

Referenced by PndHypGeGammaAna::Exec(), PndHypHitProducerIdeal::Exec(), and PndHypIdealRecoTask::Exec().

92 { return fXin; };
Double_t fXin
Definition: PndHypPoint.h:167
Double_t PndHypPoint::GetXout ( ) const
inline

Definition at line 110 of file PndHypPoint.h.

Referenced by ana_MCpid().

110 { return fXout; };
Double_t fXout
Definition: PndHypPoint.h:169
Double_t PndHypPoint::GetYin ( ) const
inline

Definition at line 93 of file PndHypPoint.h.

Referenced by PndHypHitProducerIdeal::Exec(), and PndHypIdealRecoTask::Exec().

93 { return fYin; };
Double_t fYin
Definition: PndHypPoint.h:167
Double_t PndHypPoint::GetYout ( ) const
inline

Definition at line 111 of file PndHypPoint.h.

Referenced by ana_MCpid().

111 { return fYout; };
Double_t fYout
Definition: PndHypPoint.h:169
Double_t PndHypPoint::GetZin ( ) const
inline

Definition at line 94 of file PndHypPoint.h.

Referenced by PndHypGeGammaAna::Exec(), PndHypHitProducerIdeal::Exec(), and PndHypIdealRecoTask::Exec().

94 { return fZin; };
Double_t fZin
Definition: PndHypPoint.h:167
Double_t PndHypPoint::GetZout ( ) const
inline

Definition at line 112 of file PndHypPoint.h.

Referenced by ana_MCpid().

112 { return fZout; };
Double_t fZout
Definition: PndHypPoint.h:169
void PndHypPoint::MomentumIn ( TVector3 &  mom)
inline

Definition at line 126 of file PndHypPoint.h.

Referenced by PndSciTAnaIdeal::SetSciTEventCorr().

126 { mom.SetXYZ(fPxin, fPyin, fPzin); };
Double_t mom
Definition: plot_dirc.C:14
Double_t fPzin
Definition: PndHypPoint.h:168
Double_t fPxin
Definition: PndHypPoint.h:168
Double_t fPyin
Definition: PndHypPoint.h:168
void PndHypPoint::MomentumOut ( TVector3 &  mom)
inline

Definition at line 129 of file PndHypPoint.h.

129 { mom.SetXYZ(fPxout, fPyout, fPzout); };
Double_t mom
Definition: plot_dirc.C:14
Double_t fPxout
Definition: PndHypPoint.h:170
Double_t fPyout
Definition: PndHypPoint.h:170
Double_t fPzout
Definition: PndHypPoint.h:170
void PndHypPoint::PositionIn ( TVector3 &  pos)
inline

Definition at line 125 of file PndHypPoint.h.

Referenced by PndHypMicroIdealWriter::Exec(), PndHypPidIdealTask::Exec(), PndSciTAnaIdeal::Exec(), and PndHypStripHitProducer::Exec().

125 { pos.SetXYZ(fXin, fYin, fZin); };
TVector3 pos
Double_t fZin
Definition: PndHypPoint.h:167
Double_t fXin
Definition: PndHypPoint.h:167
Double_t fYin
Definition: PndHypPoint.h:167
void PndHypPoint::PositionOut ( TVector3 &  pos)
inline

Definition at line 128 of file PndHypPoint.h.

Referenced by PndHypPidIdealTask::Exec(), PndHypStripHitProducer::Exec(), and PndSciTAnaIdeal::SetSciTEventCorr().

128 { pos.SetXYZ(fXout, fYout, fZout); };
TVector3 pos
Double_t fXout
Definition: PndHypPoint.h:169
Double_t fZout
Definition: PndHypPoint.h:169
Double_t fYout
Definition: PndHypPoint.h:169
void PndHypPoint::Print ( const Option_t *  opt) const
virtual

Output to screen

Definition at line 77 of file PndHypPoint.cxx.

References fPxin, fPyin, fPzin, fVolumeID, fXin, fYin, and fZin.

Referenced by PndHypStripHitProducer::Exec().

77  {
78  cout << "-I- PndHypPoint: HYP Point for track " << fTrackID
79  << " in detector " << fVolumeID << endl;
80  cout << " Position (" << fXin << ", " << fYin << ", " << fZin
81  << ") cm" << endl;
82  cout << " Momentum (" << fPxin << ", " << fPyin << ", " << fPzin
83  << ") GeV" << endl;
84  cout << " Time " << fTime << " ns, Length " << fLength
85  << " cm, Energy loss " << fELoss*1.0e06 << " keV" << endl;
86  cout << " opt = " << opt <<endl;
87 }
Double_t fZin
Definition: PndHypPoint.h:167
Double_t fPzin
Definition: PndHypPoint.h:168
Double_t fXin
Definition: PndHypPoint.h:167
Double_t fYin
Definition: PndHypPoint.h:167
Double_t fPxin
Definition: PndHypPoint.h:168
Int_t fVolumeID
Definition: PndHypPoint.h:175
Double_t fPyin
Definition: PndHypPoint.h:168
void PndHypPoint::SetEventID ( Int_t  ev)
inline

Modifiers

Definition at line 141 of file PndHypPoint.h.

References ev.

141 { fEventID = ev; };
int ev
Int_t fEventID
Definition: PndHypPoint.h:161
void PndHypPoint::SetMomentumIn ( const TVector3 &  mom)
inline

Definition at line 187 of file PndHypPoint.h.

187  {
188  fPxin = mom.X();
189  fPyin = mom.Py();
190  fPzin = mom.Pz();
191 }
Double_t mom
Definition: plot_dirc.C:14
Double_t fPzin
Definition: PndHypPoint.h:168
Double_t fPxin
Definition: PndHypPoint.h:168
Double_t fPyin
Definition: PndHypPoint.h:168
void PndHypPoint::SetMomentumOut ( const TVector3 &  mom)
inline

Definition at line 199 of file PndHypPoint.h.

199  {
200  fPxout = mom.Px();
201  fPyout = mom.Py();
202  fPzout = mom.Pz();
203 }
Double_t mom
Definition: plot_dirc.C:14
Double_t fPxout
Definition: PndHypPoint.h:170
Double_t fPyout
Definition: PndHypPoint.h:170
Double_t fPzout
Definition: PndHypPoint.h:170
void PndHypPoint::SetPositionIn ( const TVector3 &  pos)
inline

Definition at line 181 of file PndHypPoint.h.

181  {
182  fXin = pos.X();
183  fYin = pos.Y();
184  fZin = pos.Z();
185 }
TVector3 pos
Double_t fZin
Definition: PndHypPoint.h:167
Double_t fXin
Definition: PndHypPoint.h:167
Double_t fYin
Definition: PndHypPoint.h:167
void PndHypPoint::SetPositionOut ( const TVector3 &  pos)
inline

Definition at line 193 of file PndHypPoint.h.

193  {
194  fXout = pos.X();
195  fYout = pos.Y();
196  fZout = pos.Z();
197 }
TVector3 pos
Double_t fXout
Definition: PndHypPoint.h:169
Double_t fZout
Definition: PndHypPoint.h:169
Double_t fYout
Definition: PndHypPoint.h:169

Member Data Documentation

Double_t PndHypPoint::fcharge
protected

Definition at line 165 of file PndHypPoint.h.

TString PndHypPoint::fDetName
protected

Definition at line 173 of file PndHypPoint.h.

Double_t PndHypPoint::fdist
protected

Definition at line 170 of file PndHypPoint.h.

Int_t PndHypPoint::fEventID
protected

Definition at line 161 of file PndHypPoint.h.

Double_t PndHypPoint::fmass
protected

Definition at line 165 of file PndHypPoint.h.

Int_t PndHypPoint::fpdgCode
protected

Definition at line 175 of file PndHypPoint.h.

Double_t PndHypPoint::fPLin
protected

Definition at line 163 of file PndHypPoint.h.

Double_t PndHypPoint::fPLout
protected

Definition at line 163 of file PndHypPoint.h.

Double_t PndHypPoint::fPxin
protected

Definition at line 168 of file PndHypPoint.h.

Referenced by Print().

Double_t PndHypPoint::fPxout
protected

Definition at line 170 of file PndHypPoint.h.

Double_t PndHypPoint::fPyin
protected

Definition at line 168 of file PndHypPoint.h.

Referenced by Print().

Double_t PndHypPoint::fPyout
protected

Definition at line 170 of file PndHypPoint.h.

Double_t PndHypPoint::fPzin
protected

Definition at line 168 of file PndHypPoint.h.

Referenced by Print().

Double_t PndHypPoint::fPzout
protected

Definition at line 170 of file PndHypPoint.h.

Int_t PndHypPoint::fVolumeID
protected

Definition at line 175 of file PndHypPoint.h.

Referenced by Print().

Double_t PndHypPoint::fXin
protected

Definition at line 167 of file PndHypPoint.h.

Referenced by Print().

Double_t PndHypPoint::fXout
protected

Definition at line 169 of file PndHypPoint.h.

Double_t PndHypPoint::fYin
protected

Definition at line 167 of file PndHypPoint.h.

Referenced by Print().

Double_t PndHypPoint::fYout
protected

Definition at line 169 of file PndHypPoint.h.

Double_t PndHypPoint::fZin
protected

Definition at line 167 of file PndHypPoint.h.

Referenced by Print().

Double_t PndHypPoint::fZout
protected

Definition at line 169 of file PndHypPoint.h.


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