Skip to content

Commit 4c45a60

Browse files
committed
Parse and pass SOR to o2-steer-colcontexttool in FST
The o2-steer-colcontexttool was using timestamp -1 (i.e. now) therefore the FST is generating the context with the mean-vertex available at givin moment. If this happen to be the default meanvertex with sigmaX,Y of 0.5 cm, the generated data is not reconstructable in the ITS since the reconstruction will use the meanvertx with small sigma corresponding to the selected run number.
1 parent 3b5ec1e commit 4c45a60

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

Detectors/Calibration/testMacros/getRunParameters.cxx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,18 @@ void writeDurationToFile(long duration)
5353
fclose(fptr);
5454
}
5555

56+
void writeSORToFile(long sor)
57+
{
58+
59+
FILE* fptr = fopen("SOR.txt", "w");
60+
if (fptr == nullptr) {
61+
LOGP(fatal, "ERROR: Could not open file to write SOR!");
62+
return;
63+
}
64+
fprintf(fptr, "%ld", sor);
65+
fclose(fptr);
66+
}
67+
5668
void writeBFieldToFile(float b)
5769
{
5870

@@ -165,6 +177,7 @@ int main(int argc, char* argv[])
165177
ir = -1.f;
166178
writeIRtoFile(ir);
167179
writeDurationToFile(run_O2duration);
180+
writeSORToFile(tsSOR);
168181
return 0;
169182
}
170183
}
@@ -204,6 +217,7 @@ int main(int argc, char* argv[])
204217
}
205218
writeIRtoFile(ir);
206219
writeDurationToFile(duration);
220+
writeSORToFile(tsSOR);
207221

208222
return 0;
209223
}

prodtests/full_system_test.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ fi
8181

8282
[[ "$FIRSTSAMPLEDORBIT" -lt "$RUNFIRSTORBIT" ]] && FIRSTSAMPLEDORBIT=$RUNFIRSTORBIT
8383

84+
# get run start time
85+
taskwrapper run_params.log o2-calibration-get-run-parameters -r $RUNNUMBER
86+
runStartTime=`cat SOR.txt`
87+
8488
# allow skipping
8589
JOBUTILS_SKIPDONE=ON
8690
# potentially enable memory monitoring (independent on whether DPL or not)
@@ -162,6 +166,7 @@ taskwrapper collcontext.log o2-steer-colcontexttool \
162166
--maxCollsPerTF ${NEvents} \
163167
--orbitsEarly ${OrbitsBeforeTf} \
164168
--bcPatternFile ccdb \
169+
--timestamp ${runStartTime} \
165170
${QEDSPEC}
166171

167172
# Include collision system for TPC loopers generation

0 commit comments

Comments
 (0)