@@ -26,33 +26,35 @@ void SetCuts()
2626 //
2727 // The default settings refer to a complete simulation which generates and follows also the secondary particles.
2828
29- gMC -> SetProcess ("PAIR" , 1 ); /** pair production*/
30- gMC -> SetProcess ("COMP" , 1 ); /**Compton scattering*/
31- gMC -> SetProcess ("PHOT" , 1 ); /** photo electric effect */
32- gMC -> SetProcess ("PFIS" , 0 ); /**photofission*/
33- gMC -> SetProcess ("DRAY" , 1 ); /**delta-ray*/
34- gMC -> SetProcess ("ANNI" , 1 ); /**annihilation*/
35- gMC -> SetProcess ("BREM" , 1 ); /**bremsstrahlung*/
36- gMC -> SetProcess ("HADR" , 1 ); /**hadronic process*/
37- gMC -> SetProcess ("MUNU" , 1 ); /**muon nuclear interaction*/
38- gMC -> SetProcess ("DCAY" , 1 ); /**decay*/
39- gMC -> SetProcess ("LOSS" , 1 ); /**energy loss*/
40- gMC -> SetProcess ("MULS" , 0 ); /**multiple scattering*/
29+ TVirtualMC * MC = TVirtualMC ::GetMC ();
30+
31+ MC -> SetProcess ("PAIR" , 1 ); /** pair production*/
32+ MC -> SetProcess ("COMP" , 1 ); /**Compton scattering*/
33+ MC -> SetProcess ("PHOT" , 1 ); /** photo electric effect */
34+ MC -> SetProcess ("PFIS" , 0 ); /**photofission*/
35+ MC -> SetProcess ("DRAY" , 1 ); /**delta-ray*/
36+ MC -> SetProcess ("ANNI" , 1 ); /**annihilation*/
37+ MC -> SetProcess ("BREM" , 1 ); /**bremsstrahlung*/
38+ MC -> SetProcess ("HADR" , 1 ); /**hadronic process*/
39+ MC -> SetProcess ("MUNU" , 1 ); /**muon nuclear interaction*/
40+ MC -> SetProcess ("DCAY" , 1 ); /**decay*/
41+ MC -> SetProcess ("LOSS" , 1 ); /**energy loss*/
42+ MC -> SetProcess ("MULS" , 0 ); /**multiple scattering*/
4143
4244 Double_t cut1 = 1.0E-3 ; // GeV --> 1 MeV
4345 Double_t cutb = 1.0E4 ; // GeV --> 10 TeV
4446 Double_t tofmax = 1.E10 ; // seconds
4547 cout << "SetCuts Macro: Setting cuts.." << endl ;
4648
47- gMC -> SetCut ("CUTGAM" , cut1 ); /** gammas (GeV)*/
48- gMC -> SetCut ("CUTELE" , cut1 ); /** electrons (GeV)*/
49- gMC -> SetCut ("CUTNEU" , cut1 ); /** neutral hadrons (GeV)*/
50- gMC -> SetCut ("CUTHAD" , cut1 ); /** charged hadrons (GeV)*/
51- gMC -> SetCut ("CUTMUO" , cut1 ); /** muons (GeV)*/
52- gMC -> SetCut ("BCUTE" , cut1 ); /** electron bremsstrahlung (GeV)*/
53- gMC -> SetCut ("BCUTM" , cut1 ); /** muon and hadron bremsstrahlung(GeV)*/
54- gMC -> SetCut ("DCUTE" , cut1 ); /** delta-rays by electrons (GeV)*/
55- gMC -> SetCut ("DCUTM" , cut1 ); /** delta-rays by muons (GeV)*/
56- gMC -> SetCut ("PPCUTM" , cut1 ); /** direct pair production by muons (GeV)*/
57- gMC -> SetCut ("TOFMAX" , tofmax ); /**time of flight cut in seconds*/
49+ MC -> SetCut ("CUTGAM" , cut1 ); /** gammas (GeV)*/
50+ MC -> SetCut ("CUTELE" , cut1 ); /** electrons (GeV)*/
51+ MC -> SetCut ("CUTNEU" , cut1 ); /** neutral hadrons (GeV)*/
52+ MC -> SetCut ("CUTHAD" , cut1 ); /** charged hadrons (GeV)*/
53+ MC -> SetCut ("CUTMUO" , cut1 ); /** muons (GeV)*/
54+ MC -> SetCut ("BCUTE" , cut1 ); /** electron bremsstrahlung (GeV)*/
55+ MC -> SetCut ("BCUTM" , cut1 ); /** muon and hadron bremsstrahlung(GeV)*/
56+ MC -> SetCut ("DCUTE" , cut1 ); /** delta-rays by electrons (GeV)*/
57+ MC -> SetCut ("DCUTM" , cut1 ); /** delta-rays by muons (GeV)*/
58+ MC -> SetCut ("PPCUTM" , cut1 ); /** direct pair production by muons (GeV)*/
59+ MC -> SetCut ("TOFMAX" , tofmax ); /**time of flight cut in seconds*/
5860}
0 commit comments