Skip to content
Merged
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
34 changes: 20 additions & 14 deletions DATA/production/calib/tpc-pedestal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,32 @@ HOST=localhost
QC_CONFIG="components/qc/ANY/any/tpc-pedestal-calib-qcmn?run_type=${RUNTYPE:-}"
CALIB_CONFIG="TPCCalibPedestal.ADCMin=20"


max_events=50
publish_after=400

if [[ ! -z ${TPC_CALIB_MAX_EVENTS:-} ]]; then
max_events=${TPC_CALIB_MAX_EVENTS}
fi

if [[ ! -z ${TPC_CALIB_PUBLISH_AFTER:-} ]]; then
publish_after=${TPC_CALIB_PUBLISH_AFTER}
fi

# ===| configuration from environment variables |===============================
max_events=${TPC_CALIB_MAX_EVENTS:-50}
publish_after=${TPC_CALIB_PUBLISH_AFTER:-400}
sendToDCS=${TPC_CALIB_SEND_TO_DCS:-1}

# ===| ccdb populator setup |===================================================
# the production CCDB populator will accept subspecs in this range
CCDBPRO_SUBSPEC_MIN=0
CCDBPRO_SUBSPEC_MAX=32767
CCDBPATHPRO="http://o2-ccdb.internal"

# the DCS CCDB populator will accept subspecs in this range
CCDBDCS_SUBSPEC_MIN=32768
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @wiechula , can you remind me if these numbers are assigned in a specific way? I mean, how did you determine them? This is probably not important since this is a pedestal run.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To my understanding they are arbitrary. I used what the mean vertex task is using.
The only thing is that the subspecs used in the during snapshop need to match what is configured here.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @wiechula ,

Thanks! Can you confirm that this is for standalone calib runs? (pedestals). Then it would not matter. I will then check, for my knowledge, if the slots should be unique (in addition to have to match, of course).

Chiara

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is in the TPC standalone calib workflow, yes

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

CCDBDCS_SUBSPEC_MAX=65535
CCDBPATHDCS="$DCSCCDBSERVER_PERS"

#################################################################################################################################


WORKFLOW=
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
add_W o2-tpc-calib-pad-raw "--input-spec \"$CALIB_INSPEC\" --publish-after-tfs ${publish_after} --max-events ${max_events} --lanes 36" "${CALIB_CONFIG}"
add_W o2-calibration-ccdb-populator-workflow "--ccdb-path \"http://o2-ccdb.internal\" " "" 0
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}"
add_W o2-calibration-ccdb-populator-workflow "--ccdb-path \"$CCDBPATHPRO\" --sspec-min $CCDBPRO_SUBSPEC_MIN --sspec-max $CCDBPRO_SUBSPEC_MAX" "" 0
if [[ $sendToDCS -eq 1 ]]; then
add_W o2-calibration-ccdb-populator-workflow "--ccdb-path \"$CCDBPATHDCS\" --sspec-min $CCDBDCS_SUBSPEC_MIN --sspec-max $CCDBDCS_SUBSPEC_MAX --name-extention dcs" "" 0
fi
add_QC_from_apricot "${QC_CONFIG}" "--local --host localhost"

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