3131
3232template <typename BC>
3333struct SelectionResult {
34- int value; // The original integer return value
35- BC* bc; // Pointer to the BC object
34+ int value; // The original integer return value
35+ const BC* bc; // Pointer to the BC object
3636};
3737
3838namespace o2 ::aod::sgselector
@@ -54,14 +54,14 @@ class SGSelector
5454 SGSelector () : myRCTChecker{" CBT" }, myRCTCheckerHadron{" CBT_hadronPID" }, myRCTCheckerZDC{" CBT" , true }, myRCTCheckerHadronZDC{" CBT_hadronPID" , true } {}
5555
5656 template <typename CC, typename BCs, typename TCs, typename FWs>
57- int Print (SGCutParHolder /* diffCuts*/ , CC& collision, BCs& /* bcRange*/ , TCs& /* tracks*/ , FWs& /* fwdtracks*/ )
57+ int Print (SGCutParHolder const & /* diffCuts*/ , CC const & collision, BCs const & /* bcRange*/ , TCs const & /* tracks*/ , FWs const & /* fwdtracks*/ )
5858 {
5959 LOGF (info, " Size of array %i" , collision.size ());
6060 return 1 ;
6161 }
6262
6363 template <typename CC, typename BCs, typename BC>
64- SelectionResult<BC> IsSelected (SGCutParHolder diffCuts, CC& collision, BCs& bcRange, BC& oldbc)
64+ SelectionResult<BC> IsSelected (SGCutParHolder const & diffCuts, CC const & collision, BCs const & bcRange, BC const & oldbc)
6565 {
6666 // LOGF(info, "Collision %f", collision.collisionTime());
6767 // LOGF(info, "Number of close BCs: %i", bcRange.size());
@@ -138,9 +138,9 @@ class SGSelector
138138 }
139139
140140 template <typename CC>
141- int trueGap (CC& collision, float fv0, float ft0a, float ft0c, float zdc_cut)
141+ int trueGap (CC const & collision, const float fv0, const float ft0a, const float ft0c, const float zdc_cut)
142142 {
143- float fit_cut[3 ] = {fv0, ft0a, ft0c};
143+ const float fit_cut[3 ] = {fv0, ft0a, ft0c};
144144 int gap = collision.gapSide ();
145145 int true_gap = gap;
146146 // float FV0A, FT0A, FT0C, ZNA, ZNC;
@@ -174,7 +174,7 @@ class SGSelector
174174
175175 // check CBT flags
176176 template <typename CC>
177- bool isCBTOk (CC& collision)
177+ bool isCBTOk (CC const & collision)
178178 {
179179 if (myRCTChecker (collision))
180180 return true ;
@@ -183,7 +183,7 @@ class SGSelector
183183
184184 // check CBT+hadronPID flags
185185 template <typename CC>
186- bool isCBTHadronOk (CC& collision)
186+ bool isCBTHadronOk (CC const & collision)
187187 {
188188 if (myRCTCheckerHadron (collision))
189189 return true ;
@@ -192,7 +192,7 @@ class SGSelector
192192
193193 // check CBT+ZDC flags
194194 template <typename CC>
195- bool isCBTZdcOk (CC& collision)
195+ bool isCBTZdcOk (CC const & collision)
196196 {
197197 if (myRCTCheckerZDC (collision))
198198 return true ;
@@ -201,7 +201,7 @@ class SGSelector
201201
202202 // check CBT+hadronPID+ZDC flags
203203 template <typename CC>
204- bool isCBTHadronZdcOk (CC& collision)
204+ bool isCBTHadronZdcOk (CC const & collision)
205205 {
206206 if (myRCTCheckerHadronZDC (collision))
207207 return true ;
0 commit comments