Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ class AODProducerWorkflowDPL : public Task
std::mt19937 mGenerator{}; ///< random generator for trackQA sampling
o2::base::Propagator::MatCorrType mMatCorr{o2::base::Propagator::MatCorrType::USEMatCorrLUT};
o2::dataformats::MeanVertexObject mVtx;
float mMinPropR{o2::constants::geom::XTPCInnerRef + 0.1f};
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)

std::unordered_set<GIndex> mGIDUsedBySVtx;
std::unordered_set<GIndex> mGIDUsedByStr;
Expand Down
4 changes: 3 additions & 1 deletion Detectors/AOD/src/AODProducerWorkflowSpec.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ void AODProducerWorkflowDPL::fillTrackTablesPerCollision(int collisionID,
}
const auto& trOrig = data.getTrackParam(trackIndex);
bool isProp = false;
if (mPropTracks && trOrig.getX() < mMinPropR &&
if (mPropTracks && trOrig.getX() < mMaxPropXiu &&
mGIDUsedBySVtx.find(trackIndex) == mGIDUsedBySVtx.end() &&
mGIDUsedByStr.find(trackIndex) == mGIDUsedByStr.end()) { // Do not propagate track assoc. to V0s and str. tracking
auto trackPar(trOrig);
Expand Down Expand Up @@ -1688,6 +1688,7 @@ void AODProducerWorkflowDPL::init(InitContext& ic)
mEMCselectLeading = ic.options().get<bool>("emc-select-leading");
mThinTracks = ic.options().get<bool>("thin-tracks");
mPropTracks = ic.options().get<bool>("propagate-tracks");
mMaxPropXiu = ic.options().get<float>("propagate-tracks-max-xiu");
mPropMuons = ic.options().get<bool>("propagate-muons");
if (auto s = ic.options().get<std::string>("with-streamers"); !s.empty()) {
mStreamerFlags.set(s);
Expand Down Expand Up @@ -3299,6 +3300,7 @@ DataProcessorSpec getAODProducerWorkflowSpec(GID::mask_t src, bool enableSV, boo
ConfigParamSpec{"ctpreadout-create", VariantType::Int, 0, {"Create CTP digits from detector readout and CTP inputs. !=1 -- off, 1 -- on"}},
ConfigParamSpec{"emc-select-leading", VariantType::Bool, false, {"Flag to select if only the leading contributing particle for an EMCal cell should be stored"}},
ConfigParamSpec{"propagate-tracks", VariantType::Bool, false, {"Propagate tracks (not used for secondary vertices) to IP"}},
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)"}},
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)"}},
ConfigParamSpec{"propagate-muons", VariantType::Bool, false, {"Propagate muons to IP"}},
ConfigParamSpec{"thin-tracks", VariantType::Bool, false, {"Produce thinned track tables"}},
Expand Down