SynAPSE  0.6.0
Synergistic Analysis of Phase Space Evolution
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Private Attributes
GeometryHandler Class Reference

Stores the positions of all the requested MICE detectors. More...

#include <GeometryHandler.hh>

Public Member Functions

 GeometryHandler ()
 Default constructor, initilizes everything to 0. More...
 
 GeometryHandler (const std::string &filename)
 Import all of the MICE detectors and elements. More...
 
 GeometryHandler (const std::string &filename, const std::vector< std::string > &names)
 Import only the list of requested detectors. More...
 
 GeometryHandler (const GeometryHandler &geohandler)
 Copy constructor. More...
 
GeometryHandler & operator= (const GeometryHandler &geohandler)
 Equality operator. More...
 
 ~GeometryHandler ()
 Destructor. More...
 
const DetectorGlobals & operator[] (const std::string &name) const
 Overload the subscript operator, return a value. More...
 
DetectorGlobals & operator[] (const std::string &name)
 Overload the subscript operator, return a value, allows mods. More...
 

Private Attributes

std::vector< std::string > _names
 Short names of modules. More...
 
std::map< std::string,
DetectorGlobals > 
_detectors
 List of detector globals. More...
 

Detailed Description

Stores the positions of all the requested MICE detectors.

This object extracts sets up a DetectorGlobals for each of the requested modules.

Constructor & Destructor Documentation

GeometryHandler::GeometryHandler ( )

Default constructor, initilizes everything to 0.

GeometryHandler::GeometryHandler ( const std::string &  filename)

Import all of the MICE detectors and elements.

Parameters
filenamePath to the MICE geometry file
GeometryHandler::GeometryHandler ( const std::string &  filename,
const std::vector< std::string > &  names 
)

Import only the list of requested detectors.

Parameters
filenamePath to the MICE geometry file
namesList of MICE modules to look for
GeometryHandler::GeometryHandler ( const GeometryHandler &  geohandler)

Copy constructor.

GeometryHandler::~GeometryHandler ( )

Destructor.

Member Function Documentation

GeometryHandler & GeometryHandler::operator= ( const GeometryHandler &  geohandler)

Equality operator.

const DetectorGlobals & GeometryHandler::operator[] ( const std::string &  name) const

Overload the subscript operator, return a value.

DetectorGlobals & GeometryHandler::operator[] ( const std::string &  name)

Overload the subscript operator, return a value, allows mods.

Field Documentation

std::map<std::string, DetectorGlobals> GeometryHandler::_detectors
private

List of detector globals.

std::vector<std::string> GeometryHandler::_names
private

Short names of modules.


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