1 | // $Id: ESimpDetPhoton.cc 2620 2006-03-24 16:27:06Z moreggia $ |
---|
2 | // Author: Sylvain Moreggia 2006/03/21 |
---|
3 | |
---|
4 | /***************************************************************************** |
---|
5 | * ESAF: Euso Simulation and Analysis Framework * |
---|
6 | * * |
---|
7 | * Id: ESimpDetPhoton * |
---|
8 | * Package: <packagename> * |
---|
9 | * Coordinator: <coordinator> * |
---|
10 | * * |
---|
11 | *****************************************************************************/ |
---|
12 | |
---|
13 | //_____________________________________________________________________________ |
---|
14 | // |
---|
15 | // ESimpDetPhoton |
---|
16 | // |
---|
17 | // <extensive class description> |
---|
18 | // |
---|
19 | // Config file parameters |
---|
20 | // ====================== |
---|
21 | // |
---|
22 | // <parameter name>: <parameter description> |
---|
23 | // -Valid options: <available options> |
---|
24 | // |
---|
25 | |
---|
26 | #include "ESimpDetPhoton.hh" |
---|
27 | #include "Etypes.hh" |
---|
28 | |
---|
29 | ClassImp(ESimpDetPhoton) |
---|
30 | |
---|
31 | //_____________________________________________________________________________ |
---|
32 | ESimpDetPhoton::ESimpDetPhoton() { |
---|
33 | // |
---|
34 | // Constructor |
---|
35 | // |
---|
36 | |
---|
37 | } |
---|
38 | |
---|
39 | //_____________________________________________________________________________ |
---|
40 | ESimpDetPhoton::~ESimpDetPhoton() { |
---|
41 | // |
---|
42 | // Destructor |
---|
43 | // |
---|
44 | } |
---|
45 | |
---|
46 | //_____________________________________________________________________________ |
---|
47 | ESimpDetPhoton::ESimpDetPhoton(const ESimpDetPhoton& other) { |
---|
48 | // |
---|
49 | // copy ctor |
---|
50 | // |
---|
51 | |
---|
52 | other.Copy( *this ); |
---|
53 | } |
---|
54 | |
---|
55 | //_____________________________________________________________________________ |
---|
56 | ESimpDetPhoton::ESimpDetPhoton(const EPhoton& other) { |
---|
57 | // |
---|
58 | // copy ctor |
---|
59 | // |
---|
60 | |
---|
61 | Clear(); |
---|
62 | other.Copy( *this ); |
---|
63 | } |
---|
64 | |
---|
65 | //_____________________________________________________________________________ |
---|
66 | void ESimpDetPhoton::Copy( TObject& other) const { |
---|
67 | // |
---|
68 | // copy |
---|
69 | // |
---|
70 | |
---|
71 | ((ESimpDetPhoton&)other).fType = fType; |
---|
72 | ((ESimpDetPhoton&)other).fShowerPosX = fShowerPosX; |
---|
73 | ((ESimpDetPhoton&)other).fShowerPosY = fShowerPosY; |
---|
74 | ((ESimpDetPhoton&)other).fShowerPosZ = fShowerPosZ; |
---|
75 | |
---|
76 | ((ESimpDetPhoton&)other).fTheta = fTheta; |
---|
77 | ((ESimpDetPhoton&)other).fPhi = fPhi; |
---|
78 | ((ESimpDetPhoton&)other).fLambda = fLambda; |
---|
79 | ((ESimpDetPhoton&)other).fTime = fTime; |
---|
80 | |
---|
81 | ((ESimpDetPhoton&)other).fAtmoHistory = fAtmoHistory; |
---|
82 | ((ESimpDetPhoton&)other).fFate = fFate; |
---|
83 | ((ESimpDetPhoton&)other).fPosX = fPosX; |
---|
84 | ((ESimpDetPhoton&)other).fPosY = fPosY; |
---|
85 | ((ESimpDetPhoton&)other).fPosZ = fPosZ; |
---|
86 | } |
---|
87 | |
---|
88 | //_____________________________________________________________________________ |
---|
89 | void ESimpDetPhoton::Clear( Option_t* opt) { |
---|
90 | |
---|
91 | EPhoton::Clear(opt); |
---|
92 | |
---|
93 | fShowerPosX = -kHuge; |
---|
94 | fShowerPosY = -kHuge; |
---|
95 | fShowerPosZ = -kHuge; |
---|
96 | |
---|
97 | fAtmoHistory = -1000; |
---|
98 | fFate = -1000; |
---|
99 | } |
---|
100 | |
---|
101 | |
---|