FairRoot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
g3Config.C
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
// $Id: g3Config.C,v 1.1.1.1 2005/06/23 07:14:09 dbertini Exp $
10
//
11
// Configuration macro for Geant3 VirtualMC
12
13
void
Config
()
14
{
15
FairRunSim
* fRun =
FairRunSim::Instance
();
16
TString* gModel = fRun->
GetGeoModel
();
17
TGeant3* geant3 = NULL;
18
if
(strncmp(gModel->Data(),
"TGeo"
, 4) == 0) {
19
geant3 =
new
TGeant3TGeo(
"C++ Interface to Geant3"
);
20
cout <<
"-I- G3Config: Geant3 with TGeo has been created."
<< endl;
21
}
else
{
22
geant3 =
new
TGeant3(
"C++ Interface to Geant3"
);
23
cout <<
"-I- G3Config: Geant3 native has been created."
<< endl;
24
}
25
// create Fair Specific Stack
26
MyProjStack
* st =
new
MyProjStack
();
27
st->
SetMinPoints
(0);
28
st->
StoreSecondaries
(kTRUE);
29
geant3->SetStack(st);
30
31
// ******* Geant3 specific configuration for simulated Runs *******
32
geant3->SetTRIG(1);
// Number of events to be processed
33
geant3->SetSWIT(4, 100);
34
geant3->SetDEBU(0, 0, 1);
35
36
geant3->SetRAYL(1);
37
geant3->SetSTRA(1);
38
geant3->SetAUTO(0);
// Select automatic STMIN etc... calc. (AUTO 1) or manual (AUTO 0)
39
geant3->SetABAN(0);
// Restore 3.16 behaviour for abandoned tracks
40
geant3->SetOPTI(2);
// Select optimisation level for GEANT geometry searches (0,1,2)
41
geant3->SetERAN(5.e-7);
42
geant3->SetCKOV(1);
// cerenkov photons
43
}
MyProjStack::SetMinPoints
void SetMinPoints(Int_t min)
Definition:
MyProjStack.h:181
FairRunSim::GetGeoModel
TString * GetGeoModel()
Definition:
FairRunSim.h:109
MyProjStack::StoreSecondaries
void StoreSecondaries(Bool_t choice=kTRUE)
Definition:
MyProjStack.h:180
FairRunSim::Instance
static FairRunSim * Instance()
Definition:
FairRunSim.cxx:116
MyProjStack
Definition:
MyProjStack.h:48
FairRunSim
Definition:
FairRunSim.h:35
Config
void Config()
Configuration macro for Geant3 VirtualMC.
Definition:
flConfig.C:10
FairRoot
templates
project_root_containers
gconfig
g3Config.C
Generated on Mon Mar 8 2021 12:14:06 for FairRoot by
1.8.5