@@ -81,7 +81,7 @@ struct UpcCandProducer {
8181 Configurable<int > fFilterTVX {" filterTVX" , -1 , " Filter candidates by FT0 TVX" };
8282 Configurable<int > fFilterFV0 {" filterFV0" , -1 , " Filter candidates by FV0A" };
8383
84- Configurable<int > fBCWindowFITAmps {" bcWindowFITAmps" , 20 , " BC range for T0A/V0A amplitudes array [-range, +(range-1)]" };
84+ Configurable<uint64_t > fBCWindowFITAmps {" bcWindowFITAmps" , 20 , " BC range for T0A/V0A amplitudes array [-range, +(range-1)]" };
8585 Configurable<int > fBcWindowMCH {" bcWindowMCH" , 20 , " Time window for MCH-MID to MCH-only matching for Muon candidates" };
8686 Configurable<int > fBcWindowITSTPC {" bcWindowITSTPC" , 20 , " Time window for TOF/ITS-TPC to ITS-TPC matching for Central candidates" };
8787
@@ -884,7 +884,7 @@ struct UpcCandProducer {
884884 for (auto & pair : bcsMatchedTrIdsTOF) {
885885 auto globalBC = pair.first ;
886886 auto & barrelTrackIDs = pair.second ;
887- int32_t nTOFs = barrelTrackIDs.size ();
887+ uint32_t nTOFs = barrelTrackIDs.size ();
888888 if (nTOFs > fNBarProngs ) // too many tracks
889889 continue ;
890890 auto closestBcITSTPC = std::numeric_limits<uint64_t >::max ();
@@ -898,7 +898,7 @@ struct UpcCandProducer {
898898 if (std::abs (distClosestBcITSTPC) > fBcWindowITSTPC )
899899 continue ;
900900 auto & itstpcTracks = itClosestBcITSTPC->second ;
901- int32_t nITSTPCs = itstpcTracks.size ();
901+ uint32_t nITSTPCs = itstpcTracks.size ();
902902 if ((nTOFs + nITSTPCs) != fNBarProngs )
903903 continue ;
904904 barrelTrackIDs.insert (barrelTrackIDs.end (), itstpcTracks.begin (), itstpcTracks.end ());
@@ -953,7 +953,7 @@ struct UpcCandProducer {
953953 for (auto & pair : bcsMatchedTrIdsITSTPC) {
954954 auto globalBC = pair.first ;
955955 auto & barrelTrackIDs = pair.second ;
956- int32_t nThisITSTPCs = barrelTrackIDs.size ();
956+ uint32_t nThisITSTPCs = barrelTrackIDs.size ();
957957 if (nThisITSTPCs > fNBarProngs || nThisITSTPCs == 0 ) // too many tracks / already matched to TOF
958958 continue ;
959959 auto closestBcITSTPC = std::numeric_limits<uint64_t >::max ();
@@ -967,7 +967,7 @@ struct UpcCandProducer {
967967 if (std::abs (distClosestBcITSTPC) > fBcWindowITSTPC )
968968 continue ;
969969 auto & itstpcTracks = itClosestBcITSTPC->second ;
970- int32_t nITSTPCs = itstpcTracks.size ();
970+ uint32_t nITSTPCs = itstpcTracks.size ();
971971 if ((nThisITSTPCs + nITSTPCs) != fNBarProngs )
972972 continue ;
973973 barrelTrackIDs.insert (barrelTrackIDs.end (), itstpcTracks.begin (), itstpcTracks.end ());
@@ -1208,7 +1208,7 @@ struct UpcCandProducer {
12081208 const std::map<uint64_t , int32_t >& mapBCs,
12091209 std::vector<float >& amps,
12101210 std::vector<int8_t >& relBCs,
1211- int64_t gbc)
1211+ uint64_t gbc)
12121212 {
12131213 auto s = gbc - fBCWindowFITAmps ;
12141214 auto e = gbc + (fBCWindowFITAmps - 1 );
@@ -1344,7 +1344,7 @@ struct UpcCandProducer {
13441344 for (auto & pair : bcsMatchedTrIdsMID) { // candidates without MFT
13451345 auto globalBC = static_cast <int64_t >(pair.first );
13461346 const auto & fwdTrackIDs = pair.second ; // only MID-matched tracks at the moment
1347- int32_t nMIDs = fwdTrackIDs.size ();
1347+ uint32_t nMIDs = fwdTrackIDs.size ();
13481348 if (nMIDs > fNFwdProngs ) // too many tracks
13491349 continue ;
13501350 std::vector<int64_t > trkCandIDs{};
@@ -1359,7 +1359,7 @@ struct UpcCandProducer {
13591359 if (std::abs (distClosestBcMCH) > fBcWindowMCH )
13601360 continue ;
13611361 auto & mchTracks = itClosestBcMCH->second ;
1362- int32_t nMCHs = mchTracks.size ();
1362+ uint32_t nMCHs = mchTracks.size ();
13631363 if ((nMCHs + nMIDs) != fNFwdProngs )
13641364 continue ;
13651365 trkCandIDs.insert (trkCandIDs.end (), fwdTrackIDs.begin (), fwdTrackIDs.end ());
@@ -1589,7 +1589,6 @@ struct UpcCandProducer {
15891589 auto nFT0s = mapGlobalBcWithT0A.size ();
15901590 auto nFV0As = mapGlobalBcWithV0A.size ();
15911591 auto nZdcs = mapGlobalBcWithZdc.size ();
1592- auto nBcsWithMID = bcsMatchedTrIdsMID.size ();
15931592 auto nFDDs = mapGlobalBcWithFDD.size ();
15941593
15951594 // todo: calculate position of UD collision?
@@ -1607,11 +1606,10 @@ struct UpcCandProducer {
16071606 for (auto & pair : bcsMatchedTrIdsGlobal) { // candidates with MFT
16081607 auto globalBC = static_cast <int64_t >(pair.first );
16091608 const auto & fwdTrackIDs = pair.second ;
1610- int32_t nMFTs = fwdTrackIDs.size ();
1609+ uint32_t nMFTs = fwdTrackIDs.size ();
16111610 if (nMFTs > fNFwdProngs ) // too many tracks
16121611 continue ;
16131612 std::vector<int64_t > trkCandIDs{};
1614- auto midBC = static_cast <int64_t >(midIt->first );
16151613 const auto & midTrackIDs = midIt->second ;
16161614 if (nMFTs == fNFwdProngs ) {
16171615 for (auto iMft : fwdTrackIDs) {
0 commit comments