Skip to content

Commit 6af663d

Browse files
committed
Fix MegaLinter errors
1 parent f441472 commit 6af663d

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

PWGEM/PhotonMeson/Tasks/emcalBcWiseGammaGamma.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ struct EmcalBcWiseGammaGamma {
251251
if (isTooCloseToEdge(iCellID, cfgDistanceToEdge)) {
252252
continue;
253253
}
254-
} catch (o2::emcal::InvalidPositionException& e) {
254+
} catch (o2::emcal::InvalidPositionException const& e) {
255255
continue;
256256
}
257257

PWGEM/PhotonMeson/Tasks/gammaConversions.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,14 +482,14 @@ struct GammaConversions {
482482
}
483483
}
484484

485-
void lfillPDGHist(mapStringHistPtr& theContainer,
485+
void lfillPDGHist(mapStringHistPtr const& theContainer,
486486
std::span<const int, 2> const PDGCode)
487487
{
488488
fillTH1(theContainer, "hPDGCode", PDGCode[0]);
489489
fillTH1(theContainer, "hPDGCode", PDGCode[1]);
490490
}
491491

492-
void lfillDecaysHist(mapStringHistPtr& theContainer,
492+
void lfillDecaysHist(mapStringHistPtr const& theContainer,
493493
std::span<const int, 2> PDGCode,
494494
const bool sameMother,
495495
std::span<const float, 6> McTrackmomentum)

PWGEM/PhotonMeson/Utils/HNMUtilities.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@ struct Photon {
6767

6868
// -------> Struct to store gamma gamma pairs (pi0 or eta meson candidates)
6969
struct GammaGammaPair {
70-
GammaGammaPair(Photon const& p1, Photon const& p2) : p1(p1), p2(p2)
70+
GammaGammaPair(Photon const& p1, Photon const& p2) : p1(p1), p2(p2), vGG(p1.photon + p2.photon)
7171
{
72-
vGG = p1.photon + p2.photon;
7372
}
7473
Photon p1, p2;
7574
ROOT::Math::PxPyPzEVector vGG;
@@ -142,7 +141,7 @@ inline int getSMNumber(float eta, float phi)
142141

143142
/// \brief Store photons from EMC clusters and V0s in a vector and possibly add a eta and phi offset for alignment of EMCal clusters
144143
template <o2::soa::is_table C, o2::soa::is_table V>
145-
void storeGammasInVector(C clusters, V v0s, std::vector<Photon>& vPhotons, std::array<float, 20> EMCEtaShift, std::array<float, 20> EMCPhiShift)
144+
void storeGammasInVector(C clusters, V v0s, std::vector<Photon>& vPhotons, std::array<float, 20> const& EMCEtaShift, std::array<float, 20> const& EMCPhiShift)
146145
{
147146
vPhotons.clear();
148147
for (const auto& cluster : clusters) {
@@ -162,7 +161,7 @@ void storeGammasInVector(C clusters, V v0s, std::vector<Photon>& vPhotons, std::
162161

163162
/// \brief Store photons from EMC clusters in a vector and possibly add a eta and phi offset for alignment of EMCal clusters
164163
template <o2::soa::is_table Clusters>
165-
void storeGammasInVector(Clusters clusters, std::vector<Photon>& vPhotons, std::array<float, 20> EMCEtaShift, std::array<float, 20> EMCPhiShift)
164+
void storeGammasInVector(Clusters clusters, std::vector<Photon>& vPhotons, std::array<float, 20> const& EMCEtaShift, std::array<float, 20> const& EMCPhiShift)
166165
{
167166
vPhotons.clear();
168167
for (const auto& cluster : clusters) {
@@ -177,7 +176,7 @@ void storeGammasInVector(Clusters clusters, std::vector<Photon>& vPhotons, std::
177176
}
178177

179178
/// \brief Reconstruct light neutral mesons from photons and fill them into the vGGs vector
180-
inline void reconstructGGs(std::vector<Photon> vPhotons, std::vector<GammaGammaPair>& vGGs)
179+
inline void reconstructGGs(std::vector<Photon> const& vPhotons, std::vector<GammaGammaPair>& vGGs)
181180
{
182181
vGGs.clear();
183182
// loop over all photon combinations and build meson candidates

0 commit comments

Comments
 (0)