FairRoot/PandaRoot
PndDiscParticleMCPoint.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 charged particle tracks
6 //-------------------------------------------------------------------------
7 
9 
10 
11 #include <iostream>
12 
13 
14 
15 
17 
18 
19 
20 
22 volume_id(0),
23 pos_out(0.,0.,0.),
24 mom_out(0.,0.,0.),
25 charge(0.),
26 mass(0.),
27 pdgCode(0),
28 pos_in_inside(false),
29 is_primary(false),
30 my_energy_loss(0.)
31 {
32 }
33 
34 
35 PndDiscParticleMCPoint::PndDiscParticleMCPoint(Int_t track_id_, Int_t det_id_, Int_t volume_id_, TVector3 pos_in_,
36  TVector3 mom_in_, TVector3 pos_out_, TVector3 mom_out_,
37  Double_t total_tof_, Double_t total_length_, Double_t energy_loss_,
38  Double_t charge_, Double_t mass_, Int_t pdgCode_, Bool_t pos_in_inside_,
39  Bool_t is_primary_)
40 
41  : FairMCPoint(track_id_, det_id_, pos_in_, mom_in_, total_tof_, total_length_, energy_loss_),
42  volume_id(volume_id_), pos_out(pos_out_), mom_out(mom_out_), charge(charge_), mass(mass_),
43  pdgCode(pdgCode_), pos_in_inside(pos_in_inside_),
44  is_primary(is_primary_), my_energy_loss(energy_loss_)
45 {
46 
47 }
48 
49 
51 
52 
53 void PndDiscParticleMCPoint::Print(const Option_t *opt) const
54 {
55  std::cout << "-I- PndDiscParticleMCPoint"
56  << " fTrackID " << fTrackID << std::endl
57  << " fDetectorID " << fDetectorID << std::endl
58  << " Position in " << fX << "; " << fY << "; " << fZ << std::endl
59  << " Momentum in " << fPx << "; " << fPy << "; " << fPz << std::endl
60  << " Position out " << pos_out.x() << "; " << pos_out.y() << "; " << pos_out.z() << std::endl
61  << " Momentum out " << mom_out.x() << "; " << mom_out.y() << "; " << mom_out.z() << std::endl
62  << " fTime " << fTime << std::endl
63  << " Length " << fLength << std::endl
64  << " fELoss " << fELoss << std::endl
65  << " volume_id " << volume_id << std::endl
66  << " charge " << charge << std::endl
67  << " mass " << mass << std::endl
68  << " pdgCode " << pdgCode << std::endl
69  << " Pos in inside " << pos_in_inside << std::endl
70  << " is primary " << is_primary << std::endl
71  << " Option is " << opt << std::endl
72  ;
73 }
Double_t fX
Definition: PndCaloDraw.cxx:34
Double_t fZ
Definition: PndCaloDraw.cxx:34
ClassImp(PndDiscParticleMCPoint) PndDiscParticleMCPoint
Double_t
Double_t fY
Definition: PndCaloDraw.cxx:34
Int_t volume_id
FairMCPoint forces the implementation.
virtual void Print(const Option_t *opt=0) const