DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
dd4hep::sim::Geant4PlacementParameterisation Class Reference

Class to dump the records of the intrinsic Geant4 event model. More...

#include <Geant4PlacementParameterisation.h>

Inheritance diagram for dd4hep::sim::Geant4PlacementParameterisation:

Classes

struct  Dimension
 Helper structure to cache dimension variabled from setup parameters. More...
 

Public Types

using Parameters = PlacedVolume::Object::Parameterisation
 
using Rotations = std::vector< G4RotationMatrix >
 
using Translations = std::vector< G4ThreeVector >
 
using Dimensions = std::vector< Dimension >
 

Public Member Functions

void operator() (const G4Transform3D &transform)
 Callback to store resulting rotation. More...
 
 Geant4PlacementParameterisation (PlacedVolume pv)
 Initializing constructor. More...
 
virtual ~Geant4PlacementParameterisation ()=default
 Standard destructor. More...
 
EAxis axis () const
 Access Axis direction. More...
 
std::size_t count () const
 Access number of replicas. More...
 
virtual void ComputeTransformation (const G4int copyNo, G4VPhysicalVolume *vol) const override
 G4VPVParameterisation overload: Compute copy transformation. More...
 

Public Attributes

PlacedVolume m_placement
 Setup parameters: Reference to the DD4hep placement handle. More...
 
const Parametersm_params
 Setup parameters: Reference to the DD4hep placement parameters. More...
 
Dimension m_start { }
 Setup parameters: Initial parameterisation position. More...
 
Dimensions m_dimensions { }
 Setup parameters: Dimensional parameter setup. More...
 
EAxis m_axis { kUndefined }
 Axis definition. More...
 
size_t m_num_cells { 0UL }
 Total number of parameterized cells. More...
 
bool m_have_rotation { false }
 Optimization flag for simple parameteristions. More...
 
Rotations m_rotations
 Cached rotations and translations for complex parameterisations. More...
 
Translations m_translations
 

Detailed Description

Class to dump the records of the intrinsic Geant4 event model.

Author
M.Frank
Version
1.0

Definition at line 39 of file Geant4PlacementParameterisation.h.

Member Typedef Documentation

◆ Dimensions

Definition at line 67 of file Geant4PlacementParameterisation.h.

◆ Parameters

Definition at line 64 of file Geant4PlacementParameterisation.h.

◆ Rotations

using dd4hep::sim::Geant4PlacementParameterisation::Rotations = std::vector<G4RotationMatrix>

Definition at line 65 of file Geant4PlacementParameterisation.h.

◆ Translations

Definition at line 66 of file Geant4PlacementParameterisation.h.

Constructor & Destructor Documentation

◆ Geant4PlacementParameterisation()

dd4hep::sim::Geant4PlacementParameterisation::Geant4PlacementParameterisation ( PlacedVolume  pv)

Initializing constructor.

Definition at line 24 of file Geant4PlacementParameterisation.cpp.

◆ ~Geant4PlacementParameterisation()

virtual dd4hep::sim::Geant4PlacementParameterisation::~Geant4PlacementParameterisation ( )
virtualdefault

Standard destructor.

Member Function Documentation

◆ axis()

EAxis dd4hep::sim::Geant4PlacementParameterisation::axis ( ) const
inline

Access Axis direction.

Definition at line 98 of file Geant4PlacementParameterisation.h.

◆ ComputeTransformation()

void dd4hep::sim::Geant4PlacementParameterisation::ComputeTransformation ( const G4int  copyNo,
G4VPhysicalVolume *  vol 
) const
overridevirtual

G4VPVParameterisation overload: Compute copy transformation.

G4VPVParameterisation overload: Callback to place sub-volumes.

Definition at line 83 of file Geant4PlacementParameterisation.cpp.

◆ count()

std::size_t dd4hep::sim::Geant4PlacementParameterisation::count ( ) const

Access number of replicas.

Definition at line 69 of file Geant4PlacementParameterisation.cpp.

◆ operator()()

void dd4hep::sim::Geant4PlacementParameterisation::operator() ( const G4Transform3D &  transform)

Callback to store resulting rotation.

Definition at line 74 of file Geant4PlacementParameterisation.cpp.

Member Data Documentation

◆ m_axis

EAxis dd4hep::sim::Geant4PlacementParameterisation::m_axis { kUndefined }

Axis definition.

Definition at line 79 of file Geant4PlacementParameterisation.h.

◆ m_dimensions

Dimensions dd4hep::sim::Geant4PlacementParameterisation::m_dimensions { }

Setup parameters: Dimensional parameter setup.

Definition at line 76 of file Geant4PlacementParameterisation.h.

◆ m_have_rotation

bool dd4hep::sim::Geant4PlacementParameterisation::m_have_rotation { false }

Optimization flag for simple parameteristions.

Definition at line 83 of file Geant4PlacementParameterisation.h.

◆ m_num_cells

size_t dd4hep::sim::Geant4PlacementParameterisation::m_num_cells { 0UL }

Total number of parameterized cells.

Definition at line 81 of file Geant4PlacementParameterisation.h.

◆ m_params

const Parameters& dd4hep::sim::Geant4PlacementParameterisation::m_params

Setup parameters: Reference to the DD4hep placement parameters.

Definition at line 72 of file Geant4PlacementParameterisation.h.

◆ m_placement

PlacedVolume dd4hep::sim::Geant4PlacementParameterisation::m_placement

Setup parameters: Reference to the DD4hep placement handle.

Definition at line 70 of file Geant4PlacementParameterisation.h.

◆ m_rotations

Rotations dd4hep::sim::Geant4PlacementParameterisation::m_rotations
mutable

Cached rotations and translations for complex parameterisations.

Definition at line 86 of file Geant4PlacementParameterisation.h.

◆ m_start

Dimension dd4hep::sim::Geant4PlacementParameterisation::m_start { }

Setup parameters: Initial parameterisation position.

Definition at line 74 of file Geant4PlacementParameterisation.h.

◆ m_translations

Translations dd4hep::sim::Geant4PlacementParameterisation::m_translations
mutable

Definition at line 87 of file Geant4PlacementParameterisation.h.


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