12 const char* theName = filename.c_str();
21 (*theFile) <<
"Event: "<<eve<<
" "<<s<<
" "<<d<<
" "<<i<<
" Track "<<j;
25 (*theFile) <<
" Local: "<<p.
x()<<
" "<<p.
y()<<
" "<<p.
z()
26 <<
" ; "<<e.
x()<<
" "<<e.
y()<<
" "<<e.
z();
30 (*theFile) <<
" Global: "<<p.
x()<<
" "<<p.
y()<<
" "<<p.
z()
31 <<
" ; "<<e.
x()<<
" "<<e.
y()<<
" "<<e.
z();
35 (*theFile)<<
" Energy: "<<energy<<
" ToF: "<<tof;
38 (*theFile)<<
" Momentum "<<m*sign<<
" Particle "<<
s;
41 (*theFile)<<
" Momentum "<<px<<
" "<<py<<
" "<<pz<<std::endl;
45 dr = p.
x()*(e-
p).
x()+ p.
y()*(e-
p).
y()+p.
z()*(e-
p).
z();
TkSimHitPrinter(std::string)
void printMomentumOfTrack(float, std::string, int sign) const
void printHitData(float, float) const
void printGlobalMomentum(float, float, float) const
static std::ofstream * theFile
void printGlobal(Local3DPoint, Local3DPoint) const
void startNewSimHit(std::string, std::string, int, int, int)
void printLocal(Local3DPoint, Local3DPoint) const
int getPropagationSign(Local3DPoint, Local3DPoint)