FairRoot/PandaRoot
Functions
g4Cuts.C File Reference

Go to the source code of this file.

Functions

void SetCuts ()
 

Function Documentation

void SetCuts ( )

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

pair production

Compton scattering

photo electric effect

photofission

delta-ray

annihilation

bremsstrahlung

hadronic process

muon nuclear interaction

decay

energy loss

multiple scattering

gammas (GeV)

electrons (GeV)

neutral hadrons (GeV)

charged hadrons (GeV)

muons (GeV)

electron bremsstrahlung (GeV)

muon and hadron bremsstrahlung(GeV)

delta-rays by electrons (GeV)

delta-rays by muons (GeV)

direct pair production by muons (GeV)

time of flight cut in seconds

Definition at line 7 of file g4Cuts.C.

References Double_t.

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);
35 
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);
52 
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