FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairFastSimulation.cxx
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 // -------------------------------------------------------------------------
9 // ----- FairFastSimulation source file -----
10 // ----- Created 2019/01/30 by R. Karabowicz -----
11 // -------------------------------------------------------------------------
12 
13 #include "FairFastSimulation.h"
14 
15 #include "FairFastSimModel.h"
16 #include "FairLogger.h"
17 
18 #include <TG4VUserFastSimulation.h> // for TG4VUserFastSimulation
19 
21  : TG4VUserFastSimulation()
22 {
23  SetModel("fairFastSimModel");
24  LOG(info) << "FairFastSimulation::FairFastSimulation() model set";
25 
26  SetModelParticles("fairFastSimModel", "all");
27  SetModelRegions("fairFastSimModel", "FastSimMedium");
28 
29  LOG(info) << "FairFastSimulation::FairFastSimulation() finished";
30 }
31 
33 
34 //
35 // protected methods
36 //
37 
39 {
42 
43  LOG(info) << "Construct FairFastSimulation model.";
44 
45  // Create the fast simulation model
46  FairFastSimModel* fairFastSimModel = new FairFastSimModel("fairFastSimModel");
47 
48  // Register the model in the VMC framework
49  Register(fairFastSimModel);
50 
51  LOG(info) << "end construct FairFastSimulation model.";
52  //
53  // end Initializing shower model
54 }
virtual void Construct()