FairRoot/PandaRoot
PndDiscSensorMCPoint.cxx
Go to the documentation of this file.
1 //-------------------------------------------------------------------------
2 // Author: Oliver Merle (Oliver.Merle@exp2.physik.uni-giessen.de)
3 // Changes: Mustafa Schmidt (Mustafa.A.Schmidt@physik.uni-giessen.de)
4 // Date: 30.11.2015
5 // Description: Information of photons
6 //-------------------------------------------------------------------------
7 
8 #include "PndDiscSensorMCPoint.h"
9 
10 
11 
13 
14 
15 
17 volume_id(0),
18 internal_reflection_angle(0.),
19 track_start_time(0.),
20 my_track_id(0),
21 photon_entering_pos(0.,0.,0.),
22 photon_entering_momentum(0.,0.,0.)
23 {
24 }
25 
26 
27 PndDiscSensorMCPoint::PndDiscSensorMCPoint(Int_t track_id_, Int_t det_id_,
28  Int_t volume_id_, Double_t const & internal_reflection_angle_, TVector3 const & pos_in_,
29  TVector3 const & mom_in_,
30  Double_t const & total_tof_, Double_t const & total_length_, Double_t const & energy_loss_,
31  Double_t const & track_start_time_)
32 
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 }
38 
39 
41 
42 
43 void PndDiscSensorMCPoint::Print(const Option_t *opt) const {
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
virtual void Print(const Option_t *opt=0) const
Double_t fZ
Definition: PndCaloDraw.cxx:34
Double_t
Double_t fY
Definition: PndCaloDraw.cxx:34
ClassImp(PndAnaContFact)