VGM Version 5.3
Loading...
Searching...
No Matches
Geant4GM::Placement Class Reference

VGM implementation for Geant4 positions of volumes. More...

#include <Placement.h>

Inheritance diagram for Geant4GM::Placement:

Public Member Functions

 Placement (VGM::IVolume *volume, VGM::IVolume *motherVolume, G4VPhysicalVolume *pv)
 
virtual ~Placement ()
 
virtual VGM::PlacementType Type () const
 Return the type of this placement.
 
virtual std::string Name () const
 Return the name of this placement.
 
virtual int CopyNo () const
 Return the copy number of this placement.
 
virtual VGM::Transform Transformation () const
 Return the 3D transformation (if simple placement)
 
virtual bool MultiplePlacementData (VGM::Axis &axis, int &nofItems, double &width, double &offset, double &halfGap) const
 Fill the multiple placement data if relevant and return true; return false if not multiple placement.
 
virtual bool ParameterisedPlacementData (std::vector< VGM::Transform > &transforms, std::vector< VGM::IVolume * > &volumes) const
 Fill the parameterised placement data if relevant and return true; return false if not parameterised placement.
 
- Public Member Functions inherited from BaseVGM::VPlacement
 VPlacement (VGM::IVolume *volume, VGM::IVolume *motherVolume)
 
virtual ~VPlacement ()
 
virtual VGM::IVolumeVolume () const
 Return the associated volume.
 
virtual VGM::IVolumeMother () const
 Return the associated mother volume.
 
virtual std::ostream & Put (std::ostream &out) const
 Put the printing of the placement parameters in the out stream.
 
void SetVolume (VGM::IVolume *volume)
 
- Public Member Functions inherited from VGM::IPlacement
virtual ~IPlacement ()
 

Static Public Member Functions

static EAxis GetAxis (VGM::Axis axis)
 
static VGM::Axis GetAxis (EAxis axis)
 

Protected Member Functions

 Placement ()
 
 Placement (const Placement &rhs)
 
- Protected Member Functions inherited from BaseVGM::VPlacement
 VPlacement ()
 
 VPlacement (const VPlacement &rhs)
 

Detailed Description

VGM implementation for Geant4 positions of volumes.

Author
Ivana Hrivnacova; IPN Orsay

Definition at line 39 of file Placement.h.

Constructor & Destructor Documentation

◆ Placement() [1/3]

Geant4GM::Placement::Placement ( VGM::IVolume * volume,
VGM::IVolume * motherVolume,
G4VPhysicalVolume * pv )

Standard constructor to define a multiple placement via G4 object

Definition at line 46 of file Placement.cxx.

◆ ~Placement()

Geant4GM::Placement::~Placement ( )
virtual

Definition at line 72 of file Placement.cxx.

◆ Placement() [2/3]

Geant4GM::Placement::Placement ( )
protected

Protected default constructor

Definition at line 59 of file Placement.cxx.

◆ Placement() [3/3]

Geant4GM::Placement::Placement ( const Placement & rhs)
protected

Protected copy constructor

Definition at line 65 of file Placement.cxx.

Member Function Documentation

◆ GetAxis() [1/2]

EAxis Geant4GM::Placement::GetAxis ( VGM::Axis axis)
static

Definition at line 82 of file Placement.cxx.

◆ GetAxis() [2/2]

VGM::Axis Geant4GM::Placement::GetAxis ( EAxis axis)
static

Definition at line 113 of file Placement.cxx.

◆ Type()

VGM::PlacementType Geant4GM::Placement::Type ( ) const
virtual

Return the type of this placement.

Implements VGM::IPlacement.

Definition at line 148 of file Placement.cxx.

◆ Name()

std::string Geant4GM::Placement::Name ( ) const
virtual

Return the name of this placement.

Implements BaseVGM::VPlacement.

Definition at line 163 of file Placement.cxx.

◆ CopyNo()

int Geant4GM::Placement::CopyNo ( ) const
virtual

Return the copy number of this placement.

Implements BaseVGM::VPlacement.

Definition at line 170 of file Placement.cxx.

◆ Transformation()

VGM::Transform Geant4GM::Placement::Transformation ( ) const
virtual

Return the 3D transformation (if simple placement)

Implements BaseVGM::VPlacement.

Definition at line 177 of file Placement.cxx.

◆ MultiplePlacementData()

bool Geant4GM::Placement::MultiplePlacementData ( VGM::Axis & axis,
int & nofItems,
double & width,
double & offset,
double & halfGap ) const
virtual

Fill the multiple placement data if relevant and return true; return false if not multiple placement.

Implements BaseVGM::VPlacement.

Definition at line 185 of file Placement.cxx.

◆ ParameterisedPlacementData()

bool Geant4GM::Placement::ParameterisedPlacementData ( std::vector< VGM::Transform > & transforms,
std::vector< VGM::IVolume * > & volumes ) const
virtual

Fill the parameterised placement data if relevant and return true; return false if not parameterised placement.

Implements VGM::IPlacement.

Definition at line 269 of file Placement.cxx.


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