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