List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes
TelescopeSimulatorLX::FDsimG4XMLManager Class Reference

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
 

Detailed Description

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.

Author
P. Assis
P. Gonçalves
B. Tomé
Date
25 Feb 2010

Definition at line 36 of file FDsimG4XMLManager.hh.

Member Enumeration Documentation

Enumerator
eFound 
eNotFound 

Definition at line 50 of file FDsimG4XMLManager.hh.

Constructor & Destructor Documentation

TelescopeSimulatorLX::FDsimG4XMLManager::FDsimG4XMLManager ( )
inline

Definition at line 39 of file FDsimG4XMLManager.hh.

TelescopeSimulatorLX::FDsimG4XMLManager::FDsimG4XMLManager ( const std::string &  name)
inline

Definition at line 41 of file FDsimG4XMLManager.hh.

virtual TelescopeSimulatorLX::FDsimG4XMLManager::~FDsimG4XMLManager ( )
inlinevirtual

Definition at line 45 of file FDsimG4XMLManager.hh.

Member Function Documentation

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().

void FDsimG4XMLManager::FindConfig ( const std::string &  configLink)
protected

Locate the configuration file in CentralConfig and make a Reader for it.

Definition at line 26 of file FDsimG4XMLManager.cc.

References ERROR, and WARNING.

template<typename T >
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:

<myTabulatedData>
<x> 1 2 3 </x> <!-- ordinate values -->
<y> 1 4 6 </y> <!-- abscissa values -->
<scaleY unit="meter"> 10 <scaleY> <!-- scale all abscissa values by 10 m -->

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
void FDsimG4XMLManager::Init ( const std::string &  configLink)

Definition at line 17 of file FDsimG4XMLManager.cc.

bool TelescopeSimulatorLX::FDsimG4XMLManager::IsInitialized ( ) const
inline

Definition at line 48 of file FDsimG4XMLManager.hh.

References fIsInitialized.

bool TelescopeSimulatorLX::FDsimG4XMLManager::IsReportingErrors ( ) const
inlineprotected

Definition at line 91 of file FDsimG4XMLManager.hh.

References fReportingErrors.

Member Data Documentation

utl::Branch TelescopeSimulatorLX::FDsimG4XMLManager::fBranch
protected

Definition at line 101 of file FDsimG4XMLManager.hh.

bool TelescopeSimulatorLX::FDsimG4XMLManager::fIsInitialized
protected

Definition at line 95 of file FDsimG4XMLManager.hh.

Referenced by IsInitialized().

std::string TelescopeSimulatorLX::FDsimG4XMLManager::fName
private

Definition at line 105 of file FDsimG4XMLManager.hh.

bool TelescopeSimulatorLX::FDsimG4XMLManager::fReportingErrors
protected

Definition at line 97 of file FDsimG4XMLManager.hh.

Referenced by IsReportingErrors().


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

, generated on Tue Sep 26 2023.