Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Detectors/Calibration/testMacros/getRunParameters.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ void writeDurationToFile(long duration)
fclose(fptr);
}

void writeSORToFile(long sor)
{

FILE* fptr = fopen("SOR.txt", "w");
if (fptr == nullptr) {
LOGP(fatal, "ERROR: Could not open file to write SOR!");
return;
}
fprintf(fptr, "%ld", sor);
fclose(fptr);
}

void writeBFieldToFile(float b)
{

Expand Down Expand Up @@ -165,6 +177,7 @@ int main(int argc, char* argv[])
ir = -1.f;
writeIRtoFile(ir);
writeDurationToFile(run_O2duration);
writeSORToFile(tsSOR);
return 0;
}
}
Expand Down Expand Up @@ -204,6 +217,7 @@ int main(int argc, char* argv[])
}
writeIRtoFile(ir);
writeDurationToFile(duration);
writeSORToFile(tsSOR);

return 0;
}
7 changes: 6 additions & 1 deletion prodtests/full_system_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ fi

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

# get run start time
taskwrapper run_params.log o2-calibration-get-run-parameters -r $RUNNUMBER
runStartTime=`cat SOR.txt`

# allow skipping
JOBUTILS_SKIPDONE=ON
# potentially enable memory monitoring (independent on whether DPL or not)
Expand Down Expand Up @@ -162,14 +166,15 @@ taskwrapper collcontext.log o2-steer-colcontexttool \
--maxCollsPerTF ${NEvents} \
--orbitsEarly ${OrbitsBeforeTf} \
--bcPatternFile ccdb \
--timestamp ${runStartTime} \
${QEDSPEC}

# Include collision system for TPC loopers generation
SIMOPTKEY+="GenTPCLoopers.colsys=${BEAMTYPE};"

taskwrapper sim.log o2-sim ${FST_BFIELD+--field=}${FST_BFIELD} --vertexMode kCollContext --seed $O2SIMSEED -n $NEvents --configKeyValues "\"$SIMOPTKEY\"" -g ${FST_GENERATOR} -e ${FST_MC_ENGINE} -j $NJOBS --run ${RUNNUMBER} -o o2sim --fromCollContext collisioncontext.root:o2sim
# Test MCTracks to AO2D conversion tool
taskwrapper kine2aod.log "o2-sim-kine-publisher -b --kineFileName o2sim --aggregate-timeframe $NEvents | o2-sim-mctracks-to-aod -b --aod-writer-keep dangling | o2-analysis-mctracks-to-aod-simple-task -b"
taskwrapper kine2aod.log "o2-sim-kine-publisher --shm-segment-size $SHMSIZE -b --kineFileName o2sim --aggregate-timeframe $NEvents | o2-sim-mctracks-to-aod --shm-segment-size $SHMSIZE -b --aod-writer-keep dangling | o2-analysis-mctracks-to-aod-simple-task --shm-segment-size $SHMSIZE -b"
if [[ ! -s AnalysisResults_trees.root ]] || [[ ! -s AnalysisResults.root ]]; then
echo "Error: AnalysisResults_trees.root (AO2D from Kine file) or AnalysisResults.root (simple analysis task output) missing or empty"
exit 1
Expand Down