|
Open PaperOpt
|
#include <DetectorParser.h>
Public Member Functions | |
| DetectorParser (void) | |
| ~DetectorParser (void) | |
| Detector * | parse (XMLParser &rParser, std::string type, vector< float > &rLambdas, Detector *pPrevDetector, float xmax, float ymax) |
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.
| DetectorParser::DetectorParser | ( | void | ) |
Constructor
| DetectorParser::~DetectorParser | ( | void | ) |
Destructor
| 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.
| p | reference to the XMLParser object this method will read from. |
| type | the type of the detector. |
| prevDetector | pointer to the previous detector created. |
| xmax | size of the simulation volume in the x direction. |
| ymax | size of the simulation volume in the y direction. |