Skip to content

Commit 29cfcd5

Browse files
committed
Merge remote-tracking branch 'origin/QCMCHnew' into QCMCHnew
2 parents a29186c + 5e636be commit 29cfcd5

File tree

5 files changed

+71
-24
lines changed

5 files changed

+71
-24
lines changed

DATA/production/calib/mid-badchannels.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ workflow_has_parameter CTF && {
4444
add_W o2-mid-calibration-workflow "" "" 0
4545
add_W o2-calibration-ccdb-populator-workflow "--ccdb-path=\"$CCDB_POPULATOR_UPLOAD_PATH\" --sspec-min 0 --sspec-max 0"
4646
add_W o2-calibration-ccdb-populator-workflow "--ccdb-path=\"$CCDB_POPULATOR_UPLOAD_PATH_DCS\" --sspec-min 1 --sspec-max 1 --name-extention dcs"
47-
workflow_has_parameter QC && add_QC_from_consul "/o2/components/qc/ANY/any/mid-calib-qcmn" "--local --host localhost"
47+
workflow_has_parameter QC && add_QC_from_apricot "/o2/components/qc/ANY/any/mid-calib-qcmn" "--local --host localhost"
4848
WORKFLOW+="o2-dpl-run $ARGS_ALL $GLOBALDPLOPT"
4949

5050
if [ "$WORKFLOWMODE" == "print" ]; then

DATA/production/calib/tpc-pedestal.sh

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,32 @@ HOST=localhost
2121
QC_CONFIG="components/qc/ANY/any/tpc-pedestal-calib-qcmn?run_type=${RUNTYPE:-}"
2222
CALIB_CONFIG="TPCCalibPedestal.ADCMin=20"
2323

24-
25-
max_events=50
26-
publish_after=400
27-
28-
if [[ ! -z ${TPC_CALIB_MAX_EVENTS:-} ]]; then
29-
max_events=${TPC_CALIB_MAX_EVENTS}
30-
fi
31-
32-
if [[ ! -z ${TPC_CALIB_PUBLISH_AFTER:-} ]]; then
33-
publish_after=${TPC_CALIB_PUBLISH_AFTER}
34-
fi
35-
24+
# ===| configuration from environment variables |===============================
25+
max_events=${TPC_CALIB_MAX_EVENTS:-50}
26+
publish_after=${TPC_CALIB_PUBLISH_AFTER:-400}
27+
sendToDCS=${TPC_CALIB_SEND_TO_DCS:-1}
28+
29+
# ===| ccdb populator setup |===================================================
30+
# the production CCDB populator will accept subspecs in this range
31+
CCDBPRO_SUBSPEC_MIN=0
32+
CCDBPRO_SUBSPEC_MAX=32767
33+
CCDBPATHPRO="http://o2-ccdb.internal"
34+
35+
# the DCS CCDB populator will accept subspecs in this range
36+
CCDBDCS_SUBSPEC_MIN=32768
37+
CCDBDCS_SUBSPEC_MAX=65535
38+
CCDBPATHDCS="$DCSCCDBSERVER_PERS"
3639

3740
#################################################################################################################################
3841

3942

4043
WORKFLOW=
4144
add_W o2-dpl-raw-proxy "--dataspec \"$PROXY_INSPEC\" --inject-missing-data --channel-config \"name=readout-proxy,type=pull,method=connect,address=ipc://@tf-builder-pipe-0,transport=shmem,rateLogging=1\"" "" 0
42-
add_W o2-tpc-calib-pad-raw "--input-spec \"$CALIB_INSPEC\" --publish-after-tfs ${publish_after} --max-events ${max_events} --lanes 36" "${CALIB_CONFIG}"
43-
add_W o2-calibration-ccdb-populator-workflow "--ccdb-path \"http://o2-ccdb.internal\" " "" 0
45+
add_W o2-tpc-calib-pad-raw "--input-spec \"$CALIB_INSPEC\" --publish-after-tfs ${publish_after} --max-events ${max_events} --lanes 36 --send-to-dcs-ccdb $sendToDCS" "${CALIB_CONFIG}"
46+
add_W o2-calibration-ccdb-populator-workflow "--ccdb-path \"$CCDBPATHPRO\" --sspec-min $CCDBPRO_SUBSPEC_MIN --sspec-max $CCDBPRO_SUBSPEC_MAX" "" 0
47+
if [[ $sendToDCS -eq 1 ]]; then
48+
add_W o2-calibration-ccdb-populator-workflow "--ccdb-path \"$CCDBPATHDCS\" --sspec-min $CCDBDCS_SUBSPEC_MIN --sspec-max $CCDBDCS_SUBSPEC_MAX --name-extention dcs" "" 0
49+
fi
4450
add_QC_from_apricot "${QC_CONFIG}" "--local --host localhost"
4551

4652
WORKFLOW+="o2-dpl-run ${ARGS_ALL} ${GLOBALDPLOPT}"

DATA/production/configurations/asyncReco/setenv_extra.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,15 @@ if [[ $remappingITS == 1 ]] || [[ $remappingMFT == 1 ]]; then
119119
REMAPPING=$REMAPPING\"
120120
fi
121121

122+
# generic remapping string
123+
if [[ -n "$ALIEN_JDL_REMAPPINGS" ]]; then
124+
if [[ -n "$REMAPPING" ]]; then
125+
REMAPPING="${REMAPPING::-1};$ALIEN_JDL_REMAPPINGS\""
126+
else
127+
REMAPPING="--condition-remap \"$ALIEN_JDL_REMAPPINGS\""
128+
fi
129+
fi
130+
122131
echo "Remapping = $REMAPPING"
123132

124133
# needed if we need more wf
@@ -348,6 +357,14 @@ elif [[ $ALIGNLEVEL == 1 ]]; then
348357
export CONFIG_EXTRA_PROCESS_o2_gpu_reco_workflow+="GPU_rec_tpc.globalTrackingRowRange=100;"
349358
fi
350359

360+
if [[ -n "$ALIEN_JDL_TPCDEDXCLMASK" ]]; then
361+
CONFIG_EXTRA_PROCESS_o2_gpu_reco_workflow+="GPU_rec_tpc.dEdxClusterRejectionFlagMask=$ALIEN_JDL_TPCDEDXCLMASK;"
362+
fi
363+
364+
if [[ -n "$ALIEN_JDL_TPCCLUSTERFILTER" ]]; then
365+
CONFIG_EXTRA_PROCESS_o2_gpu_reco_workflow+="GPU_proc.tpcUseOldCPUDecoding=1;GPU_proc.tpcApplyClusterFilterOnCPU=$ALIEN_JDL_TPCCLUSTERFILTER;"
366+
fi
367+
351368
#-------------------------------------- TPC corrections -----------------------------------------------
352369
# we need to provide to TPC
353370
# 1) interaction rate info (lumi) used for scaling or errors and possible of the corrections : INST_IR_FOR_TPC
@@ -583,6 +600,15 @@ if [[ $BEAMTYPE == "pp" ]]; then
583600
export CONFIG_EXTRA_PROCESS_o2_mch_reco_workflow+=";MCHTracking.chamberResolutionX=0.4;MCHTracking.chamberResolutionY=0.4;MCHTracking.sigmaCutForTracking=7;MCHTracking.sigmaCutForImprovement=6"
584601
fi
585602

603+
# ad-hoc settings for MFT-MCH matching
604+
# Number of MFT-MCH matching candidates to be stored in AO2Ds
605+
# Setting MUON_MATCHING_NCANDIDATES=0 disables the storage of multiple candidates
606+
if [[ -z "${MUON_MATCHING_NCANDIDATES:-}" ]]; then
607+
MUON_MATCHING_NCANDIDATES=0 # disable the saving of nCandidated by default
608+
if [[ $BEAMTYPE == "pp" ]]; then MUON_MATCHING_NCANDIDATES=5; fi
609+
if [[ $BEAMTYPE == "PbPb" ]]; then MUON_MATCHING_NCANDIDATES=20; fi
610+
fi
611+
586612
# possibly adding calib steps as done online
587613
# could be done better, so that more could be enabled in one go
588614
if [[ $ADD_CALIB == "1" ]]; then

MC/run/ANCHOR/anchorMC.sh

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -312,20 +312,33 @@ if [ "${ISEXCLUDED}" ]; then
312312
fi
313313

314314
# -- Create aligned geometry using ITS ideal alignment to avoid overlaps in geant
315-
CCDBOBJECTS_IDEAL_MC="ITS/Calib/Align"
316-
TIMESTAMP_IDEAL_MC=1
317-
${O2_ROOT}/bin/o2-ccdb-downloadccdbfile --host http://alice-ccdb.cern.ch/ -p ${CCDBOBJECTS_IDEAL_MC} -d ${ALICEO2_CCDB_LOCALCACHE} --timestamp ${TIMESTAMP_IDEAL_MC}
318-
CCDB_RC="${?}"
319-
if [ ! "${CCDB_RC}" == "0" ]; then
320-
echo_error "Problem during CCDB prefetching of ${CCDBOBJECTS_IDEAL_MC}. Exiting."
321-
exit ${CCDB_RC}
315+
ENABLEPW=0
316+
if [[ ${remainingargs} == *"GeometryManagerParam.useParallelWorld=1"* ]]; then
317+
ENABLEPW=1
318+
fi
319+
320+
if [ "${ENABLEPW}" == "0" ]; then
321+
CCDBOBJECTS_IDEAL_MC="ITS/Calib/Align"
322+
TIMESTAMP_IDEAL_MC=1
323+
${O2_ROOT}/bin/o2-ccdb-downloadccdbfile --host http://alice-ccdb.cern.ch/ -p ${CCDBOBJECTS_IDEAL_MC} -d ${ALICEO2_CCDB_LOCALCACHE} --timestamp ${TIMESTAMP_IDEAL_MC}
324+
CCDB_RC="${?}"
325+
if [ ! "${CCDB_RC}" == "0" ]; then
326+
echo_error "Problem during CCDB prefetching of ${CCDBOBJECTS_IDEAL_MC}. Exiting."
327+
exit ${CCDB_RC}
328+
fi
322329
fi
323330

324331
# TODO This can potentially be removed or if needed, should be taken over by o2dpg_sim_workflow_anchored.py and O2_dpg_workflow_runner.py
325-
echo "run with echo in pipe" | ${O2_ROOT}/bin/o2-create-aligned-geometry-workflow --configKeyValues "HBFUtils.startTime=${TIMESTAMP}" --condition-remap=file://${ALICEO2_CCDB_LOCALCACHE}=ITS/Calib/Align -b --run
332+
if [ "${ENABLEPW}" == "0" ]; then
333+
echo "run with echo in pipe" | ${O2_ROOT}/bin/o2-create-aligned-geometry-workflow --configKeyValues "HBFUtils.startTime=${TIMESTAMP}" --condition-remap=file://${ALICEO2_CCDB_LOCALCACHE}=ITS/Calib/Align -b --run
334+
else
335+
echo "run with echo in pipe" | ${O2_ROOT}/bin/o2-create-aligned-geometry-workflow --configKeyValues "HBFUtils.startTime=${TIMESTAMP}" -b --run
336+
fi
326337
mkdir -p $ALICEO2_CCDB_LOCALCACHE/GLO/Config/GeometryAligned
327338
ln -s -f $PWD/o2sim_geometry-aligned.root $ALICEO2_CCDB_LOCALCACHE/GLO/Config/GeometryAligned/snapshot.root
328-
[[ -f $PWD/its_GeometryTGeo.root ]] && mkdir -p $ALICEO2_CCDB_LOCALCACHE/ITS/Config/Geometry && ln -s -f $PWD/its_GeometryTGeo.root $ALICEO2_CCDB_LOCALCACHE/ITS/Config/Geometry/snapshot.root
339+
if [ "${ENABLEPW}" == "0" ]; then
340+
[[ -f $PWD/its_GeometryTGeo.root ]] && mkdir -p $ALICEO2_CCDB_LOCALCACHE/ITS/Config/Geometry && ln -s -f $PWD/its_GeometryTGeo.root $ALICEO2_CCDB_LOCALCACHE/ITS/Config/Geometry/snapshot.root
341+
fi
329342
[[ -f $PWD/mft_GeometryTGeo.root ]] && mkdir -p $ALICEO2_CCDB_LOCALCACHE/MFT/Config/Geometry && ln -s -f $PWD/mft_GeometryTGeo.root $ALICEO2_CCDB_LOCALCACHE/MFT/Config/Geometry/snapshot.root
330343

331344
# -- RUN THE MC WORKLOAD TO PRODUCE AOD --

MC/run/ANCHOR/tests/test_anchor_2023_apass2_pp.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ export SEED=5
3030
# for pp and 50 events per TF, we launch only 4 workers.
3131
export NWORKERS=2
3232

33+
export ALIEN_JDL_ANCHOR_SIM_OPTIONS="-gen pythia8 -confKey \"GeometryManagerParam.useParallelWorld=1;GeometryManagerParam.usePwGeoBVH=1;GeometryManagerParam.usePwCaching=1\""
34+
3335
# run the central anchor steering script; this includes
3436
# * derive timestamp
3537
# * derive interaction rate

0 commit comments

Comments
 (0)