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

#include <PndFtsPoint.h>

Inheritance diagram for PndFtsPoint:

Public Member Functions

 PndFtsPoint ()
 
 PndFtsPoint (Int_t trackID, Int_t detID, Int_t tubeID, Int_t chamberID, Int_t layerID, TVector3 pos, TVector3 posInLocal, TVector3 posOutLocal, TVector3 momIn, TVector3 momOut, Double_t tof, Double_t length, Double_t eLoss, Double_t mass)
 
 PndFtsPoint (const PndFtsPoint &point)
 
virtual ~PndFtsPoint ()
 
Double_t GetXtot () const
 
Double_t GetYtot () const
 
Double_t GetZtot () const
 
Double_t GetPxOut () const
 
Double_t GetPyOut () const
 
Double_t GetPzOut () const
 
Double_t GetXOutLocal () const
 
Double_t GetYOutLocal () const
 
Double_t GetZOutLocal () const
 
Double_t GetXInLocal () const
 
Double_t GetYInLocal () const
 
Double_t GetZInLocal () const
 
Double_t GetMass () const
 
void PositionOutLocal (TVector3 &pos)
 
void PositionInLocal (TVector3 &pos)
 
void MomentumOut (TVector3 &mom)
 
void SetPositionOutLocal (TVector3 pos)
 
void SetPositionInLocal (TVector3 pos)
 
void SetMomentumOut (TVector3 mom)
 
void SetTubeID (Int_t tubeid)
 
Int_t GetTubeID ()
 
void SetChamberID (Int_t chamberid)
 
void SetLayerID (Int_t layerid)
 
Int_t GetChamberID ()
 
Int_t GetLayerID ()
 
virtual void Print (const Option_t *opt) const
 

Protected Attributes

Double_t fX_out_local
 
Double_t fY_out_local
 
Double_t fZ_out_local
 
Double_t fX_in_local
 
Double_t fY_in_local
 
Double_t fZ_in_local
 
Double_t fPx_out
 
Double_t fPy_out
 
Double_t fPz_out
 
Double_t fPx_in
 
Double_t fPy_in
 
Double_t fPz_in
 
Double_t fMass
 
Int_t fTubeID
 
Int_t fChamberID
 
Int_t fLayerID
 

Detailed Description

Definition at line 10 of file PndFtsPoint.h.

Constructor & Destructor Documentation

PndFtsPoint::PndFtsPoint ( )

Default constructor

Definition at line 11 of file PndFtsPoint.cxx.

11  : FairMCPoint(),
14  fPx_out(0), fPy_out(0), fPz_out(0),
15  fPx_in(0), fPy_in(0), fPz_in(0),
16  fMass(0), fTubeID(0), fChamberID(0), fLayerID(0)
17 {
18 }
Double_t fZ_out_local
Definition: PndFtsPoint.h:99
Double_t fPz_in
Definition: PndFtsPoint.h:104
Int_t fTubeID
Definition: PndFtsPoint.h:110
Double_t fY_in_local
Definition: PndFtsPoint.h:101
Int_t fChamberID
Definition: PndFtsPoint.h:111
Double_t fZ_in_local
Definition: PndFtsPoint.h:101
Double_t fPz_out
Definition: PndFtsPoint.h:103
Double_t fPx_in
Definition: PndFtsPoint.h:104
Double_t fX_in_local
Definition: PndFtsPoint.h:101
Double_t fMass
Definition: PndFtsPoint.h:109
Int_t fLayerID
Definition: PndFtsPoint.h:112
Double_t fPx_out
Definition: PndFtsPoint.h:103
Double_t fX_out_local
Definition: PndFtsPoint.h:99
Double_t fPy_in
Definition: PndFtsPoint.h:104
Double_t fY_out_local
Definition: PndFtsPoint.h:99
Double_t fPy_out
Definition: PndFtsPoint.h:103
PndFtsPoint::PndFtsPoint ( Int_t  trackID,
Int_t  detID,
Int_t  tubeID,
Int_t  chamberID,
Int_t  layerID,
TVector3  pos,
TVector3  posInLocal,
TVector3  posOutLocal,
TVector3  momIn,
TVector3  momOut,
Double_t  tof,
Double_t  length,
Double_t  eLoss,
Double_t  mass 
)

Constructor with arguments

Parameters
trackIDIndex of MCTrack
detIDDetector ID tubeID Number of tube ChamberID number of chamber LayerID
posCoordinates at wire center of active volume [cm]
posInLocalLocal coordinates at entrance to active volume [cm]
posOutLocalLocal coordinates 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 24 of file PndFtsPoint.cxx.

28  : FairMCPoint(trackID, detID, pos, momIn, tof, length, eLoss),
29  fX_out_local(posOutLocal.X()), fY_out_local(posOutLocal.Y()), fZ_out_local(posOutLocal.Z()),
30  fX_in_local(posInLocal.X()), fY_in_local(posInLocal.Y()), fZ_in_local(posInLocal.Z()),
31  fPx_out(momOut.Px()), fPy_out(momOut.Py()), fPz_out(momOut.Pz()),
32  fPx_in(momIn.Px()), fPy_in(momIn.Py()), fPz_in(momIn.Pz()),
33  fMass(mass), fTubeID(tubeID), fChamberID(chamberID), fLayerID(layerID)
34 {
35  // reset MC momentum
36  fPx = (momIn.Px() + momOut.Px()) / 2.;
37  fPy = (momIn.Py() + momOut.Py()) / 2.;
38  fPz = (momIn.Pz() + momOut.Pz()) / 2.;
39  SetLink(FairLink("MCTrack", trackID));
40 }
TVector3 pos
Double_t fZ_out_local
Definition: PndFtsPoint.h:99
Double_t fPz_in
Definition: PndFtsPoint.h:104
Int_t fTubeID
Definition: PndFtsPoint.h:110
Double_t fY_in_local
Definition: PndFtsPoint.h:101
Int_t fChamberID
Definition: PndFtsPoint.h:111
Double_t fZ_in_local
Definition: PndFtsPoint.h:101
Double_t fPz_out
Definition: PndFtsPoint.h:103
Double_t fPx_in
Definition: PndFtsPoint.h:104
Double_t fX_in_local
Definition: PndFtsPoint.h:101
Double_t fMass
Definition: PndFtsPoint.h:109
Int_t fLayerID
Definition: PndFtsPoint.h:112
Double_t fPx_out
Definition: PndFtsPoint.h:103
Double_t fX_out_local
Definition: PndFtsPoint.h:99
Double_t fPy_in
Definition: PndFtsPoint.h:104
Double_t fY_out_local
Definition: PndFtsPoint.h:99
Double_t fPy_out
Definition: PndFtsPoint.h:103
PndFtsPoint::PndFtsPoint ( const PndFtsPoint point)

Copy constructor

Definition at line 50 of file PndFtsPoint.cxx.

50  :
51  FairMCPoint(point.fTrackID, point.fDetectorID, TVector3(point.fX, point.fY, point.fZ), TVector3(point.fPx, point.fPy, point.fPz), point.fTime, point.fLength, point.fELoss, point.fEventId),
54  fPx_out(point.fPx_out), fPy_out(point. fPy_out), fPz_out(point.fPz_out),
55  fPx_in(point.fPx_in), fPy_in(point.fPy_in), fPz_in(point.fPz_in),
56  fMass(point.fMass), fTubeID(point.fTubeID), fChamberID(point.fChamberID), fLayerID(point.fLayerID)
57 {
58 
59 }
Double_t fZ_out_local
Definition: PndFtsPoint.h:99
Double_t fPz_in
Definition: PndFtsPoint.h:104
Int_t fTubeID
Definition: PndFtsPoint.h:110
Double_t fY_in_local
Definition: PndFtsPoint.h:101
Int_t fChamberID
Definition: PndFtsPoint.h:111
Double_t fZ_in_local
Definition: PndFtsPoint.h:101
Double_t fPz_out
Definition: PndFtsPoint.h:103
Double_t fPx_in
Definition: PndFtsPoint.h:104
Double_t fX_in_local
Definition: PndFtsPoint.h:101
Double_t fMass
Definition: PndFtsPoint.h:109
Int_t fLayerID
Definition: PndFtsPoint.h:112
Double_t fPx_out
Definition: PndFtsPoint.h:103
Double_t fX_out_local
Definition: PndFtsPoint.h:99
Double_t fPy_in
Definition: PndFtsPoint.h:104
Double_t fY_out_local
Definition: PndFtsPoint.h:99
Double_t fPy_out
Definition: PndFtsPoint.h:103
PndFtsPoint::~PndFtsPoint ( )
virtual

Destructor

Definition at line 46 of file PndFtsPoint.cxx.

46 { }

Member Function Documentation

Int_t PndFtsPoint::GetChamberID ( )
inline
Int_t PndFtsPoint::GetLayerID ( )
inline
Double_t PndFtsPoint::GetMass ( ) const
inline
Double_t PndFtsPoint::GetPxOut ( ) const
inline
Double_t PndFtsPoint::GetPyOut ( ) const
inline
Double_t PndFtsPoint::GetPzOut ( ) const
inline
Int_t PndFtsPoint::GetTubeID ( )
inline
Double_t PndFtsPoint::GetXInLocal ( ) const
inline
Double_t PndFtsPoint::GetXOutLocal ( ) const
inline
Double_t PndFtsPoint::GetXtot ( ) const
inline

Definition at line 48 of file PndFtsPoint.h.

48 { return GetX(); }
Double_t PndFtsPoint::GetYInLocal ( ) const
inline
Double_t PndFtsPoint::GetYOutLocal ( ) const
inline
Double_t PndFtsPoint::GetYtot ( ) const
inline

Definition at line 49 of file PndFtsPoint.h.

49 { return GetY(); }
Double_t PndFtsPoint::GetZInLocal ( ) const
inline
Double_t PndFtsPoint::GetZOutLocal ( ) const
inline
Double_t PndFtsPoint::GetZtot ( ) const
inline

Definition at line 50 of file PndFtsPoint.h.

50 { return GetZ(); }
void PndFtsPoint::MomentumOut ( TVector3 &  mom)
inline

Definition at line 75 of file PndFtsPoint.h.

References fPx_out, fPy_out, and fPz_out.

75 { mom.SetXYZ(fPx_out,fPy_out,fPz_out); }
Double_t mom
Definition: plot_dirc.C:14
Double_t fPz_out
Definition: PndFtsPoint.h:103
Double_t fPx_out
Definition: PndFtsPoint.h:103
Double_t fPy_out
Definition: PndFtsPoint.h:103
void PndFtsPoint::PositionInLocal ( TVector3 &  pos)
inline

Definition at line 74 of file PndFtsPoint.h.

References fX_in_local, fY_in_local, and fZ_in_local.

TVector3 pos
Double_t fY_in_local
Definition: PndFtsPoint.h:101
Double_t fZ_in_local
Definition: PndFtsPoint.h:101
Double_t fX_in_local
Definition: PndFtsPoint.h:101
void PndFtsPoint::PositionOutLocal ( TVector3 &  pos)
inline

Definition at line 73 of file PndFtsPoint.h.

References fX_out_local, fY_out_local, and fZ_out_local.

TVector3 pos
Double_t fZ_out_local
Definition: PndFtsPoint.h:99
Double_t fX_out_local
Definition: PndFtsPoint.h:99
Double_t fY_out_local
Definition: PndFtsPoint.h:99
void PndFtsPoint::Print ( const Option_t *  opt) const
virtual

Output to screen

Definition at line 63 of file PndFtsPoint.cxx.

References fX, fY, and fZ.

63  {
64  cout << "-I- PndFtsPoint: FTS Point for track " << fTrackID
65  << " in detector " << fDetectorID << endl;
66  cout << " Position (" << fX << ", " << fY << ", " << fZ
67  << ") cm" << endl;
68  cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz
69  << ") GeV" << endl;
70  cout << " Time " << fTime << " ns, Length " << fLength
71  << " cm, Energy loss " << fELoss*1.0e06 << " keV" << " opt="<<opt<<endl;
72 }
Double_t fX
Definition: PndCaloDraw.cxx:34
Double_t fZ
Definition: PndCaloDraw.cxx:34
Double_t fY
Definition: PndCaloDraw.cxx:34
void PndFtsPoint::SetChamberID ( Int_t  chamberid)
inline

Definition at line 87 of file PndFtsPoint.h.

References fChamberID.

Referenced by PndFts2::AddHit(), and PndFts::AddHit().

87 { fChamberID = chamberid; }
Int_t fChamberID
Definition: PndFtsPoint.h:111
void PndFtsPoint::SetLayerID ( Int_t  layerid)
inline

Definition at line 88 of file PndFtsPoint.h.

References fLayerID.

Referenced by PndFts2::AddHit(), and PndFts::AddHit().

88 { fLayerID = layerid; }
Int_t fLayerID
Definition: PndFtsPoint.h:112
void PndFtsPoint::SetMomentumOut ( TVector3  mom)
inline

Definition at line 135 of file PndFtsPoint.h.

References fPx_out, fPy_out, and fPz_out.

135  {
136  fPx_out = mom.Px();
137  fPy_out = mom.Py();
138  fPz_out = mom.Pz();
139 }
Double_t mom
Definition: plot_dirc.C:14
Double_t fPz_out
Definition: PndFtsPoint.h:103
Double_t fPx_out
Definition: PndFtsPoint.h:103
Double_t fPy_out
Definition: PndFtsPoint.h:103
void PndFtsPoint::SetPositionInLocal ( TVector3  pos)
inline

Definition at line 128 of file PndFtsPoint.h.

References fX_in_local, fY_in_local, and fZ_in_local.

128  {
129  fX_in_local = pos.X();
130  fY_in_local = pos.Y();
131  fZ_in_local = pos.Z();
132 }
TVector3 pos
Double_t fY_in_local
Definition: PndFtsPoint.h:101
Double_t fZ_in_local
Definition: PndFtsPoint.h:101
Double_t fX_in_local
Definition: PndFtsPoint.h:101
void PndFtsPoint::SetPositionOutLocal ( TVector3  pos)
inline

Modifiers

Definition at line 122 of file PndFtsPoint.h.

References fX_out_local, fY_out_local, and fZ_out_local.

122  {
123  fX_out_local = pos.X();
124  fY_out_local = pos.Y();
125  fZ_out_local = pos.Z();
126 }
TVector3 pos
Double_t fZ_out_local
Definition: PndFtsPoint.h:99
Double_t fX_out_local
Definition: PndFtsPoint.h:99
Double_t fY_out_local
Definition: PndFtsPoint.h:99
void PndFtsPoint::SetTubeID ( Int_t  tubeid)
inline

Definition at line 85 of file PndFtsPoint.h.

References fTubeID.

Referenced by PndFts2::AddHit(), and PndFts::AddHit().

85 { fTubeID = tubeid; }
Int_t fTubeID
Definition: PndFtsPoint.h:110

Member Data Documentation

Int_t PndFtsPoint::fChamberID
protected

Definition at line 111 of file PndFtsPoint.h.

Referenced by GetChamberID(), and SetChamberID().

Int_t PndFtsPoint::fLayerID
protected

Definition at line 112 of file PndFtsPoint.h.

Referenced by GetLayerID(), and SetLayerID().

Double_t PndFtsPoint::fMass
protected

Definition at line 109 of file PndFtsPoint.h.

Referenced by GetMass().

Double_t PndFtsPoint::fPx_in
protected

Definition at line 104 of file PndFtsPoint.h.

Double_t PndFtsPoint::fPx_out
protected

Definition at line 103 of file PndFtsPoint.h.

Referenced by GetPxOut(), MomentumOut(), and SetMomentumOut().

Double_t PndFtsPoint::fPy_in
protected

Definition at line 104 of file PndFtsPoint.h.

Double_t PndFtsPoint::fPy_out
protected

Definition at line 103 of file PndFtsPoint.h.

Referenced by GetPyOut(), MomentumOut(), and SetMomentumOut().

Double_t PndFtsPoint::fPz_in
protected

Definition at line 104 of file PndFtsPoint.h.

Double_t PndFtsPoint::fPz_out
protected

Definition at line 103 of file PndFtsPoint.h.

Referenced by GetPzOut(), MomentumOut(), and SetMomentumOut().

Int_t PndFtsPoint::fTubeID
protected

Definition at line 110 of file PndFtsPoint.h.

Referenced by GetTubeID(), and SetTubeID().

Double_t PndFtsPoint::fX_in_local
protected

Definition at line 101 of file PndFtsPoint.h.

Referenced by GetXInLocal(), PositionInLocal(), and SetPositionInLocal().

Double_t PndFtsPoint::fX_out_local
protected

Definition at line 99 of file PndFtsPoint.h.

Referenced by GetXOutLocal(), PositionOutLocal(), and SetPositionOutLocal().

Double_t PndFtsPoint::fY_in_local
protected

Definition at line 101 of file PndFtsPoint.h.

Referenced by GetYInLocal(), PositionInLocal(), and SetPositionInLocal().

Double_t PndFtsPoint::fY_out_local
protected

Definition at line 99 of file PndFtsPoint.h.

Referenced by GetYOutLocal(), PositionOutLocal(), and SetPositionOutLocal().

Double_t PndFtsPoint::fZ_in_local
protected

Definition at line 101 of file PndFtsPoint.h.

Referenced by GetZInLocal(), PositionInLocal(), and SetPositionInLocal().

Double_t PndFtsPoint::fZ_out_local
protected

Definition at line 99 of file PndFtsPoint.h.

Referenced by GetZOutLocal(), PositionOutLocal(), and SetPositionOutLocal().


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