You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -36,4 +38,24 @@ bool isTableRequiredInWorkflow(o2::framework::InitContext& initContext, const st
36
38
returnfalse;
37
39
}
38
40
41
+
/// Function to enable or disable a configurable flag, depending on the fact that a table is needed or not
42
+
/// @param initContext initContext of the init function
43
+
/// @param table name of the table to check for
44
+
/// @param flag configurable flag to set, only if initially set to -1. Initial values of 0 or 1 will be kept disregarding the table usage in the workflow.
Copy file name to clipboardExpand all lines: Common/TableProducer/PID/pidTOF.cxx
+63-39Lines changed: 63 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,6 @@
13
13
/// \file pidTOF.cxx
14
14
/// \author Nicolò Jacazio nicolo.jacazio@cern.ch
15
15
/// \brief Task to produce PID tables for TOF split for each particle with only the Nsigma information.
16
-
/// The event time maker can be used to produce event TOF times.
17
16
/// Only the tables for the mass hypotheses requested are filled, the others are sent empty.
18
17
/// QA histograms for the TOF PID can be produced by adding `--add-qa 1` to the workflow
19
18
///
@@ -62,6 +61,7 @@ struct tofPid {
62
61
Configurable<std::string> url{"ccdb-url", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
63
62
Configurable<std::string> ccdbPath{"ccdbPath", "Analysis/PID/TOF", "Path of the TOF parametrization on the CCDB"};
64
63
Configurable<long> timestamp{"ccdb-timestamp", -1, "timestamp of the object"};
64
+
Configurable<bool> enableTimeDependentResponse{"enableTimeDependentResponse", false, "Flag to use the collision timestamp to fetch the PID Response"};
65
65
// Configuration flags to include and exclude particle hypotheses
66
66
Configurable<int> pidEl{"pid-el", -1, {"Produce PID information for the Electron mass hypothesis, overrides the automatic setup: the corresponding table can be set off (0) or on (1)"}};
67
67
Configurable<int> pidMu{"pid-mu", -1, {"Produce PID information for the Muon mass hypothesis, overrides the automatic setup: the corresponding table can be set off (0) or on (1)"}};
@@ -72,23 +72,14 @@ struct tofPid {
72
72
Configurable<int> pidTr{"pid-tr", -1, {"Produce PID information for the Triton mass hypothesis, overrides the automatic setup: the corresponding table can be set off (0) or on (1)"}};
73
73
Configurable<int> pidHe{"pid-he", -1, {"Produce PID information for the Helium3 mass hypothesis, overrides the automatic setup: the corresponding table can be set off (0) or on (1)"}};
74
74
Configurable<int> pidAl{"pid-al", -1, {"Produce PID information for the Alpha mass hypothesis, overrides the automatic setup: the corresponding table can be set off (0) or on (1)"}};
75
+
// Running variables
76
+
std::string parametrizationPath = "";
75
77
76
78
voidinit(o2::framework::InitContext& initContext)
77
79
{
78
80
// Checking the tables are requested in the workflow and enabling them
79
81
auto enableFlag = [&](const std::string particle, Configurable<int>& flag) {
80
-
const std::string table = "pidTOF" + particle;
81
-
if (isTableRequiredInWorkflow(initContext, table)) {
Copy file name to clipboardExpand all lines: Common/TableProducer/PID/pidTOFFull.cxx
+63-38Lines changed: 63 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,7 @@ struct tofPidFull {
61
61
Configurable<std::string> url{"ccdb-url", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
62
62
Configurable<std::string> ccdbPath{"ccdbPath", "Analysis/PID/TOF", "Path of the TOF parametrization on the CCDB"};
63
63
Configurable<long> timestamp{"ccdb-timestamp", -1, "timestamp of the object"};
64
+
Configurable<bool> enableTimeDependentResponse{"enableTimeDependentResponse", false, "Flag to use the collision timestamp to fetch the PID Response"};
64
65
// Configuration flags to include and exclude particle hypotheses
65
66
Configurable<int> pidEl{"pid-el", -1, {"Produce PID information for the Electron mass hypothesis, overrides the automatic setup: the corresponding table can be set off (0) or on (1)"}};
66
67
Configurable<int> pidMu{"pid-mu", -1, {"Produce PID information for the Muon mass hypothesis, overrides the automatic setup: the corresponding table can be set off (0) or on (1)"}};
@@ -71,23 +72,14 @@ struct tofPidFull {
71
72
Configurable<int> pidTr{"pid-tr", -1, {"Produce PID information for the Triton mass hypothesis, overrides the automatic setup: the corresponding table can be set off (0) or on (1)"}};
72
73
Configurable<int> pidHe{"pid-he", -1, {"Produce PID information for the Helium3 mass hypothesis, overrides the automatic setup: the corresponding table can be set off (0) or on (1)"}};
73
74
Configurable<int> pidAl{"pid-al", -1, {"Produce PID information for the Alpha mass hypothesis, overrides the automatic setup: the corresponding table can be set off (0) or on (1)"}};
75
+
// Running variables
76
+
std::string parametrizationPath = "";
74
77
75
78
voidinit(o2::framework::InitContext& initContext)
76
79
{
77
80
// Checking the tables are requested in the workflow and enabling them
78
81
auto enableFlag = [&](const std::string particle, Configurable<int>& flag) {
0 commit comments