00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00012 #include "Digitization/DigiPhoton.h"
00013 #include "Digitization/DigiScintHit.h"
00014 #include <iostream>
00015
00016 ClassImp(DigiPhoton)
00017
00018 using namespace std;
00019
00020
00021
00022 DigiPhoton::DigiPhoton() :
00023 fHit(0),
00024 fWavelength(0),
00025 fT(0),
00026 fPos(0,0,0),
00027 fDir(0,0,0)
00028 { }
00029
00030
00031
00032 DigiPhoton::DigiPhoton(const DigiScintHit* hit,
00033 double wavelength, double t,
00034 double x, double y, double z,
00035 double u, double v, double w) :
00036 fHit(hit),
00037 fWavelength(wavelength),
00038 fT(t),
00039 fPos(x,y,z),
00040 fDir(u,v,w)
00041 { }
00042
00043 DigiPhoton::DigiPhoton(const DigiScintHit* hit,
00044 double wavelength, double t,
00045 const TVector3& pos,
00046 const TVector3& dir ) :
00047 fHit(hit),
00048 fWavelength(wavelength),
00049 fT(t),
00050 fPos(pos),
00051 fDir(dir)
00052 {
00053 }
00054
00055
00056 void DigiPhoton::Print(Option_t*) const
00057 {
00058 cout << "DigiPhoton: "
00059 << WaveLength()/Munits::nm << "nm "
00060 << T()/Munits::ns << "ns "
00061 << "(" << X() << "," << Y() << "," << Z() << ") "
00062 << "<" << U() << "," << V() << "," << W() << "> "
00063 << endl;
00064 }
00065
00067
00068
00069
00070
00071
00072
00073
00074