Skip to content

Commit 1083a31

Browse files
committed
Implement Vit's comments
1 parent b8ccd33 commit 1083a31

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

PWGHF/D2H/Tasks/taskDplus.cxx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,11 @@ struct HfTaskDplus {
252252
/// \param centrality collision centrality
253253
/// \param occupancy collision occupancy
254254
template <bool isMc, bool isMatched, typename T1>
255-
void fillSparseML(const T1& candidate,
256-
float& ptbhad,
257-
int& flagBHad,
258-
float& centrality,
259-
float& occupancy)
255+
void fillSparseML(const T1 candidate,
256+
float ptbhad,
257+
int flagBHad,
258+
float centrality,
259+
float occupancy)
260260
{
261261
std::vector<float> outputMl = {-999., -999., -999.};
262262
for (unsigned int iclass = 0; iclass < classMl->size(); iclass++) {
@@ -400,11 +400,11 @@ struct HfTaskDplus {
400400
/// \param centrality collision centrality
401401
/// \param occupancy collision occupancy
402402
template <typename T1>
403-
void fillSparseMCGen(const T1& particle,
404-
float& ptGenB,
405-
int& flagGenB,
406-
float& centrality,
407-
float& occupancy)
403+
void fillSparseMCGen(const T1 particle,
404+
float ptGenB,
405+
int flagGenB,
406+
float centrality,
407+
float occupancy)
408408
{
409409
auto yGen = RecoDecay::y(particle.pVector(), o2::constants::physics::MassDPlus);
410410
if (particle.originMcGen() == RecoDecay::OriginType::Prompt) {
@@ -590,10 +590,10 @@ struct HfTaskDplus {
590590
{
591591
float occupancy = -999.;
592592
switch (occEstimator) {
593-
case 1:
593+
case OccupancyEstimator::ITS:
594594
occupancy = collision.trackOccupancyInTimeRange();
595595
break;
596-
case 2:
596+
case OccupancyEstimator::FT0C:
597597
occupancy = collision.ft0cOccupancyInTimeRange();
598598
break;
599599
default:

0 commit comments

Comments
 (0)