Skip to content

Commit 358600c

Browse files
authored
[PWGEM] TableReader_withAssoc, make track propagation optional (#7034)
1 parent cf1c088 commit 358600c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

PWGDQ/Tasks/tableReader_withAssoc.cxx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ struct AnalysisTrackSelection {
342342
Configurable<std::string> grpmagPath{"grpmagPath", "GLO/Config/GRPMagField", "CCDB path of the GRPMagField object"};
343343
Configurable<bool> fConfigDummyRunlist{"cfgDummyRunlist", false, "If true, use dummy runlist"};
344344
Configurable<int> fConfigInitRunNumber{"cfgInitRunNumber", 543215, "Initial run number used in run by run checks"};
345+
// Track related options
346+
Configurable<bool> fPropTrack{"cfgPropTrack", true, "Propgate tracks to associated collision to recalculate DCA and momentum vector"};
345347

346348
Service<o2::ccdb::BasicCCDBManager> fCCDB;
347349

@@ -439,7 +441,9 @@ struct AnalysisTrackSelection {
439441
filterMap = 0;
440442
VarManager::FillTrack<TTrackFillMap>(track);
441443
// compute quantities which depend on the associated collision, such as DCA
442-
VarManager::FillTrackCollision<TTrackFillMap>(track, event);
444+
if (fPropTrack) {
445+
VarManager::FillTrackCollision<TTrackFillMap>(track, event);
446+
}
443447
if (fConfigQA) {
444448
fHistMan->FillHistClass("TrackBarrel_BeforeCuts", VarManager::fgValues);
445449
}

0 commit comments

Comments
 (0)