BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
SetCuts.C
Go to the documentation of this file.
1/** Configuration macro for setting common cuts and processes for G3, G4 and Fluka
2 specific cuts and processes to g3 or g4 should be set in the g3Config.C, g4Config.C or flConfig.C
3**/
4#include "TVirtualMC.h"
5
6void SetCuts()
7{
8 cout << "SetCuts Macro: Setting Processes.." << endl;
9
10 // ------>>>> IMPORTANT!!!!
11 // For a correct comparison between GEANE and MC (pull distributions)
12 // or for a simulation without the generation of secondary particles:
13 // 1. set LOSS = 2, DRAY = 0, BREM = 1
14 // 2. set the following cut values: CUTGAM, CUTELE, CUTNEU, CUTHAD, CUTMUO = 1 MeV or less
15 // BCUTE, BCUTM, DCUTE, DCUTM, PPCUTM = 10 TeV
16 // (For an explanation of the chosen values, please refer to the GEANT User's Guide
17 // or to message #5362 in the PandaRoot Forum >> Monte Carlo Engines >> g3Config.C thread)
18 //
19 // The default settings refer to a complete simulation which generates and follows also the secondary particles.
20
21 gMC->SetProcess("PAIR", 1); /** pair production*/
22 gMC->SetProcess("COMP", 1); /**Compton scattering*/
23 gMC->SetProcess("PHOT", 1); /** photo electric effect */
24 gMC->SetProcess("PFIS", 0); /**photofission*/
25 gMC->SetProcess("DRAY", 1); /**delta-ray*/
26 gMC->SetProcess("ANNI", 1); /**annihilation*/
27 gMC->SetProcess("BREM", 1); /**bremsstrahlung*/
28 gMC->SetProcess("HADR", 3); /**hadronic process*/
29 gMC->SetProcess("MUNU", 1); /**muon nuclear interaction*/
30 gMC->SetProcess("DCAY", 1); /**decay*/
31 gMC->SetProcess("LOSS", 1); /**energy loss*/
32 gMC->SetProcess("MULS", 1); /**multiple scattering*/
33
34 Double_t cut1 = 1.0E-3; // GeV --> 1 MeV
35 Double_t tofmax = 1.E10; // seconds
36 cout << "SetCuts Macro: Setting cuts.." << endl;
37
38 gMC->SetCut("CUTGAM", cut1); /** gammas (GeV)*/
39 gMC->SetCut("CUTELE", cut1); /** electrons (GeV)*/
40 gMC->SetCut("CUTNEU", cut1); /** neutral hadrons (GeV)*/
41 gMC->SetCut("CUTHAD", cut1); /** charged hadrons (GeV)*/
42 gMC->SetCut("CUTMUO", cut1); /** muons (GeV)*/
43 gMC->SetCut("BCUTE", cut1); /** electron bremsstrahlung (GeV)*/
44 gMC->SetCut("BCUTM", cut1); /** muon and hadron bremsstrahlung(GeV)*/
45 gMC->SetCut("DCUTE", cut1); /** delta-rays by electrons (GeV)*/
46 gMC->SetCut("DCUTM", cut1); /** delta-rays by muons (GeV)*/
47 gMC->SetCut("PPCUTM", cut1); /** direct pair production by muons (GeV)*/
48 gMC->SetCut("TOFMAX", tofmax); /**time of flight cut in seconds*/
49}
double Double_t
void SetCuts()
Configuration macro for setting common cuts and processes for G3, G4 and Fluka specific cuts and proc...
Definition SetCuts.C:6