forked from AliceO2Group/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSetCuts.C
More file actions
executable file
·64 lines (51 loc) · 3.07 KB
/
Copy pathSetCuts.C
File metadata and controls
executable file
·64 lines (51 loc) · 3.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence version 3 (LGPL) version 3, *
* copied verbatim in the file "LICENSE" *
********************************************************************************/
/** Configuration macro for setting common cuts and processes for G3, G4 and Fluka (M. Al-Turany 27.03.2008)
specific cuts and processes to g3 or g4 should be set in the g3Config.C, g4Config.C or flConfig.C
*/
void SetCuts()
{
cout << "SetCuts Macro: Setting Processes.." <<endl;
// ------>>>> IMPORTANT!!!!
// For a correct comparison between GEANE and MC (pull distributions)
// or for a simulation without the generation of secondary particles:
// 1. set LOSS = 2, DRAY = 0, BREM = 1
// 2. set the following cut values: CUTGAM, CUTELE, CUTNEU, CUTHAD, CUTMUO = 1 MeV or less
// BCUTE, BCUTM, DCUTE, DCUTM, PPCUTM = 10 TeV
// (For an explanation of the chosen values, please refer to the GEANT User's Guide
// or to message #5362 in the PandaRoot Forum >> Monte Carlo Engines >> g3Config.C thread)
//
// The default settings refer to a complete simulation which generates and follows also the secondary particles.
gMC->SetProcess("PAIR",1); /** pair production*/
gMC->SetProcess("COMP",1); /**Compton scattering*/
gMC->SetProcess("PHOT",1); /** photo electric effect */
gMC->SetProcess("PFIS",0); /**photofission*/
gMC->SetProcess("DRAY",0); /**delta-ray*/
gMC->SetProcess("ANNI",1); /**annihilation*/
gMC->SetProcess("BREM",1); /**bremsstrahlung*/
gMC->SetProcess("HADR",1); /**hadronic process*/
gMC->SetProcess("MUNU",1); /**muon nuclear interaction*/
gMC->SetProcess("DCAY",1); /**decay*/
gMC->SetProcess("LOSS",2); /**energy loss*/
gMC->SetProcess("MULS",1); /**multiple scattering*/
Double_t cut1 = 1.0E-3; // GeV --> 1 MeV
Double_t cutb = 1.0E4; // GeV --> 10 TeV
Double_t tofmax = 1.E10; // seconds
cout << "SetCuts Macro: Setting cuts.." <<endl;
gMC->SetCut("CUTGAM",cut1); /** gammas (GeV)*/
gMC->SetCut("CUTELE",cut1); /** electrons (GeV)*/
gMC->SetCut("CUTNEU",cut1); /** neutral hadrons (GeV)*/
gMC->SetCut("CUTHAD",cut1); /** charged hadrons (GeV)*/
gMC->SetCut("CUTMUO",cut1); /** muons (GeV)*/
gMC->SetCut("BCUTE",cut1); /** electron bremsstrahlung (GeV)*/
gMC->SetCut("BCUTM",cut1); /** muon and hadron bremsstrahlung(GeV)*/
gMC->SetCut("DCUTE",cut1); /** delta-rays by electrons (GeV)*/
gMC->SetCut("DCUTM",cut1); /** delta-rays by muons (GeV)*/
gMC->SetCut("PPCUTM",cut1); /** direct pair production by muons (GeV)*/
gMC->SetCut("TOFMAX",tofmax); /**time of flight cut in seconds*/
}