5 #include <phparameter/PHParameters.h>
11 #include <Geant4/G4AssemblyVolume.hh>
12 #include <Geant4/G4Color.hh>
13 #include <Geant4/G4GDMLParser.hh>
14 #include <Geant4/G4GDMLReadStructure.hh>
15 #include <Geant4/G4LogicalVolume.hh>
16 #include <Geant4/G4LogicalVolumeStore.hh>
17 #include <Geant4/G4Material.hh>
18 #include <Geant4/G4PVPlacement.hh>
19 #include <Geant4/G4SolidStore.hh>
20 #include <Geant4/G4SystemOfUnits.hh>
21 #include <Geant4/G4VisAttributes.hh>
36 const std::string &dnam)
39 , m_Params(parameters)
40 , m_GDMPath(parameters->get_string_param(
"GDMPath"))
41 , m_TopVolName(parameters->get_string_param(
"TopVolName"))
42 , m_AbsorberActive(parameters->get_int_param(
"absorberactive"))
75 cout <<
"not found" << endl;
78 G4RotationMatrix *Rot =
new G4RotationMatrix();
80 avol->MakeImprint(logicWorld, g4vec, Rot, 0,
OverlapCheck());
81 vector<G4VPhysicalVolume *>::iterator
it = avol->GetVolumesIterator();
82 for (
unsigned int i = 0; i < avol->TotalImprintedVolumes(); i++)
93 G4LogicalVolume *logvol = physvol->GetLogicalVolume();
98 for (
int i = 0; i < (int) logvol->GetNoDaughters(); ++i)
100 G4VPhysicalVolume *physvol = logvol->GetDaughter(i);
110 cout <<
"BeastMagnet Detector:" << endl;
111 if (what ==
"ALL" || what ==
"VOLUME")
113 cout <<
"Version 0.1" << endl;
114 cout <<
"Parameters:" << endl;