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

#include <PndDiscSensorMCPoint.h>

Inheritance diagram for PndDiscSensorMCPoint:

Public Member Functions

 PndDiscSensorMCPoint ()
 
 PndDiscSensorMCPoint (Int_t track_id, Int_t det_id, Int_t volume_id, Double_t const &internal_reflection_angle, TVector3 const &pos_in, TVector3 const &mom_in, Double_t const &total_tof, Double_t const &total_length, Double_t const &energy_loss, Double_t const &track_start_time)
 
virtual ~PndDiscSensorMCPoint ()
 
virtual void Print (const Option_t *opt=0) const
 
const Double_tGetTotalReflectionAngle ()
 FairMCPoint forces the implementation. More...
 
Double_t ComputeWavelenght ()
 
Double_t ComputeTrackTof ()
 

Public Attributes

Int_t volume_id
 
Double_t internal_reflection_angle
 
Double_t track_start_time
 
Int_t my_track_id
 
TVector3 photon_entering_pos
 
TVector3 photon_entering_momentum
 

Detailed Description

Definition at line 20 of file PndDiscSensorMCPoint.h.

Constructor & Destructor Documentation

PndDiscSensorMCPoint::PndDiscSensorMCPoint ( )

Definition at line 16 of file PndDiscSensorMCPoint.cxx.

16  : FairMCPoint(),
17 volume_id(0),
20 my_track_id(0),
21 photon_entering_pos(0.,0.,0.),
23 {
24 }
PndDiscSensorMCPoint::PndDiscSensorMCPoint ( Int_t  track_id,
Int_t  det_id,
Int_t  volume_id,
Double_t const &  internal_reflection_angle,
TVector3 const &  pos_in,
TVector3 const &  mom_in,
Double_t const &  total_tof,
Double_t const &  total_length,
Double_t const &  energy_loss,
Double_t const &  track_start_time 
)

Definition at line 27 of file PndDiscSensorMCPoint.cxx.

33  : FairMCPoint(track_id_, det_id_, pos_in_, mom_in_, total_tof_, total_length_, energy_loss_),
34  volume_id(volume_id_), internal_reflection_angle(internal_reflection_angle_),
35  track_start_time(track_start_time_),my_track_id(track_id_),photon_entering_pos(0.,0.,0.),photon_entering_momentum(0.,0.,0.)
36 {
37 }
PndDiscSensorMCPoint::~PndDiscSensorMCPoint ( )
virtual

Definition at line 40 of file PndDiscSensorMCPoint.cxx.

40 {}

Member Function Documentation

Double_t PndDiscSensorMCPoint::ComputeTrackTof ( )
inline

Definition at line 43 of file PndDiscSensorMCPoint.h.

References track_start_time.

43 { return fTime-track_start_time; }
Double_t PndDiscSensorMCPoint::ComputeWavelenght ( )
inline

Definition at line 42 of file PndDiscSensorMCPoint.h.

References sqrt().

42 { return 1.239841939E-6/sqrt(fPx*fPx+fPy*fPy+fPz*fPz); }
friend F32vec4 sqrt(const F32vec4 &a)
Definition: P4_F32vec4.h:29
const Double_t& PndDiscSensorMCPoint::GetTotalReflectionAngle ( )
inline

FairMCPoint forces the implementation.

Definition at line 41 of file PndDiscSensorMCPoint.h.

References internal_reflection_angle.

Referenced by PndDiscTaskDigitization::Exec().

void PndDiscSensorMCPoint::Print ( const Option_t *  opt = 0) const
virtual

Definition at line 43 of file PndDiscSensorMCPoint.cxx.

References fX, fY, fZ, internal_reflection_angle, and volume_id.

43  {
44  // Logger or cout ? There should be only one target !
45  std::cout << "-I- PndDiscSensorMCPoint"
46  << " fTrackID " << fTrackID << std::endl
47  << " fDetectorID " << fDetectorID << std::endl
48  << " Position " << fX << "; " << fY << "; " << fZ << std::endl
49  << " Momentum " << fPx << "; " << fPy << "; " << fPz << std::endl
50  << " fTime " << fTime << std::endl
51  << " Length " << fLength << std::endl
52  << " fELoss " << fELoss << std::endl
53  << " volume_id " << volume_id << std::endl
54  << " irefl. angle " << internal_reflection_angle << std::endl
55  << " Option is " << opt << std::endl
56  ;
57 }
Double_t fX
Definition: PndCaloDraw.cxx:34
Double_t fZ
Definition: PndCaloDraw.cxx:34
Double_t fY
Definition: PndCaloDraw.cxx:34

Member Data Documentation

Double_t PndDiscSensorMCPoint::internal_reflection_angle

Definition at line 46 of file PndDiscSensorMCPoint.h.

Referenced by GetTotalReflectionAngle(), and Print().

Int_t PndDiscSensorMCPoint::my_track_id

Definition at line 48 of file PndDiscSensorMCPoint.h.

TVector3 PndDiscSensorMCPoint::photon_entering_momentum

Definition at line 51 of file PndDiscSensorMCPoint.h.

Referenced by PndDisc::ProcessHits().

TVector3 PndDiscSensorMCPoint::photon_entering_pos

Definition at line 50 of file PndDiscSensorMCPoint.h.

Referenced by PndDisc::ProcessHits().

Double_t PndDiscSensorMCPoint::track_start_time

Definition at line 47 of file PndDiscSensorMCPoint.h.

Referenced by ComputeTrackTof().

Int_t PndDiscSensorMCPoint::volume_id

Definition at line 45 of file PndDiscSensorMCPoint.h.

Referenced by Print().


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