ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
ActsPlugins::Geant4DetectorSurfaceFactory Class Reference

A factory to convert Geant4 physical volumes into Geant4 detector elements. More...

#include <ActsPlugins/Geant4/Geant4DetectorSurfaceFactory.hpp>

Classes

struct  Cache
 Type alias for passive surface. More...
struct  Config
 Nested configuration struct that holds global lifetime configuration. More...
struct  Options
 Nested option struct that allows per call changeable configuration. More...

Public Types

using ElementFactory
 Type alias for detector element factory function.
using Geant4PassiveSurface = std::shared_ptr<Acts::Surface>
using Geant4SensitiveSurface
 Type alias for sensitive surface with detector element.

Public Member Functions

 Geant4DetectorSurfaceFactory ()=delete
 The Geant4 detector element factory.
 Geant4DetectorSurfaceFactory (const Config &config, std::unique_ptr< const Acts::Logger > mlogger=Acts::getDefaultLogger("Geant4DetectorSurfaceFactory", Acts::Logging::INFO))
 The Geant4 detector element factory with a configuration.
void construct (Cache &cache, const G4Transform3D &g4ToGlobal, const G4VPhysicalVolume &g4PhysVol, const Options &option)
 Construction method of the detector elements.

Detailed Description

A factory to convert Geant4 physical volumes into Geant4 detector elements.

Member Typedef Documentation

◆ ElementFactory

Initial value:
std::function<std::shared_ptr<Geant4DetectorElement>(
std::shared_ptr<Acts::Surface>, const G4VPhysicalVolume&,
const Acts::Transform3&, double)>
Eigen::Transform< double, 3, Eigen::Affine > Transform3
3D affine transformation stored as a 4x4 matrix
Definition Algebra.hpp:99

Type alias for detector element factory function.

◆ Geant4PassiveSurface

◆ Geant4SensitiveSurface

Initial value:
std::tuple<std::shared_ptr<Geant4DetectorElement>,
std::shared_ptr<Acts::Surface>>

Type alias for sensitive surface with detector element.

Constructor & Destructor Documentation

◆ Geant4DetectorSurfaceFactory() [1/2]

ActsPlugins::Geant4DetectorSurfaceFactory::Geant4DetectorSurfaceFactory ( )
delete

The Geant4 detector element factory.

◆ Geant4DetectorSurfaceFactory() [2/2]

ActsPlugins::Geant4DetectorSurfaceFactory::Geant4DetectorSurfaceFactory ( const Config & config,
std::unique_ptr< const Acts::Logger > mlogger = Acts::getDefaultLogger(          "Geant4DetectorSurfaceFactory", Acts::Logging::INFO) )
explicit

The Geant4 detector element factory with a configuration.

Parameters
configthe configuration of the factory
mloggera screen output logger

Member Function Documentation

◆ construct()

void ActsPlugins::Geant4DetectorSurfaceFactory::construct ( Cache & cache,
const G4Transform3D & g4ToGlobal,
const G4VPhysicalVolume & g4PhysVol,
const Options & option )

Construction method of the detector elements.

Parameters
cache[in,out] into which the Elements are filled
g4ToGlobalthe transformation to global
g4PhysVolthe current physical volume
optionthe factory creation option