/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Mdc/DedxCurSvc/DedxCurSvc-00-00-17/src/DedxCurAlg.cxx

Go to the documentation of this file.
00001 #include "DedxCurAlg.h"
00002 #include "DedxCurSvc/IDedxCurSvc.h"
00003 #include "GaudiKernel/ISvcLocator.h"
00004 #include "GaudiKernel/IDataProviderSvc.h"
00005 #include "GaudiKernel/Bootstrap.h"
00006 
00007 DedxCurAlg::DedxCurAlg( const std::string&  name, 
00008                     ISvcLocator*        pSvcLocator )
00009   : Algorithm     ( name, pSvcLocator ), m_pCalibDataSvc(0)
00010 {
00011   // Declare properties here.
00012 
00013 }
00014 
00015 
00016 StatusCode DedxCurAlg::initialize() {
00017   StatusCode sc;
00018   MsgStream log(msgSvc(), name());
00019   log << MSG::INFO << "Initialize()" << endreq;
00020 
00021   // So far don't have any properties, but in case we do some day..
00022 //  setProperties();
00023 
00024  return StatusCode::SUCCESS;
00025 
00026 }
00027 
00028 
00029 StatusCode DedxCurAlg::execute( ) {
00030    
00031   MsgStream log(msgSvc(), name());
00032 
00033     IDedxCurSvc*  vtxsvc;
00034   Gaudi::svcLocator()->service("DedxCurSvc", vtxsvc);
00035   for(int i=0;i<5;i++){
00036   std::cout<<"vtxsvc->getSigma(i)"<<vtxsvc->getSigma(i)<<std::endl;
00037   std::cout<<"vtxsvc->getCurve(i)"<<vtxsvc->getCurve(i)<<std::endl;
00038 }
00039 
00040    return StatusCode::SUCCESS;
00041 }
00042 
00043 StatusCode DedxCurAlg::finalize( ) {
00044 
00045   MsgStream log(msgSvc(), name());
00046   log << MSG::INFO 
00047       << "        DedxCurAlg FINALIZE!! "
00048       << endreq;
00049   
00050   return StatusCode::SUCCESS;
00051 }
00052 
00053 

Generated on Tue Nov 29 23:12:47 2016 for BOSS_7.0.2 by  doxygen 1.4.7