53 productionModel( productionModel ), applyFermiMotion( NULL ),
54 setAngularRange( NULL ), addAngularRange( NULL )
59 applyFermiMotion->
SetGuidance(
"Switch on/off fermi motion in target "
68 "\n Set angular range of interest given in values of cosinus;\n"
69 " first two values give the range (descending or ascending),\n"
70 " third value gives number of equal divisions within the\n"
73 "ARangeNmbOfDivisions",
false );
75 "ARangeTop >= -1.0 && ARangeTop <= 1.0 && "
76 "ARangeBottom >= -1.0 && ARangeBottom <= 1.0 && "
77 "ARangeNmbOfDivisions >= 1" );
83 "\n Add angular range of interest given in values of cosinus;\n"
84 " first two values give the range (descending or ascending),\n"
85 " third value gives number of equal divisions within the\n"
88 "ARangeNmbOfDivisions",
false );
90 "ARangeTop >= -1.0 && ARangeTop <= 1.0 && "
91 "ARangeBottom >= -1.0 && ARangeBottom <= 1.0 && "
92 "ARangeNmbOfDivisions >= 1" );
99 delete applyFermiMotion;
100 delete setAngularRange;
101 delete addAngularRange;
110 if ( cmd == applyFermiMotion )
116 if ( cmd == setAngularRange )
123 static_cast< int >( vec.
z() ) );
126 if ( cmd == addAngularRange )
133 static_cast< int >( vec.
z() ) );
void SetParameterName(const char *theNameX, const char *theNameY, const char *theNameZ, G4bool omittable, G4bool currentAsDefault=false)
void SetAngularRange(G4double top, G4double bottom, G4int nmbOfDivs)
CexmcProductionModelMessenger(CexmcProductionModel *productionModel)
static G4bool GetNewBoolValue(const char *paramString)
void SetDefaultValue(G4bool defVal)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void AddAngularRange(G4double top, G4double bottom, G4int nmbOfDivs)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
const XML_Char int const XML_Char * value
static G4String physicsDirName
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)
T max(const T t1, const T t2)
brief Return the largest of the two arguments
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
~CexmcProductionModelMessenger()
void SetNewValue(G4UIcommand *cmd, G4String value)
void ApplyFermiMotion(G4bool on, G4bool fromMessenger=true)