Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
STrackMatcherComparatorConfig.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file STrackMatcherComparatorConfig.h
1 // ----------------------------------------------------------------------------
2 // 'STrackMatcherComparatorConfig.h'
3 // Derek Anderson
4 // 01.30.2024
5 //
6 // Configuration struct for 'STrackMatcherComparator' module.
7 // ----------------------------------------------------------------------------
8 
9 #ifndef STRACKMATCHERCOMPARATORCONFIG_H
10 #define STRACKMATCHERCOMPARATORCONFIG_H
11 
12 // c++ utilities
13 #include <string>
14 #include <vector>
15 #include <utility>
16 
17 // make common namespaces implicit
18 using namespace std;
19 
20 
21 
22 // STrackMatcherComparatorConfig definition -----------------------------------
23 
25 
26  // file options
27  string outFileName = "test.hists.root";
28  string newInFileName = "";
29  string oldInFileName = "";
30 
31  // tree/tuple options
32  string newTreeTrueName = "T";
33  string newTreeRecoName = "T";
34  string newTupleTrueName = "ntForEvalComp";
35  string newTupleRecoName = "ntForEvalComp";
36  string oldTupleTrueName = "ntp_gtrack";
37  string oldTupleRecoName = "ntp_track";
38 
39  // histogram labels
40  string newTreeLabel = "NewTree";
41  string newTupleLabel = "NewTuple";
42  string oldTupleLabel = "OldTuple";
43 
44  // directory names
45  vector<string> histDirNames = {
46  "NewTreeHists",
47  "NewTupleHists",
48  "OldTupleHists"
49  };
50  vector<string> ratioDirNames = {
51  "TreeRatios",
52  "TupleRatios"
53  };
54  vector<string> plotDirNames = {
55  "TreePlots",
56  "TuplePlots"
57  };
58 
59  // cut options
60  bool useOnlyPrimTrks = true;
61  bool doZVtxCut = true;
62  bool doPhiCut = false;
63 
64  // cut values
65  pair<float, float> oddPtFrac = {0.50, 1.50};
66  pair<float, float> zVtxRange = {-10., 10.};
67 
68  // phi cut values
69  float sigCutVal = 0.75;
70  vector<pair<float, float>> phiSectors = {
71  make_pair(-2.92, 0.12),
72  make_pair(-2.38, 0.05),
73  make_pair(-1.93, 0.18),
74  make_pair(-1.33, 0.07),
75  make_pair(-0.90, 0.24),
76  make_pair(-0.29, 0.09),
77  make_pair(0.23, 0.11),
78  make_pair(0.73, 0.10),
79  make_pair(1.28, 0.10),
80  make_pair(1.81, 0.08),
81  make_pair(2.23, 0.18),
82  make_pair(2.80, 0.17)
83  };
84 
85  // style options
86  pair<uint32_t, uint32_t> fCol = {923, 899};
87  pair<uint32_t, uint32_t> fMar = {20, 25};
88  pair<uint32_t, uint32_t> fLin = {1, 1};
89  pair<uint32_t, uint32_t> fWid = {1, 1};
90  pair<uint32_t, uint32_t> fFil = {0, 0};
91 
92  // plot text parameters
93  string legOld = "evaluator";
94  string legNew = "truth matcher";
95  string header = "";
96  string count = "counts";
97  string norm = "normalized counts";
98  string ratio = "ratio";
99 
100  // plot information
101  vector<string> info = {
102  "#bf{#it{sPHENIX}} Simulation",
103  "1 #pi^{-}/event, p_{T} = 10 GeV/c",
104  "#bf{Only #pi^{-}}"
105  };
106 
107  // plot options
108  bool doIntNorm = false;
109  bool matchVertScales = true;
110 
111 };
112 
113 #endif
114 
115 // end ------------------------------------------------------------------------