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

#include <PndMdtPoint.h>

Inheritance diagram for PndMdtPoint:

Public Member Functions

 PndMdtPoint ()
 
 PndMdtPoint (Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, TVector3 pos_in, TVector3 mom_in)
 
virtual ~PndMdtPoint ()
 
TVector3 GetPosIn () const
 
TVector3 GetMomIn () const
 
TVector3 GetPosOut () const
 
TVector3 GetMomOut () const
 
Short_t GetModule () const
 
Short_t GetSector () const
 
Short_t GetLayerID () const
 
Short_t GetBox () const
 
Short_t GetWire () const
 
virtual void Print (const Option_t *opt) const
 

Protected Attributes

TVector3 fPosIn
 
TVector3 fMomIn
 

Detailed Description

Definition at line 12 of file PndMdtPoint.h.

Constructor & Destructor Documentation

PndMdtPoint::PndMdtPoint ( )

Default constructor

Definition at line 11 of file PndMdtPoint.cxx.

11  : FairMCPoint(), fPosIn(), fMomIn()
12 {
13 
14 }
TVector3 fMomIn
Definition: PndMdtPoint.h:69
TVector3 fPosIn
Definition: PndMdtPoint.h:68
PndMdtPoint::PndMdtPoint ( Int_t  trackID,
Int_t  detID,
TVector3  pos,
TVector3  mom,
Double_t  tof,
Double_t  length,
Double_t  eLoss,
TVector3  pos_in,
TVector3  mom_in 
)

Constructor with arguments

Parameters
Int_tfEventID The ID of the event
Int_tfTrackID The ID of the track
Int_tfDetectorID The ID of the detector
TLorentzVectorfPosIn The position of the hit [cm] at the exitentrance point
TLorentzVectorfMomIn The momentum of the particle giving the hit [GeV] at the exitentrance point
TLorentzVectorfPos The position of the hit [cm] at the exit point
TLorentzVectorfMom The momentum of the particle giving the hit [GeV] at the exit point
Double_tfELoss contains the total energy at the layer [GeV] because it is omitted in parsInitializing constructor - see the above order

Definition at line 20 of file PndMdtPoint.cxx.

23  : FairMCPoint(trackID, detID, pos, mom,tof, length, eLoss ), fPosIn(pos_in), fMomIn(mom_in)
24 {
25  SetLink(FairLink("MCTrack", trackID));
26 }
TVector3 pos
TVector3 fMomIn
Definition: PndMdtPoint.h:69
Double_t mom
Definition: plot_dirc.C:14
TVector3 fPosIn
Definition: PndMdtPoint.h:68
PndMdtPoint::~PndMdtPoint ( )
virtual

Copy constructor Destructor

Definition at line 30 of file PndMdtPoint.cxx.

30 { }

Member Function Documentation

Short_t PndMdtPoint::GetBox ( ) const
inline

Definition at line 56 of file PndMdtPoint.h.

References PndMdtID::Box().

56 { return PndMdtID::Box(GetDetectorID());}
static Short_t Box(Int_t detID)
Definition: PndMdtID.h:23
Short_t PndMdtPoint::GetLayerID ( ) const
inline

Definition at line 55 of file PndMdtPoint.h.

References PndMdtID::Layer().

Referenced by PndMdtDigiProducer::Exec().

55 { return PndMdtID::Layer(GetDetectorID());}
static Short_t Layer(Int_t detID)
Definition: PndMdtID.h:22
Short_t PndMdtPoint::GetModule ( ) const
inline

Definition at line 53 of file PndMdtPoint.h.

References PndMdtID::Module().

Referenced by PndMdtDigiProducer::Exec(), PndMdtPointsToWaveform::exec_e(), and PndMdtPointsToWaveform::exec_t().

53 { return PndMdtID::Module(GetDetectorID());}
static Short_t Module(Int_t detID)
Definition: PndMdtID.h:20
TVector3 PndMdtPoint::GetMomIn ( ) const
inline

Definition at line 48 of file PndMdtPoint.h.

References fMomIn.

Referenced by PndMdtPointsToWaveform::exec_e(), and PndMdtPointsToWaveform::exec_t().

48 { return fMomIn; }
TVector3 fMomIn
Definition: PndMdtPoint.h:69
TVector3 PndMdtPoint::GetMomOut ( ) const
inline

Definition at line 50 of file PndMdtPoint.h.

50 { return TVector3(fPx, fPy, fPz); }
TVector3 PndMdtPoint::GetPosIn ( ) const
inline

Accessors

Definition at line 47 of file PndMdtPoint.h.

References fPosIn.

Referenced by PndMdtDigiProducer::Exec(), PndMdtPointsToWaveform::exec_e(), and PndMdtPointsToWaveform::exec_t().

47 { return fPosIn; }
TVector3 fPosIn
Definition: PndMdtPoint.h:68
TVector3 PndMdtPoint::GetPosOut ( ) const
inline

Definition at line 49 of file PndMdtPoint.h.

References fX, fY, and fZ.

Referenced by PndMdtPointsToWaveform::exec_e(), and PndMdtPointsToWaveform::exec_t().

49 { return TVector3(fX, fY, fZ); }
Double_t fX
Definition: PndCaloDraw.cxx:34
Double_t fZ
Definition: PndCaloDraw.cxx:34
Double_t fY
Definition: PndCaloDraw.cxx:34
Short_t PndMdtPoint::GetSector ( ) const
inline

Definition at line 54 of file PndMdtPoint.h.

References PndMdtID::Sector().

Referenced by PndMdtDigiProducer::Exec(), PndMdtPointsToWaveform::exec_e(), and PndMdtPointsToWaveform::exec_t().

54 { return PndMdtID::Sector(GetDetectorID());}
static Short_t Sector(Int_t detID)
Definition: PndMdtID.h:21
Short_t PndMdtPoint::GetWire ( ) const
inline

Definition at line 57 of file PndMdtPoint.h.

References PndMdtID::Wire().

57 { return PndMdtID::Wire(GetDetectorID());}
static Short_t Wire(Int_t detID)
Definition: PndMdtID.h:24
void PndMdtPoint::Print ( const Option_t *  opt) const
virtual

Modifiers Output to screen

Definition at line 34 of file PndMdtPoint.cxx.

References fMomIn, fPosIn, fX, fY, and fZ.

34  {
35  cout << "-I- PndMdtPoint: MDT Point for track " << fTrackID << " in the detector " << fDetectorID << endl;
36  cout << " in event " << fEventId << " track length " << fLength << " time " << fTime << " eloss " << fELoss << endl;
37  cout << " Position In (" << fPosIn.X() << ", " << fPosIn.Y() << ", " << fPosIn.Z() << ") cm^3*s" << endl;
38  cout << " Momentum In (" << fMomIn.X() << ", " << fMomIn.Y() << ", " << fMomIn.Z() << ") GeV^4" << endl;
39  cout << " Position Out (" << fX << ", " << fY << ", " << fZ << ") cm^3*s" << endl;
40  cout << " Momentum Out(" << fPx << ", " << fPy << ", " << fPz << ") GeV^4" << endl;
41  cout << " opt = " << opt << endl;
42 }
Double_t fX
Definition: PndCaloDraw.cxx:34
TVector3 fMomIn
Definition: PndMdtPoint.h:69
Double_t fZ
Definition: PndCaloDraw.cxx:34
Double_t fY
Definition: PndCaloDraw.cxx:34
TVector3 fPosIn
Definition: PndMdtPoint.h:68

Member Data Documentation

TVector3 PndMdtPoint::fMomIn
protected

Definition at line 69 of file PndMdtPoint.h.

Referenced by GetMomIn(), and Print().

TVector3 PndMdtPoint::fPosIn
protected

Definition at line 68 of file PndMdtPoint.h.

Referenced by GetPosIn(), and Print().


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