#include <G4VUserParallelWorld.hh>
Definition at line 47 of file G4VUserParallelWorld.hh.
◆ G4VUserParallelWorld()
G4VUserParallelWorld::G4VUserParallelWorld |
( |
const G4String & |
worldName | ) |
|
◆ ~G4VUserParallelWorld()
G4VUserParallelWorld::~G4VUserParallelWorld |
( |
| ) |
|
|
virtual |
◆ Construct()
virtual void G4VUserParallelWorld::Construct |
( |
| ) |
|
|
pure virtual |
◆ ConstructSD()
void G4VUserParallelWorld::ConstructSD |
( |
| ) |
|
|
virtual |
◆ GetName()
const G4String & G4VUserParallelWorld::GetName |
( |
| ) |
|
|
inline |
◆ GetWorld()
Definition at line 57 of file G4VUserParallelWorld.cc.
58{
63 return pWorld;
64}
G4VPhysicalVolume * GetParallelWorld(const G4String &worldName)
static G4TransportationManager * GetTransportationManager()
void SetName(const G4String &pName)
◆ SetSensitiveDetector() [1/2]
Definition at line 67 of file G4VUserParallelWorld.cc.
70{
73 auto volmap = store->
GetMap();
74 auto pos = volmap.find(logVolName);
75 if(pos != volmap.cend())
76 {
77 if ((
pos->second.size()>1) && !multi)
78 {
79 G4String eM =
"More than one logical volumes of name <";
81 eM += "> are found and thus the sensitive detector <";
83 eM += "> cannot be uniquely assigned.";
84 G4Exception(
"G4VUserParallelWorld::SetSensitiveDetector()",
86 }
87 found = true;
88 for (std::size_t i = 0; i <
pos->second.size(); ++i)
89 {
91 }
92 }
93 if(!found)
94 {
95 G4String eM2 =
"No logical volume of name <";
96 eM2 += logVolName;
97 eM2 += "> is found. The specified sensitive detector <";
99 eM2 += "> couldn't be assigned to any volume.";
100 G4Exception(
"G4VUserParallelWorld::SetSensitiveDetector()",
102 }
103}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
const std::map< G4String, std::vector< G4LogicalVolume * > > & GetMap() const
static G4LogicalVolumeStore * GetInstance()
void SetSensitiveDetector(const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false)
Referenced by SetSensitiveDetector().
◆ SetSensitiveDetector() [2/2]
Definition at line 106 of file G4VUserParallelWorld.cc.
108{
111}
void SetSensitiveDetector(G4VSensitiveDetector *pSDetector)
static G4SDManager * GetSDMpointer()
void AddNewDetector(G4VSensitiveDetector *aSD)
◆ fWorldName
G4String G4VUserParallelWorld::fWorldName = "ParallelWorld" |
|
protected |
The documentation for this class was generated from the following files: