Manager for specific FD description parameters in XML file. More...
#include <FDsimG4XMLManager.hh>
Public Types | |
enum | Status { eFound =1, eNotFound =0 } |
Public Member Functions | |
FDsimG4XMLManager () | |
FDsimG4XMLManager (const std::string &name) | |
utl::Branch | FindBranch (const std::string &property, const std::string &component) const |
template<typename T > | |
Status | GetData (T &returnData, const std::string &componentProperty, const std::string &componentName) const |
Return data as a TabulatedFunction. More... | |
Status | GetData (utl::TabulatedFunction &returnData, const std::string &componentProperty, const std::string &componentName) const |
void | Init (const std::string &configLink) |
bool | IsInitialized () const |
virtual | ~FDsimG4XMLManager () |
Protected Member Functions | |
void | FindConfig (const std::string &configLink) |
Locate the configuration file in CentralConfig and make a Reader for it. More... | |
bool | IsReportingErrors () const |
Protected Attributes | |
utl::Branch | fBranch |
bool | fIsInitialized |
bool | fReportingErrors |
Private Attributes | |
std::string | fName |
Manager for specific FD description parameters in XML file.
This manager reads the XML file containing specific FD description information for the Geant4 simulation.
This class is an adaptation of the FModelsXMLManager class by T. Paul and D. Veberic.
Definition at line 36 of file FDsimG4XMLManager.hh.
Enumerator | |
---|---|
eFound | |
eNotFound |
Definition at line 50 of file FDsimG4XMLManager.hh.
|
inline |
Definition at line 39 of file FDsimG4XMLManager.hh.
|
inline |
Definition at line 41 of file FDsimG4XMLManager.hh.
|
inlinevirtual |
Definition at line 45 of file FDsimG4XMLManager.hh.
Branch FDsimG4XMLManager::FindBranch | ( | const std::string & | property, |
const std::string & | component | ||
) | const |
Find Branch in DOM where the property data for the specified component resides.
Definition at line 95 of file FDsimG4XMLManager.cc.
References utl::Branch::GetChild().
Referenced by GetData().
|
protected |
Locate the configuration file in CentralConfig and make a Reader for it.
Definition at line 26 of file FDsimG4XMLManager.cc.
FDsimG4XMLManager::Status TelescopeSimulatorLX::FDsimG4XMLManager::GetData | ( | T & | returnData, |
const std::string & | componentProperty, | ||
const std::string & | componentName | ||
) | const |
Return data as a TabulatedFunction.
Data to be returned as a tabulated function must be specified with tags indicating the ordinate values, abscissa values, and (optionally) a scale factor for the abscissa values, with the nomenclature indicated in this example:
Definition at line 112 of file FDsimG4XMLManager.hh.
References eFound, eNotFound, FindBranch(), and utl::Branch::GetData().
Referenced by TelescopeSimulatorLX::FDsimG4DetectorConstruction::Init().
FDsimG4XMLManager::Status FDsimG4XMLManager::GetData | ( | utl::TabulatedFunction & | returnData, |
const std::string & | componentProperty, | ||
const std::string & | componentName | ||
) | const |
Definition at line 50 of file FDsimG4XMLManager.cc.
References utl::Branch::GetChild(), utl::Branch::GetData(), and utl::TabulatedFunction::PushBack().
void FDsimG4XMLManager::Init | ( | const std::string & | configLink | ) |
Definition at line 17 of file FDsimG4XMLManager.cc.
|
inline |
Definition at line 48 of file FDsimG4XMLManager.hh.
References fIsInitialized.
|
inlineprotected |
Definition at line 91 of file FDsimG4XMLManager.hh.
References fReportingErrors.
|
protected |
Definition at line 101 of file FDsimG4XMLManager.hh.
|
protected |
Definition at line 95 of file FDsimG4XMLManager.hh.
Referenced by IsInitialized().
|
private |
Definition at line 105 of file FDsimG4XMLManager.hh.
|
protected |
Definition at line 97 of file FDsimG4XMLManager.hh.
Referenced by IsReportingErrors().