BOSS
7.0.1
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-00-06/src/ee2eepp/basesv5.1/f2c.h:151
IRealizationSvc
Definition:
InstallArea/include/RealizationSvc/RealizationSvc/IRealizationSvc.h:11
RealizationSvc
Definition:
InstallArea/include/RealizationSvc/RealizationSvc/RealizationSvc.h:17
RealizationSvc::getRunId
int getRunId()
Definition:
InstallArea/include/RealizationSvc/RealizationSvc/RealizationSvc.h:101
DetVerSvcPack
Definition:
DetVerSvc.cxx:8
DetVerSvcPack::pf_helper
int(* pf_helper)(ISvcLocator *)
Definition:
DetVerSvc.cxx:9
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
source
Utilities
DetVerSvc
DetVerSvc-00-00-05
src
JobSimulation.cxx
Generated by
1.9.6