Skip to content

Commit 0c60433

Browse files
authored
Merge pull request #45909 from smuzaffar/simulation-upgrade-llvm18-clang-format
[SIMULATION-UPGRADE] Changes suggested by new llvm18 clang-format
2 parents 1fc4040 + 07d786d commit 0c60433

File tree

16 files changed

+33
-33
lines changed

16 files changed

+33
-33
lines changed

DataFormats/GEMDigi/interface/GEMAMC.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class GEMAMC {
9393
};
9494
};
9595

96-
GEMAMC() : amch1_(0), amch2_(0), amct_(0), eh_(0), et_(0){};
96+
GEMAMC() : amch1_(0), amch2_(0), amct_(0), eh_(0), et_(0) {}
9797
~GEMAMC() { gebd_.clear(); }
9898

9999
int status();

DataFormats/GEMDigi/interface/GEMOptoHybrid.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class GEMOptoHybrid {
7373
};
7474
};
7575

76-
GEMOptoHybrid() : ch_(0), ct_(0), existVFATs_(0){};
76+
GEMOptoHybrid() : ch_(0), ct_(0), existVFATs_(0) {}
7777
~GEMOptoHybrid() { vfatd_.clear(); }
7878

7979
void setVersion(uint8_t i) { ver_ = i; }

SimCalorimetry/HGCalAssociatorProducers/plugins/LCToCPAssociatorByEnergyScoreImpl.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ ticl::association LCToCPAssociatorByEnergyScoreImpl<HIT>::makeConnections(
193193
}
194194
}
195195
} // End loop over hits on a LayerCluster
196-
} // End of loop over LayerClusters
196+
} // End of loop over LayerClusters
197197

198198
#ifdef EDM_ML_DEBUG
199199
for (unsigned int lcId = 0; lcId < nLayerClusters; ++lcId) {
@@ -395,7 +395,7 @@ ticl::association LCToCPAssociatorByEnergyScoreImpl<HIT>::makeConnections(
395395
cpPair.second += std::min(std::pow(rhFraction - cpFraction, 2), std::pow(rhFraction, 2)) * hitEnergyWeight *
396396
invLayerClusterEnergyWeight;
397397
} //End of loop over CaloParticles related the this LayerCluster.
398-
} // End of loop over Hits within a LayerCluster
398+
} // End of loop over Hits within a LayerCluster
399399
#ifdef EDM_ML_DEBUG
400400
if (cpsInLayerCluster[lcId].empty())
401401
LogDebug("LCToCPAssociatorByEnergyScoreImpl") << "layerCluster Id: \t" << lcId << "\tCP id:\t-1 "
@@ -476,7 +476,7 @@ ticl::association LCToCPAssociatorByEnergyScoreImpl<HIT>::makeConnections(
476476
<< "invCPEnergyWeight:\t" << invCPEnergyWeight << "\n";
477477
#endif
478478
} // End of loop over LayerClusters linked to hits of this CaloParticle
479-
} // End of loop over hits of CaloParticle on a Layer
479+
} // End of loop over hits of CaloParticle on a Layer
480480
#ifdef EDM_ML_DEBUG
481481
if (cPOnLayer[cpId][layerId].layerClusterIdToEnergyAndScore.empty())
482482
LogDebug("LCToCPAssociatorByEnergyScoreImpl") << "CP Id: \t" << cpId << "\tLC id:\t-1 "
@@ -490,7 +490,7 @@ ticl::association LCToCPAssociatorByEnergyScoreImpl<HIT>::makeConnections(
490490
}
491491
#endif
492492
} // End of loop over layers
493-
} // End of loop over CaloParticles
493+
} // End of loop over CaloParticles
494494

495495
return {cpsInLayerCluster, cPOnLayer};
496496
}

SimCalorimetry/HGCalAssociatorProducers/plugins/LCToSCAssociatorByEnergyScoreImpl.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ ticl::association LCToSCAssociatorByEnergyScoreImpl<HIT>::makeConnections(
182182
}
183183
}
184184
} // End loop over hits on a LayerCluster
185-
} // End of loop over LayerClusters
185+
} // End of loop over LayerClusters
186186

187187
#ifdef EDM_ML_DEBUG
188188
for (unsigned int lcId = 0; lcId < nLayerClusters; ++lcId) {
@@ -492,7 +492,7 @@ ticl::association LCToSCAssociatorByEnergyScoreImpl<HIT>::makeConnections(
492492
<< "invSCEnergyWeight:\t" << invSCEnergyWeight << "\n";
493493
#endif
494494
} // End of loop over LayerClusters linked to hits of this SimCluster
495-
} // End of loop over hits of SimCluster on a Layer
495+
} // End of loop over hits of SimCluster on a Layer
496496
#ifdef EDM_ML_DEBUG
497497
if (lcsInSimCluster[scId][layerId].layerClusterIdToEnergyAndScore.empty())
498498
LogDebug("LCToSCAssociatorByEnergyScoreImpl") << "SC Id: \t" << scId << "\tLC id:\t-1 "
@@ -507,7 +507,7 @@ ticl::association LCToSCAssociatorByEnergyScoreImpl<HIT>::makeConnections(
507507
}
508508
#endif
509509
} // End of loop over layers
510-
} // End of loop over SimClusters
510+
} // End of loop over SimClusters
511511

512512
return {scsInLayerCluster, lcsInSimCluster};
513513
}

SimCalorimetry/HGCalAssociatorProducers/plugins/LCToSimTSAssociatorByEnergyScoreImpl.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ ticl::RecoToSimTracksterCollection LCToSimTSAssociatorByEnergyScoreImpl::associa
8484
<< " is neither a CaloParticle nor a SimCluster!\n";
8585
}
8686
} // end loop over simTracksters
87-
} // end loop over layerClusters
87+
} // end loop over layerClusters
8888

8989
return returnValue;
9090
}

SimCalorimetry/HGCalAssociatorProducers/plugins/MultiClusterAssociatorByEnergyScoreImpl.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ hgcal::association MultiClusterAssociatorByEnergyScoreImpl::makeConnections(
116116
}
117117
}
118118
} // end of loop through simHits
119-
} // end of loop through simclusters
120-
} // end of loop through caloParticles
119+
} // end of loop through simclusters
120+
} // end of loop through caloParticles
121121

122122
#ifdef EDM_ML_DEBUG
123123
LogDebug("MultiClusterAssociatorByEnergyScoreImpl") << "cPOnLayer INFO" << std::endl;
@@ -483,7 +483,7 @@ hgcal::association MultiClusterAssociatorByEnergyScoreImpl::makeConnections(
483483
<< "\tcurrent score numerator:\t" << mcPair.second.second << "\n";
484484
#endif
485485
} // End of loop over MultiClusters linked to hits of this CaloParticle
486-
} // End of loop over hits of CaloParticle on a Layer
486+
} // End of loop over hits of CaloParticle on a Layer
487487
#ifdef EDM_ML_DEBUG
488488
if (cPOnLayer[cpId][layerId].multiClusterIdToEnergyAndScore.empty())
489489
LogDebug("HGCalValidator") << "CP Id: \t" << cpId << "\t MCL id:\t-1 "

SimCalorimetry/HGCalAssociatorProducers/plugins/TSToSCAssociatorByEnergyScoreImpl.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ ticl::association TSToSCAssociatorByEnergyScoreImpl::makeConnections(
156156
}
157157
}
158158
} // End loop over hits on a LayerCluster
159-
} // End loop over LayerClusters in Trackster
160-
} // End of loop over Tracksters
159+
} // End loop over LayerClusters in Trackster
160+
} // End of loop over Tracksters
161161

162162
#ifdef EDM_ML_DEBUG
163163
for (unsigned int tsId = 0; tsId < nTracksters; ++tsId) {
@@ -273,7 +273,7 @@ ticl::association TSToSCAssociatorByEnergyScoreImpl::makeConnections(
273273
<< maxEnergySharedLCandSC << "\t" << std::setw(22) << totalSCEnergyOnLayer << "\t" << std::setw(22)
274274
<< energyFractionOfLCinSC << "\t" << std::setw(25) << energyFractionOfSCinLC << "\n";
275275
} // End of loop over LayerClusters in Trackster
276-
} // End of loop over Tracksters
276+
} // End of loop over Tracksters
277277

278278
LogDebug("TSToSCAssociatorByEnergyScoreImpl")
279279
<< "Improved tssInSimCluster INFO (Now containing the linked tracksters id and energy - score still empty)"
@@ -383,7 +383,7 @@ ticl::association TSToSCAssociatorByEnergyScoreImpl::makeConnections(
383383
#endif
384384
}
385385
} // End of loop over Hits within a LayerCluster
386-
} // End of loop over LayerClusters in Trackster
386+
} // End of loop over LayerClusters in Trackster
387387

388388
#ifdef EDM_ML_DEBUG
389389
if (scsInTrackster[tsId].empty())
@@ -471,8 +471,8 @@ ticl::association TSToSCAssociatorByEnergyScoreImpl::makeConnections(
471471
<< "invSCEnergyWeight:\t" << invSCEnergyWeight << "\n";
472472
#endif
473473
} // End of loop over Trackster's LayerClusters
474-
} // End of loop over Tracksters linked to hits of this SimCluster
475-
} // End of loop over hits of SimCluster on a Layer
474+
} // End of loop over Tracksters linked to hits of this SimCluster
475+
} // End of loop over hits of SimCluster on a Layer
476476
#ifdef EDM_ML_DEBUG
477477
if (tssInSimCluster[scId].tracksterIdToEnergyAndScore.empty())
478478
LogDebug("TSToSCAssociatorByEnergyScoreImpl") << "SC Id:\t" << scId << "\tTS id:\t-1 "

SimCalorimetry/HGCalAssociatorProducers/plugins/TSToSimTSAssociatorByEnergyScoreImpl.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ ticl::association TSToSimTSAssociatorByEnergyScoreImpl::makeConnections(
137137
}
138138
}
139139
} // End loop over LayerClusters in Trackster
140-
} // End of loop over Tracksters
140+
} // End of loop over Tracksters
141141

142142
#ifdef EDM_ML_DEBUG
143143
for (unsigned int tsId = 0; tsId < nTracksters; ++tsId) {
@@ -249,7 +249,7 @@ ticl::association TSToSimTSAssociatorByEnergyScoreImpl::makeConnections(
249249
<< maxEnergySharedLCandST << "\t" << std::setw(22) << totalSTEnergyOnLayer << "\t" << std::setw(22)
250250
<< energyFractionOfLCinST << "\t" << std::setw(25) << energyFractionOfSTinLC << "\n";
251251
} // End of loop over LayerClusters in Trackster
252-
} // End of loop over Tracksters
252+
} // End of loop over Tracksters
253253

254254
LogDebug("TSToSimTSAssociatorByEnergyScoreImpl")
255255
<< "Improved tssInSimTrackster INFO (Now containing the linked tracksters id and energy - score still empty)"
@@ -422,8 +422,8 @@ ticl::association TSToSimTSAssociatorByEnergyScoreImpl::makeConnections(
422422
<< "invSTEnergyWeight:\t" << invSTEnergyWeight << "\n";
423423
#endif
424424
} // End of loop over Trackster's LayerClusters
425-
} // End of loop over Tracksters linked to hits of this SimTrackster
426-
} // End of loop over hits of SimTrackster on a Layer
425+
} // End of loop over Tracksters linked to hits of this SimTrackster
426+
} // End of loop over hits of SimTrackster on a Layer
427427
#ifdef EDM_ML_DEBUG
428428
if (tssInSimTrackster[stId].tracksterIdToEnergyAndScore.empty())
429429
LogDebug("TSToSimTSAssociatorByEnergyScoreImpl") << "ST Id:\t" << stId << "\tTS id:\t-1 "

SimCalorimetry/HGCalSimAlgos/interface/HGCalRadiationMap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class HGCalRadiationMap {
2020
};
2121

2222
HGCalRadiationMap();
23-
~HGCalRadiationMap(){};
23+
~HGCalRadiationMap() {}
2424

2525
typedef std::map<std::pair<int, int>, DoseParameters> doseParametersMap;
2626

SimCalorimetry/HGCalSimAlgos/interface/HGCalSciNoiseMap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class HGCalSciNoiseMap : public HGCalRadiationMap {
4343
};
4444

4545
HGCalSciNoiseMap();
46-
~HGCalSciNoiseMap(){};
46+
~HGCalSciNoiseMap() {}
4747

4848
/**
4949
@short returns the signal scaling and the noise

0 commit comments

Comments
 (0)