FairRoot/PandaRoot
g4Cuts.C
Go to the documentation of this file.
1 
7 void SetCuts()
8 {
9  cout << "SetCuts Macro: Setting Processes.." <<endl;
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",1);
24  gMC->SetProcess("COMP",1);
25  gMC->SetProcess("PHOT",1);
26  gMC->SetProcess("PFIS",0);
27  gMC->SetProcess("DRAY",1);
28  gMC->SetProcess("ANNI",1);
29  gMC->SetProcess("BREM",1);
30  gMC->SetProcess("HADR",1);
31  gMC->SetProcess("MUNU",1);
32  gMC->SetProcess("DCAY",1); //ww 1
33  gMC->SetProcess("LOSS",1); //ww 1
34  gMC->SetProcess("MULS",1);
36  Double_t cut1 = 1.0E-3; // GeV --> 1 MeV
37  Double_t cutb = 1.0E4; // GeV --> 10 TeV
38  Double_t tofmax = 1.E10; // seconds
39  cout << "SetCuts Macro: Setting cuts.." <<endl;
40 
41  gMC->SetCut("CUTGAM",cut1);
42  gMC->SetCut("CUTELE",cut1);
43  gMC->SetCut("CUTNEU",cut1);
44  gMC->SetCut("CUTHAD",cut1);
45  gMC->SetCut("CUTMUO",cut1);
46  gMC->SetCut("BCUTE",cut1);
47  gMC->SetCut("BCUTM",cut1);
48  gMC->SetCut("DCUTE",cut1);
49  gMC->SetCut("DCUTM",cut1);
50  gMC->SetCut("PPCUTM",cut1);
51  gMC->SetCut("TOFMAX",tofmax);
53  // //for pdf generation
54  // gMC->SetProcess("PAIR",0); /** pair production*/
55  // gMC->SetProcess("COMP",0); /**Compton scattering*/
56  // gMC->SetProcess("PHOT",0); /** photo electric effect */
57  // gMC->SetProcess("PFIS",0); /**photofission*/
58  // gMC->SetProcess("DRAY",0); /**delta-ray*/
59  // gMC->SetProcess("ANNI",0); /**annihilation*/
60  // gMC->SetProcess("BREM",0); /**bremsstrahlung*/ //ww 1
61  // gMC->SetProcess("HADR",0); /**hadronic process*/ //ww 1
62  // gMC->SetProcess("MUNU",0); /**muon nuclear interaction*/
63  // gMC->SetProcess("DCAY",0); /**decay*/ //ww 1
64  // gMC->SetProcess("LOSS",0); /**energy loss*/ //ww 1
65  // gMC->SetProcess("MULS",0); /**multiple scattering*/
66 }
Double_t
void SetCuts()
Definition: g4Cuts.C:7