Skip to content

Commit 0f769ed

Browse files
authored
[Common] Fix bugs found by cppcheck and cpplint (#11310)
1 parent 9319919 commit 0f769ed

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

Common/Tasks/trackqa.cxx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
// Task producing basic tracking qa histograms
1414
//
1515

16+
#include <utility> // std::swap
17+
#include <vector>
18+
1619
#include "Framework/AnalysisDataModel.h"
1720
#include "Framework/AnalysisTask.h"
1821
#include "Framework/HistogramRegistry.h"
@@ -101,7 +104,7 @@ struct TrackQa {
101104
histos.fill(HIST("TrackPar/signed1Pt"), track.signed1Pt());
102105
histos.fill(HIST("TrackPar/snp"), track.snp());
103106
histos.fill(HIST("TrackPar/tgl"), track.tgl());
104-
for (unsigned int i = 0; i < 64; i++) {
107+
for (unsigned int i = 0; i < 32; i++) {
105108
if (track.flags() & (1 << i)) {
106109
histos.fill(HIST("TrackPar/flags"), i);
107110
}
@@ -161,13 +164,13 @@ struct TrackQaMc {
161164

162165
HistogramRegistry resolution{"Resolution", {}, OutputObjHandlingPolicy::QAObject};
163166

164-
void init(o2::framework::InitContext&){
165-
166-
};
167-
168-
void process(soa::Join<aod::FullTracks, aod::McTrackLabels>::iterator const&){
167+
void init(o2::framework::InitContext&)
168+
{
169+
}
169170

170-
};
171+
void process(soa::Join<aod::FullTracks, aod::McTrackLabels>::iterator const&)
172+
{
173+
}
171174
};
172175

173176
//****************************************************************************************

0 commit comments

Comments
 (0)