+// protected methods
+
+void TG4SteppingAction::PrintTrackInfo(const G4Track* track) const
+{
+// Prints the track info
+// - taken from private G4TrackingManager::Verbose()
+// and the standard header for verbose tracking
+// - taken from G4SteppingVerbose::TrackingStarted().
+// ---
+
+ // print track info
+ G4cout << G4endl;
+ G4cout << "*******************************************************"
+ << "**************************************************"
+ << G4endl;
+ G4cout << "* G4Track Information: "
+ << " Particle = " << track->GetDefinition()->GetParticleName()
+ << ","
+ << " Track ID = " << track->GetTrackID()
+ << ","
+ << " Parent ID = " << track->GetParentID()
+ << G4endl;
+ G4cout << "*******************************************************"
+ << "**************************************************"
+ << G4endl;
+ G4cout << G4endl;
+
+ // print header
+#ifdef G4_USE_G4BESTUNIT_FOR_VERBOSE
+ G4cout << G4std::setw( 5) << "Step#" << " "
+ << G4std::setw( 8) << "X" << " "
+ << G4std::setw( 8) << "Y" << " "
+ << G4std::setw( 8) << "Z" << " "
+ << G4std::setw( 9) << "KineE" << " "
+ << G4std::setw( 8) << "dE" << " "
+ << G4std::setw(12) << "StepLeng" << " "
+ << G4std::setw(12) << "TrackLeng" << " "
+ << G4std::setw(12) << "NextVolume" << " "
+ << G4std::setw( 8) << "ProcName" << G4endl;
+#else
+ G4cout << G4std::setw( 5) << "Step#" << " "
+ << G4std::setw( 8) << "X(mm)" << " "
+ << G4std::setw( 8) << "Y(mm)" << " "
+ << G4std::setw( 8) << "Z(mm)" << " "
+ << G4std::setw( 9) << "KinE(MeV)" << " "
+ << G4std::setw( 8) << "dE(MeV)" << " "
+ << G4std::setw( 8) << "StepLeng" << " "
+ << G4std::setw( 9) << "TrackLeng" << " "
+ << G4std::setw(11) << "NextVolume" << " "
+ << G4std::setw( 8) << "ProcName" << G4endl;
+#endif
+}
+