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

dataDetectorServer Class Reference

stores, servers, updates the detector data (geometry and calibration data). More...

#include <dataDetectorServer.h>

Inheritance diagram for dataDetectorServer:

serviceI messageVI optionVI nameVI nameVI List of all members.

Public Methods

 dataDetectorServer ()
 construct the data.

virtual ~dataDetectorServer ()
 delete the data.

virtual detectorGeogeo ()
 returns the geometry.

virtual void addData (std::string name, trsDataVI* data)
 add transient data into the server.

virtual void update ()
 virtual void update - update all classes in the server.

virtual void update (std::string name)
 update the transient data wiht name.

virtual void writeOutServer () const
 write out the information of all the data classes.

virtual void writeOut (std::string name) const
 write out information of a given detector data class.

virtual void writeOut () const
 write out the information of the data.


Protected Methods

virtual trsDataVIgetTrsData (std::string name) const
 returns the trsDataVI with the name for geometry and calibration data.


Private Attributes

detectorGeom_detectorGeo
 pointer to the detector geometry.

serverVI<trsDataVI>* m_server
 pointer to the server of the trsDataVI of the transient data for the detector.


Friends

class  dataManager
class  comLoadCalibration


Detailed Description

stores, servers, updates the detector data (geometry and calibration data).

dataDetectorServer has two type of data: geometry and calibration (also called transient RUN data).
geometry data contains the detector geometry. There is no a centella solution to the geometry description. The user should provide in userDetectorGeo a typedef to his/her own class detector (maybe to a GEANT4 mother class).
calibration data is declared to be transient data. The user should implement the calibration data classes, they should inherit from trsDataVI. The user should create those classes in the class userDataDetector and add them into the this server.

Definition at line 39 of file dataDetectorServer.h.


Constructor & Destructor Documentation

dataDetectorServer::dataDetectorServer ( )

construct the data.

Definition at line 5 of file dataDetectorServer.cpp.

dataDetectorServer::~dataDetectorServer ( ) [inline, virtual]

delete the data.

Definition at line 50 of file dataDetectorServer.cpp.


Member Function Documentation

void dataDetectorServer::addData ( std::string name,
trsDataVI * data ) [inline, virtual]

add transient data into the server.

Definition at line 31 of file dataDetectorServer.cpp.

detectorGeo * dataDetectorServer::geo ( ) [inline, virtual]

returns the geometry.

Definition at line 53 of file dataDetectorServer.h.

trsDataVI * dataDetectorServer::getTrsData ( std::string name ) const [inline, protected, virtual]

returns the trsDataVI with the name for geometry and calibration data.

Definition at line 23 of file dataDetectorServer.cpp.

void dataDetectorServer::update ( std::string name ) [inline, virtual]

update the transient data wiht name.

Definition at line 15 of file dataDetectorServer.cpp.

void dataDetectorServer::update ( ) [inline, virtual]

virtual void update - update all classes in the server.

Definition at line 59 of file dataDetectorServer.h.

void dataDetectorServer::writeOut ( ) const [inline, virtual]

write out the information of the data.

Reimplemented from messageVI.

Definition at line 39 of file dataDetectorServer.cpp.

void dataDetectorServer::writeOut ( std::string name ) const [inline, virtual]

write out information of a given detector data class.

Definition at line 67 of file dataDetectorServer.h.

void dataDetectorServer::writeOutServer ( ) const [inline, virtual]

write out the information of all the data classes.

Definition at line 65 of file dataDetectorServer.h.


Friends And Related Function Documentation

class comLoadCalibration [friend]

Definition at line 43 of file dataDetectorServer.h.

class dataManager [friend]

Definition at line 42 of file dataDetectorServer.h.


Member Data Documentation

detectorGeo * dataDetectorServer::m_detectorGeo [private]

pointer to the detector geometry.

Definition at line 79 of file dataDetectorServer.h.

serverVI<trsDataVI>* dataDetectorServer::m_server [private]

pointer to the server of the trsDataVI of the transient data for the detector.

Definition at line 82 of file dataDetectorServer.h.


The documentation for this class was generated from the following files:
Generated at Fri Aug 18 12:57:40 2000 for centella framework by doxygen 1.1.3 written by Dimitri van Heesch, © 1997-2000