Skip to content

Commit 9045189

Browse files
authored
Align AOD creation with latest TOF (#51)
- Add more explanatory comments - Add vertex spread to AOD
1 parent 7856c3d commit 9045189

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

examples/aod/createO2tables.C

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ R__LOAD_LIBRARY(libDelphesO2)
2929
// Detector parameters
3030
const double Bz = 0.2; // [T]
3131
// TOF
32-
const double tof_radius = 100.; // [cm]
33-
const double tof_length = 200.; // [cm]
34-
const double tof_sigmat = 0.02; // [ns]
32+
const double tof_radius = 100.; // [cm] Radius of the TOF detector (used to compute acceptance)
33+
const double tof_length = 200.; // [cm] Length of the TOF detector (used to compute acceptance)
34+
const double tof_sigmat = 0.02; // [ns] Resolution of the TOF detector
35+
const double tof_sigmat0 = 0.2; // [ns] Time spread of the vertex
3536
// RICH
36-
const double rich_radius = 100.; // [cm]
37-
const double rich_length = 200.; // [cm]
37+
const double rich_radius = 100.; // [cm] Radius of the RICH detector (used to compute acceptance)
38+
const double rich_length = 200.; // [cm] Length of the RICH detector (used to compute acceptance)
3839
const double rich_index = 1.03;
3940
const double rich_radiator_length = 2.;
4041
const double rich_efficiency = 0.4;
@@ -152,7 +153,7 @@ void createO2tables(const char* inputFile = "delphes.root",
152153

153154
// TOF layer
154155
o2::delphes::TOFLayer toflayer;
155-
toflayer.setup(tof_radius, tof_length, tof_sigmat);
156+
toflayer.setup(tof_radius, tof_length, tof_sigmat, tof_sigmat0);
156157
// RICH layer
157158
o2::delphes::RICHdetector richdetector;
158159
richdetector.setup(rich_radius, rich_length);

examples/scripts/createO2tables.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import argparse
88
import configparser
9-
import subprocess
109
import os
1110
import shutil
1211
import multiprocessing
@@ -124,6 +123,7 @@ def opt(entry, require=True):
124123
# detector configuration
125124
bField = opt("bField")
126125
sigmaT = opt("sigmaT")
126+
sigmaT0 = opt("sigmaT0")
127127
radius = opt("radius")
128128
length = opt("length")
129129

@@ -175,10 +175,11 @@ def check_duplicate(option_name):
175175
msg(" nruns = ", nruns)
176176
msg(" nevents = ", nevents)
177177
msg(" --- with detector configuration", color=bcolors.HEADER)
178-
msg(" bField = ", bField, " [kG] ")
179-
msg(" sigmaT = ", sigmaT, " [ns] ")
180-
msg(" radius = ", radius, " [cm] ")
181-
msg(" length = ", length, " [cm] ")
178+
msg(" bField = ", bField, "\t[kG]")
179+
msg(" sigmaT = ", sigmaT, "\t[ns]")
180+
msg(" sigmaT0 = ", sigmaT0, "\t[ns]")
181+
msg(" radius = ", radius, "\t[cm]")
182+
msg(" length = ", length, "\t[cm]")
182183
msg(" LUT = ", lut_tag)
183184
msg(" etaMax = ", etaMax)
184185

@@ -225,6 +226,8 @@ def set_config(config_file, config, value):
225226
f"{sigmaT}""e\-9/")
226227
set_config("createO2tables.C",
227228
"const double tof_sigmat =", f"{sigmaT}""\;/")
229+
set_config("createO2tables.C",
230+
"const double tof_sigmat0 =", f"{sigmaT0}""\;/")
228231

229232
run_list = range(nruns)
230233

examples/scripts/default_configfile.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@
77
# magnetic field [kG]
88
bfield = 5.
99

10+
## TOF
1011
# time resolution [ns]
1112
sigmat = 0.020
13+
# vertex spread [ns]
14+
sigmat0 = 0.20
15+
## RICH
1216

1317
# radius [cm] used to compute the acceptance in eta (together with the detector length)
1418
radius = 100.

0 commit comments

Comments
 (0)