BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Public Member Functions
BDSAperturePointsLoader< T > Class Template Reference

A loader for up to set of XY points for an aperture. More...

#include <BDSAperturePointsLoader.hh>

Collaboration diagram for BDSAperturePointsLoader< T >:
Collaboration graph

Public Member Functions

std::vector< G4TwoVector > * Load (const G4String &fileName, G4double unit=1.0) const
 

Detailed Description

template<class T>
class BDSAperturePointsLoader< T >

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.

Author
Laurie Nevay

Definition at line 43 of file BDSAperturePointsLoader.hh.

Constructor & Destructor Documentation

◆ BDSAperturePointsLoader()

Definition at line 44 of file BDSAperturePointsLoader.cc.

◆ ~BDSAperturePointsLoader()

Definition at line 48 of file BDSAperturePointsLoader.cc.

Member Function Documentation

◆ Load()

template<class T >
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().

Here is the call graph for this function:
Here is the caller graph for this function:

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