Open PaperOpt
IO::DetectorParser Class Reference

#include <DetectorParser.h>

List of all members.

Public Member Functions

 DetectorParser (void)
 ~DetectorParser (void)
Detectorparse (XMLParser &rParser, std::string type, vector< float > &rLambdas, Detector *pPrevDetector, float xmax, float ymax)

Detailed Description

This class is responsible for parsing Detector elements. To handle a new type of detector add a new method conforming to the signature of detParserPtr and register the name for it in the constructor of this class.

Author:
Mikael Lindquister
Version:
0.2

Constructor & Destructor Documentation

DetectorParser::DetectorParser ( void  )

Constructor

DetectorParser::~DetectorParser ( void  )

Destructor


Member Function Documentation

Detector* IO::DetectorParser::parse ( XMLParser rParser,
std::string  type,
vector< float > &  rLambdas,
Detector pPrevDetector,
float  xmax,
float  ymax 
)

This method parses a detector element. p's current node should be at <detector> when this is called. p will be at </detector> when this method returns.

Parameters:
preference to the XMLParser object this method will read from.
typethe type of the detector.
prevDetectorpointer to the previous detector created.
xmaxsize of the simulation volume in the x direction.
ymaxsize of the simulation volume in the y direction.
Returns:
pointer to the Detector object that was created.

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