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

#include <CbmPlanePoint.h>

Inheritance diagram for CbmPlanePoint:

Public Member Functions

 CbmPlanePoint ()
 
 CbmPlanePoint (Int_t trackID, Int_t detID, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t tof, Double_t length, Double_t eLoss, Double_t charge, Double_t mass, Bool_t preflag, Bool_t postflag, TString nam, Int_t eventID)
 
 CbmPlanePoint (const CbmPlanePoint &point)
 
virtual ~CbmPlanePoint ()
 
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 GetXIn () const
 
Double_t GetYIn () const
 
Double_t GetZIn () const
 
Double_t GetPxIn () const
 
Double_t GetPyIn () const
 
Double_t GetPzIn () const
 
Double_t GetMass () const
 
Int_t GetTrackID () const
 
Int_t GetEventID () const
 
Int_t GetCopyNo () const
 
Bool_t GetPreFlag () const
 
Bool_t GetPostFlag () const
 
void PositionOut (TVector3 &pos)
 
void MomentumOut (TVector3 &mom)
 
TString GetNam () const
 
void SetPositionOut (TVector3 pos)
 
void SetMomentumOut (TVector3 mom)
 
void SetPositionIn (TVector3 posin)
 
void SetMomentumIn (TVector3 momin)
 
virtual void Print (const Option_t *opt) const
 

Protected Attributes

Double32_t fX_in
 
Double32_t fY_in
 
Double32_t fZ_in
 
Double32_t fPx_in
 
Double32_t fPy_in
 
Double32_t fPz_in
 
Double32_t fX_out
 
Double32_t fY_out
 
Double32_t fZ_out
 
Double32_t fPx_out
 
Double32_t fPy_out
 
Double32_t fPz_out
 
Double_t fmass
 
Bool_t fpreflag
 
Bool_t fpostflag
 
Double_t fcharge
 
Int_t fCopyNo
 
TString fPlanenam
 
Int_t ftrackID
 
Int_t feventID
 

Detailed Description

Definition at line 10 of file CbmPlanePoint.h.

Constructor & Destructor Documentation

CbmPlanePoint::CbmPlanePoint ( )

Default constructor

Definition at line 5 of file CbmPlanePoint.cxx.

References fPx_out, fPy_out, fPz_out, fX_out, fY_out, and fZ_out.

5  : FairMCPoint() {
6  fX_out = fY_out = fZ_out = 0.;
7  fPx_out = fPy_out = fPz_out = 0.;
8 }
Double32_t fPz_out
Definition: CbmPlanePoint.h:89
Double32_t fY_out
Definition: CbmPlanePoint.h:88
Double32_t fX_out
Definition: CbmPlanePoint.h:88
Double32_t fPy_out
Definition: CbmPlanePoint.h:89
Double32_t fPx_out
Definition: CbmPlanePoint.h:89
Double32_t fZ_out
Definition: CbmPlanePoint.h:88
CbmPlanePoint::CbmPlanePoint ( Int_t  trackID,
Int_t  detID,
TVector3  posIn,
TVector3  posOut,
TVector3  momIn,
TVector3  momOut,
Double_t  tof,
Double_t  length,
Double_t  eLoss,
Double_t  charge,
Double_t  mass,
Bool_t  preflag,
Bool_t  postflag,
TString  nam,
Int_t  eventID 
)

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 26 of file CbmPlanePoint.cxx.

References fcharge, fCopyNo, feventID, fmass, fPlanenam, fpostflag, fpreflag, fPx_in, fPx_out, fPy_in, fPy_out, fPz_in, fPz_out, ftrackID, fX_in, fX_out, fY_in, fY_out, fZ_in, fZ_out, and nam.

30  : FairMCPoint(trackID, detID, posIn, momIn, tof, length, eLoss) {
31  fX_out = posOut.X();//cm
32  fY_out = posOut.Y();//cm
33  fZ_out = posOut.Z();
34  fX_in = posIn.X();
35  fY_in = posIn.Y();
36  fZ_in = posIn.Z();
37  fPx_out = momOut.Px();
38  fPy_out = momOut.Py();
39  fPz_out = momOut.Pz();
40  fPx_in = momIn.Px();
41  fPy_in = momIn.Py();
42  fPz_in = momIn.Pz();
43  fcharge = charge;
44  fmass = mass;
45  fpreflag = preflag;
46  fpostflag = postflag;
47  fCopyNo = detID;
48  fPlanenam =nam;
49  ftrackID = trackID;
50  feventID = eventID;
51 }
Double_t fcharge
Definition: CbmPlanePoint.h:92
Double32_t fX_in
Definition: CbmPlanePoint.h:86
Bool_t fpostflag
Definition: CbmPlanePoint.h:91
Double32_t fPz_out
Definition: CbmPlanePoint.h:89
Double32_t fY_out
Definition: CbmPlanePoint.h:88
Double32_t fPz_in
Definition: CbmPlanePoint.h:87
Double32_t fX_out
Definition: CbmPlanePoint.h:88
Double32_t fPy_out
Definition: CbmPlanePoint.h:89
Double32_t fZ_in
Definition: CbmPlanePoint.h:86
Double32_t fPy_in
Definition: CbmPlanePoint.h:87
Double32_t fY_in
Definition: CbmPlanePoint.h:86
Double32_t fPx_out
Definition: CbmPlanePoint.h:89
Double32_t fZ_out
Definition: CbmPlanePoint.h:88
Double_t fmass
Definition: CbmPlanePoint.h:90
TString fPlanenam
Definition: CbmPlanePoint.h:94
Double32_t fPx_in
Definition: CbmPlanePoint.h:87
TString nam
Definition: sim_hypGe.C:48
CbmPlanePoint::CbmPlanePoint ( const CbmPlanePoint point)
inline

Copy constructor

Definition at line 40 of file CbmPlanePoint.h.

References point.

40 { *this = point; };
PndSdsMCPoint * point
Definition: anaLmdCluster.C:72
CbmPlanePoint::~CbmPlanePoint ( )
virtual

Destructor

Definition at line 55 of file CbmPlanePoint.cxx.

55 { }

Member Function Documentation

Int_t CbmPlanePoint::GetCopyNo ( ) const
inline

Definition at line 64 of file CbmPlanePoint.h.

References fCopyNo.

64 { return fCopyNo; }
Int_t CbmPlanePoint::GetEventID ( ) const
inline

Definition at line 63 of file CbmPlanePoint.h.

References feventID.

63 { return feventID; }
Double_t CbmPlanePoint::GetMass ( ) const
inline

Definition at line 60 of file CbmPlanePoint.h.

References fmass.

60 { return fmass; }
Double_t fmass
Definition: CbmPlanePoint.h:90
TString CbmPlanePoint::GetNam ( ) const
inline

Definition at line 70 of file CbmPlanePoint.h.

References fPlanenam.

70 {return fPlanenam;}
TString fPlanenam
Definition: CbmPlanePoint.h:94
Bool_t CbmPlanePoint::GetPostFlag ( ) const
inline

Definition at line 66 of file CbmPlanePoint.h.

References fpostflag.

66 { return fpostflag;}
Bool_t fpostflag
Definition: CbmPlanePoint.h:91
Bool_t CbmPlanePoint::GetPreFlag ( ) const
inline

Definition at line 65 of file CbmPlanePoint.h.

References fpreflag.

65 { return fpreflag;}
Double_t CbmPlanePoint::GetPxIn ( ) const
inline

Definition at line 57 of file CbmPlanePoint.h.

References fPx_in.

Referenced by FairGeaneTr::Exec().

57 { return fPx_in; }
Double32_t fPx_in
Definition: CbmPlanePoint.h:87
Double_t CbmPlanePoint::GetPxOut ( ) const
inline

Definition at line 51 of file CbmPlanePoint.h.

References fPx_out.

51 { return fPx_out; }
Double32_t fPx_out
Definition: CbmPlanePoint.h:89
Double_t CbmPlanePoint::GetPyIn ( ) const
inline

Definition at line 58 of file CbmPlanePoint.h.

References fPy_in.

Referenced by FairGeaneTr::Exec().

58 { return fPy_in; }
Double32_t fPy_in
Definition: CbmPlanePoint.h:87
Double_t CbmPlanePoint::GetPyOut ( ) const
inline

Definition at line 52 of file CbmPlanePoint.h.

References fPy_out.

52 { return fPy_out; }
Double32_t fPy_out
Definition: CbmPlanePoint.h:89
Double_t CbmPlanePoint::GetPzIn ( ) const
inline

Definition at line 59 of file CbmPlanePoint.h.

References fPz_in.

Referenced by FairGeaneTr::Exec().

59 { return fPz_in; }
Double32_t fPz_in
Definition: CbmPlanePoint.h:87
Double_t CbmPlanePoint::GetPzOut ( ) const
inline

Definition at line 53 of file CbmPlanePoint.h.

References fPz_out.

53 { return fPz_out; }
Double32_t fPz_out
Definition: CbmPlanePoint.h:89
Int_t CbmPlanePoint::GetTrackID ( ) const
inline

Definition at line 62 of file CbmPlanePoint.h.

References ftrackID.

Referenced by FairGeaneTr::Exec().

62 { return ftrackID; }
Double_t CbmPlanePoint::GetXIn ( ) const
inline

Definition at line 54 of file CbmPlanePoint.h.

References fX_in.

Referenced by FairGeaneTr::Exec().

54 { return fX_in; }
Double32_t fX_in
Definition: CbmPlanePoint.h:86
Double_t CbmPlanePoint::GetXOut ( ) const
inline

Accessors

Definition at line 48 of file CbmPlanePoint.h.

References fX_out.

48 { return fX_out; }
Double32_t fX_out
Definition: CbmPlanePoint.h:88
Double_t CbmPlanePoint::GetYIn ( ) const
inline

Definition at line 55 of file CbmPlanePoint.h.

References fY_in.

Referenced by FairGeaneTr::Exec().

55 { return fY_in; }
Double32_t fY_in
Definition: CbmPlanePoint.h:86
Double_t CbmPlanePoint::GetYOut ( ) const
inline

Definition at line 49 of file CbmPlanePoint.h.

References fY_out.

49 { return fY_out; }
Double32_t fY_out
Definition: CbmPlanePoint.h:88
Double_t CbmPlanePoint::GetZIn ( ) const
inline

Definition at line 56 of file CbmPlanePoint.h.

References fZ_in.

Referenced by FairGeaneTr::Exec().

56 { return fZ_in; }
Double32_t fZ_in
Definition: CbmPlanePoint.h:86
Double_t CbmPlanePoint::GetZOut ( ) const
inline

Definition at line 50 of file CbmPlanePoint.h.

References fZ_out.

50 { return fZ_out; }
Double32_t fZ_out
Definition: CbmPlanePoint.h:88
void CbmPlanePoint::MomentumOut ( TVector3 &  mom)
inline

Definition at line 69 of file CbmPlanePoint.h.

References fPx_out, fPy_out, and fPz_out.

69 { mom.SetXYZ(fPx_out,fPy_out,fPz_out); }
Double32_t fPz_out
Definition: CbmPlanePoint.h:89
Double_t mom
Definition: plot_dirc.C:14
Double32_t fPy_out
Definition: CbmPlanePoint.h:89
Double32_t fPx_out
Definition: CbmPlanePoint.h:89
void CbmPlanePoint::PositionOut ( TVector3 &  pos)
inline

Definition at line 68 of file CbmPlanePoint.h.

References fX_out, fY_out, and fZ_out.

68 { pos.SetXYZ(fX_out,fY_out,fZ_out); }
TVector3 pos
Double32_t fY_out
Definition: CbmPlanePoint.h:88
Double32_t fX_out
Definition: CbmPlanePoint.h:88
Double32_t fZ_out
Definition: CbmPlanePoint.h:88
void CbmPlanePoint::Print ( const Option_t *  opt) const
virtual

Output to screen

Definition at line 62 of file CbmPlanePoint.cxx.

References fX, fY, and fZ.

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

Definition at line 122 of file CbmPlanePoint.h.

References fPx_in, fPy_in, and fPz_in.

122  {
123  fPx_in = momin.Px();
124  fPy_in = momin.Py();
125  fPz_in = momin.Pz();
126 }
Double32_t fPz_in
Definition: CbmPlanePoint.h:87
Double32_t fPy_in
Definition: CbmPlanePoint.h:87
Double32_t fPx_in
Definition: CbmPlanePoint.h:87
void CbmPlanePoint::SetMomentumOut ( TVector3  mom)
inline

Definition at line 110 of file CbmPlanePoint.h.

References fPx_out, fPy_out, and fPz_out.

110  {
111  fPx_out = mom.Px();
112  fPy_out = mom.Py();
113  fPz_out = mom.Pz();
114 }
Double32_t fPz_out
Definition: CbmPlanePoint.h:89
Double_t mom
Definition: plot_dirc.C:14
Double32_t fPy_out
Definition: CbmPlanePoint.h:89
Double32_t fPx_out
Definition: CbmPlanePoint.h:89
void CbmPlanePoint::SetPositionIn ( TVector3  posin)
inline

Definition at line 116 of file CbmPlanePoint.h.

References fX_in, fY_in, and fZ_in.

116  {
117  fX_in = posin.X();
118  fY_in = posin.Y();
119  fZ_in = posin.Z();
120 }
Double32_t fX_in
Definition: CbmPlanePoint.h:86
Double32_t fZ_in
Definition: CbmPlanePoint.h:86
Double32_t fY_in
Definition: CbmPlanePoint.h:86
void CbmPlanePoint::SetPositionOut ( TVector3  pos)
inline

Modifiers

Definition at line 103 of file CbmPlanePoint.h.

References fX_out, fY_out, and fZ_out.

103  {
104  fX_out = pos.X();
105  fY_out = pos.Y();
106  fZ_out = pos.Z();
107 }
TVector3 pos
Double32_t fY_out
Definition: CbmPlanePoint.h:88
Double32_t fX_out
Definition: CbmPlanePoint.h:88
Double32_t fZ_out
Definition: CbmPlanePoint.h:88

Member Data Documentation

Double_t CbmPlanePoint::fcharge
protected

Definition at line 92 of file CbmPlanePoint.h.

Referenced by CbmPlanePoint().

Int_t CbmPlanePoint::fCopyNo
protected

Definition at line 93 of file CbmPlanePoint.h.

Referenced by CbmPlanePoint(), and GetCopyNo().

Int_t CbmPlanePoint::feventID
protected

Definition at line 96 of file CbmPlanePoint.h.

Referenced by CbmPlanePoint(), and GetEventID().

Double_t CbmPlanePoint::fmass
protected

Definition at line 90 of file CbmPlanePoint.h.

Referenced by CbmPlanePoint(), and GetMass().

TString CbmPlanePoint::fPlanenam
protected

Definition at line 94 of file CbmPlanePoint.h.

Referenced by CbmPlanePoint(), and GetNam().

Bool_t CbmPlanePoint::fpostflag
protected

Definition at line 91 of file CbmPlanePoint.h.

Referenced by CbmPlanePoint(), and GetPostFlag().

Bool_t CbmPlanePoint::fpreflag
protected

Definition at line 91 of file CbmPlanePoint.h.

Referenced by CbmPlanePoint(), and GetPreFlag().

Double32_t CbmPlanePoint::fPx_in
protected

Definition at line 87 of file CbmPlanePoint.h.

Referenced by CbmPlanePoint(), GetPxIn(), and SetMomentumIn().

Double32_t CbmPlanePoint::fPx_out
protected

Definition at line 89 of file CbmPlanePoint.h.

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

Double32_t CbmPlanePoint::fPy_in
protected

Definition at line 87 of file CbmPlanePoint.h.

Referenced by CbmPlanePoint(), GetPyIn(), and SetMomentumIn().

Double32_t CbmPlanePoint::fPy_out
protected

Definition at line 89 of file CbmPlanePoint.h.

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

Double32_t CbmPlanePoint::fPz_in
protected

Definition at line 87 of file CbmPlanePoint.h.

Referenced by CbmPlanePoint(), GetPzIn(), and SetMomentumIn().

Double32_t CbmPlanePoint::fPz_out
protected

Definition at line 89 of file CbmPlanePoint.h.

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

Int_t CbmPlanePoint::ftrackID
protected

Definition at line 95 of file CbmPlanePoint.h.

Referenced by CbmPlanePoint(), and GetTrackID().

Double32_t CbmPlanePoint::fX_in
protected

Definition at line 86 of file CbmPlanePoint.h.

Referenced by CbmPlanePoint(), GetXIn(), and SetPositionIn().

Double32_t CbmPlanePoint::fX_out
protected

Definition at line 88 of file CbmPlanePoint.h.

Referenced by CbmPlanePoint(), GetXOut(), PositionOut(), and SetPositionOut().

Double32_t CbmPlanePoint::fY_in
protected

Definition at line 86 of file CbmPlanePoint.h.

Referenced by CbmPlanePoint(), GetYIn(), and SetPositionIn().

Double32_t CbmPlanePoint::fY_out
protected

Definition at line 88 of file CbmPlanePoint.h.

Referenced by CbmPlanePoint(), GetYOut(), PositionOut(), and SetPositionOut().

Double32_t CbmPlanePoint::fZ_in
protected

Definition at line 86 of file CbmPlanePoint.h.

Referenced by CbmPlanePoint(), GetZIn(), and SetPositionIn().

Double32_t CbmPlanePoint::fZ_out
protected

Definition at line 88 of file CbmPlanePoint.h.

Referenced by CbmPlanePoint(), GetZOut(), PositionOut(), and SetPositionOut().


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