Skip to content

Commit 7657634

Browse files
committed
Make recalculation of DCA values configurable
1 parent 2d591d1 commit 7657634

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎PWGDQ/TableProducer/globalTrackEstimator.cxx‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ struct GlobalTrackEstimator {
5858
Configurable<float> cfgRatioTPCClusterOverFindableCluster{"cfgRatioTPCClusterOverFindableCluster", 0.8, "Minimum ratio of crossed TPC rows over findable clusters"};
5959
Configurable<float> cfgMaxChi2TPC{"cfgMaxChi2TPC", 4.0, "Maximum chi2 per cluster in TPC"};
6060
Configurable<float> cfgMaxChi2ITS{"cfgMaxChi2ITS", 36.0, "Maximum chi2 per cluster in ITS"};
61-
Configurable<bool> cfgRequireITSibAny{"cfgRequireITSibAny", true, "Pseudorapidity range"};
61+
Configurable<bool> cfgRequireITSibAny{"cfgRequireITSibAny", true, "Require a hit in the ITS inner barrel"};
62+
Configurable<bool> cfgRecalculateDCA{"cfgRecalculateDCA", true, "Recalculate DCA vector with associations"};
63+
6264

6365
o2::framework::Preslice<o2::aod::ReducedTracksAssoc> preslice = o2::aod::reducedtrack_association::reducedeventId;
6466

@@ -108,8 +110,11 @@ struct GlobalTrackEstimator {
108110
auto track = assoc.template reducedtrack_as<o2::soa::Filtered<MyBarrelTracks>>();
109111

110112
VarManager::FillTrack<GkTrackFillMap>(track);
111-
VarManager::FillTrackCollision<GkTrackFillMap>(track, event);
112113

114+
if(cfgRecalculateDCA) {
115+
VarManager::FillTrackCollision<GkTrackFillMap>(track, event);
116+
}
117+
113118
const int nFindable = track.tpcNClsFindable();
114119
const int nCrossedRows = track.tpcNClsCrossedRows();
115120

0 commit comments

Comments
 (0)