#include "Event/ReadoutHeader.h"
#include "Event/ReadoutPmtCrate.h"
#include "GaudiKernel/Bootstrap.h"
#include "GaudiKernel/IService.h"
#include "GaudiKernel/ISvcLocator.h"
#include "DaqReadoutSvc/IDaqReadoutSvc.h"
Include dependency graph for ReadoutHeader.cc:
Go to the source code of this file.
Functions | |
static IDaqReadoutSvc * | getDaqReadoutSvc () |
static IDaqReadoutSvc* getDaqReadoutSvc | ( | ) | [static] |
Definition at line 10 of file ReadoutHeader.cc.
00010 { 00011 ISvcLocator* svcLocator = Gaudi::svcLocator(); 00012 IDaqReadoutSvc* daqReadoutSvc = 0; 00013 IService* svc = 0; 00014 StatusCode status = svcLocator->getService("DaqReadoutSvc", 00015 svc, 00016 true); 00017 if (status.isFailure() ) { 00018 return 0; 00019 } 00020 status = svc->queryInterface(IID_IDaqReadoutSvc, 00021 (void**)&daqReadoutSvc); 00022 if (status.isFailure() ) { 00023 return 0; 00024 } 00025 return daqReadoutSvc; 00026 }