Skip to content

Commit 93e19f0

Browse files
Include additional headers and use static_cast for dca values
1 parent bfbd586 commit 93e19f0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Common/TableProducer/cosmicMuonToCollisionAssociator.cxx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,13 @@
4444

4545
#include "TPDGCode.h"
4646
#include <TRandom.h>
47-
47+
#include <algorithm>
48+
#include <unordered_set>
49+
#include <string>
4850
#include <chrono>
4951
#include <random>
5052
#include <typeinfo>
53+
#include <vector>
5154

5255
namespace o2
5356
{
@@ -1288,8 +1291,8 @@ struct CosmicMuonToCollisionAssociator {
12881291
} else {
12891292
tpcTime0[kTrk] = -999.f;
12901293
tpcdEdxNorm[kTrk] = -999.f;
1291-
tpcdcaR[kTrk] = (int16_t)-999;
1292-
tpcdcaZ[kTrk] = (int16_t)-999;
1294+
tpcdcaR[kTrk] = static_cast<int16_t>(-999);
1295+
tpcdcaZ[kTrk] = static_cast<int16_t>(-999);
12931296
tpcClusterByteMask[kTrk] = 0x00;
12941297
tpcdEdxMax0R[kTrk] = 0x00;
12951298
tpcdEdxMax1R[kTrk] = 0x00;
@@ -1588,7 +1591,6 @@ struct CosmicMuonToCollisionAssociator {
15881591

15891592
lowerTrk.goodTOFMatch(),
15901593
lowerTrk.tofSignal()
1591-
// lowerTrk.eventCollisionTime()
15921594
);
15931595
}
15941596
if constexpr (mode == kProcessWithPidEvTimeFlags) {

0 commit comments

Comments
 (0)