Skip to content

Commit c7613df

Browse files
committed
mult
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 150525b commit c7613df

2 files changed

Lines changed: 6 additions & 21 deletions

File tree

Detectors/ITSMFT/ITS/macros/test/optimize_vertexer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
ELAPSED_PATTERN = re.compile(r"(?:Vertex seeding total elapsed time:|total found \d+ in) ([0-9.]+) ms")
5252
ITSRECO_NAME_PATTERN = re.compile(r"^itsreco_(\d+)$")
5353

54-
MULTIPLICITY_LABELS = ("2", "3", "4-7", "8-15", "16-31", "32-63", "64-127", "128+")
54+
MULTIPLICITY_LABELS = ("2", "3", "4", "5", "6", "7", "8", "9", "10+")
5555

5656

5757
@dataclass(frozen=True)

Detectors/ITSMFT/ITS/tracking/src/TrackingInterface.cxx

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ void ITSTrackingInterface::run(framework::ProcessingContext& pc)
242242
}
243243

244244
if (mIsMC) {
245-
constexpr size_t NMultiplicityBins{8};
246-
constexpr auto multiplicityBinsLabel = "2,3,4-7,8-15,16-31,32-63,64-127,128+";
245+
constexpr size_t NMultiplicityBins{9};
246+
constexpr auto multiplicityBinsLabel = "2,3,4,5,6,7,8,9,10+";
247247
constexpr uint8_t firstThreeLayersMask = 0x7;
248248
auto composeTruthLabel = [](const int eventId, const int sourceId) {
249249
return o2::MCCompLabel{o2::MCCompLabel::maxTrackID(), eventId, sourceId, false};
@@ -255,25 +255,10 @@ void ITSTrackingInterface::run(framework::ProcessingContext& pc)
255255
if (multiplicity == 2) {
256256
return 0;
257257
}
258-
if (multiplicity == 3) {
259-
return 1;
258+
if (multiplicity < 10) {
259+
return multiplicity - 2;
260260
}
261-
if (multiplicity < 8) {
262-
return 2;
263-
}
264-
if (multiplicity < 16) {
265-
return 3;
266-
}
267-
if (multiplicity < 32) {
268-
return 4;
269-
}
270-
if (multiplicity < 64) {
271-
return 5;
272-
}
273-
if (multiplicity < 128) {
274-
return 6;
275-
}
276-
return 7;
261+
return 8;
277262
};
278263
auto formatCounts = [](const auto& values) {
279264
std::string out = "[";

0 commit comments

Comments
 (0)