g4system
Loading...
Searching...
No Matches
g4objectsFactory.h File Reference

Abstract factory that converts a GEMC DB GVolume into Geant4 objects. More...

#include <memory>
#include <string>
#include <string_view>
#include <unordered_map>
#include "gbase.h"
#include "gvolume.h"
#include "g4volume.h"
#include "g4system_options.h"
#include "G4LogicalVolume.hh"
#include "G4PVPlacement.hh"
#include "G4RotationMatrix.hh"
#include "G4ThreeVector.hh"
#include "G4VisAttributes.hh"
Include dependency graph for g4objectsFactory.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  G4ObjectsFactory
 Base class orchestrating the conversion of a GVolume into a Geant4 representation. More...
 

Detailed Description

Subclasses implement buildSolid() to create the G4VSolid. Default implementations for logical and physical creation are provided and can be overridden when needed.

Typical sequence used by the world builder:

  1. create or reuse G4VSolid
  2. create or reuse G4LogicalVolume (material + visualization)
  3. create or reuse G4VPhysicalVolume (placement into mother)

Definition in file g4objectsFactory.h.