Skip to content

Commit 9a4e708

Browse files
noferinishahor02
authored andcommitted
TPC timeseries requiring ft0 info as mandatory
1 parent de69487 commit 9a4e708

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

Detectors/TPC/workflow/include/TPCWorkflow/TPCTimeSeriesSpec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace tpc
2323
static constexpr header::DataDescription getDataDescriptionTimeSeries() { return header::DataDescription{"TIMESERIES"}; }
2424
static constexpr header::DataDescription getDataDescriptionTPCTimeSeriesTFId() { return header::DataDescription{"ITPCTSTFID"}; }
2525

26-
o2::framework::DataProcessorSpec getTPCTimeSeriesSpec(const bool disableWriter, const o2::base::Propagator::MatCorrType matType, const bool enableUnbinnedWriter, o2::dataformats::GlobalTrackID::mask_t src, bool useft0 = false);
26+
o2::framework::DataProcessorSpec getTPCTimeSeriesSpec(const bool disableWriter, const o2::base::Propagator::MatCorrType matType, const bool enableUnbinnedWriter, o2::dataformats::GlobalTrackID::mask_t src);
2727

2828
} // end namespace tpc
2929
} // end namespace o2

Detectors/TPC/workflow/src/TPCTimeSeriesSpec.cxx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1814,7 +1814,7 @@ class TPCTimeSeries : public Task
18141814
}
18151815
};
18161816

1817-
o2::framework::DataProcessorSpec getTPCTimeSeriesSpec(const bool disableWriter, const o2::base::Propagator::MatCorrType matType, const bool enableUnbinnedWriter, GTrackID::mask_t src, bool useft0)
1817+
o2::framework::DataProcessorSpec getTPCTimeSeriesSpec(const bool disableWriter, const o2::base::Propagator::MatCorrType matType, const bool enableUnbinnedWriter, GTrackID::mask_t src)
18181818
{
18191819
auto dataRequest = std::make_shared<DataRequest>();
18201820
bool useMC = false;
@@ -1823,9 +1823,7 @@ o2::framework::DataProcessorSpec getTPCTimeSeriesSpec(const bool disableWriter,
18231823
dataRequest->requestTracks(srcTracks, useMC);
18241824
dataRequest->requestClusters(GTrackID::getSourcesMask("TPC"), useMC);
18251825

1826-
if (useft0) {
1827-
dataRequest->requestFT0RecPoints(false);
1828-
}
1826+
dataRequest->requestFT0RecPoints(false);
18291827

18301828
bool tpcOnly = srcTracks == GTrackID::getSourcesMask("TPC");
18311829
if (!tpcOnly) {

Detectors/TPC/workflow/src/tpc-time-series.cxx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
2929
{"disable-root-output", VariantType::Bool, false, {"disable root-files output writers"}},
3030
{"enable-unbinned-root-output", VariantType::Bool, false, {"writing out unbinned track data"}},
3131
{"track-sources", VariantType::String, std::string{o2::dataformats::GlobalTrackID::ALL}, {"comma-separated list of sources to use"}},
32-
{"use-ft0", VariantType::Bool, false, {"enable FT0 rec-points"}},
3332
{"material-type", VariantType::Int, 2, {"Type for the material budget during track propagation: 0=None, 1=Geo, 2=LUT"}}};
3433
std::swap(workflowOptions, options);
3534
}
@@ -44,8 +43,7 @@ WorkflowSpec defineDataProcessing(ConfigContext const& config)
4443
const bool enableUnbinnedWriter = config.options().get<bool>("enable-unbinned-root-output");
4544
auto src = o2::dataformats::GlobalTrackID::getSourcesMask(config.options().get<std::string>("track-sources"));
4645
auto materialType = static_cast<o2::base::Propagator::MatCorrType>(config.options().get<int>("material-type"));
47-
const bool useft0 = config.options().get<bool>("use-ft0");
48-
workflow.emplace_back(o2::tpc::getTPCTimeSeriesSpec(disableWriter, materialType, enableUnbinnedWriter, src, useft0));
46+
workflow.emplace_back(o2::tpc::getTPCTimeSeriesSpec(disableWriter, materialType, enableUnbinnedWriter, src));
4947
if (!disableWriter) {
5048
workflow.emplace_back(o2::tpc::getTPCTimeSeriesWriterSpec());
5149
}

prodtests/full-system-test/calib-workflow.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ if [[ $CALIB_ASYNC_EXTRACTTPCCURRENTS == 1 ]]; then
5454
add_W o2-tpc-integrate-cluster-workflow "${CONFIG_CTPTPC}"
5555
fi
5656
if [[ $CALIB_ASYNC_EXTRACTTIMESERIES == 1 ]] ; then
57-
CONFIG_TPCTIMESERIES=" --use-ft0"
5857
: ${CALIB_ASYNC_SAMPLINGFACTORTIMESERIES:=0.001}
5958
if [[ ! -z ${CALIB_ASYNC_ENABLEUNBINNEDTIMESERIES:-} ]]; then
6059
CONFIG_TPCTIMESERIES+=" --enable-unbinned-root-output --sample-unbinned-tsallis --threads ${TPCTIMESERIES_THREADS:-1}"

0 commit comments

Comments
 (0)