BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
Geane.C
Go to the documentation of this file.
1
2// Configuration macro for Geane VirtualMC
3
4void Config()
5{
6
7 gMC3 = new TGeant3TGeo("C++ Interface to Geant3");
8 cout << "-I- G3Config: Geant3 with TGeo has been created for Geane." << endl;
9 // create Cbm Specific Stack
10 CbmStack* st = new CbmStack(10);
11 gMC3->SetStack(st);
12
13 // ******* GEANEconfiguration for simulated Runs *******
14 gMC3->SetDEBU(0, 0, 1);
15 gMC3->SetSWIT(4, 10);
16
17 gMC3->SetDCAY(0);
18 gMC3->SetPAIR(0);
19 gMC3->SetCOMP(0);
20 gMC3->SetPHOT(0);
21 gMC3->SetPFIS(0);
22 gMC3->SetDRAY(0);
23 gMC3->SetANNI(0);
24 gMC3->SetBREM(1);
25 gMC3->SetMUNU(0);
26 gMC3->SetCKOV(0);
27 gMC3->SetHADR(0); // Select pure GEANH (HADR 1) or GEANH/NUCRIN (HADR 3)//4 fluka 5 gcalor
28 gMC3->SetLOSS(4);
29 gMC3->SetMULS(1); // 1=Moliere,3=Gaussian
30 gMC3->SetRAYL(0);
31 gMC3->SetSTRA(0);
32
33 gMC3->SetAUTO(1); // Select automatic STMIN etc... calc. (AUTO 1) or manual (AUTO 0)
34 gMC3->SetABAN(0); // Restore 3.16 behaviour for abandoned tracks
35 gMC3->SetOPTI(0); // Select optimisation level for GEANT geometry searches (0,1,2)
36 gMC3->SetERAN(5.e-7);
37
38 // -------->>>>> PAY ATTENTION!!!!!
39 // For a correct use of GEANE, you MUST use the cuts as set below!!!
40 // i.e. Since GEANE is tracking only the primary particle, DCUTE, DCUTM, BCUTE and BCUTM must be put
41 // at very high values (10 TeV) in order to calculate properly the energy loss.
42 // For a more complete explanation of the chosen values, refer to GEANT manual
43
44 Float_t cut = 1.e-3; // 1MeV cut by default
45 Float_t cuth = 1.e-4; // 0.1MeV cut by default
46 Float_t cutd = 1.e4; // Threshold for delta electrons
47 Float_t tofmax = 1.e10; // seconds
48 Float_t usrcuts[5] = {0., 0., 0., 0., 0.}; // usercuts
49 Float_t gcalpha = 0.996;
50
51 cout << "Energy straggling area parameter from user set to: " << gcalpha << endl;
52 if (gcalpha < 0.9) {
53 gcalpha = 0.9;
54 cout << "User alpha parameter too low: forced to 0.9" << endl;
55 }
56
57 // set cuts here
58 // GAM ELEC NHAD CHAD MUON EBREM MUHAB EDEL MUDEL MUPA TOFMAX
59 gMC3->SetCUTS(cut, // CUTGAM = gammas
60 cut, // CUTELE = electrons
61 cuth, // CUTNEU = neutral hadrons
62 cuth, // CUTHAD = charged hadrons
63 cuth, // CUTMUO = muons
64 cut, // BCUTE = electron bremsstrahlung
65 cut, // BCUTM = muon bremsstrahlung
66 cutd, // DCUTE = delta rays by electrons
67 cut, // DCUTM = delta rays by muons
68 cut, // PPCUTM = pair production by muons
69 tofmax, // TOFMAX = time of flight cut
70 usrcuts);
71
72 gMC3->SetECut(gcalpha);
73}
float Float_t
CbmStack.h.
Definition CbmStack.h:43
void Config()
Definition Geane.C:4