/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

MockEvtReadout.cpp
Go to the documentation of this file.
00001 #include "MockEvtReadout.h"
00002 #include "MockEvtConversionSvc.h"
00003 
00004 #include "Event/TESDemoReadout.h"
00005 
00006 #include "GaudiKernel/DataObject.h"
00007 #include "GaudiKernel/GaudiException.h"
00008 #include "GaudiKernel/IDataManagerSvc.h"
00009 #include "GaudiKernel/IRegistry.h"
00010 
00011 using namespace MockEvtConverters;
00012 
00013 MockEvtReadout::MockEvtReadout(ISvcLocator* svc) :
00014   Converter(MockEvtConversionSvc::MOCK_EVT_DATA,
00015             DayaBay::CLID_MockEvtReadout,
00016             svc) {
00017 }
00018 
00019 MockEvtReadout::~MockEvtReadout() {
00020 }
00021 
00022 StatusCode MockEvtReadout::createObj(IOpaqueAddress* addr,
00023                                      DataObject*& pObject) {
00024   Address* address = dynamic_cast<Address*>(addr);
00025   if (0 == address) {
00026     return StatusCode::FAILURE;
00027   }
00028 
00029   const MockEvtSelector::MockEvtContext* context = address->context();
00030   pObject = new DayaBay::TESDemoReadout(context->readoutTime(),
00031                                         context->sequenceNumber());
00032   return StatusCode::SUCCESS;
00033 }
00034 
00035 long MockEvtReadout::repSvcType() const {
00036   return i_repSvcType();
00037 }
00038 
00039 MockEvtReadout::Address::Address(const MockEvtSelector::MockEvtContext* context) :
00040   m_context(context){
00041   setClID(DayaBay::CLID_MockEvtReadout);
00042   setSvcType(MockEvtConversionSvc::MOCK_EVT_DATA);
00043 }
00044 
00045 MockEvtReadout::Address::~Address() {
00046 }
00047 
00048 const MockEvtSelector::MockEvtContext* MockEvtReadout::Address::context() const {
00049   return m_context;
00050 }
00051 
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:08:54 for MockEvt by doxygen 1.7.4