@@ -80,21 +80,30 @@ if [[ $CALIB_ASYNC_EXTRACTTIMESERIES == 1 ]] ; then
8080 add_W o2-tpc-time-series-workflow " $DISABLE_ROOT_INPUT ${CONFIG_TPCTIMESERIES} "
8181fi
8282if [[ ${CALIB_ASYNC_EXTRACTCOSMICS:- 0} == 1 ]] ; then
83- # cosmic muons in collision data: TPC-only legs matched with the preset's selection, raw clusters of each cosmic -> o2_cosmics_full.root
83+ # cosmic muons: TPC-only legs, raw clusters of each cosmic -> o2_cosmics_full.root. In collision data the legs are selected against collision
84+ # tracks by the preset (default physics-v1); in cosmics runs no preset (the matcher's defaults). COSMICS_PRESET=none: no preset in any run
85+ [[ $BEAMTYPE == " cosmic" ]] && : ${COSMICS_PRESET:= none}
8486 : ${COSMICS_PRESET:= physics-v1}
87+ COSMICS_OPT=
88+ [[ $COSMICS_PRESET != " none" ]] && COSMICS_OPT+=" --cosmics-preset $COSMICS_PRESET "
89+ # cosmics runs reconstruct the TPC without corrections: the legs miss their ITS hits by mm to cm, wider ITS road than the default 1.5 cm
90+ [[ $BEAMTYPE == " cosmic" ]] && : ${COSMICS_ITS_ROAD_WIDTH:= 2.5}
91+ [[ -n ${COSMICS_ITS_ROAD_WIDTH:- } ]] && COSMICS_OPT+=" --its-road-width $COSMICS_ITS_ROAD_WIDTH "
92+ # road search in ITS if it is in the input (its clusters come from the CTF decoding, the ITS reco is not needed) and in TOF, TRD if they are
93+ # reconstructed (TOF clusters, calibrated TRD tracklets)
8594 COSMICS_ROAD_DETECTORS=
86- for det in ITS TOF TRD; do
95+ has_detector ITS && COSMICS_ROAD_DETECTORS=ITS
96+ for det in TOF TRD; do
8797 has_detector_reco $det && COSMICS_ROAD_DETECTORS+=" ${COSMICS_ROAD_DETECTORS: +,} $det "
8898 done
8999 COSMICS_CONFIG=
90100 has_detector_reco TOF || COSMICS_CONFIG=" cosmicsMatch.tofFlightSelection=false" # the TOF flight selection of the preset needs TOF clusters
91101 # the TPC part of a primary-vertex contributor comes from a collision: veto it as a leg, with the vertexing sources (those without TPC are ignored)
92- COSMICS_OPT=
93102 : ${COSMICS_PV_SOURCES:= ${VERTEXING_SOURCES:- } }
94103 if [[ ${COSMICS_PV_VETO:- 1} == 1 ]] && [[ $BEAMTYPE != " cosmic" ]] && has_detector_matching PRIMVTX && [[ -n ${VERTEXING_SOURCES:- } ]] && [[ -n $COSMICS_PV_SOURCES ]]; then
95104 COSMICS_OPT+=" --pv-contributor-sources $COSMICS_PV_SOURCES "
96105 fi
97- add_W o2-cosmics-match-workflow " $DISABLE_ROOT_INPUT $DISABLE_MC --track-sources TPC --cosmics-preset ${COSMICS_PRESET} -- enable-cluster-output --road-detectors ${COSMICS_ROAD_DETECTORS:- none} $COSMICS_OPT " " $COSMICS_CONFIG "
106+ add_W o2-cosmics-match-workflow " $DISABLE_ROOT_INPUT $DISABLE_MC --track-sources TPC --enable-cluster-output --road-detectors ${COSMICS_ROAD_DETECTORS:- none} $COSMICS_OPT " " $COSMICS_CONFIG "
98107fi
99108
100109# output-proxy for aggregator
0 commit comments