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