CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Config.cc
Go to the documentation of this file.
2 
3 namespace mkfit {
4 
5  const PropagationConfig* PropagationConfig::s_default = nullptr;
6 
8  if (s_default != nullptr) {
9  if (force)
10  delete s_default;
11  else
12  return;
13  }
14  s_default = new PropagationConfig(*this);
15  }
16 
17  //------------------------------------------------------------------------------
18 
19  namespace Config {
20  // Multi threading configuration
21 #if defined(MKFIT_STANDALONE)
22  int numThreadsFinder = 1;
23  int numThreadsEvents = 1;
24  int numSeedsPerTask = 32;
25 #endif
26 
27 #if defined(MKFIT_STANDALONE)
28  bool removeDuplicates = false;
29  bool useHitsForDuplicates = true;
30 #endif
31  const float maxdPt = 0.5;
32  const float maxdPhi = 0.25;
33  const float maxdEta = 0.05;
34  const float maxdR = 0.0025;
35  const float minFracHitsShared = 0.75;
36 
37  const float maxd1pt = 1.8; //windows for hit
38  const float maxdphi = 0.37; //and/or dr
39  const float maxdcth = 0.37; //comparisons
40  const float maxcth_ob = 1.99; //eta 1.44
41  const float maxcth_fw = 6.05; //eta 2.5
42 
43 #ifdef CONFIG_PhiQArrays
44  bool usePhiQArrays = true;
45 #endif
46  } // namespace Config
47 
48 } // end namespace mkfit
const float maxdPt
Definition: Config.cc:31
const float maxdphi
Definition: Config.cc:38
const float maxd1pt
Definition: Config.cc:37
const float maxdcth
Definition: Config.cc:39
void set_as_default(bool force=false)
Definition: Config.cc:7
static const PropagationConfig * s_default
Definition: Config.h:36
const float maxdR
Definition: Config.cc:34
const float maxcth_fw
Definition: Config.cc:41
constexpr bool usePhiQArrays
Definition: Config.h:104
const float maxcth_ob
Definition: Config.cc:40
const float maxdEta
Definition: Config.cc:33
const float maxdPhi
Definition: Config.cc:32
constexpr int numThreadsFinder
Definition: Config.h:120
constexpr int numSeedsPerTask
Definition: Config.h:122
constexpr int numThreadsEvents
Definition: Config.h:121
const bool useHitsForDuplicates
Definition: Config.h:142
const float minFracHitsShared
Definition: Config.cc:35
tuple Config
Definition: helper.py:10