BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
g3Config.C
Go to the documentation of this file.
1
// Configuration macro for Geant3 VirtualMC
2
void
Config
()
3
{
4
FairRunSim
* fRun = FairRunSim::Instance();
5
6
TString
* gModel = fRun->GetGeoModel();
7
TGeant3* geant3 = NULL;
8
if
(strncmp(gModel->
Data
(),
"TGeo"
, 4) == 0) {
9
geant3 =
new
TGeant3TGeo(
"C++ Interface to Geant3"
);
10
cout <<
"-I- G3Config: Geant3 with TGeo has been created."
<< endl;
11
}
else
{
12
geant3 =
new
TGeant3(
"C++ Interface to Geant3"
);
13
cout <<
"-I- G3Config: Geant3 native has been created."
<< endl;
14
}
15
16
// create Cbm Specific Stack
17
CbmStack
* st =
new
CbmStack
();
18
// Set minimum number of points to store the track
19
// The default value is one, which means each track needs at least 1 point in any detector
20
st->
SetMinPoints
(1);
21
geant3->SetStack(st);
22
23
// ******* GEANT3 specific configuration for simulated Runs *******
24
geant3->SetTRIG(1);
// Number of events to be processed
25
geant3->SetSWIT(4, 100);
26
geant3->SetDEBU(0, 0, 1);
27
28
geant3->SetRAYL(1);
29
geant3->SetSTRA(0);
// 1);
30
geant3->SetAUTO(0);
// Select automatic STMIN etc... calc. (AUTO 1) or manual (AUTO 0)
31
geant3->SetABAN(0);
// Restore 3.16 behaviour for abandoned tracks
32
geant3->SetOPTI(2);
// Select optimisation level for GEANT geometry searches (0,1,2)
33
geant3->SetERAN(5.e-7);
34
geant3->SetCKOV(1);
// cerenkov photons
35
}
CbmStack
CbmStack.h.
Definition
CbmStack.h:43
CbmStack::SetMinPoints
void SetMinPoints(Int_t min)
Definition
CbmStack.h:173
FairRunSim
TString
TString::Data
const char * Data() const
Config
void Config()
Definition
g3Config.C:2
install
gconfig
g3Config.C
Generated on
for BmnRoot by
1.17.0