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

#include <PndSdsMCPoint.h>

Inheritance diagram for PndSdsMCPoint:

Public Member Functions

 PndSdsMCPoint ()
 
 PndSdsMCPoint (Int_t trackID, Int_t detID, Int_t sensorID, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t tof, Double_t length, Double_t eLoss)
 
 PndSdsMCPoint (const PndSdsMCPoint &point)
 
virtual ~PndSdsMCPoint ()
 
Double_t GetXOut () const
 
Double_t GetYOut () const
 
Double_t GetZOut () const
 
Double_t GetPxOut () const
 
Double_t GetPyOut () const
 
Double_t GetPzOut () const
 
Int_t GetSensorID () const
 
TVector3 GetPosition () const
 
TVector3 GetPositionOut () const
 
void PositionOut (TVector3 &pos) const
 
void MomentumOut (TVector3 &mom) const
 
void SetPositionOut (TVector3 pos)
 
void SetMomentumOut (TVector3 mom)
 
void SetSensorID (Int_t sensorID)
 
virtual void SetTrackID (Int_t id)
 
virtual void Print (const Option_t *opt=0) const
 

Protected Member Functions

 ClassDef (PndSdsMCPoint, 6)
 

Protected Attributes

Double32_t fXfOut
 
Double32_t fYfOut
 
Double32_t fZfOut
 
Double32_t fPxfOut
 
Double32_t fPyfOut
 
Double32_t fPzfOut
 
Int_t fSensorID
 

Friends

std::ostreamoperator<< (std::ostream &out, const PndSdsMCPoint &point)
 

Detailed Description

Definition at line 27 of file PndSdsMCPoint.h.

Constructor & Destructor Documentation

PndSdsMCPoint::PndSdsMCPoint ( )

Default constructor

Definition at line 13 of file PndSdsMCPoint.cxx.

13  : FairMCPoint(),
14  fXfOut(0.), fYfOut(0.), fZfOut(0.),
15  fPxfOut(0.), fPyfOut(0.), fPzfOut(0), fSensorID(-1)
16 
17 {}
Double32_t fXfOut
Double32_t fZfOut
Double32_t fPzfOut
Double32_t fYfOut
Double32_t fPxfOut
Double32_t fPyfOut
PndSdsMCPoint::PndSdsMCPoint ( Int_t  trackID,
Int_t  detID,
Int_t  sensorID,
TVector3  posIn,
TVector3  posOut,
TVector3  momIn,
TVector3  momOut,
Double_t  tof,
Double_t  length,
Double_t  eLoss 
)

Constructor with arguments

Parameters
trackIDIndex of MCTrack
detIDDetector ID
sensorIDFull nameId of the detector, see PndSdsGeoHandling
posInCoordinates of ingoing point[cm]
posOutCoordinates of outgoing point[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 23 of file PndSdsMCPoint.cxx.

26  :
27  FairMCPoint(trackID, detID, posIn, momIn, tof, length, eLoss) ,
28  fXfOut(posOut.X()),
29  fYfOut(posOut.Y()),
30  fZfOut(posOut.Z()),
31  fPxfOut(momOut.Px()),
32  fPyfOut(momOut.Py()),
33  fPzfOut(momOut.Pz()),
34  fSensorID(sensorID)
35 {
36  //FIXME: Do we really need the header request?
37  //FairEventHeader* evtHeader = FairRun::Instance()->GetEventHeader();
38  SetLink(FairLink("MCTrack", trackID));
39 }
Double32_t fXfOut
Double32_t fZfOut
Double32_t fPzfOut
Double32_t fYfOut
Double32_t fPxfOut
Double32_t fPyfOut
PndSdsMCPoint::PndSdsMCPoint ( const PndSdsMCPoint point)
inline

Copy constructor

Definition at line 65 of file PndSdsMCPoint.h.

References point.

65  : FairMCPoint(point),
66  fXfOut(point.fXfOut),
67  fYfOut(point.fYfOut),
68  fZfOut(point.fZfOut),
69  fPxfOut(point.fPxfOut),
70  fPyfOut(point.fPyfOut),
71  fPzfOut(point.fPzfOut),
72  fSensorID(point.fSensorID)
73  { *this = point; };
Double32_t fXfOut
Double32_t fZfOut
Double32_t fPzfOut
Double32_t fYfOut
Double32_t fPxfOut
Double32_t fPyfOut
PndSdsMCPoint * point
Definition: anaLmdCluster.C:72
PndSdsMCPoint::~PndSdsMCPoint ( )
virtual

Destructor

Definition at line 45 of file PndSdsMCPoint.cxx.

45 { }

Member Function Documentation

PndSdsMCPoint::ClassDef ( PndSdsMCPoint  ,
 
)
protected
TVector3 PndSdsMCPoint::GetPosition ( ) const
inline
TVector3 PndSdsMCPoint::GetPositionOut ( ) const
inline
Double_t PndSdsMCPoint::GetPxOut ( ) const
inline

Definition at line 85 of file PndSdsMCPoint.h.

85 { return fPxfOut; }
Double32_t fPxfOut
Double_t PndSdsMCPoint::GetPyOut ( ) const
inline

Definition at line 86 of file PndSdsMCPoint.h.

86 { return fPyfOut; }
Double32_t fPyfOut
Double_t PndSdsMCPoint::GetPzOut ( ) const
inline

Definition at line 87 of file PndSdsMCPoint.h.

87 { return fPzfOut; }
Double32_t fPzfOut
Int_t PndSdsMCPoint::GetSensorID ( ) const
inline
Double_t PndSdsMCPoint::GetXOut ( ) const
inline
Double_t PndSdsMCPoint::GetYOut ( ) const
inline
Double_t PndSdsMCPoint::GetZOut ( ) const
inline
void PndSdsMCPoint::MomentumOut ( TVector3 &  mom) const
inline

Definition at line 94 of file PndSdsMCPoint.h.

94 { mom.SetXYZ(fPxfOut,fPyfOut,fPzfOut); }
Double_t mom
Definition: plot_dirc.C:14
Double32_t fPzfOut
Double32_t fPxfOut
Double32_t fPyfOut
void PndSdsMCPoint::PositionOut ( TVector3 &  pos) const
inline

Definition at line 93 of file PndSdsMCPoint.h.

93 { pos.SetXYZ(fXfOut, fYfOut, fZfOut);};
TVector3 pos
Double32_t fXfOut
Double32_t fZfOut
Double32_t fYfOut
void PndSdsMCPoint::Print ( const Option_t *  opt = 0) const
virtual

Output to screen

Definition at line 52 of file PndSdsMCPoint.cxx.

Referenced by drawTracks(), EventListing(), PndMvdEventAnaTask::Exec(), PndSdsHybridHitProducer::Exec(), PndSdsStripHitProducerDif::Exec(), and PndSdsStripHitProducer::Exec().

52  {
53  std::cout << *this << "opt="<<opt<<std::endl;
54 }
void PndSdsMCPoint::SetMomentumOut ( TVector3  mom)
inline

Definition at line 131 of file PndSdsMCPoint.h.

131  {
132  fPxfOut = mom.Px();
133  fPyfOut = mom.Py();
134  fPzfOut = mom.Pz();
135 }
Double_t mom
Definition: plot_dirc.C:14
Double32_t fPzfOut
Double32_t fPxfOut
Double32_t fPyfOut
void PndSdsMCPoint::SetPositionOut ( TVector3  pos)
inline

Modifiers

Definition at line 124 of file PndSdsMCPoint.h.

124  {
125  fXfOut = pos.X();
126  fYfOut = pos.Y();
127  fZfOut = pos.Z();
128 }
TVector3 pos
Double32_t fXfOut
Double32_t fZfOut
Double32_t fYfOut
void PndSdsMCPoint::SetSensorID ( Int_t  sensorID)
inline

Definition at line 101 of file PndSdsMCPoint.h.

101 {fSensorID = sensorID;}
virtual void PndSdsMCPoint::SetTrackID ( Int_t  id)
inlinevirtual

Definition at line 102 of file PndSdsMCPoint.h.

Referenced by PndSdsDetector::CopyClones().

102  {
103  //SetLink("MCTrack", id);
104  FairMCPoint::SetTrackID(id);
105  };

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream out,
const PndSdsMCPoint point 
)
friend

Definition at line 29 of file PndSdsMCPoint.h.

29  {
30  out << "-I- PndSdsMCPoint: PndSds Point for track " << point.GetTrackID()
31  << " in detector " << point.GetDetectorID() << " with sensor "
32  << point.GetSensorID() << std::endl;
33  out << " Position in (" << point.GetX() << ", " << point.GetY() << ", " << point.GetZ() << ") cm" << std::endl;
34  out << " Position out (" << point.GetXOut() << ", " << point.GetYOut() << ", " << point.GetZOut() << ") cm" << std::endl;
35  out << " Momentum (" << point.GetPx() << ", " << point.GetPy() << ", " << point.GetPz() << ") GeV" << std::endl;
36  out << " Time " << point.GetTime() << " ns, Length " << point.GetLength() << " cm, Energy loss " << point.GetEnergyLoss()*1.0e06 << " keV" << std::endl;
37  return out;
38  }
Double_t GetXOut() const
Definition: PndSdsMCPoint.h:81
Double_t GetZOut() const
Definition: PndSdsMCPoint.h:83
Int_t GetSensorID() const
Definition: PndSdsMCPoint.h:89
TFile * out
Definition: reco_muo.C:20
Double_t GetYOut() const
Definition: PndSdsMCPoint.h:82

Member Data Documentation

Double32_t PndSdsMCPoint::fPxfOut
protected

Definition at line 116 of file PndSdsMCPoint.h.

Double32_t PndSdsMCPoint::fPyfOut
protected

Definition at line 116 of file PndSdsMCPoint.h.

Double32_t PndSdsMCPoint::fPzfOut
protected

Definition at line 116 of file PndSdsMCPoint.h.

Int_t PndSdsMCPoint::fSensorID
protected

Definition at line 117 of file PndSdsMCPoint.h.

Double32_t PndSdsMCPoint::fXfOut
protected

Definition at line 114 of file PndSdsMCPoint.h.

Double32_t PndSdsMCPoint::fYfOut
protected

Definition at line 114 of file PndSdsMCPoint.h.

Double32_t PndSdsMCPoint::fZfOut
protected

Definition at line 114 of file PndSdsMCPoint.h.


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