11/********************************************************************************
2- * Copyright (C) 2012-2023 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
2+ * Copyright (C) 2012-2024 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
33 * *
44 * This software is distributed under the terms of the *
55 * GNU Lesser General Public Licence (LGPL) version 3, *
66 * copied verbatim in the file "LICENSE" *
77 ********************************************************************************/
88
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+
924#include <TRandom.h>
1025#include <TStopwatch.h>
1126#include <TString.h>
1227#include <TSystem.h>
28+ #include <iostream>
29+
30+ using std ::cout ;
31+ using std ::endl ;
1332
1433void run_sim_sep (Int_t fileId , Int_t nEvents = 1000 , TString mcEngine = "TGeant3" )
1534{
@@ -30,12 +49,7 @@ void run_sim_sep(Int_t fileId, Int_t nEvents = 1000, TString mcEngine = "TGeant3
3049 gSystem -> Setenv ("CONFIG_DIR" , tut_configdir .Data ());
3150
3251 // 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 };
3953
4054 TString outfile = Form ("data/testrun_%s_f%d.root" , mcEngine .Data (), fileId );
4155 TString outparam = Form ("data/testpar_%s_f%d.root" , mcEngine .Data (), fileId );
0 commit comments