2#include "GaudiKernel/Kernel.h"
3#include "GaudiKernel/IInterface.h"
4#include "GaudiKernel/StatusCode.h"
5#include "GaudiKernel/SvcFactory.h"
6#include "GaudiKernel/MsgStream.h"
25 MsgStream log(messageService(), name());
26 log << MSG::INFO << name() <<
": Start of run initialisation" << endreq;
28 StatusCode sc = Service::initialize();
29 if ( sc.isFailure() )
return sc;
33 return StatusCode::SUCCESS;
37 MsgStream log(messageService(), name());
38 log << MSG::INFO << name() <<
": End of Run" << endreq;
39 return StatusCode::SUCCESS;
43 for(vector<BTofGeo*>::iterator it1 = fBTofGeo.begin(); it1 != fBTofGeo.end(); it1++)
delete *it1;
44 for(vector<ETofGeo*>::iterator it2 = fETofGeo.begin(); it2 != fETofGeo.end(); it2++)
delete *it2;
119 std::cout<<
"Now can get the TOF Geometry Service!!"<<std::endl;
146 if (
id < fBTofGeo.size())
147 return fBTofGeo[id]->getPhiMax();
152 if (
id < fBTofGeo.size())
153 return fBTofGeo[id]->getPhiMin();
158 if (
id < fETofGeo.size())
159 return fETofGeo[id]->getPhiMax();
164 if (
id < fETofGeo.size())
165 return fETofGeo[id]->getPhiMin();
170 if (
id < fBTofGeo.size())
176 if (
id < fETofGeo.size())
ETofGeo * ETof(unsigned id) const
const double getBPhiMin(unsigned id)
virtual StatusCode initialize()
const double getEPhiMax(unsigned id)
BTofGeo * BTof(unsigned id) const
virtual StatusCode finalize()
const double getEPhiMin(unsigned id)
const double getBPhiMax(unsigned id)