BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
A loader for up to set of XY points for an aperture. More...
#include <BDSAperturePointsLoader.hh>
Public Member Functions | |
std::vector< G4TwoVector > * | Load (const G4String &fileName, G4double unit=1.0) const |
A loader for up to set of XY points for an aperture.
Templated for both regular and gzip reading. This will use a cache of files and reuse the same points if asked again for the same file.
The cache (see next class in this header) owns the points vectors.
Definition at line 43 of file BDSAperturePointsLoader.hh.
BDSAperturePointsLoader< T >::BDSAperturePointsLoader |
Definition at line 44 of file BDSAperturePointsLoader.cc.
BDSAperturePointsLoader< T >::~BDSAperturePointsLoader |
Definition at line 48 of file BDSAperturePointsLoader.cc.
std::vector< G4TwoVector > * BDSAperturePointsLoader< T >::Load | ( | const G4String & | fileName, |
G4double | unit = 1.0 |
||
) | const |
Main interface. Load a file name and multiply the X,Y coordinates by the value of unit. If this is 1.0 by default then it means mm.
Definition at line 52 of file BDSAperturePointsLoader.cc.
References BDS::SplitOnWhiteSpace().
Referenced by BDS::LoadAperturePoints().