Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MatcherComparatorOptions.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MatcherComparatorOptions.h
1 // ----------------------------------------------------------------------------
2 // 'MatcherComparatorOptions.h'
3 // Derek Anderson
4 // 01.30.2024
5 //
6 // Options for the STrackMatcherComparator module.
7 // ----------------------------------------------------------------------------
8 
9 #ifndef MATCHERCOMPARATOROPTIONS_H
10 #define MATCHERCOMPARATOROPTIONS_H
11 
12 // c++ utilities
13 #include <string>
14 #include <vector>
15 #include <utility>
16 // analysis utilities
17 #include "/sphenix/user/danderson/install/include/strackmatchercomparator/STrackMatcherComparatorConfig.h"
18 #include "/sphenix/user/danderson/install/include/strackmatchercomparator/STrackMatcherComparatorHistDef.h"
19 
20 // make common namespaces implicit
21 using namespace std;
22 
23 
24 
25 namespace MatcherComparatorOptions {
26 
27  // set up configuration -----------------------------------------------------
28 
30 
31  // simulation info
32  const vector<string> cfg_info = {
33  "#bf{#it{sPHENIX}} Simulation",
34  "1 #pi^{-}/event, p_{T} = 10 GeV/c",
35  "#bf{Only #pi^{-}}"
36  };
37 
38  // phi sectors
39  const vector<pair<float, float>> cfg_sectors = {
40  make_pair(-2.92, 0.12),
41  make_pair(-2.38, 0.05),
42  make_pair(-1.93, 0.18),
43  make_pair(-1.33, 0.07),
44  make_pair(-0.90, 0.24),
45  make_pair(-0.29, 0.09),
46  make_pair(0.23, 0.11),
47  make_pair(0.73, 0.10),
48  make_pair(1.28, 0.10),
49  make_pair(1.81, 0.08),
50  make_pair(2.23, 0.18),
51  make_pair(2.80, 0.17)
52  };
53 
55  .outFileName = "matchComparison.noVtxDistribution_vzM1010.pt10num1evt500pim.d8m2y2024.root",
56  .newInFileName = "input/merged/sPhenixG4_oneMatchPerParticleAndEmbedScanOn_noVtxDistribution_newMatcher.pt10num1evt500pim.d8m2y2024.root",
57  .oldInFileName = "input/merged/sPhenixG4_oneMatchPerParticleAndEmbedScanOn_noVtxDistribution_oldEval.pt10num1evt500pim.d8m2y2024.root",
58  .useOnlyPrimTrks = true,
59  .doZVtxCut = true,
60  .doPhiCut = true,
61  .oddPtFrac = {0.5, 1.50},
62  .zVtxRange = {-10., 10.},
63  .phiSectors = cfg_sectors,
64  .info = cfg_info,
65  .doIntNorm = true,
66  .matchVertScales = true
67  };
68  return cfg;
69 
70  } // end 'GetConfig()'
71 
72 
73 
74  // set up histogram definition ----------------------------------------------
75 
77 
78  // no. of histogram bins
79  const uint32_t def_nPtBins = 101;
80 
81  // histogram bin ranges
82  const pair<float, float> def_xPtBins = {-0.5, 100.5};
83 
85  def.nPtBins = def_nPtBins;
86  def.xPtBins = def_xPtBins;
87  return def;
88 
89  } // end 'GetHistDef()'
90 
91 } // end MatcherComparatorOptions namespace
92 
93 #endif
94 
95 // end ------------------------------------------------------------------------