BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
JobSimulation.cxx
Go to the documentation of this file.
1#include "GaudiKernel/ISvcLocator.h"
2#include "GaudiKernel/SmartIF.h"
3#include "RealizationSvc/IRealizationSvc.h"
4#include "RealizationSvc/RealizationSvc.h"
5#include <cstdlib>
6
7namespace DetVerSvcPack {
8
9 int funcSimulation( ISvcLocator* svcLct ) {
10 IRealizationSvc* iSvc = 0;
11 StatusCode sc = svcLct->service( "RealizationSvc", iSvc, false );
12 if ( sc.isSuccess() )
13 {
14 RealizationSvc* svc = dynamic_cast<RealizationSvc*>( iSvc );
15 if ( svc != 0 ) { return abs( svc->getRunId() ); }
16 }
17 return -1;
18 }
19
20 extern int ( *pf_helper )( ISvcLocator* );
21
22 // initialize function pointer: pf_helper
26
27 SimulationInit init;
28} // namespace DetVerSvcPack
int(* pf_helper)(ISvcLocator *)
Definition DetVerSvc.cxx:21
int funcSimulation(ISvcLocator *svcLct)