@@ -67,9 +67,8 @@ struct Photon {
6767
6868// -------> Struct to store gamma gamma pairs (pi0 or eta meson candidates)
6969struct 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
144143template <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
164163template <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