Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

GlastDetSvc Class Reference

#include <GlastDetSvc.h>

Inheritance diagram for GlastDetSvc:

Service IGlastDetSvc IInterface List of all members.

Public Methods

 GlastDetSvc ( const std::string& name, ISvcLocator* al )
 Create the service
Parameters:
name   The name of the service.
More...


virtual ~GlastDetSvc ()
 destructor. More...

StatusCode queryInterface (const IID& riid, void** ppvUnknown)
 queryInterface - for implementing a Service this is necessary. More...

const IIDtype () const
 return the service type. More...

StatusCode initialize ()
 perform initializations for this service. This will read in and create the GlastDetector hierarchy from the file specified by the PersistencyFile property, unless it is '(none)'. More...

StatusCode finalize ()
 kill off the detector hierarchy if it exists. More...

GlastDetector* getRootDetector ()
 return the root detector for this service (implements IGlastDetSvc). More...

virtual const xml::IFile* iniFile () const
 access to the IFile containing detector constants (implements IGlastDetSvc). More...

StatusCode openIRF (std::string filename)
 open the IRF file. More...

StatusCode readIRF ()
 load the next event from the IRF file (implements IGlastIRFLoadSvc). More...

int detectors_with_data () const
 return the number of detectors currently with data. More...

void accept (DetectorConverter&) const
 accept a visitor to traverse the structure. More...

void setDetector (GlastDetector* d)
 set new root detector. More...


Private Attributes

Instrument* m_instrument
 Query interface. More...

std::string m_xmlFile
std::string m_iniFile

Detailed Description

This Gaudi service provides access to a tree of GlastDetector objects.

Definition at line 22 of file GlastDetSvc.h.


Constructor & Destructor Documentation

GlastDetSvc::GlastDetSvc ( const std::string & name,
ISvcLocator * al )
 

Create the service

Parameters:
name   The name of the service.

Definition at line 37 of file GlastDetSvc.cpp.

GlastDetSvc::~GlastDetSvc ( ) [virtual]
 

destructor.

Definition at line 50 of file GlastDetSvc.cpp.


Member Function Documentation

void GlastDetSvc::accept ( DetectorConverter & v ) const [virtual]
 

accept a visitor to traverse the structure.

Reimplemented from IGlastDetSvc.

Definition at line 152 of file GlastDetSvc.cpp.

int GlastDetSvc::detectors_with_data ( ) const [virtual]
 

return the number of detectors currently with data.

Reimplemented from IGlastDetSvc.

Definition at line 141 of file GlastDetSvc.cpp.

StatusCode GlastDetSvc::finalize ( )
 

kill off the detector hierarchy if it exists.

Definition at line 100 of file GlastDetSvc.cpp.

Referenced by ~GlastDetSvc().

GlastDetector * GlastDetSvc::getRootDetector ( void )
 

return the root detector for this service (implements IGlastDetSvc).

Definition at line 146 of file GlastDetSvc.cpp.

const xml::IFile * GlastDetSvc::iniFile ( ) const [virtual]
 

access to the IFile containing detector constants (implements IGlastDetSvc).

Reimplemented from IGlastDetSvc.

Definition at line 157 of file GlastDetSvc.cpp.

StatusCode GlastDetSvc::initialize ( )
 

perform initializations for this service. This will read in and create the GlastDetector hierarchy from the file specified by the PersistencyFile property, unless it is '(none)'.

Definition at line 72 of file GlastDetSvc.cpp.

StatusCode GlastDetSvc::openIRF ( std::string filename ) [virtual]
 

open the IRF file.

Reimplemented from IGlastDetSvc.

Definition at line 131 of file GlastDetSvc.cpp.

StatusCode GlastDetSvc::queryInterface ( const IID & riid,
void ** ppvUnknown )
 

queryInterface - for implementing a Service this is necessary.

Definition at line 59 of file GlastDetSvc.cpp.

StatusCode GlastDetSvc::readIRF ( ) [virtual]
 

load the next event from the IRF file (implements IGlastIRFLoadSvc).

Reimplemented from IGlastDetSvc.

Definition at line 114 of file GlastDetSvc.cpp.

void GlastDetSvc::setDetector ( GlastDetector * d ) [virtual]
 

set new root detector.

Reimplemented from IGlastDetSvc.

Definition at line 94 of file GlastDetSvc.cpp.

const IID & GlastDetSvc::type ( ) const
 

return the service type.

Definition at line 124 of file GlastDetSvc.cpp.


Member Data Documentation

std::string GlastDetSvc::m_iniFile [private]
 

Definition at line 86 of file GlastDetSvc.h.

Instrument * GlastDetSvc::m_instrument [private]
 

Query interface.

Definition at line 84 of file GlastDetSvc.h.

std::string GlastDetSvc::m_xmlFile [private]
 

Definition at line 85 of file GlastDetSvc.h.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 12:21:14 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000