10 const char* theName = filename.c_str();
20 std::cout.setf(std::ios::right,std::ios::adjustfield);
21 std::cout.setf(std::ios::scientific,std::ios::floatfield);
25 (*theFile).setf(std::ios::right,std::ios::adjustfield);
26 (*theFile).setf(std::ios::scientific|std::ios::uppercase|std::ios::showpos,std::ios::floatfield);
27 (*theFile).precision(5);
28 (*theFile) <<
"SimHit in "<<
s;
32 (*theFile) <<
"Event "<<num<<std::endl;
39 (*theFile).setf(std::ios::right,std::ios::adjustfield);
45 (*theFile) <<
" trk ";
47 (*theFile).setf(std::ios::right,std::ios::adjustfield);
53 (*theFile) <<
" p "<<pabs;
57 std::cout <<
" Eloss: "<<eloss<<std::endl;
58 (*theFile) <<
" e "<<eloss;
63 (*theFile).setf(std::ios::right,std::ios::adjustfield);
64 (*theFile).setf(std::ios::floatfield);
65 (*theFile).precision(6);
66 std::cout <<
" Local(en/ex): "<<localen.
x()<<
" "<< localen.
y()<<
" "
67 <<localen.
z()<<
" / "<<localex.
x()<<
" "<< localex.
y()<<
" "
68 <<localex.
z()<<std::endl;
69 (*theFile) <<
" en/ex "<<localen.
x()<<
" "<< localen.
y()<<
" "
70 <<localen.
z()<<
" / "<<localex.
x()<<
" "<< localex.
y()<<
" "
76 (*theFile).setf(std::ios::right,std::ios::adjustfield);
77 (*theFile).setf(std::ios::floatfield);
78 (*theFile).precision(6);
79 std::cout <<
" Global(en): "<<global.
x()<<
" "<< global.
y()<<
" "
80 <<global.
z()<<std::endl;
81 (*theFile) <<
" gl "<<global.
x()<<
" "<< global.
y()<<
" "
82 <<global.
z()<<std::endl;
static std::ofstream * theFile
void printTrack(int) const
void printLocal(LocalPoint, LocalPoint) const
void printPabs(float) const
SimHitPrinter(std::string)
void printGlobal(GlobalPoint) const
void startNewSimHit(std::string)
void printEloss(float) const