BOSS
7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
JobSimulation.cxx
Go to the documentation of this file.
1
#include "
RealizationSvc/IRealizationSvc.h
"
2
#include "
RealizationSvc/RealizationSvc.h
"
3
#include "GaudiKernel/SmartIF.h"
4
#include "GaudiKernel/ISvcLocator.h"
5
#include <cstdlib>
6
7
namespace
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
25
struct
SimulationInit
{
26
SimulationInit
() {
27
pf_helper
=
funcSimulation
;
28
}
29
};
30
31
SimulationInit
init
;
32
}
abs
#define abs(x)
Definition
Eepipi/Eepipi-00-01-00/src/ee2eepp/basesv5.1/f2c.h:151
IRealizationSvc.h
RealizationSvc.h
IRealizationSvc
Definition
IRealizationSvc.h:13
RealizationSvc
Definition
RealizationSvc.h:18
RealizationSvc::getRunId
int getRunId()
Definition
RealizationSvc.h:102
DetVerSvcPack
Definition
DetVerSvc.cxx:10
DetVerSvcPack::pf_helper
int(* pf_helper)(ISvcLocator *)
Definition
DetVerSvc.cxx:11
DetVerSvcPack::init
InputRawInit init
Definition
JobInputRaw.cxx:29
DetVerSvcPack::funcSimulation
int funcSimulation(ISvcLocator *svcLct)
Definition
JobSimulation.cxx:9
DetVerSvcPack::SimulationInit
Definition
JobSimulation.cxx:25
DetVerSvcPack::SimulationInit::SimulationInit
SimulationInit()
Definition
JobSimulation.cxx:26
7.1.2
Utilities
DetVerSvc
DetVerSvc-00-01-03
src
JobSimulation.cxx
Generated by
1.12.0