Skip to content

Commit cbccafb

Browse files
authored
Merge branch 'dev' into trd-dcs-sw
2 parents 0c2a62a + 2d17052 commit cbccafb

122 files changed

Lines changed: 1705 additions & 1225 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Apply requested async label
3+
4+
'on':
5+
issue_comment:
6+
types:
7+
- created
8+
- edited
9+
10+
permissions: {}
11+
12+
jobs:
13+
apply_async_labels:
14+
name: Apply requested async label
15+
uses: alisw/ali-bot/.github/workflows/async-auto-label.yml@master
16+
permissions:
17+
pull-requests: write # to update labels
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Collect and print async labels
3+
4+
'on':
5+
pull_request_target:
6+
types:
7+
- opened
8+
- reopened
9+
branches:
10+
- dev
11+
12+
permissions: {}
13+
14+
jobs:
15+
list_async_labels:
16+
name: Collect and print async labels
17+
uses: alisw/ali-bot/.github/workflows/async-list-label.yml@master
18+
permissions:
19+
pull-requests: write # to update labels

Common/MathUtils/include/MathUtils/detail/basicMath.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ GPUhdi() T abs(T x)
6565
template <class T>
6666
GPUdi() int nint(T x)
6767
{
68-
return o2::gpu::GPUCommonMath::Nint(x);
68+
return o2::gpu::GPUCommonMath::Float2IntRn(x);
6969
};
7070

7171
template <class T>

DataFormats/Detectors/ITSMFT/common/include/DataFormatsITSMFT/ROFRecord.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ class ROFRecord
5858
mROFEntry.clear();
5959
mBCData.clear();
6060
}
61-
void print() const;
6261

6362
template <typename T>
6463
gsl::span<const T> getROFData(const gsl::span<const T> tfdata) const
@@ -84,6 +83,10 @@ class ROFRecord
8483
return i < getNEntries() ? &tfdata[getFirstEntry() + i] : nullptr;
8584
}
8685

86+
std::string asString() const;
87+
void print() const;
88+
friend std::ostream& operator<<(std::ostream& output, const ROFRecord& rec);
89+
8790
private:
8891
o2::InteractionRecord mBCData; // BC data for given trigger
8992
EvIdx mROFEntry; //< reference on the 1st object of the ROF in data
@@ -105,7 +108,10 @@ struct MC2ROFRecord {
105108
MC2ROFRecord() = default;
106109
MC2ROFRecord(int evID, int rofRecID, ROFtype mnrof, ROFtype mxrof) : eventRecordID(evID), rofRecordID(rofRecID), minROF(mnrof), maxROF(mxrof) {}
107110
int getNROFs() const { return (rofRecordID < 0 || minROF > maxROF) ? 0 : (maxROF - minROF); }
111+
std::string asString() const;
108112
void print() const;
113+
friend std::ostream& operator<<(std::ostream& output, const MC2ROFRecord& rec);
114+
109115
ClassDefNV(MC2ROFRecord, 1);
110116
};
111117
} // namespace itsmft

DataFormats/Detectors/ITSMFT/common/include/DataFormatsITSMFT/TopologyDictionary.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ struct GroupStruct {
5454
float mErrZ; ///< Error associated to the hit point in the z direction.
5555
float mErr2X; ///< Squared Error associated to the hit point in the x direction.
5656
float mErr2Z; ///< Squared Error associated to the hit point in the z direction.
57-
float mXCOG; ///< x position of te COG wrt the boottom left corner of the bounding box
58-
float mZCOG; ///< z position of te COG wrt the boottom left corner of the bounding box
57+
float mXCOG; ///< x position of the COG wrt the bottom left corner of the bounding box
58+
float mZCOG; ///< z position of the COG wrt the bottom left corner of the bounding box
5959
int mNpixels; ///< Number of fired pixels
6060
ClusterPattern mPattern; ///< Bitmask of pixels. For groups the biggest bounding box for the group is taken, with all
6161
/// the bits set to 1.

DataFormats/Detectors/ITSMFT/common/src/ROFRecord.cxx

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,38 @@
1111

1212
#include "DataFormatsITSMFT/ROFRecord.h"
1313
#include <iostream>
14+
#include "fmt/format.h"
1415

1516
using namespace o2::itsmft;
1617

18+
std::string ROFRecord::asString() const
19+
{
20+
return fmt::format("ROF: {} | {} entries starting from {}", mROFrame, getNEntries(), getFirstEntry());
21+
}
22+
1723
void ROFRecord::print() const
1824
{
19-
std::cout << "ROF: " << mROFrame << " | " << getNEntries() << " entries starting from "
20-
<< getFirstEntry() << std::endl;
21-
mBCData.print();
25+
std::cout << this << "\n\t" << mBCData << std::endl;
26+
}
27+
28+
std::ostream& operator<<(std::ostream& stream, ROFRecord const& rec)
29+
{
30+
stream << rec.asString();
31+
return stream;
32+
}
33+
34+
std::string MC2ROFRecord::asString() const
35+
{
36+
return fmt::format("MCEventID: {} ROFs: {}-{} Entry in ROFRecords: {}", eventRecordID, minROF, maxROF, rofRecordID);
2237
}
2338

2439
void MC2ROFRecord::print() const
2540
{
26-
std::cout << "MCEventID: " << eventRecordID << " ROFs: " << minROF << '-' << maxROF
27-
<< " Entry in ROFRecords: " << rofRecordID << std::endl;
41+
std::cout << this << std::endl;
42+
}
43+
44+
std::ostream& operator<<(std::ostream& stream, MC2ROFRecord const& rec)
45+
{
46+
stream << rec.asString();
47+
return stream;
2848
}

DataFormats/Detectors/TRD/include/DataFormatsTRD/Tracklet64.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class Tracklet64
142142

143143
// pad column number inside pad row as int can be off by +-1 pad (same function name as for TRD digit)
144144
// FIXME: understand why the offset seems to be 8 pads and not nChannels / 2 = 10.5
145-
GPUd() int getPadCol() const { return GPUCA_NAMESPACE::gpu::CAMath::Nint(getPadColFloat() - 2); }
145+
GPUd() int getPadCol() const { return GPUCA_NAMESPACE::gpu::CAMath::Float2IntRn(getPadColFloat() - 2); }
146146

147147
// translate local position into global y (in cm) not taking into account calibrations (ExB, vDrift, t0)
148148
GPUd() float getUncalibratedY() const

Detectors/Align/src/AlignableDetectorTPC.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ int AlignableDetectorTPC::processPoints(GIndex gid, int npntCut, bool inv)
214214

215215
gpu::gpustd::array<float, 2> p = {y, z};
216216
gpu::gpustd::array<float, 3> c = {0, 0, 0};
217-
mController->getTPCParam()->GetClusterErrors2(currentRow, z, trkParam.getSnp(), trkParam.getTgl(), c[0], c[2]);
217+
mController->getTPCParam()->GetClusterErrors2(sector, currentRow, z, trkParam.getSnp(), trkParam.getTgl(), -1.f, 0.f, c[0], c[2]); // TODO: Note this disables occupancy / charge components of the error estimation
218218
if (sysE[0] > 0.f) {
219219
c[0] += sysE[0] * sysE[0];
220220
}

Detectors/GlobalTracking/include/GlobalTracking/MatchTPCITS.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,8 @@ class MatchTPCITS
342342
pmr::vector<o2::MCCompLabel>& ABTrackletLabels,
343343
pmr::vector<o2::dataformats::Triplet<float, float, float>>& calib);
344344
void refitWinners(pmr::vector<o2::dataformats::TrackTPCITS>& matchedTracks, pmr::vector<o2::MCCompLabel>& matchLabels, pmr::vector<o2::dataformats::Triplet<float, float, float>>& calib);
345-
bool refitTrackTPCITS(int iTPC, int& iITS, pmr::vector<o2::dataformats::TrackTPCITS>& matchedTracks, pmr::vector<o2::MCCompLabel>& matchLabels, pmr::vector<o2::dataformats::Triplet<float, float, float>>& calib);
345+
bool refitTrackTPCITS(int slot, int iTPC, int& iITS, pmr::vector<o2::dataformats::TrackTPCITS>& matchedTracks, pmr::vector<o2::MCCompLabel>& matchLabels, pmr::vector<o2::dataformats::Triplet<float, float, float>>& calib);
346+
void fillCalibDebug(int ifit, int iTPC, const o2::dataformats::TrackTPCITS& match, pmr::vector<o2::dataformats::Triplet<float, float, float>>& calib);
346347
void reportSizes(pmr::vector<o2::dataformats::TrackTPCITS>& matchedTracks,
347348
pmr::vector<o2::itsmft::TrkClusRef>& ABTrackletRefs,
348349
pmr::vector<int>& ABTrackletClusterIDs,
@@ -363,6 +364,7 @@ class MatchTPCITS
363364
///< perform all initializations
364365
void init();
365366
void end();
367+
void reportTiming();
366368

367369
///< clear results of previous event reco
368370
void clear();

0 commit comments

Comments
 (0)