//////////////////////////////////////////////////////////////
| 56 | |
| 57 | /////////////////////////////////////////////////////////////////// |
| 58 | G4TrackingMessenger::G4TrackingMessenger(G4TrackingManager* trMan) |
| 59 | /////////////////////////////////////////////////////////////////// |
| 60 | : trackingManager(trMan) |
| 61 | { |
| 62 | steppingManager = trackingManager->GetSteppingManager(); |
| 63 | |
| 64 | TrackingDirectory = new G4UIdirectory("/tracking/"); |
| 65 | TrackingDirectory->SetGuidance("TrackingManager and SteppingManager control commands."); |
| 66 | |
| 67 | AbortCmd = new G4UIcmdWithoutParameter("/tracking/abort", this); |
| 68 | AbortCmd->SetGuidance("Abort current G4Track processing."); |
| 69 | |
| 70 | ResumeCmd = new G4UIcmdWithoutParameter("/tracking/resume", this); |
| 71 | ResumeCmd->SetGuidance("Resume current G4Track processing."); |
| 72 | |
| 73 | StoreTrajectoryCmd = new G4UIcmdWithAnInteger("/tracking/storeTrajectory", this); |
| 74 | StoreTrajectoryCmd->SetGuidance("Store trajectories or not."); |
| 75 | StoreTrajectoryCmd->SetGuidance(" 0 : Don't Store trajectories."); |
| 76 | StoreTrajectoryCmd->SetGuidance(" !=0 : Store trajectories."); |
| 77 | StoreTrajectoryCmd->SetGuidance(" 1 : Choose G4Trajectory as default."); |
| 78 | StoreTrajectoryCmd->SetGuidance(" 2 : Choose G4SmoothTrajectory as default."); |
| 79 | StoreTrajectoryCmd->SetGuidance(" 3 : Choose G4RichTrajectory as default."); |
| 80 | StoreTrajectoryCmd->SetGuidance(" 4 : Choose G4RichTrajectory with auxiliary points as default."); |
| 81 | StoreTrajectoryCmd->SetParameterName("Store", true); |
| 82 | StoreTrajectoryCmd->SetDefaultValue(0); |
| 83 | StoreTrajectoryCmd->SetRange("Store >=0 && Store <= 4"); |
| 84 | |
| 85 | VerboseCmd = new G4UIcmdWithAnInteger("/tracking/verbose", this); |
| 86 | #ifdef G4VERBOSE |
| 87 | VerboseCmd->SetGuidance("Set Verbose level of tracking category."); |
| 88 | VerboseCmd->SetGuidance(" -1 : Silent."); |
| 89 | VerboseCmd->SetGuidance(" 0 : Silent."); |
| 90 | VerboseCmd->SetGuidance(" 1 : Minimum information of each Step."); |
| 91 | VerboseCmd->SetGuidance(" 2 : Addition to Level=1, info of secondary particles."); |
| 92 | VerboseCmd->SetGuidance(" 3 : Addition to Level=1, pre/postStepoint information"); |
| 93 | VerboseCmd->SetGuidance(" after all AlongStep/PostStep process executions."); |
| 94 | VerboseCmd->SetGuidance(" 4 : Addition to Level=3, pre/postStepoint information"); |
| 95 | VerboseCmd->SetGuidance(" at each AlongStepPostStep process execution."); |
| 96 | VerboseCmd->SetGuidance(" 5 : Addition to Level=4, proposed Step length information"); |
| 97 | VerboseCmd->SetGuidance(" from each AlongStepPostStep process."); |
| 98 | VerboseCmd->SetParameterName("verbose_level", true); |
| 99 | VerboseCmd->SetDefaultValue(0); |
| 100 | VerboseCmd->SetRange("verbose_level >=-1 "); |
| 101 | #else |
| 102 | VerboseCmd->SetGuidance("You need to recompile the tracking category defining G4VERBOSE "); |
| 103 | #endif |
| 104 | } |
| 105 | |
| 106 | //////////////////////////////////////////// |
| 107 | G4TrackingMessenger::~G4TrackingMessenger() |
nothing calls this directly
no test coverage detected