FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SetCuts.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 
14 void SetCuts()
15 {
16  cout << "SetCuts Macro: Setting Processes.." << endl;
17 
18  // ------>>>> IMPORTANT!!!!
19  // For a correct comparison between GEANE and MC (pull distributions)
20  // or for a simulation without the generation of secondary particles:
21  // 1. set LOSS = 2, DRAY = 0, BREM = 1
22  // 2. set the following cut values: CUTGAM, CUTELE, CUTNEU, CUTHAD, CUTMUO = 1 MeV or less
23  // BCUTE, BCUTM, DCUTE, DCUTM, PPCUTM = 10 TeV
24  // (For an explanation of the chosen values, please refer to the GEANT User's Guide
25  // or to message #5362 in the PandaRoot Forum >> Monte Carlo Engines >> g3Config.C thread)
26  //
27  // The default settings refer to a complete simulation which generates and follows also the secondary particles.
28 
29  gMC->SetProcess("PAIR", 1);
30  gMC->SetProcess("COMP", 1);
31  gMC->SetProcess("PHOT", 1);
32  gMC->SetProcess("PFIS", 0);
33  gMC->SetProcess("DRAY", 1);
34  gMC->SetProcess("ANNI", 1);
35  gMC->SetProcess("BREM", 1);
36  gMC->SetProcess("HADR", 1);
37  gMC->SetProcess("MUNU", 1);
38  gMC->SetProcess("DCAY", 1);
39  gMC->SetProcess("LOSS", 1);
40  gMC->SetProcess("MULS", 0);
42  Double_t cut1 = 1.0E-3; // GeV --> 1 MeV
43  Double_t cutb = 1.0E4; // GeV --> 10 TeV
44  Double_t tofmax = 1.E10; // seconds
45  cout << "SetCuts Macro: Setting cuts.." << endl;
46 
47  gMC->SetCut("CUTGAM", cut1);
48  gMC->SetCut("CUTELE", cut1);
49  gMC->SetCut("CUTNEU", cut1);
50  gMC->SetCut("CUTHAD", cut1);
51  gMC->SetCut("CUTMUO", cut1);
52  gMC->SetCut("BCUTE", cut1);
53  gMC->SetCut("BCUTM", cut1);
54  gMC->SetCut("DCUTE", cut1);
55  gMC->SetCut("DCUTM", cut1);
56  gMC->SetCut("PPCUTM", cut1);
57  gMC->SetCut("TOFMAX", tofmax);
58 }
void SetCuts()
Definition: SetCuts.C:14