1 | // $Id: Photon.cc 2855 2010-11-25 15:47:14Z biktem $ |
---|
2 | // |
---|
3 | |
---|
4 | // Author: A.Thea 2004/07/19 |
---|
5 | |
---|
6 | /***************************************************************************** |
---|
7 | * ESAF: Euso Simulation and Analysis Framework * |
---|
8 | * * |
---|
9 | * Id: Photon * |
---|
10 | * Package: Optics * |
---|
11 | * Coordinator: Alessandro.Thea * |
---|
12 | * * |
---|
13 | *****************************************************************************/ |
---|
14 | |
---|
15 | //_____________________________________________________________________________ |
---|
16 | // |
---|
17 | // Photon |
---|
18 | // ====== |
---|
19 | // |
---|
20 | |
---|
21 | #include "Photon.hh" |
---|
22 | |
---|
23 | ClassImp(Photon) |
---|
24 | |
---|
25 | //______________________________________________________________________________ |
---|
26 | Photon::Photon(): time(0), wl(0), pos(0,0,0), dir(0,0,1), posOnIfs(0,0,0), |
---|
27 | pixelUid(-1), iterations(0), history(0), fate(0), hit(kFALSE), |
---|
28 | hitIfs(kFALSE), MChit(kFALSE), madeSignal(kFALSE), parent(0),id(-1) { |
---|
29 | // |
---|
30 | // Constructor |
---|
31 | // |
---|
32 | } |
---|
33 | |
---|
34 | //______________________________________________________________________________ |
---|
35 | Photon::~Photon() { |
---|
36 | // |
---|
37 | // Destructor |
---|
38 | // |
---|
39 | } |
---|
40 | |
---|
41 | //______________________________________________________________________________ |
---|
42 | void Photon::Dump() const { |
---|
43 | // |
---|
44 | // Dump photon status |
---|
45 | // |
---|
46 | |
---|
47 | cout << "-Ph---------------------------------" << endl; |
---|
48 | cout << " ph.time: " << time << endl; |
---|
49 | cout << " ph.wl: " << wl << endl; |
---|
50 | cout << " ph.iterations: " << iterations << endl; |
---|
51 | cout << " ph.history: " << history << endl; |
---|
52 | cout << " ph.fate: " << fate << endl; |
---|
53 | cout << " ph.hit: " << hit << endl; |
---|
54 | cout << " ph.hitIfs: " << hitIfs << endl; |
---|
55 | cout << " ph.MChit: " << MChit << endl; |
---|
56 | cout << " ph.madeSignal: " << madeSignal << endl; |
---|
57 | cout << " ph.pixelUid: " << pixelUid << endl; |
---|
58 | cout << " ph.parent: " << parent << endl; |
---|
59 | cout << "ph.dir:" << endl; |
---|
60 | cout << Form(" X = %.30E\n Y = %.30E\n Z = %.30E", |
---|
61 | dir[X],dir[Y],dir[Z]) << endl; |
---|
62 | cout << "ph.pos:" << endl; |
---|
63 | cout << Form(" X = %.30E\n Y = %.30E\n Z = %.30E", |
---|
64 | pos[X],pos[Y],pos[Z]) << endl; |
---|
65 | cout << "ph.posOnIfs:" << endl; |
---|
66 | cout << Form(" X = %.30E\n Y = %.30E\n Z = %.30E", |
---|
67 | posOnIfs[X],posOnIfs[Y],posOnIfs[Z]) << endl; |
---|
68 | cout << "------------------------------------" << endl; |
---|
69 | } |
---|
70 | |
---|