|
BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
A class holding any information pertaining to a particular physical volume in a BDSIM geant4 model.
More...
#include <BDSPhysicalVolumeInfo.hh>

Public Member Functions | |
| BDSPhysicalVolumeInfo (G4double SPosAtMiddleOfElement) | |
| BDSPhysicalVolumeInfo (G4String nameIn, G4String placementNameIn, G4double sPosIn, G4int beamlineIndexIn=-1, BDSBeamline *beamlineIn=nullptr) | |
| G4String | GetName () const |
| Get the name of the logical volume. | |
| void | SetName (G4String NameIn) |
| Set the name of the logical volume. | |
| G4String | GetPlacementName () const |
| Get the name of the logical volume. | |
| void | SetPlacementName (G4String placementNameIn) |
| Set the name of the logical volume. | |
| G4double | GetSPos () const |
| Get the s position coordinate of the logical volume. | |
| void | SetSPos (G4double SPosIn) |
| Set the s position coordinate of the logical volume. | |
| G4int | GetBeamlineIndex () const |
| Accessor. | |
| BDSBeamline * | GetBeamline () const |
| Accessor. | |
| BDSBeamline * | GetBeamlineMassWorld () const |
| Accessor. | |
| G4int | GetBeamlineMassWorldIndex () const |
| Accessor. | |
Private Attributes | |
| G4String | name |
| G4String | placementName |
| G4double | spos |
| G4int | beamlineIndex |
| BDSBeamline * | beamline |
| BDSBeamline * | beamlineMassWorld |
| Corresponding mass world beam line - this may in fact be the same as the beam line. | |
| G4int | beamlineMassWorldIndex |
| Corresponding mass world beam line index - also may be the same as beamlineIndex. | |
Friends | |
| std::ostream & | operator<< (std::ostream &out, BDSPhysicalVolumeInfo const &info) |
| output stream | |
A class holding any information pertaining to a particular physical volume in a BDSIM geant4 model.
Currently, this is used for the name and s position coordinate, but can be extended to store any other pertinent information.
Definition at line 38 of file BDSPhysicalVolumeInfo.hh.
|
explicit |
Definition at line 26 of file BDSPhysicalVolumeInfo.cc.
| BDSPhysicalVolumeInfo::BDSPhysicalVolumeInfo | ( | G4String | nameIn, |
| G4String | placementNameIn, | ||
| G4double | sPosIn, | ||
| G4int | beamlineIndexIn = -1, |
||
| BDSBeamline * | beamlineIn = nullptr |
||
| ) |
Definition at line 36 of file BDSPhysicalVolumeInfo.cc.
| BDSPhysicalVolumeInfo::~BDSPhysicalVolumeInfo | ( | ) |
Definition at line 53 of file BDSPhysicalVolumeInfo.cc.
|
inline |
Accessor.
Definition at line 73 of file BDSPhysicalVolumeInfo.hh.
Referenced by BDSSDCollimator::ProcessHitsOrdered().

|
inline |
Accessor.
Definition at line 72 of file BDSPhysicalVolumeInfo.hh.
Referenced by BDSOutputROOTEventTrajectory::FillIndividualTrajectory(), and BDSSDCollimator::ProcessHitsOrdered().

|
inline |
Accessor.
Definition at line 74 of file BDSPhysicalVolumeInfo.hh.
References beamlineMassWorld.
Referenced by BDSTrajectoryPoint::BDSTrajectoryPoint(), and BDSTrajectoryPoint::BDSTrajectoryPoint().

|
inline |
Accessor.
Definition at line 75 of file BDSPhysicalVolumeInfo.hh.
References beamlineMassWorldIndex.
Referenced by BDSTrajectoryPoint::BDSTrajectoryPoint(), and BDSTrajectoryPoint::BDSTrajectoryPoint().

|
inline |
Get the name of the logical volume.
Definition at line 53 of file BDSPhysicalVolumeInfo.hh.
Referenced by BDSPhysicalVolumeInfoRegistry::RegisterInfo().

|
inline |
Get the name of the logical volume.
Definition at line 59 of file BDSPhysicalVolumeInfo.hh.
|
inline |
Get the s position coordinate of the logical volume.
Definition at line 66 of file BDSPhysicalVolumeInfo.hh.
Referenced by BDSTrajectoryPoint::BDSTrajectoryPoint(), BDSTrajectoryPoint::BDSTrajectoryPoint(), BDSSDApertureImpacts::ProcessHits(), BDSSDEnergyDeposition::ProcessHits(), and BDSSDEnergyDeposition::ProcessHitsTrack().

|
inline |
Set the name of the logical volume.
Definition at line 56 of file BDSPhysicalVolumeInfo.hh.
|
inline |
Set the name of the logical volume.
Definition at line 62 of file BDSPhysicalVolumeInfo.hh.
|
inline |
Set the s position coordinate of the logical volume.
Definition at line 69 of file BDSPhysicalVolumeInfo.hh.
|
friend |
output stream
Definition at line 56 of file BDSPhysicalVolumeInfo.cc.
|
private |
Definition at line 85 of file BDSPhysicalVolumeInfo.hh.
|
private |
Definition at line 84 of file BDSPhysicalVolumeInfo.hh.
|
private |
Corresponding mass world beam line - this may in fact be the same as the beam line.
Definition at line 88 of file BDSPhysicalVolumeInfo.hh.
Referenced by GetBeamlineMassWorld().
|
private |
Corresponding mass world beam line index - also may be the same as beamlineIndex.
Definition at line 90 of file BDSPhysicalVolumeInfo.hh.
Referenced by GetBeamlineMassWorldIndex().
|
private |
Definition at line 81 of file BDSPhysicalVolumeInfo.hh.
|
private |
Definition at line 82 of file BDSPhysicalVolumeInfo.hh.
|
private |
Definition at line 83 of file BDSPhysicalVolumeInfo.hh.