EDepSimVPrimaryFactory.cc
Go to the documentation of this file.
2 
4  G4String subdir, G4String name,
6  bool makeDirectory) {
7  fSubDirName = subdir;
8  fName = name;
9  fParent = parent;
10  if (makeDirectory) {
11  fDir = new G4UIdirectory(GetPath());
12  std::string guidance = "Control of the " + fName
13  + " " + fSubDirName + " factory.";
14  fDir->SetGuidance(guidance.c_str());
15  }
16  else fDir = NULL;
17 }
18 
20  if (fDir) delete fDir;
21 }
22 
24  G4String dirName = fParent->GetPath()
25  + GetSubDir() + "/"
26  + GetName() + "/";
27  return dirName;
28 }
29 
31  return fName;
32 }
33 
35  return fSubDirName;
36 }
37 
static QCString name
Definition: declinfo.cpp:673
std::string string
Definition: nybbler.cc:12
VPrimaryFactory(G4String subdir, G4String name, EDepSim::UserPrimaryGeneratorMessenger *parent, bool makeDirectory)
EDepSim::UserPrimaryGeneratorMessenger * fParent
The messenger that is holding this set of sub-commands.
G4String fSubDirName
The sub-directory holding this factory.
G4String GetPath()
Get the base directory for the messenger commands.
G4String fName
The short name of this factory.
def parent(G, child, parent_type)
Definition: graph.py:67