#include <Instrument.h>
Public Methods | |
| Instrument () | |
| ~Instrument () | |
| int | initialize (std::string ini="", std::string xml="") |
| read standard ini and xml files describing the instrument, return non-zero if fail. If not specified, get default from package. More... | |
| int | openIRF (std::string filename) |
| open an IRF file: return non-zero if fail. More... | |
| int | readIRF () |
| read the next event from the IRF file. Return non-zero if fail or EOF. More... | |
| std::string | irfFileName () const |
| return the current file name. More... | |
| int | detector_count () const |
| return the number of detectors. More... | |
| int | detectors_with_data () const |
| return the number of detectors currently with data. More... | |
| std::string | iniFileName () const |
| return ini file name used. More... | |
| std::string | xmlFileName () const |
| return xml file name used. More... | |
| GlastDetector* | rootDetector () const |
| return pointer to root detector (glast). More... | |
| void | accept (DetectorConverter&) const |
| accept a visitor to traverse the structure. Note that must be on a const object. More... | |
| const xml::IFile* | iniFile () const |
| access to the parsed inifile. More... | |
| void | setDetector (GlastDetector* d) |
| set new root detector. More... | |
Protected Methods | |
| int | loadPersFile () |
| int | loadIniFile () |
Private Attributes | |
| GlastDetector* | m_rootDetector |
| ResponseFile* | m_respFile |
| std::string | m_irfFile |
| std::string | m_xmlFile |
| std::string | m_iniFile |
| bool | m_ownsDetector |
Designed for instantiation of all the detector objects via the xml geometry description, and reading an IRF file.
Definition at line 22 of file Instrument.h.
|
|
Definition at line 14 of file Instrument.cxx. |
|
|
Definition at line 17 of file Instrument.cxx. |
|
|
accept a visitor to traverse the structure. Note that must be on a const object.
Definition at line 142 of file Instrument.cxx. Referenced by main(). |
|
|
return the number of detectors.
Definition at line 148 of file Instrument.cxx. Referenced by main(). |
|
|
return the number of detectors currently with data.
Definition at line 152 of file Instrument.cxx. Referenced by main(). |
|
|
access to the parsed inifile.
Definition at line 156 of file Instrument.cxx. |
|
|
return ini file name used.
Definition at line 161 of file Instrument.cxx. |
|
|
read standard ini and xml files describing the instrument, return non-zero if fail. If not specified, get default from package.
Definition at line 36 of file Instrument.cxx. Referenced by main(). |
|
|
return the current file name.
Definition at line 160 of file Instrument.cxx. Referenced by main(). |
|
|
Definition at line 101 of file Instrument.cxx. Referenced by initialize(). |
|
|
Definition at line 64 of file Instrument.cxx. Referenced by initialize(). |
|
|
open an IRF file: return non-zero if fail.
Definition at line 127 of file Instrument.cxx. Referenced by main(). |
|
|
read the next event from the IRF file. Return non-zero if fail or EOF.
Definition at line 113 of file Instrument.cxx. Referenced by main(). |
|
|
return pointer to root detector (glast).
Definition at line 163 of file Instrument.cxx. |
|
|
set new root detector.
Definition at line 28 of file Instrument.cxx. |
|
|
return xml file name used.
Definition at line 162 of file Instrument.cxx. Referenced by main(). |
|
|
Definition at line 76 of file Instrument.h. |
|
|
Definition at line 74 of file Instrument.h. |
|
|
Definition at line 77 of file Instrument.h. |
|
|
Definition at line 73 of file Instrument.h. |
|
|
Definition at line 72 of file Instrument.h. |
|
|
Definition at line 75 of file Instrument.h. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000