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

CalCalibShared Class Reference

store items shared amongst several classes which compose CalCalibSvc, More...

#include <CalCalibShared.h>

List of all members.

Public Member Functions

 CalCalibShared ()
StatusCode initialize (Service &service)
 post construction: run during Gaudi init phase.


Public Attributes

StringProperty m_idealCalibXMLPath
 xml file contains 'ideal' flavor parameters

CalUtil::IdealCalCalib m_idealCalib
 stores 'ideal' flavor generic calibration constants

StringProperty m_calibDataSvcName
 name of CalibDataSvc, main data source

IDataProviderSvc * m_dataProviderSvc
 CalibDataSvc.

ICalibPathSvc * m_calibPathSvc
 CalibPathSvc (should be provided by CalibDataSvc.

Service * m_service
 allow me to look up services


Detailed Description

store items shared amongst several classes which compose CalCalibSvc,

Note:
it would be overkill to make all the implementation sub-classes Gaudi classes

Definition at line 27 of file CalCalibShared.h.


Constructor & Destructor Documentation

CalCalibShared::CalCalibShared  )  [inline]
 

Definition at line 29 of file CalCalibShared.h.

References m_calibPathSvc, m_dataProviderSvc, and m_service.

00029                    :
00030     m_dataProviderSvc(0),
00031     m_calibPathSvc(0),
00032     m_service(0) {}


Member Function Documentation

StatusCode CalCalibShared::initialize Service &  service  ) 
 

post construction: run during Gaudi init phase.

Definition at line 17 of file CalCalibShared.cxx.

References m_calibDataSvcName, m_calibPathSvc, m_dataProviderSvc, m_idealCalib, m_idealCalibXMLPath, and m_service.

Referenced by CalCalibSvc::initialize().

00017                                                       {
00018   StatusCode sc;
00019 
00020   m_service = &service;
00021 
00022   sc = m_idealCalib.readCfgFile(m_idealCalibXMLPath);
00023   if (sc.isFailure()) return sc;
00024 
00025   IService *calibDataSvc;
00026   // Grab pointer to CalibDataSvc
00027   sc = m_service->service(m_calibDataSvcName, calibDataSvc, true);
00028   if ( !sc.isSuccess() ) {
00029     MsgStream msglog(m_service->msgSvc(), m_service->name()); 
00030     msglog << MSG::ERROR << "Could not get CalibDataSvc" << endreq;
00031     return sc;
00032   }
00033 
00034   // Query the IDataProvider interface of the CalibDataService
00035   sc = calibDataSvc->queryInterface(IID_IDataProviderSvc, 
00036                                     (void**) &m_dataProviderSvc);
00037   if ( !sc.isSuccess() ) {
00038     MsgStream msglog(m_service->msgSvc(), m_service->name()); 
00039     msglog << MSG::ERROR 
00040            << "Could not query IDataProviderSvc interface of CalibDataSvc" 
00041            << endreq;
00042     return sc;
00043   }
00044 
00045   // grab pointer to DataPathSvc
00046   sc = m_service->service(m_calibDataSvcName, m_calibPathSvc, true);
00047   if ( !sc.isSuccess() ) {
00048     MsgStream msglog(m_service->msgSvc(), m_service->name());
00049     msglog << MSG::ERROR << "Could not get CalibDataSvc" << endreq;
00050     return sc;
00051   }
00052 
00053   return StatusCode::SUCCESS;
00054   
00055 }


Member Data Documentation

StringProperty CalCalibShared::m_calibDataSvcName
 

name of CalibDataSvc, main data source

Definition at line 44 of file CalCalibShared.h.

Referenced by CalCalibSvc::CalCalibSvc(), CalCalibSvc::initialize(), and initialize().

ICalibPathSvc* CalCalibShared::m_calibPathSvc
 

CalibPathSvc (should be provided by CalibDataSvc.

Definition at line 50 of file CalCalibShared.h.

Referenced by CalCalibShared(), CalibItemMgr::initialize(), and initialize().

IDataProviderSvc* CalCalibShared::m_dataProviderSvc
 

CalibDataSvc.

Definition at line 47 of file CalCalibShared.h.

Referenced by CalCalibShared(), initialize(), and CalibItemMgr::updateCalib().

CalUtil::IdealCalCalib CalCalibShared::m_idealCalib
 

stores 'ideal' flavor generic calibration constants

Definition at line 41 of file CalCalibShared.h.

Referenced by initialize(), TholdCIMgr::loadIdealVals(), PedMgr::loadIdealVals(), MPDMgr::loadIdealVals(), IntNonlinMgr::loadIdealVals(), and AsymMgr::loadIdealVals().

StringProperty CalCalibShared::m_idealCalibXMLPath
 

xml file contains 'ideal' flavor parameters

Definition at line 38 of file CalCalibShared.h.

Referenced by CalCalibSvc::CalCalibSvc(), and initialize().

Service* CalCalibShared::m_service
 

allow me to look up services

Definition at line 53 of file CalCalibShared.h.

Referenced by CalCalibShared(), CalibItemMgr::evalSpline(), IntNonlinMgr::genLocalStore(), CalibItemMgr::genSpline(), CalibItemMgr::initialize(), initialize(), AsymMgr::initialize(), TholdCIMgr::loadIdealVals(), PedMgr::loadIdealVals(), IntNonlinMgr::loadIdealVals(), CalibItemMgr::updateCalib(), TholdCIMgr::validateRangeBase(), and AsymMgr::validateRangeBase().


The documentation for this class was generated from the following files:
Generated on Wed Nov 26 20:29:23 2008 by doxygen 1.3.3