The only way to change BoundarySurfaces etc from Tracking Volumes.
More...
#include <TrackingVolumeManipulator.h>
|
| static void | setBoundarySurface (TrackingVolume &tvol, std::shared_ptr< BoundarySurface< TrackingVolume > > bsurf, BoundarySurfaceFace face) |
| | protected method to set the boundary surface of a tracking volume
|
| static void | setInsideVolume (TrackingVolume &tvol, BoundarySurfaceFace face, TrackingVolume *insidevol) |
| | protected method to set inside Volume of a BoundarySurface: input:
|
| static void | setInsideVolumeArray (TrackingVolume &tvol, BoundarySurfaceFace face, const std::shared_ptr< BinnedArray< TrackingVolume > > &insidevolarray) |
| | protected method to set inside VolumeArray of a BoundarySurface: input:
|
| static void | setOutsideVolume (TrackingVolume &tvol, BoundarySurfaceFace face, TrackingVolume *outsidevol) |
| | protected method to set outside Volume of a BoundarySurface: input:
|
| static void | setOutsideVolumeArray (TrackingVolume &tvol, BoundarySurfaceFace face, const std::shared_ptr< BinnedArray< TrackingVolume > > &outsidevolarray) |
| | protected method to set outside VolumeArray of a BoundarySurface: input:
|
| static void | confineVolume (TrackingVolume &tvol, TrackingVolume *outsidevol) |
| | protected method to confine (dense) volumes: input:
|
The only way to change BoundarySurfaces etc from Tracking Volumes.
Tools have to inherit from this one to have friend rights to the TrackingVolume;
- Author
- Andre.nosp@m.as.S.nosp@m.alzbu.nosp@m.rger.nosp@m.@cern.nosp@m..ch
Definition at line 31 of file TrackingVolumeManipulator.h.
◆ TrackingVolumeManipulator()
| Trk::TrackingVolumeManipulator::TrackingVolumeManipulator |
( |
| ) |
|
|
inline |
◆ ~TrackingVolumeManipulator()
| Trk::TrackingVolumeManipulator::~TrackingVolumeManipulator |
( |
| ) |
|
|
inline |
◆ confineVolume()
protected method to confine (dense) volumes: input:
- the volume that holdes the BoundarySurfaces (embedded)
- the volume to be set as outside volume
Definition at line 90 of file TrackingVolumeManipulator.cxx.
92{
93
94 const auto& bounds = tvol.boundarySurfaces();
95 for (const auto & bound : bounds) {
96 if (bound->outsideVolume() == nullptr) {
97 bound->setOutsideVolume(outsideVol);
98 }
99 if (bound->insideVolume() == nullptr) {
100 bound->setInsideVolume(outsideVol);
101 }
102 }
103}
◆ glueVolumes()
protected method to glue two Volumes together input:
Definition at line 17 of file TrackingVolumeManipulator.cxx.
22{
23
24 const Trk::CylinderVolumeBounds* cylBounds =
25 dynamic_cast<const Trk::CylinderVolumeBounds*
>(&(firstVol.
volumeBounds()));
26
28 return glueVolumes(secondVol, secondFace, firstVol, firstFace);
29
30
33
37 } else {
39 }
40}
void glueVolumes(TrackingVolume &firstVol, BoundarySurfaceFace firstFace, TrackingVolume &secondVol, BoundarySurfaceFace secondFace) const
protected method to glue two Volumes together input:
static void setOutsideVolume(TrackingVolume &tvol, BoundarySurfaceFace face, TrackingVolume *outsidevol)
protected method to set outside Volume of a BoundarySurface: input:
static void setInsideVolume(TrackingVolume &tvol, BoundarySurfaceFace face, TrackingVolume *insidevol)
protected method to set inside Volume of a BoundarySurface: input:
std::vector< std::shared_ptr< BoundarySurface< TrackingVolume > > > m_boundarySurfaces
const VolumeBounds & volumeBounds() const
returns the volumeBounds()
◆ setBoundarySurface()
◆ setInsideVolume()
◆ setInsideVolumeArray()
protected method to set inside VolumeArray of a BoundarySurface: input:
- ithe volume that holdes the BoundarySurface
- the face type of the boundary to be set
- the volume array to be set as inside volume array
Definition at line 61 of file TrackingVolumeManipulator.cxx.
66{
68}
static void setInsideVolumeArray(TrackingVolume &tvol, BoundarySurfaceFace face, const std::shared_ptr< BinnedArray< TrackingVolume > > &insidevolarray)
protected method to set inside VolumeArray of a BoundarySurface: input:
◆ setOutsideVolume()
◆ setOutsideVolumeArray()
protected method to set outside VolumeArray of a BoundarySurface: input:
- the volume that holdes the BoundarySurface
- the face type of the boundary to be set
- the volume array to be set as outside volume array
Definition at line 80 of file TrackingVolumeManipulator.cxx.
85{
87}
static void setOutsideVolumeArray(TrackingVolume &tvol, BoundarySurfaceFace face, const std::shared_ptr< BinnedArray< TrackingVolume > > &outsidevolarray)
protected method to set outside VolumeArray of a BoundarySurface: input:
The documentation for this class was generated from the following files: