Belle II Software  release-08-01-10
GeoCOILCreator Class Reference

The GeoCoilCreator class. More...

#include <GeoCOILCreator.h>

Inheritance diagram for GeoCOILCreator:
Collaboration diagram for GeoCOILCreator:

Public Member Functions

 GeoCOILCreator ()
 Constructor of the GeoCOILCreator class.
 
virtual ~GeoCOILCreator ()
 The destructor of the GeoCOILCreator class.
 
virtual void create (const GearDir &content, G4LogicalVolume &topVolume, geometry::GeometryTypes type) override
 Creates the Geant4 objects for the structure geometry from Gearbox. More...
 
virtual void createPayloads (const GearDir &content, const IntervalOfValidity &iov) override
 Create the configuration objects and save them in the Database. More...
 
virtual void createFromDB (const std::string &name, G4LogicalVolume &topVolume, geometry::GeometryTypes type) override
 Create the geometry from the Database.
 
 BELLE2_DEFINE_EXCEPTION (DBNotImplemented, "Cannot create geometry from Database.")
 Exception that will be thrown in createFromDB if member is not yet implemented by creator.
 

Private Member Functions

COILGeometryPar readConfiguration (const GearDir &param)
 Creates a parameter object from the Gearbox XML parameters. More...
 
virtual void createGeometry (const COILGeometryPar &parameters, G4LogicalVolume &topVolume, geometry::GeometryTypes)
 Creates the ROOT Objects for the coil geometry. More...
 

Private Attributes

std::vector< G4VisAttributes * > m_VisAttributes
 Vector of pointers to G4VisAttributes.
 

Detailed Description

The GeoCoilCreator class.

The creator for the the Belle II coil.

Definition at line 38 of file GeoCOILCreator.h.

Member Function Documentation

◆ create()

void create ( const GearDir content,
G4LogicalVolume &  topVolume,
geometry::GeometryTypes  type 
)
overridevirtual

Creates the Geant4 objects for the structure geometry from Gearbox.

This is the 'old' way of building the geometry from Gearbox (xml files). Expected to be deprecated in the future.

Parameters
contentA reference to the content part of the parameter description, which should to be used to create the ROOT objects.
topVolumeGeant4 logical top volume.
typeGeometry type.

Implements CreatorBase.

Definition at line 80 of file GeoCOILCreator.cc.

81  {
82  COILGeometryPar config = readConfiguration(content);
83  createGeometry(config, topVolume, type);
84  }
COILGeometryPar readConfiguration(const GearDir &param)
Creates a parameter object from the Gearbox XML parameters.
virtual void createGeometry(const COILGeometryPar &parameters, G4LogicalVolume &topVolume, geometry::GeometryTypes)
Creates the ROOT Objects for the coil geometry.

◆ createGeometry()

void createGeometry ( const COILGeometryPar parameters,
G4LogicalVolume &  topVolume,
geometry::GeometryTypes   
)
privatevirtual

Creates the ROOT Objects for the coil geometry.

Parameters
parametersA database object containing the geometry information
topVolumeA Geant4 volume where to place the item

Definition at line 149 of file GeoCOILCreator.cc.

◆ createPayloads()

void createPayloads ( const GearDir content,
const IntervalOfValidity iov 
)
overridevirtual

Create the configuration objects and save them in the Database.

If more than one object is needed adjust accordingly

Reimplemented from CreatorBase.

Definition at line 87 of file GeoCOILCreator.cc.

◆ readConfiguration()

COILGeometryPar readConfiguration ( const GearDir param)
private

Creates a parameter object from the Gearbox XML parameters.

If more than one object is created these could be assigned to members or you could return a tuple.

Parameters
paramA reference to the content part of the parameter description, which should to be used to create the ROOT objects.

Definition at line 107 of file GeoCOILCreator.cc.


The documentation for this class was generated from the following files: