12 const char* theName = filename.c_str();
20 (*theFile) <<
"Event: "<<eve<<
" "<<s<<
" "<<d<<
" "<<i<<
" Track "<<j <<
" " <<
k;
24 (*theFile) <<
"\n Local(cm): "<<p.
x()<<
" "<<p.
y()<<
" "<<p.
z()
25 <<
" ; "<<e.
x()<<
" "<<e.
y()<<
" "<<e.
z();
29 (*theFile) <<
"\n Global(mm): "<<p.
x()<<
" "<<p.
y()<<
" "<<p.
z()
30 <<
" ; "<<e.
x()<<
" "<<e.
y()<<
" "<<e.
z();
34 (*theFile)<<
"\n " << nam <<
" p(GeV): " << p <<
" Edep(GeV): "<<de<<
" ToF: "<<tof;
37 (*theFile)<<
" Momentum "<<px<<
" "<<py<<
" " << pz <<
"\n";
void printHitData(const std::string &, float, float, float) const
void printGlobalMomentum(float, float, float) const
static std::ofstream * theFile
void printGlobal(const Local3DPoint &, const Local3DPoint &) const
void printLocal(const Local3DPoint &, const Local3DPoint &) const
TkSimHitPrinter(const std::string &)
void startNewSimHit(const std::string &, const std::string &, int, int, int, int)