CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
createPhase1TrackerGeometry.cc
Go to the documentation of this file.
1 //-------------------
2 // Phase1 tracker geometry
3 //-------------------
4 
5 #include "Config.h"
6 #include "Debug.h"
7 #include "TrackerInfo.h"
8 
9 #include <functional>
10 
11 using namespace mkfit;
12 
13 namespace {
14 #include "createPhase1TrackerGeometryAutoGen.acc"
15 } // namespace
16 
17 namespace mkfit {
18  void createPhase1TrackerGeometry(TrackerInfo &ti, bool verbose) {
19  // TODO: these writes to global variables need to be removed
20  Config::nTotalLayers = 18 + 2 * 27;
21 
22  Config::useCMSGeom = true;
23 
24  Config::finding_requires_propagation_to_hit_pos = true;
25  Config::finding_inter_layer_pflags = PropagationFlags(PF_use_param_b_field | PF_apply_material);
26  Config::finding_intra_layer_pflags = PropagationFlags(PF_none);
27  Config::backward_fit_pflags = PropagationFlags(PF_use_param_b_field | PF_apply_material);
28  Config::forward_fit_pflags = PropagationFlags(PF_use_param_b_field | PF_apply_material);
29  Config::seed_fit_pflags = PropagationFlags(PF_none);
30  Config::pca_prop_pflags = PropagationFlags(PF_none);
31 
32  ti.set_eta_regions(0.9, 1.7, 2.45, false);
33  ti.create_layers(18, 27, 27);
34  createPhase1TrackerGeometryAutoGen(ti);
35 
36  // TODO: replace with MessageLogger
37  if (verbose) {
38  printf("==========================================================================================\n");
39  printf("Phase1 tracker -- Create_TrackerInfo finished\n");
40  printf("==========================================================================================\n");
41  for (auto &i : ti.m_layers)
42  i.print_layer();
43  printf("==========================================================================================\n");
44  }
45  }
46 } // namespace mkfit
void createPhase1TrackerGeometry(TrackerInfo &ti, bool verbose)
static constexpr int verbose
printf("params %d %f %f %f\n", minT, eps, errmax, chi2max)