BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
g3Config_new.C
Go to the documentation of this file.
1// $Id: g3Config.C,v 1.1.1.1 2005/06/23 07:14:09 dbertini Exp $
2//
3// Configuration macro for Geant3 VirtualMC
4
5void Config()
6{
7 FairRunSim* fRun = FairRunSim::Instance();
8 TString* gModel = fRun->GetGeoModel();
9 TGeant3* geant3 = NULL;
10 if (strncmp(gModel->Data(), "TGeo", 4) == 0) {
11 geant3 = new TGeant3TGeo("C++ Interface to Geant3");
12 cout << "-I- G3Config: Geant3 with TGeo has been created." << endl;
13 } else {
14 geant3 = new TGeant3("C++ Interface to Geant3");
15 cout << "-I- G3Config: Geant3 native has been created." << endl;
16 }
17 // create Cbm Specific Stack
18 CbmStack* st = new CbmStack();
19 st->SetMinPoints(0);
20 geant3->SetStack(st);
21
22 // ******* GEANT3 configuration for simulated Runs *******
23 geant3->SetTRIG(1); // Number of events to be processed
24 geant3->SetSWIT(4, 100);
25 geant3->SetDEBU(0, 0, 1);
26 geant3->SetDCAY(1);
27 geant3->SetPAIR(1);
28 geant3->SetCOMP(1);
29 geant3->SetPHOT(1);
30 geant3->SetPFIS(0); //
31 geant3->SetDRAY(1);
32 geant3->SetANNI(1);
33 geant3->SetBREM(1);
34 geant3->SetMUNU(1);
35 geant3->SetCKOV(1);
36 geant3->SetHADR(3); // Select pure GEANH (HADR 1) or GEANH/NUCRIN (HADR 3) //5==GCALOR
37 geant3->SetLOSS(1);
38 geant3->SetMULS(1);
39 geant3->SetRAYL(1);
40 geant3->SetSTRA(1);
41
42 geant3->SetAUTO(0); // Select automatic STMIN etc... calc. (AUTO 1) or manual (AUTO 0)
43 geant3->SetABAN(0); // Restore 3.16 behaviour for abandoned tracks
44 geant3->SetOPTI(2); // Select optimisation level for GEANT geometry searches (0,1,2)
45 geant3->SetERAN(5.e-7);
46
47 Float_t cut = 1. e - 3; // 1MeV cut by default
48 Float_t tofmax = 1.e10;
49 // Float_t cut2 = 1.e-10; // 1 keV?
50 Float_t cut2 = cut;
51 Float_t cut3 = 50.e-6; // Threshold for delta electrons
52
53 Float_t cut5[5] = {0, 0, 0, 0, 0};
54 // set cuts here
55 // GAM ELEC NHAD CHAD MUON EBREM MUHAB EDEL MUDEL MUPA TOFMAX
56 // geant3->SetCUTS(cut2, cut2, cut2, cut2, cut, cut2, cut2, cut3, cut2, cut2,
57 // tofmax);
58 geant3->SetCUTS(cut2, cut2, cut2, cut2, cut, cut2, cut2, cut2, cut2, cut2, tofmax, cut5);
59}
float Float_t
CbmStack.h.
Definition CbmStack.h:43
void SetMinPoints(Int_t min)
Definition CbmStack.h:173
const char * Data() const
void Config()
Definition g3Config_new.C:5