Geant4  10.02.p03
ClusteringAlgoMessenger Class Reference

#include <ClusteringAlgoMessenger.hh>

Inheritance diagram for ClusteringAlgoMessenger:
Collaboration diagram for ClusteringAlgoMessenger:

Public Member Functions

 ClusteringAlgoMessenger (ClusteringAlgo *)
 
 ~ClusteringAlgoMessenger ()
 
virtual void SetNewValue (G4UIcommand *, G4String)
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
G4bool operator== (const G4UImessenger &messenger) const
 
G4bool CommandsShouldBeInMaster () const
 

Private Attributes

ClusteringAlgofpClusteringAlgo
 
G4UIdirectoryfpAppliDir
 
G4UIcmdWithAnIntegerfpMinPtsCmd
 
G4UIcmdWithADoublefpProbCmd
 
G4UIcmdWithADoubleAndUnitfpEpsCmd
 
G4UIcmdWithADoubleAndUnitfpEminCmd
 
G4UIcmdWithADoubleAndUnitfpEmaxCmd
 

Additional Inherited Members

- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (G4String s)
 
G4double StoD (G4String s)
 
G4bool StoB (G4String s)
 
void AddUIcommand (G4UIcommand *newCommand)
 
void CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 
- Protected Attributes inherited from G4UImessenger
G4UIdirectorybaseDir
 
G4String baseDirName
 
G4bool commandsShouldBeInMaster
 

Detailed Description

Definition at line 49 of file ClusteringAlgoMessenger.hh.

Constructor & Destructor Documentation

◆ ClusteringAlgoMessenger()

ClusteringAlgoMessenger::ClusteringAlgoMessenger ( ClusteringAlgo pClustAlgo)

Definition at line 49 of file ClusteringAlgoMessenger.cc.

50 :G4UImessenger(),fpClusteringAlgo(pClustAlgo)
51 {
52  fpAppliDir = new G4UIdirectory("/clustering/");
53  fpAppliDir->SetGuidance("commands specific to this example");
54 
55  fpMinPtsCmd = new G4UIcmdWithAnInteger("/clustering/algo/setMinPts",this);
56  fpMinPtsCmd->SetGuidance("Minimal number of points to create a cluster");
57  fpMinPtsCmd->SetParameterName("MinPts",false);
58  fpMinPtsCmd->SetRange("MinPts>0");
60 
61  fpProbCmd = new G4UIcmdWithADouble("/clustering/algo/setSelectionProb",this);
62  fpProbCmd->SetGuidance("Probability to select potential "
63  "damage according to the geometry");
64  fpProbCmd->SetParameterName("Prob",false);
65  fpProbCmd->SetRange("Prob>0");
67 
68  fpEpsCmd = new G4UIcmdWithADoubleAndUnit("/clustering/algo/setEps",this);
69  fpEpsCmd->SetGuidance("Maximal distance between points to create a cluster");
70  fpEpsCmd->SetParameterName("Eps",false);
71  fpEpsCmd->SetRange("Eps>0");
73 
74  fpEminCmd = new G4UIcmdWithADoubleAndUnit("/clustering/algo/setEmin",this);
75  fpEminCmd->SetGuidance("Energy to have a probability "
76  "to create a strand break = 0");
77  fpEminCmd->SetParameterName("Emin",false);
78  fpEminCmd->SetRange("Emin>=0");
80 
81  fpEmaxCmd = new G4UIcmdWithADoubleAndUnit("/clustering/algo/setEmax",this);
82  fpEmaxCmd->SetGuidance("Energy to have a probability "
83  "to create a strand break = 1");
84  fpEmaxCmd->SetParameterName("Emax",false);
85  fpEmaxCmd->SetRange("Emax>=0");
87 }
G4UIcmdWithAnInteger * fpMinPtsCmd
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4UIcmdWithADouble * fpProbCmd
G4UIcmdWithADoubleAndUnit * fpEmaxCmd
void SetRange(const char *rs)
Definition: G4UIcommand.hh:125
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:239
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4UIcmdWithADoubleAndUnit * fpEminCmd
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4UIcmdWithADoubleAndUnit * fpEpsCmd
Here is the call graph for this function:

◆ ~ClusteringAlgoMessenger()

ClusteringAlgoMessenger::~ClusteringAlgoMessenger ( )

Definition at line 91 of file ClusteringAlgoMessenger.cc.

92 {
93  delete fpMinPtsCmd;
94  delete fpProbCmd;
95  delete fpEpsCmd;
96  delete fpEminCmd;
97  delete fpEmaxCmd;
98  delete fpAppliDir;
99 }
G4UIcmdWithAnInteger * fpMinPtsCmd
G4UIcmdWithADouble * fpProbCmd
G4UIcmdWithADoubleAndUnit * fpEmaxCmd
G4UIcmdWithADoubleAndUnit * fpEminCmd
G4UIcmdWithADoubleAndUnit * fpEpsCmd

Member Function Documentation

◆ SetNewValue()

void ClusteringAlgoMessenger::SetNewValue ( G4UIcommand pCommand,
G4String  pNewValue 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 103 of file ClusteringAlgoMessenger.cc.

105 {
106  if(pCommand == fpMinPtsCmd)
107  {
109  }
110  if(pCommand == fpProbCmd)
111  {
113  }
114  if(pCommand == fpEpsCmd)
115  {
117  }
118  if(pCommand == fpEminCmd)
119  {
121  }
122  if(pCommand == fpEmaxCmd)
123  {
125  }
126 }
void SetEMinDamage(G4double val)
G4UIcmdWithAnInteger * fpMinPtsCmd
static G4int GetNewIntValue(const char *paramString)
void SetEps(G4double val)
static G4double GetNewDoubleValue(const char *paramString)
G4UIcmdWithADouble * fpProbCmd
G4UIcmdWithADoubleAndUnit * fpEmaxCmd
static G4double GetNewDoubleValue(const char *paramString)
void SetEMaxDamage(G4double val)
void SetSPointsProb(G4double val)
G4UIcmdWithADoubleAndUnit * fpEminCmd
void SetMinPts(G4int val)
G4UIcmdWithADoubleAndUnit * fpEpsCmd
Here is the call graph for this function:

Member Data Documentation

◆ fpAppliDir

G4UIdirectory* ClusteringAlgoMessenger::fpAppliDir
private

Definition at line 59 of file ClusteringAlgoMessenger.hh.

◆ fpClusteringAlgo

ClusteringAlgo* ClusteringAlgoMessenger::fpClusteringAlgo
private

Definition at line 58 of file ClusteringAlgoMessenger.hh.

◆ fpEmaxCmd

G4UIcmdWithADoubleAndUnit* ClusteringAlgoMessenger::fpEmaxCmd
private

Definition at line 64 of file ClusteringAlgoMessenger.hh.

◆ fpEminCmd

G4UIcmdWithADoubleAndUnit* ClusteringAlgoMessenger::fpEminCmd
private

Definition at line 63 of file ClusteringAlgoMessenger.hh.

◆ fpEpsCmd

G4UIcmdWithADoubleAndUnit* ClusteringAlgoMessenger::fpEpsCmd
private

Definition at line 62 of file ClusteringAlgoMessenger.hh.

◆ fpMinPtsCmd

G4UIcmdWithAnInteger* ClusteringAlgoMessenger::fpMinPtsCmd
private

Definition at line 60 of file ClusteringAlgoMessenger.hh.

◆ fpProbCmd

G4UIcmdWithADouble* ClusteringAlgoMessenger::fpProbCmd
private

Definition at line 61 of file ClusteringAlgoMessenger.hh.


The documentation for this class was generated from the following files: