55 runManager( runManager ), setProductionModel( NULL ), setGdmlFile( NULL ),
56 setGuiMacro( NULL ), setEventCountPolicy( NULL ),
57 setEventDataVerboseLevel( NULL ),
58 #ifdef CEXMC_USE_PERSISTENCY
59 replayEvents( NULL ), seekTo( NULL ), skipInteractionsWithoutEDT( NULL ),
61 registerScenePrimitives( NULL ), validateGdmlFile( NULL )
85 " all - all events are accounted,\n"
86 " interaction - events with studied interaction triggered,\n"
87 " trigger - only events with trigger" );
98 " trigger - when energy deposit triggered (EDT),\n"
99 " interaction - when studied interaction triggered (TPT)" );
107 #ifdef CEXMC_USE_PERSISTENCY
110 replayEvents->SetGuidance(
"Replay specified number of events "
111 "\n (available only if a project is read)."
112 "\n If number of events is 0 (or not specified) then all"
113 "\n run will be replayed" );
114 replayEvents->SetParameterName(
"ReplayEvents",
true );
115 replayEvents->SetRange(
"ReplayEvents >= 0" );
116 replayEvents->SetDefaultValue( 0 );
121 seekTo->SetGuidance(
"Seek to specified event id "
122 "(available only if a project is read)."
123 "\n 'seekto 0' brings to the start of run, 'seekto 4' - to the"
124 "\n first recorded event with interaction after fourth recorded"
125 "\n event with trigger" );
126 seekTo->SetParameterName(
"SeekTo",
false );
127 seekTo->SetRange(
"SeekTo >= 0" );
128 seekTo->SetDefaultValue( 0 );
134 skipInteractionsWithoutEDT->SetGuidance(
"Do not write interactions into "
135 ".fdb file\n if event was not triggered (effective only when a "
136 "project is read and then\n written to another project and only if "
137 "event data verbose level is\n 'trigger')" );
138 skipInteractionsWithoutEDT->SetParameterName(
"skipInteractionsWithoutEDT",
140 skipInteractionsWithoutEDT->SetDefaultValue(
true );
149 "(radial lines,\n inner crystals highlights etc.)" );
170 #ifdef CEXMC_USE_PERSISTENCY
173 delete skipInteractionsWithoutEDT;
191 if ( value ==
"pi0" )
196 if ( value ==
"eta" )
220 if ( value ==
"interaction" )
225 if ( value ==
"trigger" )
240 if ( value ==
"nosave" )
245 if ( value ==
"trigger" )
250 if ( value ==
"interaction" )
259 #ifdef CEXMC_USE_PERSISTENCY
260 if ( cmd == replayEvents )
271 if ( cmd == skipInteractionsWithoutEDT )
273 runManager->SkipInteractionsWithoutEDTonWrite(
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4int GetNewIntValue(const char *paramString)
CexmcRunManagerMessenger(CexmcRunManager *runManager)
~CexmcRunManagerMessenger()
G4UIcmdWithAString * setEventDataVerboseLevel
static G4bool GetNewBoolValue(const char *paramString)
void SetDefaultValue(G4bool defVal)
G4UIcmdWithABool * validateGdmlFile
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4UIcmdWithAString * setGdmlFile
static G4String physicsDirName
static G4String runDirName
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)
void SetNewValue(G4UIcommand *cmd, G4String value)
void SetGdmlFileValidation(G4bool on=true)
void RegisterScenePrimitives(void)
CexmcRunManager * runManager
void SetGdmlFileName(const G4String &gdmlFileName_)
void SetGuiMacroName(const G4String &guiMacroName_)
void SetDefaultValue(const char *defVal)
G4UIcmdWithAString * setEventCountPolicy
CexmcEventDataVerboseLevel
void SetCandidates(const char *candidateList)
G4UIcmdWithoutParameter * registerScenePrimitives
static G4String visDirName
G4UIcmdWithAString * setProductionModel
void SetProductionModelType(CexmcProductionModelType productionModelType_)
void SetEventCountPolicy(CexmcEventCountPolicy value)
G4UIcmdWithAString * setGuiMacro
void SetEventDataVerboseLevel(CexmcEventDataVerboseLevel value)
static G4String geometryDirName