Photon_ROOT.cc
Go to the documentation of this file.
1 #include <utl/Photon.h>
2 #include <io/Photon_ROOT.h>
3 #include <io/Vector_ROOT.h>
4 #include <io/Point_ROOT.h>
5 
6 using namespace io;
7 
8 
9 ClassImp(Photon_ROOT);
10 
11 
13  fWeight(p.GetWeight()),
14  fSource(p.GetSource()),
15  fWavelength(p.GetWavelength()),
16  fPosition(p.GetPosition()),
17  fDirection(p.GetDirection()),
18  fTime(p.GetTime())
19 { }
20 
21 
22 void
24 {
25  p.SetWeight(fWeight);
26  p.SetSource(fSource);
28 
29  utl::Point pos;
30  fPosition >> pos;
31  p.SetPosition(pos);
32 
33  utl::Vector dir;
34  fDirection >> dir;
35  p.SetDirection(dir);
36 
37  p.SetTime(fTime);
38 }
Point object.
Definition: Point.h:32
void operator>>(utl::Photon &photon)
Definition: Photon_ROOT.cc:23
void SetPosition(const utl::Point &p)
Definition: Photon.h:33
Vector_ROOT fDirection
Definition: Photon_ROOT.h:39
void SetSource(const int source)
Definition: Photon.h:32
void SetWeight(const double w)
source of the photons. Should use Eye::LightSource enum types
Definition: Photon.h:31
Point_ROOT fPosition
Definition: Photon_ROOT.h:38
double fWavelength
Definition: Photon_ROOT.h:36
Vector object.
Definition: Vector.h:30
void SetWavelength(const double wl)
Definition: Photon.h:35
void SetTime(const utl::TimeInterval &t)
Definition: Photon.h:36
void SetDirection(const utl::Vector &v)
Definition: Photon.h:34
streamer for utl::Photon
Definition: Photon_ROOT.h:26

, generated on Tue Sep 26 2023.