Skip to content

Commit

Permalink
Improve print
Browse files Browse the repository at this point in the history
  • Loading branch information
brownd1978 committed Nov 19, 2024
1 parent 6f9d494 commit d1a83d4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Print/src/SurfaceStepPrinter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,12 @@ void mu2e::SurfaceStepPrinter::Print(const mu2e::SurfaceStep& obj, int ind,
<< std::setw(5) << std::setprecision(3) << obj.pathLength() << " "
<< std::setw(5) << std::setprecision(2) << obj.time() << " "
<< std::setw(7) << std::setprecision(2) << fmod(obj.time(),mbtime) << " "
<< std::setw(5) << std::setprecision(2) << obj.momentum().R() << " "
<< std::setw(8) << std::setprecision(1) << obj.startPosition().x()
<< std::setw(8) << std::setprecision(1) << obj.startPosition().y()
<< std::setw(8) << std::setprecision(1) << obj.startPosition().z()
<< std::setw(5) << std::setprecision(1) << obj.startPosition().x()
<< std::setw(5) << std::setprecision(1) << obj.startPosition().y()
<< std::setw(5) << std::setprecision(1) << obj.startPosition().z() << " "
<< std::setw(5) << std::setprecision(1) << obj.momentum().x()
<< std::setw(5) << std::setprecision(1) << obj.momentum().y()
<< std::setw(5) << std::setprecision(1) << obj.momentum().z()
<< std::endl;
}

Expand All @@ -90,5 +92,5 @@ void mu2e::SurfaceStepPrinter::PrintHeader(const std::string& tag,

void mu2e::SurfaceStepPrinter::PrintListHeader(std::ostream& os) {
if (verbose() < 1) return;
os << " ind SimPart SurfaceId eDep length time time%mb mom X Y Z\n";
os << " ind SimPart SurfaceId eDep length time time%mb pos X Y Z mom X Y Z\n";
}

0 comments on commit d1a83d4

Please sign in to comment.