Skip to content

Commit f519f34

Browse files
davidrohrsawenzel
authored andcommitted
Minor temporary fixes to TPC tracking
- Ad-hoc correction for time-bin offset. Will be corrected eventually by proper transformation class. - Due to smearing, clusters may cross the central electrode a bit. - Fix missing definitions.
1 parent 014f20f commit f519f34

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Detectors/TPC/reconstruction/src/TPCCATracking.cxx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
// class.
3232
// Therefore, the macros are defined here and not globally, in order not to pollute the global namespace
3333
#define HLTCA_STANDALONE
34+
#define HAVE_O2HEADERS
3435
#define HLTCA_TPC_GEOMETRY_O2
3536

3637
// This class is only a wrapper for the actual tracking contained in the HLT O2 CA Tracking library.
@@ -184,14 +185,16 @@ int TPCCATracking::runTracking(const ClusterNativeAccessFullTPC& clusters, std::
184185
const PadCentre& padCentre = mapper.padCentre(pad);
185186
const float localY = padCentre.Y() - (padY - padNumber) * region.getPadWidth();
186187
const float localYfactor = (cru.side() == Side::A) ? -1.f : 1.f;
187-
float zPositionAbs = cluster.getTime() * vzbin;
188+
//Add constant offset of 1.6 time bins due to signal shape and binning
189+
//To be done properly in the transformation step eventually.
190+
float zPositionAbs = (cluster.getTime() - 1.6) * vzbin;
188191
if (!mTrackingCAO2Interface->GetParamContinuous())
189192
zPositionAbs = detParam.getTPClength() - zPositionAbs;
190193
else
191194
zPositionAbs = sContinuousTFReferenceLength * vzbin - zPositionAbs;
192195

193196
// sanity checks
194-
if (zPositionAbs < 0 ||
197+
if (zPositionAbs < -2 ||
195198
(!mTrackingCAO2Interface->GetParamContinuous() && zPositionAbs > detParam.getTPClength())) {
196199
LOG(INFO) << "Removing cluster " << i << " time: " << cluster.getTime() << ", abs. z: " << zPositionAbs
197200
<< "\n";

Detectors/TPC/reconstruction/test/testTPCCATracking.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ BOOST_AUTO_TEST_CASE(CATracking_test1)
4545
cont[i].sector = 0;
4646
cont[i].globalPadRow = i;
4747
cont[i].clusters.resize(1);
48-
cont[i].clusters[0].setTimeFlags(0, 0);
48+
cont[i].clusters[0].setTimeFlags(2, 0);
4949
cont[i].clusters[0].setPad(0);
5050
cont[i].clusters[0].setSigmaTime(1);
5151
cont[i].clusters[0].setSigmaPad(1);

0 commit comments

Comments
 (0)