Skip to content

Commit 5ad2003

Browse files
committed
Making the tracking parameters float. Using a meaningful name for the map used for label cooking.
1 parent 3ae84ae commit 5ad2003

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

Detectors/ITSMFT/ITS/reconstruction/src/CookedTracker.cxx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,20 @@ using Point3Df = Point3D<float>;
4646
// Constants hardcoded for the moment:
4747
//************************************************
4848
// seed "windows" in z and phi: makeSeeds
49-
const Double_t kzWin = 0.33;
50-
const Double_t kminPt = 0.05;
49+
const Float_t kzWin = 0.33;
50+
const Float_t kminPt = 0.05;
5151
// Maximal accepted impact parameters for the seeds
52-
const Double_t kmaxDCAxy = 3.;
53-
const Double_t kmaxDCAz = 3.;
52+
const Float_t kmaxDCAxy = 3.;
53+
const Float_t kmaxDCAz = 3.;
5454
// Layers for the seeding
5555
const Int_t kSeedingLayer1 = 6, kSeedingLayer2 = 4, kSeedingLayer3 = 5;
5656
// Space point resolution
57-
const Double_t kSigma2 = 0.0005 * 0.0005;
57+
const Float_t kSigma2 = 0.0005 * 0.0005;
5858
// Max accepted chi2
59-
const Double_t kmaxChi2PerCluster = 20.;
60-
const Double_t kmaxChi2PerTrack = 30.;
59+
const Float_t kmaxChi2PerCluster = 20.;
60+
const Float_t kmaxChi2PerTrack = 30.;
6161
// Tracking "road" from layer to layer
62-
const Double_t kRoadY = 0.2;
62+
const Float_t kRoadY = 0.2;
6363
const Float_t kRoadZ = 0.3;
6464
// Minimal number of attached clusters
6565
const Int_t kminNumberOfClusters = 4;
@@ -95,7 +95,7 @@ Label CookedTracker::cookLabel(TrackITS& t, Float_t wrong) const
9595
// A label<0 indicates that some of the clusters are wrongly assigned.
9696
//--------------------------------------------------------------------
9797
Int_t noc = t.getNumberOfClusters();
98-
std::map<Label, int> map;
98+
std::map<Label, int> labelOccurence;
9999

100100
for (int i = noc; i--;) {
101101
Int_t index = t.getClusterIndex(i);
@@ -107,12 +107,12 @@ Label CookedTracker::cookLabel(TrackITS& t, Float_t wrong) const
107107
if (lab.isEmpty())
108108
break; // all following labels will be empty also
109109
// was this label already accounted for ?
110-
map[lab]++;
110+
labelOccurence[lab]++;
111111
}
112112
}
113113
Label lab;
114114
Int_t maxL = 0; // find most encountered label
115-
for (auto[label, count] : map) {
115+
for (auto[label, count] : labelOccurence) {
116116
if (count <= maxL)
117117
continue;
118118
maxL = count;

0 commit comments

Comments
 (0)