@@ -151,7 +151,7 @@ float getCentralityColl(const Coll& collision, int centEstimator)
151151 break ;
152152 default :
153153 LOG (warning) << " Centrality estimator not valid. Possible values are V0A, T0M, T0A, T0C. Fallback to V0A" ;
154- cent = collision. centFV0A () ;
154+ cent = - 999 . ;
155155 break ;
156156 }
157157 return cent;
@@ -193,44 +193,6 @@ float getCentralityGenColl(CCs const& collSlice, int centEstimator)
193193 return centrality;
194194}
195195
196- // / Get the centrality
197- // / \param collision is the collision with the centrality information
198- // / \param centEstimator is the centrality estimator from hf_centrality::CentralityEstimator
199- template <o2::hf_centrality::CentralityEstimator centEstimator, typename Coll>
200- float evalCentralityColl (Coll const & collision)
201- {
202- if constexpr (centEstimator == o2::hf_centrality::CentralityEstimator::FT0A) {
203- return collision.centFT0A ();
204- } else if constexpr (centEstimator == o2::hf_centrality::CentralityEstimator::FT0C) {
205- return collision.centFT0C ();
206- } else if constexpr (centEstimator == o2::hf_centrality::CentralityEstimator::FT0M) {
207- return collision.centFT0M ();
208- } else if constexpr (centEstimator == o2::hf_centrality::CentralityEstimator::FV0A) {
209- return collision.centFV0A ();
210- } else {
211- LOG (warning) << " Centrality estimator not valid. Possible values are V0A, T0M, T0A, T0C. Fallback to FT0c" ;
212- return collision.centFT0C ();
213- }
214- }
215-
216- // / \brief Function to get MC collision centrality
217- // / \param collSlice collection of reconstructed collisions associated to a generated one
218- // / \return generated MC collision centrality
219- template <o2::hf_centrality::CentralityEstimator centEstimator, typename CCs>
220- float evalCentralityGenColl (CCs const & collSlice)
221- {
222- float centrality{-1 };
223- float multiplicity{0 .f };
224- for (const auto & collision : collSlice) {
225- float collMult = collision.numContrib ();
226- if (collMult > multiplicity) {
227- centrality = evalCentralityColl<centEstimator>(collision);
228- multiplicity = collMult;
229- }
230- }
231- return centrality;
232- }
233-
234196} // namespace o2::hf_centrality
235197
236198#endif // PWGHF_CORE_CENTRALITYESTIMATION_H_
0 commit comments