FDsimG4StoreOpticalHit.cc
Go to the documentation of this file.
1 #include <iostream>
3 #include "TDirectory.h"
4 
5 using namespace TelescopeSimulatorLX;
6 
8 {
9  Reset();
10 }
11 
12 
14 {
15 }
16 
17 
19 {
20  fEnergy = 0.0;
21  fWavelength = 0.0;
22  fTime = 0.0;
23 
24  fPosX = 0.0;
25  fPosY = 0.0;
26  fPosZ = 0.0;
27  fPosR = 0.0;
28  fLocalPosX = 0.0;
29  fLocalPosY = 0.0;
30  fLocalPosZ = 0.0;
31 
32  fPixelPosX = 0.0;
33  fPixelPosY = 0.0;
34  fPixelPosZ = 0.0;
35 
36  fDirX = 0.0;
37  fDirY = 0.0;
38  fDirZ = 0.0;
39 
40  fWeight = 0.0;
41 
42  fHitID = 0;
43  fPMTid = 0;
44 }
45 
46 
48 {
49  fEnergy = right.fEnergy;
50  fWavelength = right.fWavelength;
51  fTime = right.fTime;
52 
53  fPosX = right.fPosX;
54  fPosY = right.fPosY;
55  fPosZ = right.fPosZ;
56  fPosR = right.fPosR;
57  fLocalPosX = right.fLocalPosX;
58  fLocalPosY = right.fLocalPosY;
59  fLocalPosZ = right.fLocalPosZ;
60  fPixelPosX = right.fPixelPosX;
61  fPixelPosY = right.fPixelPosY;
62  fPixelPosZ = right.fPixelPosZ;
63 
64  fDirX = right.fDirX;
65  fDirY = right.fDirY;
66  fDirZ = right.fDirZ;
67 
68  fWeight = right.fWeight;
69 
70  fHitID = right.fHitID;
71  fPMTid = right.fPMTid;
72 
73 }
74 
75 
78 {
79  fEnergy = right.fEnergy;
80  fWavelength = right.fWavelength;
81  fTime = right.fTime;
82 
83  fPosX = right.fPosX;
84  fPosY = right.fPosY;
85  fPosZ = right.fPosZ;
86  fPosR = right.fPosR;
87  fLocalPosX = right.fLocalPosX;
88  fLocalPosY = right.fLocalPosY;
89  fLocalPosZ = right.fLocalPosZ;
90  fPixelPosX = right.fPixelPosX;
91  fPixelPosY = right.fPixelPosY;
92  fPixelPosZ = right.fPixelPosZ;
93 
94  fDirX = right.fDirX;
95  fDirY = right.fDirY;
96  fDirZ = right.fDirZ;
97 
98  fWeight = right.fWeight;
99 
100  fHitID = right.fHitID;
101  fPMTid = right.fPMTid;
102 
103  return *this;
104 }
105 
106 
108 {
109  return (this==&right) ? 1 : 0;
110 }
111 
112 
114 {
115  std::cout << "*****************************************" << std::endl;
116  std::cout << " Optical HIT " << std::endl;
117  std::cout << " Energy (eV) : " << fEnergy << std::endl;
118  std::cout << " Wavelength (nm) : " << fWavelength << std::endl;
119  std::cout << " Radius (mm) : " << fPosR << std::endl;
120  std::cout << " Time (ns) : " << fTime << std::endl;
121  std::cout << " Pixel ID : " << fPMTid << std::endl;
122  std::cout << " Weight : " << fWeight << std::endl;
123  std::cout << "*****************************************" << std::endl;
124 }
int operator==(const FDsimG4StoreOpticalHit &) const
const FDsimG4StoreOpticalHit & operator=(const FDsimG4StoreOpticalHit &)

, generated on Tue Sep 26 2023.