ATLAS Offline Software
Loading...
Searching...
No Matches
Geo2G4LogicalVolumeFactory.cxx File Reference
#include "Geo2G4LogicalVolumeFactory.h"
#include "Geo2G4SolidFactory.h"
#include "GeoMaterial2G4/Geo2G4MaterialFactory.h"
#include "GeoModelKernel/GeoLogVol.h"
#include "G4LogicalVolume.hh"
#include "G4Material.hh"
#include "SimHelpers/ServiceAccessor.h"
Include dependency graph for Geo2G4LogicalVolumeFactory.cxx:

Go to the source code of this file.

Functions

G4LogicalVolume *Geo2G4LogicalVolumeFactory::Build ATLAS_NOT_THREAD_SAFE (const GeoLogVol *theLog)

Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

G4LogicalVolume *Geo2G4LogicalVolumeFactory::Build ATLAS_NOT_THREAD_SAFE ( const GeoLogVol * theLog)

Definition at line 20 of file Geo2G4LogicalVolumeFactory.cxx.

21{
22 static Geo2G4SolidFactory theSolidFactory;
23 static Geo2G4MaterialFactory theMaterialFactory;
24 //
25 // Get Material from GeoModel
26 //
27 G4LogicalVolume *theG4Log{};
28 G4Material* theG4Mat=theMaterialFactory.Build(theLog->getMaterial());
29
30 G4VSolid * theG4Solid = theSolidFactory.Build(theLog->getShape(),theLog->getName());
31
32 theG4Log = new G4LogicalVolume(theG4Solid,
33 theG4Mat,
34 theLog->getName(),
35 0,0,0); ;
36
37 return theG4Log;
38}
G4Material * Build(const GeoMaterial *)