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 <constantinos.andreopoulos \at cern.ch>
9  University of Liverpool & STFC Rutherford Appleton Laboratory
10 
11 \created May 03, 2004
12 
13 \cpright Copyright (c) 2003-2020, The GENIE Collaboration
14  For the full text of the license visit http://copyright.genie-mc.org
15 */
16 //____________________________________________________________________________
17 
18 #ifndef _CONTROLS_H_
19 #define _CONTROLS_H_
20 
21 namespace genie {
22 namespace controls {
23 
24 // Maximum allowed number of iterations in rejection MC method
25 // before selecting a valid number
26 static const unsigned int kRjMaxIterations = 1000;
27 
28 // Maximum allowed depth when GENIE is running in recursive mode
29 static const unsigned int kRecursiveModeMaxDepth = 100;
30 
31 // Maximum allowed number of EVGThreadExceptions that is allowed
32 // to be caught by EventGenerator at a single event generation thread
33 static const unsigned int kMaxEVGThreadExceptions = 350;
34 
35 // Default random number generator seed number. It can be overriden
36 // setting the $GSEED env. var. or by using RandomGen::SetSeed(int)
37 static const unsigned int kDefaultRandSeed = 65539;
38 
39 static const double kAVerySmallNum = 1E-12;
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_
static const double kMaxX
Definition: Controls.h:44
static const unsigned int kDefaultRandSeed
Definition: Controls.h:37
static const double kMinQ2Limit_VLE
Definition: Controls.h:42
THE MAIN GENIE PROJECT NAMESPACE
Definition: AlgCmp.h:25
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
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 double kAVerySmallNum
Definition: Controls.h:39
static const unsigned int kMaxEVGThreadExceptions
Definition: Controls.h:33
static const unsigned int kMaxKNOHadSystIterations
Definition: Controls.h:57
static const unsigned int kRjMaxIterations
Definition: Controls.h:26
static const unsigned int kRecursiveModeMaxDepth
Definition: Controls.h:29