Skip to content

Commit 9907116

Browse files
authored
Make max Xiu for pre-propagation settable (#14544)
* Change name of prepropagation config variable * Makes max xiu to be propagated settable from command line
1 parent 69f6737 commit 9907116

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Detectors/AOD/include/AODProducerWorkflow/AODProducerWorkflowSpec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ class AODProducerWorkflowDPL : public Task
246246
std::mt19937 mGenerator{}; ///< random generator for trackQA sampling
247247
o2::base::Propagator::MatCorrType mMatCorr{o2::base::Propagator::MatCorrType::USEMatCorrLUT};
248248
o2::dataformats::MeanVertexObject mVtx;
249-
float mMinPropR{o2::constants::geom::XTPCInnerRef + 0.1f};
249+
float mMaxPropXiu{5.0f}; // max X_IU for which track is to be propagated if mPropTracks is true. (other option: o2::constants::geom::XTPCInnerRef + 0.1f)
250250

251251
std::unordered_set<GIndex> mGIDUsedBySVtx;
252252
std::unordered_set<GIndex> mGIDUsedByStr;

Detectors/AOD/src/AODProducerWorkflowSpec.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ void AODProducerWorkflowDPL::fillTrackTablesPerCollision(int collisionID,
540540
}
541541
const auto& trOrig = data.getTrackParam(trackIndex);
542542
bool isProp = false;
543-
if (mPropTracks && trOrig.getX() < mMinPropR &&
543+
if (mPropTracks && trOrig.getX() < mMaxPropXiu &&
544544
mGIDUsedBySVtx.find(trackIndex) == mGIDUsedBySVtx.end() &&
545545
mGIDUsedByStr.find(trackIndex) == mGIDUsedByStr.end()) { // Do not propagate track assoc. to V0s and str. tracking
546546
auto trackPar(trOrig);
@@ -1688,6 +1688,7 @@ void AODProducerWorkflowDPL::init(InitContext& ic)
16881688
mEMCselectLeading = ic.options().get<bool>("emc-select-leading");
16891689
mThinTracks = ic.options().get<bool>("thin-tracks");
16901690
mPropTracks = ic.options().get<bool>("propagate-tracks");
1691+
mMaxPropXiu = ic.options().get<float>("propagate-tracks-max-xiu");
16911692
mPropMuons = ic.options().get<bool>("propagate-muons");
16921693
if (auto s = ic.options().get<std::string>("with-streamers"); !s.empty()) {
16931694
mStreamerFlags.set(s);
@@ -3299,6 +3300,7 @@ DataProcessorSpec getAODProducerWorkflowSpec(GID::mask_t src, bool enableSV, boo
32993300
ConfigParamSpec{"ctpreadout-create", VariantType::Int, 0, {"Create CTP digits from detector readout and CTP inputs. !=1 -- off, 1 -- on"}},
33003301
ConfigParamSpec{"emc-select-leading", VariantType::Bool, false, {"Flag to select if only the leading contributing particle for an EMCal cell should be stored"}},
33013302
ConfigParamSpec{"propagate-tracks", VariantType::Bool, false, {"Propagate tracks (not used for secondary vertices) to IP"}},
3303+
ConfigParamSpec{"propagate-tracks-max-xiu", VariantType::Float, 5.0f, {"Propagate tracks to IP if X_IU smaller than this value (and if propagate tracks enabled)"}},
33023304
ConfigParamSpec{"hepmc-update", VariantType::String, "always", {"When to update HepMC Aux tables: always - force update, never - never update, all - if all keys are present, any - when any key is present (not valid yet)"}},
33033305
ConfigParamSpec{"propagate-muons", VariantType::Bool, false, {"Propagate muons to IP"}},
33043306
ConfigParamSpec{"thin-tracks", VariantType::Bool, false, {"Produce thinned track tables"}},

0 commit comments

Comments
 (0)