Controls.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \namespace genie::controls
5 
6 \brief Misc GENIE control constants
7 
8 \author Costas Andreopoulos <costas.andreopoulos \at stfc.ac.uk>
9  University of Liverpool & STFC Rutherford Appleton Lab
10 
11 \created May 03, 2004
12 
13 \cpright Copyright (c) 2003-2019, The GENIE Collaboration
14  For the full text of the license visit http://copyright.genie-mc.org
15  or see $GENIE/LICENSE
16 */
17 //____________________________________________________________________________
18 
19 #ifndef _CONTROLS_H_
20 #define _CONTROLS_H_
21 
22 namespace genie {
23 namespace controls {
24 
25 // Maximum allowed number of iterations in rejection MC method
26 // before selecting a valid number
27 static const unsigned int kRjMaxIterations = 1000;
28 
29 // Maximum allowed depth when GENIE is running in recursive mode
30 static const unsigned int kRecursiveModeMaxDepth = 100;
31 
32 // Maximum allowed number of EVGThreadExceptions that is allowed
33 // to be caught by EventGenerator at a single event generation thread
34 static const unsigned int kMaxEVGThreadExceptions = 350;
35 
36 // Default random number generator seed number. It can be overriden
37 // setting the $GSEED env. var. or by using RandomGen::SetSeed(int)
38 static const unsigned int kDefaultRandSeed = 65539;
39 
40 static const double kASmallNum = 1E-6;
41 static const double kMinQ2Limit = 1E-4; // GeV^2
42 static const double kMinQ2Limit_VLE = 1E-10; // GeV^2
43 static const double kMinX = 1E-5;
44 static const double kMaxX = 1.-kASmallNum;
45 static const double kMinY = 1E-5;
46 static const double kMaxY = 1.-kASmallNum;
47 
48 // KNO Hadronization model control parameters
49 
50 // Default 'maximum' multiplicity for multiplicity probability distributions.
51 // This is not a 'hard limit'. If it is needed it will be extended internally
52 // by the KNO hadronization model.
53 static const int kMaxMultiplicity = 35;
54 
55 // Maximum number of attempts by the KNO hadronizer for finding a valid f/s
56 // hadronic system before going in error and quiting
57 static const unsigned int kMaxKNOHadSystIterations = 400;
58 
59 // Maximum number of attempts before producing an unweighted decay using the
60 // TGenPhaseSpace phase space generator
61 static const unsigned int kMaxUnweightDecayIterations = 1000;
62 
63 // Ma-like parameter used in variable transformations taking out the dipole
64 // form factor form speeding up kinematical selection for QEL and RES events
65 static const double kMQD2 = 0.7;
66 
67 } // namespace controls
68 } // namespace genie
69 
70 #endif // _CONTROLS_H_
71 
72 
static const double kMaxX
Definition: Controls.h:44
static const unsigned int kDefaultRandSeed
Definition: Controls.h:38
static const double kMinQ2Limit_VLE
Definition: Controls.h:42
THE MAIN GENIE PROJECT NAMESPACE
Definition: GeneratorBase.h:8
static const double kMaxY
Definition: Controls.h:46
static const unsigned int kMaxUnweightDecayIterations
Definition: Controls.h:61
static const double kMinY
Definition: Controls.h:45
static const double kMinQ2Limit
Definition: Controls.h:41
Float_t E
Definition: plot.C:20
static const int kMaxMultiplicity
Definition: Controls.h:53
static const double kMinX
Definition: Controls.h:43
static const double kASmallNum
Definition: Controls.h:40
static const double kMQD2
Definition: Controls.h:65
static const unsigned int kMaxEVGThreadExceptions
Definition: Controls.h:34
static const unsigned int kMaxKNOHadSystIterations
Definition: Controls.h:57
static const unsigned int kRjMaxIterations
Definition: Controls.h:27
static const unsigned int kRecursiveModeMaxDepth
Definition: Controls.h:30