1
1
/********************************************************************************
2
- * Copyright (C) 2012-2023 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
2
+ * Copyright (C) 2012-2024 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3
3
* *
4
4
* This software is distributed under the terms of the *
5
5
* GNU Lesser General Public Licence (LGPL) version 3, *
6
6
* copied verbatim in the file "LICENSE" *
7
7
********************************************************************************/
8
8
9
+ #include "FairExampleRunSim.h"
10
+
11
+ #if !defined(__CLING__ ) || defined(__ROOTCLING__ )
12
+ #include "FairBoxGenerator.h"
13
+ #include "FairCave.h"
14
+ #include "FairConstField.h"
15
+ #include "FairMagnet.h"
16
+ #include "FairParRootFileIo.h"
17
+ #include "FairPrimaryGenerator.h"
18
+ #include "FairRootFileSink.h"
19
+ #include "FairRuntimeDb.h"
20
+ #include "FairSystemInfo.h"
21
+ #include "FairTestDetector.h"
22
+ #endif
23
+
9
24
#include <TRandom.h>
10
25
#include <TStopwatch.h>
11
26
#include <TString.h>
12
27
#include <TSystem.h>
28
+ #include <iostream>
29
+
30
+ using std ::cout ;
31
+ using std ::endl ;
13
32
14
33
void run_sim_sep (Int_t fileId , Int_t nEvents = 1000 , TString mcEngine = "TGeant3" )
15
34
{
@@ -30,12 +49,7 @@ void run_sim_sep(Int_t fileId, Int_t nEvents = 1000, TString mcEngine = "TGeant3
30
49
gSystem -> Setenv ("CONFIG_DIR" , tut_configdir .Data ());
31
50
32
51
// create Instance of Run Manager class
33
- FairRunSim run {};
34
-
35
- // set the MC version used
36
- // ------------------------
37
-
38
- run .SetName (mcEngine );
52
+ FairExampleRunSim run {mcEngine };
39
53
40
54
TString outfile = Form ("data/testrun_%s_f%d.root" , mcEngine .Data (), fileId );
41
55
TString outparam = Form ("data/testpar_%s_f%d.root" , mcEngine .Data (), fileId );
0 commit comments