VGM Version 5.3
|
VGM implementation for Root positions of volumes. More...
#include <Placement.h>
Public Member Functions | |
Placement (const std::string &name, int copyNo, VGM::IVolume *volume, VGM::IVolume *motherVolume, TGeoMatrix *transformation) | |
Placement (const std::string &name, VGM::IVolume *volume, VGM::IVolume *motherVolume, VGM::Axis axis, int nofItems, double width, double offset) | |
Placement (VGM::IVolume *volume, VGM::IVolume *motherVolume, TGeoNode *node) | |
Placement (VGM::IVolume *volume, VGM::IVolume *motherVolume, TGeoNode *node, std::vector< const TGeoNode * > assemblyNodes) | |
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::IVolume * | Volume () const |
Return the associated volume. | |
virtual VGM::IVolume * | Mother () 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 void | SetIncludeAssembliesInNames (bool includeAssembliesInNames) |
static bool | GetIncludeAssembliesInNames () |
static void | SetNameSeparator (char nameSeparator) |
static void | SetNamePrefix (char namePrefix) |
static char | GetNameSeparator () |
static char | GetNamePrefix () |
Protected Member Functions | |
Placement () | |
Placement (const Placement &rhs) | |
Protected Member Functions inherited from BaseVGM::VPlacement | |
VPlacement () | |
VPlacement (const VPlacement &rhs) | |
VGM implementation for Root positions of volumes.
Definition at line 40 of file Placement.h.
RootGM::Placement::Placement | ( | const std::string & | name, |
int | copyNo, | ||
VGM::IVolume * | volume, | ||
VGM::IVolume * | motherVolume, | ||
TGeoMatrix * | transformation ) |
Standard constructor to define a simple placement via parameters
copyNo | the copy number of this placement |
volume | the associated volume |
motherVolume | the associated mother volume |
transformation | the 3D transformation of the volume with respect to its mother |
Definition at line 102 of file Placement.cxx.
RootGM::Placement::Placement | ( | const std::string & | name, |
VGM::IVolume * | volume, | ||
VGM::IVolume * | motherVolume, | ||
VGM::Axis | axis, | ||
int | nofItems, | ||
double | width, | ||
double | offset ) |
Standard constructor to define a multiple placement via parameters
volume | the associated volume which will be replicated |
motherVolume | the associated mother volume |
axis | the replication axis |
nofItems | number of replications |
width | the replication width (the unit depends on the axis; can be mm or deg) |
offset | the replication offset (the unit depends on the axis; can be mm or deg) |
Definition at line 158 of file Placement.cxx.
RootGM::Placement::Placement | ( | VGM::IVolume * | volume, |
VGM::IVolume * | motherVolume, | ||
TGeoNode * | node ) |
Standard constructor to define a multiple placement via Root object
Definition at line 203 of file Placement.cxx.
RootGM::Placement::Placement | ( | VGM::IVolume * | volume, |
VGM::IVolume * | motherVolume, | ||
TGeoNode * | node, | ||
std::vector< const TGeoNode * > | assemblyNodes ) |
Standard constructor to define a multiple placement via Root object
Definition at line 237 of file Placement.cxx.
|
virtual |
Definition at line 272 of file Placement.cxx.
|
protected |
Protected default constructor
Definition at line 259 of file Placement.cxx.
|
protected |
Protected copy constructor
Definition at line 265 of file Placement.cxx.
|
static |
Set the option to include assemblies names in the name of placement
Definition at line 47 of file Placement.cxx.
|
static |
Return the option to include assemblies names in the name of placement
Definition at line 57 of file Placement.cxx.
|
static |
Set the separator for assemblies names
Definition at line 66 of file Placement.cxx.
|
static |
Set the prefix for assemblies names
Definition at line 74 of file Placement.cxx.
|
static |
Return the separator for assemblies names
Definition at line 82 of file Placement.cxx.
|
static |
Return the prefix for assemblies names
Definition at line 90 of file Placement.cxx.
|
virtual |
Return the type of this placement.
Implements VGM::IPlacement.
Definition at line 322 of file Placement.cxx.
|
virtual |
Return the name of this placement.
Implements BaseVGM::VPlacement.
Definition at line 340 of file Placement.cxx.
|
virtual |
Return the copy number of this placement.
Implements BaseVGM::VPlacement.
Definition at line 357 of file Placement.cxx.
|
virtual |
Return the 3D transformation (if simple placement)
Implements BaseVGM::VPlacement.
Definition at line 364 of file Placement.cxx.
|
virtual |
Fill the multiple placement data if relevant and return true; return false if not multiple placement.
Implements BaseVGM::VPlacement.
Definition at line 425 of file Placement.cxx.
|
virtual |
Fill the parameterised placement data if relevant and return true; return false if not parameterised placement.
Implements VGM::IPlacement.
Definition at line 452 of file Placement.cxx.