Skip to content

Commit 6cc4911

Browse files
committed
Optionally store ref.track together with moved one.
1 parent 11e254b commit 6cc4911

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Detectors/GlobalTrackingWorkflow/study/src/TPCTrackStudy.cxx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ class TPCTrackStudySpec : public Task
7777
int mTFEnd = 999999999;
7878
int mTFCount = -1;
7979
bool mUseR = false;
80+
bool mRepRef = false;
8081
std::unique_ptr<o2::utils::TreeStreamRedirector> mDBGOut;
8182
std::unique_ptr<o2::utils::TreeStreamRedirector> mDBGOutCl;
8283
float mITSROFrameLengthMUS = 0.;
@@ -99,6 +100,7 @@ void TPCTrackStudySpec::init(InitContext& ic)
99100
mXRef = ic.options().get<float>("target-x");
100101
mNMoves = std::max(2, ic.options().get<int>("n-moves"));
101102
mUseR = ic.options().get<bool>("use-r-as-x");
103+
mRepRef = ic.options().get<bool>("repeat-ini-ref");
102104
mUseGPUModel = ic.options().get<bool>("use-gpu-fitter");
103105
mTFStart = ic.options().get<int>("tf-start");
104106
mTFEnd = ic.options().get<int>("tf-end");
@@ -378,7 +380,12 @@ void TPCTrackStudySpec::process(o2::globaltracking::RecoContainer& recoData)
378380
<< "counter=" << counter
379381
<< "copy=" << it
380382
<< "maxCopy=" << mnm
381-
<< "movTrackRef=" << trfm
383+
<< "movTrackRef=" << trfm;
384+
if (mRepRef) {
385+
(*mDBGOut) << "tpcMov"
386+
<< "iniTrackRef=" << trf << "time=" << tr.getTime0();
387+
}
388+
(*mDBGOut) << "tpcMov"
382389
<< "imposedTB=" << tb
383390
<< "dz=" << dz
384391
<< "clX=" << clX
@@ -418,6 +425,7 @@ DataProcessorSpec getTPCTrackStudySpec(GTrackID::mask_t srcTracks, GTrackID::mas
418425
{"tf-start", VariantType::Int, 0, {"1st TF to process"}},
419426
{"tf-end", VariantType::Int, 999999999, {"last TF to process"}},
420427
{"use-gpu-fitter", VariantType::Bool, false, {"use GPU track model for refit instead of TrackParCov"}},
428+
{"repeat-ini-ref", VariantType::Bool, false, {"store ini-refit param with every moved track"}},
421429
{"use-r-as-x", VariantType::Bool, false, {"Use radius instead of target sector X"}}};
422430
auto dataRequest = std::make_shared<DataRequest>();
423431

0 commit comments

Comments
 (0)