Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
load_files.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file load_files.C
1
void
load_files
(
int
scan,
int
location,
int
*energies,
string
*filenames){
2
3
if
(scan == 1){
4
energies[0] = 2;
5
energies[1] = 3;
6
energies[2] = 4;
7
energies[3] = 8;
8
energies[4] = 12;
9
energies[5] = 16;
10
energies[6] = 24;
11
energies[7] = 32;
12
}
13
if
(scan == 2){
14
energies[0] = 1;
15
energies[1] = 2;
16
energies[2] = 3;
17
energies[3] = 4;
18
energies[4] = 6;
19
energies[5] = 8;
20
energies[6] = 12;
21
energies[7] = 16;
22
}
23
if
(scan == 3){
24
energies[0] = 2;
25
energies[1] = 4;
26
energies[2] = 6;
27
energies[3] = 8;
28
energies[4] = 12;
29
energies[5] = 16;
30
energies[6] = 24;
31
energies[7] = 28;
32
}
33
34
if
(scan == 1){
35
filenames[0] =
"output_2GeV_2042_hodo_tree6.root"
;
36
filenames[1] =
"output_3GeV_2040_hodo_tree6.root"
;
37
filenames[2] =
"output_4GeV_2039_hodo_tree6.root"
;
38
filenames[3] =
"output_8GeV_2038_hodo_tree6.root"
;
39
filenames[4] =
"output_12GeV_2067_hodo_tree6.root"
;
40
filenames[5] =
"output_16GeV_2063_hodo_tree6.root"
;
41
filenames[6] =
"output_24GeV_2061_hodo_tree6.root"
;
42
filenames[7] =
"output_32GeV_2060_hodo_tree6.root"
;
43
}
44
if
(scan == 2){
45
/*locations:
46
location 1: UIUC (Tower 21)
47
location 2: alt UIUC (Tower 18)
48
location 3: THP (Tower 42)
49
50
note: some files (marked placeholder) are duplicates of other energies as not all energies for the scan were run for each location
51
*/
52
if
(location == 1) {
//UIUC
53
filenames[0] =
"output_UIUCenergyscan_1GeV_2298_hodo_tree7_Jun17.root"
;
54
filenames[1] =
"output_UIUCenergyscan_2GeV_2268_hodo_tree7_Jun17.root"
;
55
filenames[2] =
"output_UIUCenergyscan_3GeV_2260_hodo_tree7_Jun17.root"
;
56
filenames[3] =
"output_UIUCenergyscan_4GeV_2256_hodo_tree7_Jun17.root"
;
57
filenames[4] =
"output_UIUCenergyscan_6GeV_2247_hodo_tree7_Jun17.root"
;
58
filenames[5] =
"output_UIUCenergyscan_8GeV_2295_hodo_tree7_Jun17.root"
;
59
filenames[6] =
"output_UIUCenergyscan_12GeV_2276_hodo_tree7_Jun17.root"
;
60
filenames[7] =
"output_UIUCenergyscan_16GeV_2280_hodo_tree7_Jun17.root"
;
61
}
62
if
(location == 2){
//alt UIUC (only 4 and 8 GeV)
63
filenames[0] =
"output_Tower18_UIUC_2ndenergyscan_4GeV_2256_hodo_tree10_Jul7.root "
;
//placeholder
64
filenames[1] =
"output_Tower18_UIUC_2ndenergyscan_4GeV_2256_hodo_tree10_Jul7.root"
;
//placeholder
65
filenames[2] =
"output_Tower18_UIUC_2ndenergyscan_4GeV_2256_hodo_tree10_Jul7.root"
;
//placeholder
66
filenames[3] =
"output_Tower18_UIUC_2ndenergyscan_4GeV_2256_hodo_tree10_Jul7.root"
;
67
filenames[4] =
"output_Tower18_UIUC_2ndenergyscan_8GeV_2235_hodo_tree10_Jul7.root"
;
//placeholder
68
filenames[5] =
"output_Tower18_UIUC_2ndenergyscan_8GeV_2235_hodo_tree10_Jul7.root"
;
69
filenames[6] =
"output_Tower18_UIUC_2ndenergyscan_8GeV_2235_hodo_tree10_Jul7.root"
;
//placeholder
70
filenames[7] =
"output_Tower18_UIUC_2ndenergyscan_8GeV_2235_hodo_tree10_Jul7.root"
;
//placeholder
71
}
72
if
(location == 3) {
//THP (no 1GeV)
73
filenames[0] =
"output_THP_2ndenergyscan_2GeV_2269_hodo_tree10_Jul7.root"
;
//placeholder
74
filenames[1] =
"output_THP_2ndenergyscan_2GeV_2269_hodo_tree10_Jul7.root"
;
75
filenames[2] =
"output_THP_2ndenergyscan_3GeV_2264_hodo_tree10_Jul7.root"
;
76
filenames[3] =
"output_THP_2ndenergyscan_4GeV_2257_hodo_tree10_Jul7.root"
;
77
filenames[4] =
"output_THP_2ndenergyscan_6GeV_2249_hodo_tree10_Jul7.root"
;
78
filenames[5] =
"output_THP_2ndenergyscan_8GeV_2288_hodo_tree10_Jul7.root"
;
79
filenames[6] =
"output_THP_2ndenergyscan_12GeV_2278_hodo_tree10_Jul7.root"
;
80
filenames[7] =
"output_THP_2ndenergyscan_16GeV_2284_hodo_tree10_Jul7.root"
;
81
}
82
}
83
if
(scan == 3){
84
filenames[0] =
"output_HCAL_EMCALscan_minus2GeV_2692_hodo_tree9_Jun23.root"
;
85
filenames[1] =
"output_HCAL_EMCALscan_minus4GeV_2695_hodo_tree9_Jun23.root"
;
86
filenames[2] =
"output_HCAL_EMCALscan_minus6GeV_2698_hodo_tree9_Jun23.root"
;
87
filenames[3] =
"output_HCAL_EMCALscan_minus8GeV_2703_hodo_tree9_Jun23.root"
;
88
filenames[4] =
"output_HCAL_EMCALscan_minus12GeV_2719_hodo_tree9_Jun23.root"
;
89
filenames[5] =
"output_HCAL_EMCALscan_minus16GeV_2722_hodo_tree9_Jun23.root"
;
90
filenames[6] =
"output_HCAL_EMCALscan_minus24GeV_lowergain_2727_hodo_tree9_Jun23.root"
;
91
filenames[7] =
"output_HCAL_EMCALscan_minus28GeV_lowergain_2730_hodo_tree9_Jun23.root"
;
92
}
93
}
94
analysis
blob
master
Prototype3
EMCal
macros
load_files.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:55
using
1.8.2 with
sPHENIX GitHub integration