/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Utilities/DetVerSvc/DetVerSvc-00-00-05/src/JobInputRaw.cxx

Go to the documentation of this file.
00001 #include "RawDataCnv/IRawDataInputSvc.h"
00002 #include "RawDataCnv/RawDataInputSvc.h"
00003 #include "GaudiKernel/ISvcLocator.h"
00004 
00005 namespace DetVerSvcPack {
00006 
00007     int funcInputRaw(ISvcLocator* svcLct)
00008     {
00009         IRawDataInputSvc*  iSvc = 0;
00010         StatusCode sc = svcLct->service("RawDataInputSvc", iSvc, false);
00011         if ( sc.isSuccess() ) {
00012             RawDataInputSvc* svc = dynamic_cast<RawDataInputSvc*>(iSvc);
00013             if ( svc != 0 ) {
00014                 return svc->runNo();
00015             }
00016         }
00017         return -1;
00018     }
00019 
00020     extern int (*pf_helper)(ISvcLocator*);
00021 
00022     //initialize function pointer: pf_helper
00023     struct InputRawInit {
00024         InputRawInit() {
00025             pf_helper = funcInputRaw;
00026         }
00027     };
00028 
00029     InputRawInit init;
00030 }

Generated on Tue Nov 29 23:14:43 2016 for BOSS_7.0.2 by  doxygen 1.4.7