Skip to content

Commit 9523a44

Browse files
committed
removed old functions
1 parent b35e55c commit 9523a44

File tree

5 files changed

+0
-183
lines changed

5 files changed

+0
-183
lines changed

PWGHF/D2H/Tasks/taskDplus.cxx

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,6 @@ enum OccupancyEstimator { None = 0,
4141
ITS,
4242
FT0C };
4343

44-
// enum BHadMothers { NotMatched = 0,
45-
// BPlus,
46-
// BZero,
47-
// Bs,
48-
// LambdaBZero };
49-
5044
/// D± analysis task
5145
struct HfTaskDplus {
5246
Configurable<int> selectionFlagDplus{"selectionFlagDplus", 7, "Selection Flag for DPlus"}; // 7 corresponds to topo+PID cuts
@@ -584,46 +578,6 @@ struct HfTaskDplus {
584578
}
585579
}
586580

587-
// /// Get the centrality
588-
// /// \param collision is the collision with the centrality information
589-
// /// \return collision centrality
590-
// template <typename Coll>
591-
// float o2::hf_centrality::getCentralityColl(Coll const& collision, int centEstimator=0)
592-
// {
593-
// float cent = -999.;
594-
// switch (centEstimator) {
595-
// case CentralityEstimator::FT0C:
596-
// cent = collision.centFT0C();
597-
// break;
598-
// case CentralityEstimator::FT0M:
599-
// cent = collision.centFT0M();
600-
// break;
601-
// default:
602-
// LOG(warning) << "Centrality estimator not valid. Possible values are FT0C, FT0M. Fallback to FT0C";
603-
// cent = collision.centFT0C();
604-
// break;
605-
// }
606-
// return cent;
607-
// }
608-
609-
// /// \brief Function to get MC collision centrality
610-
// /// \param collSlice collection of reconstructed collisions associated to a generated one
611-
// /// \return generated MC collision centrality
612-
// template <typename CCs>
613-
// float o2::hf_centrality::getCentralityGenColl(CCs const& collSlice)
614-
// {
615-
// float centrality{-1};
616-
// float multiplicity{0.f};
617-
// for (const auto& collision : collSlice) {
618-
// float collMult = collision.numContrib();
619-
// if (collMult > multiplicity) {
620-
// centrality = o2::hf_centrality::getCentralityColl(collision);
621-
// multiplicity = collMult;
622-
// }
623-
// }
624-
// return centrality;
625-
// }
626-
627581
// process functions
628582
void processData(CandDplusData const& candidates, CollisionsCent const& collisions)
629583
{

PWGHF/D2H/Tasks/taskDs.cxx

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,6 @@ enum DataType { Data = 0,
5757
McBkg,
5858
kDataTypes };
5959

60-
// enum BHadMothers { NotMatched = 0,
61-
// BPlus,
62-
// BZero,
63-
// Bs,
64-
// LambdaBZero };
65-
66-
// enum OccupancyEstimator { None = 0,
67-
// Its,
68-
// Ft0c };
69-
7060
template <typename T>
7161
concept hasDsMlInfo = requires(T candidate)
7262
{
@@ -367,24 +357,6 @@ struct HfTaskDs {
367357
return -1.f;
368358
}
369359

370-
// /// \brief Function to get MC collision centrality
371-
// /// \param collSlice collection of reconstructed collisions associated to a generated one
372-
// /// \return generated MC collision centrality
373-
// template <typename CCs>
374-
// float o2::hf_centrality::getCentralityGenColl(CCs const& collSlice)
375-
// {
376-
// float centrality{-1};
377-
// float multiplicity{0.f};
378-
// for (const auto& collision : collSlice) {
379-
// float collMult = collision.numContrib();
380-
// if (collMult > multiplicity) {
381-
// centrality = evaluateCentralityColl(collision);
382-
// multiplicity = collMult;
383-
// }
384-
// }
385-
// return centrality;
386-
// }
387-
388360
/// Evaluate centrality/multiplicity percentile (centrality estimator is automatically selected based on the used table)
389361
/// \param candidate is candidate
390362
/// \return centrality/multiplicity percentile of the collision

PWGHF/D2H/Tasks/taskFlowCharmHadrons.cxx

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -330,32 +330,6 @@ struct HfTaskFlowCharmHadrons {
330330
}
331331
}
332332

333-
// /// Get the centrality
334-
// /// \param collision is the collision with the centrality information
335-
// float getCentrality(CollsWithQvecs::iterator const& collision)
336-
// {
337-
// float cent = -999.;
338-
// switch (centEstimator) {
339-
// case CentralityEstimator::FV0A:
340-
// cent = collision.centFV0A();
341-
// break;
342-
// case CentralityEstimator::FT0M:
343-
// cent = collision.centFT0M();
344-
// break;
345-
// case CentralityEstimator::FT0A:
346-
// cent = collision.centFT0A();
347-
// break;
348-
// case CentralityEstimator::FT0C:
349-
// cent = collision.centFT0C();
350-
// break;
351-
// default:
352-
// LOG(warning) << "Centrality estimator not valid. Possible values are V0A, T0M, T0A, T0C. Fallback to V0A";
353-
// cent = collision.centFV0A();
354-
// break;
355-
// }
356-
// return cent;
357-
// }
358-
359333
/// Check if the collision is selected
360334
/// \param collision is the collision with the Q vector information
361335
/// \param bc is the bunch crossing with timestamp information

PWGHF/Tasks/taskMcValidation.cxx

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -241,27 +241,6 @@ struct HfTaskMcValidationGen {
241241
hfEvSelMc.addHistograms(registry); // particles monitoring
242242
}
243243

244-
// /// \brief Function to get MC collision occupancy
245-
// /// \param collSlice collection of reconstructed collisions
246-
// /// \return collision occupancy
247-
// template <typename CCs>
248-
// int getOccupancyColl(CCs const& collSlice)
249-
// {
250-
// float multiplicity{0.f};
251-
// int occupancy = 0;
252-
// for (const auto& collision : collSlice) {
253-
// float collMult{0.f};
254-
// collMult = collision.numContrib();
255-
256-
// if (collMult > multiplicity) {
257-
// occupancy = collision.trackOccupancyInTimeRange();
258-
// multiplicity = collMult;
259-
// }
260-
// } // end loop over collisions
261-
262-
// return occupancy;
263-
// }
264-
265244
template <o2::hf_centrality::CentralityEstimator centEstimator, typename GenColl, typename Particles, typename RecoColls>
266245
void runCheckGenParticles(GenColl const& mcCollision, Particles const& mcParticles, RecoColls const& recoCollisions, BCsInfo const&, std::array<int, nChannels>& counterPrompt, std::array<int, nChannels>& counterNonPrompt)
267246
{

PWGHF/Utils/utilsEvSelHf.h

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ struct HfEventSelection : o2::framework::ConfigurableGroup {
215215

216216
if constexpr (centEstimator != o2::hf_centrality::CentralityEstimator::None) {
217217
centrality = o2::hf_centrality::evalCentralityColl<centEstimator>(collision);
218-
// centrality = getCentrality<centEstimator>(collision);
219218
if (centrality < centralityMin || centrality > centralityMax) {
220219
SETBIT(rejectionMask, EventRejection::Centrality);
221220
}
@@ -309,46 +308,6 @@ struct HfEventSelection : o2::framework::ConfigurableGroup {
309308
return rejectionMask;
310309
}
311310

312-
// /// Get the occupancy
313-
// /// \param collision is the collision with the occupancy information
314-
// /// \param occEstimator is the occupancy estimator (1: ITS, 2: FT0C)
315-
// template <typename Coll>
316-
// float getOccupancyColl(Coll const& collision, int occEstimator = 1)
317-
// {
318-
// switch (occEstimator) {
319-
// case 1: // ITS
320-
// return collision.trackOccupancyInTimeRange();
321-
// break;
322-
// case 2: // FT0c
323-
// return collision.ft0cOccupancyInTimeRange();
324-
// break;
325-
// default:
326-
// LOG(warning) << "Occupancy estimator not valid. Possible values are ITS or FT0C. Fallback to ITS";
327-
// return collision.trackOccupancyInTimeRange();
328-
// break;
329-
// }
330-
// }
331-
332-
// /// Get the centrality
333-
// /// \param collision is the collision with the centrality information
334-
// /// \param centEstimator is the centrality estimator from hf_centrality::CentralityEstimator
335-
// template <o2::hf_centrality::CentralityEstimator centEstimator, typename Coll>
336-
// float getCentrality(Coll const& collision)
337-
// {
338-
// if constexpr (centEstimator == o2::hf_centrality::CentralityEstimator::FT0A) {
339-
// return collision.centFT0A();
340-
// } else if constexpr (centEstimator == o2::hf_centrality::CentralityEstimator::FT0C) {
341-
// return collision.centFT0C();
342-
// } else if constexpr (centEstimator == o2::hf_centrality::CentralityEstimator::FT0M) {
343-
// return collision.centFT0M();
344-
// } else if constexpr (centEstimator == o2::hf_centrality::CentralityEstimator::FV0A) {
345-
// return collision.centFV0A();
346-
// } else {
347-
// LOG(warning) << "Centrality estimator not valid. Possible values are V0A, T0M, T0A, T0C. Fallback to FT0c";
348-
// return collision.centFT0C();
349-
// }
350-
// }
351-
352311
/// \brief Fills histograms for monitoring event selections satisfied by the collision.
353312
/// \param collision analysed collision
354313
/// \param rejectionMask bitmask storing the info about which ev. selections are not satisfied by the collision
@@ -436,27 +395,6 @@ struct HfEventSelectionMc {
436395

437396
if constexpr (centEstimator != o2::hf_centrality::CentralityEstimator::None) {
438397
centrality = o2::hf_centrality::evalCentralityGenColl<centEstimator>(collSlice);
439-
// float multiplicity{0.f};
440-
// for (const auto& collision : collSlice) {
441-
// float collCent{0.f};
442-
// float collMult{0.f};
443-
// if constexpr (centEstimator == o2::hf_centrality::CentralityEstimator::FT0A) {
444-
// collCent = collision.centFT0A();
445-
// } else if constexpr (centEstimator == o2::hf_centrality::CentralityEstimator::FT0C) {
446-
// collCent = collision.centFT0C();
447-
// } else if constexpr (centEstimator == o2::hf_centrality::CentralityEstimator::FT0M) {
448-
// collCent = collision.centFT0M();
449-
// } else if constexpr (centEstimator == o2::hf_centrality::CentralityEstimator::FV0A) {
450-
// collCent = collision.centFV0A();
451-
// } else {
452-
// LOGP(fatal, "Unsupported centrality estimator!");
453-
// }
454-
// collMult = collision.numContrib();
455-
// if (collMult > multiplicity) {
456-
// centrality = collCent;
457-
// multiplicity = collMult;
458-
// }
459-
// }
460398
/// centrality selection
461399
if (centrality < centralityMin || centrality > centralityMax) {
462400
SETBIT(rejectionMask, EventRejection::Centrality);

0 commit comments

Comments
 (0)