Skip to content

Commit c5524aa

Browse files
committed
modernize-use-auto
1 parent d90b91b commit c5524aa

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

PWGDQ/TableProducer/tableMakerMC_withAssoc.cxx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ struct TableMakerMC {
549549
fLabelsMapReversed.clear();
550550
fMCFlags.clear();
551551

552-
uint16_t mcflags = static_cast<uint16_t>(0); // flags which will hold the decisions for each MC signal
552+
auto mcflags = static_cast<uint16_t>(0); // flags which will hold the decisions for each MC signal
553553
int trackCounter = 0;
554554

555555
for (auto& mctrack : mcTracks) {
@@ -728,7 +728,7 @@ struct TableMakerMC {
728728

729729
auto bc = collision.template bc_as<BCsWithTimestamps>();
730730
// store the selection decisions
731-
uint64_t tag = static_cast<uint64_t>(0);
731+
auto tag = static_cast<uint64_t>(0);
732732
// store some more information in the tag
733733
// if the BC found by event selection does not coincide with the collision.bc(), toggle the first bit
734734
auto bcEvSel = collision.template foundBC_as<BCsWithTimestamps>();
@@ -836,9 +836,9 @@ struct TableMakerMC {
836836
// so in case of multiple associations, the variables depending on the collision association (e.g. DCA, secondary vertexing, etc)
837837
// have to be recomputed at analysis time for each association.
838838

839-
uint64_t trackFilteringTag = static_cast<uint64_t>(0);
840-
uint32_t trackTempFilterMap = static_cast<uint32_t>(0);
841-
uint16_t mcflags = static_cast<uint16_t>(0);
839+
auto trackFilteringTag = static_cast<uint64_t>(0);
840+
auto trackTempFilterMap = static_cast<uint32_t>(0);
841+
auto mcflags = static_cast<uint16_t>(0);
842842
int trackCounter = fLabelsMap.size();
843843

844844
// Loop over associations
@@ -979,7 +979,7 @@ struct TableMakerMC {
979979
{
980980
// Skim MFT tracks
981981
// So far no cuts are applied here
982-
uint16_t mcflags = static_cast<uint16_t>(0);
982+
auto mcflags = static_cast<uint16_t>(0);
983983
int trackCounter = fLabelsMap.size();
984984

985985
for (const auto& assoc : mftAssocs) {
@@ -1096,10 +1096,10 @@ struct TableMakerMC {
10961096
// Loop over the collision-track associations, recompute track properties depending on the collision assigned, and apply track cuts for selection
10971097
// Muons are written only once, even if they constribute to more than one association,
10981098
// which means that in the case of multiple associations, the track parameters are wrong and should be computed again at analysis time.
1099-
uint8_t trackFilteringTag = static_cast<uint8_t>(0);
1100-
uint8_t trackTempFilterMap = static_cast<uint8_t>(0);
1099+
auto trackFilteringTag = static_cast<uint8_t>(0);
1100+
auto trackTempFilterMap = static_cast<uint8_t>(0);
11011101
fFwdTrackIndexMapReversed.clear();
1102-
uint16_t mcflags = static_cast<uint16_t>(0);
1102+
auto mcflags = static_cast<uint16_t>(0);
11031103
int trackCounter = fLabelsMap.size();
11041104

11051105
uint32_t offset = muonBasic.lastIndex();

0 commit comments

Comments
 (0)