99// granted to it by virtue of its status as an Intergovernmental Organization
1010// or submit itself to any jurisdiction.
1111
12- // / \file taskCharmHadronsFemtoDream.cxx.cxx
12+ // / \file taskCharmHadronsFemtoDream.cxx
1313// / \brief Tasks that reads the track tables used for the pairing and builds pairs of two tracks
1414// / \author Ravindra SIngh, GSI, ravindra.singh@cern.ch
1515// / \author Biao Zhang, Heidelberg University, biao.zhang@cern.ch
@@ -79,7 +79,7 @@ struct HfTaskCharmHadronsFemtoDream {
7979 ConfigurableAxis binNSigmaTOF{" binNSigmaTOF" , {3000 , -15 , 15 }, " Binning of the Nsigma TOF plot" };
8080 ConfigurableAxis binNSigmaTPCTOF{" binNSigmaTPCTOF" , {3000 , -15 , 15 }, " Binning of the Nsigma TPC+TOF plot" };
8181 ConfigurableAxis binTPCClusters{" binTPCClusters" , {163 , -0.5 , 162.5 }, " Binning of TPC found clusters plot" };
82- Configurable<int > ConfTempFitVarMomentum{ " ConfTempFitVarMomentum " , 0 , " Momentum used for binning: 0 -> pt; 1 -> preco; 2 -> ptpc" };
82+ Configurable<int > confTempFitVarMomentum{ " confTempFitVarMomentum " , 0 , " Momentum used for binning: 0 -> pt; 1 -> preco; 2 -> ptpc" };
8383
8484 // / Particle 2 (Charm Hadrons)
8585 Configurable<float > charmHadBkgBDTmax{" charmHadBkgBDTmax" , 1 ., " Maximum background bdt score for Charm Hadron (particle 2)" };
@@ -170,7 +170,7 @@ struct HfTaskCharmHadronsFemtoDream {
170170 using FilteredFDParticles = soa::Filtered<soa::Join<aod::FDParticles, aod::FDExtParticles, aod::FDParticlesIndex>>;
171171 using FilteredFDParticle = FilteredFDParticles::iterator;
172172
173- femtodreamcollision::BitMaskType BitMask = 1 << 0 ;
173+ femtodreamcollision::BitMaskType bitMask = 1 << 0 ;
174174
175175 // / Histogramming for particle 1
176176 FemtoDreamParticleHisto<aod::femtodreamparticle::ParticleType::kTrack , 1 > allTrackHisto;
@@ -318,7 +318,7 @@ struct HfTaskCharmHadronsFemtoDream {
318318 continue ;
319319 }
320320 // / Filling QA histograms of the selected tracks
321- selectedTrackHisto.fillQA <isMc, true >(p1, static_cast <aod::femtodreamparticle::MomentumType>(ConfTempFitVarMomentum .value ), col.multNtr (), col.multV0M ());
321+ selectedTrackHisto.fillQA <isMc, true >(p1, static_cast <aod::femtodreamparticle::MomentumType>(confTempFitVarMomentum .value ), col.multNtr (), col.multV0M ());
322322
323323 int charmHadMc = 0 ;
324324 int originType = 0 ;
@@ -369,13 +369,13 @@ struct HfTaskCharmHadronsFemtoDream {
369369 {
370370
371371 // Mixed events that contain the pair of interest
372- Partition<CollisionType> PartitionMaskedCol1 = (aod::femtodreamcollision::bitmaskTrackOne & BitMask ) == BitMask ;
373- PartitionMaskedCol1 .bindTable (cols);
372+ Partition<CollisionType> partitionMaskedCol1 = (aod::femtodreamcollision::bitmaskTrackOne & bitMask ) == bitMask ;
373+ partitionMaskedCol1 .bindTable (cols);
374374
375- Partition<CollisionType> PartitionMaskedCol2 = (aod::femtodreamcollision::bitmaskTrackTwo & BitMask ) == BitMask ;
376- PartitionMaskedCol2 .bindTable (cols);
375+ Partition<CollisionType> partitionMaskedCol2 = (aod::femtodreamcollision::bitmaskTrackTwo & bitMask ) == bitMask ;
376+ partitionMaskedCol2 .bindTable (cols);
377377
378- for (auto const & [collision1, collision2] : combinations (soa::CombinationsBlockFullIndexPolicy (policy, mixingDepth.value , -1 , *PartitionMaskedCol1 .mFiltered , *PartitionMaskedCol2 .mFiltered ))) {
378+ for (auto const & [collision1, collision2] : combinations (soa::CombinationsBlockFullIndexPolicy (policy, mixingDepth.value , -1 , *partitionMaskedCol1 .mFiltered , *partitionMaskedCol2 .mFiltered ))) {
379379 // make sure that tracks in the same events are not mixed
380380 if (collision1.globalIndex () == collision2.globalIndex ()) {
381381 continue ;
@@ -386,7 +386,7 @@ struct HfTaskCharmHadronsFemtoDream {
386386
387387 auto sliceTrk1 = part1->sliceByCached (aod::femtodreamparticle::fdCollisionId, collision1.globalIndex (), cache);
388388 auto sliceCharmHad = part2->sliceByCached (aod::femtodreamparticle::fdCollisionId, collision2.globalIndex (), cache);
389- for (auto & [p1, p2] : combinations (CombinationsFullIndexPolicy (sliceTrk1, sliceCharmHad))) {
389+ for (const auto & [p1, p2] : combinations (CombinationsFullIndexPolicy (sliceTrk1, sliceCharmHad))) {
390390
391391 if (useCPR.value ) {
392392 if (pairCloseRejectionME.isClosePair (p1, p2, parts, collision1.magField ())) {
@@ -427,14 +427,14 @@ struct HfTaskCharmHadronsFemtoDream {
427427 auto sliceCharmHad = partitionCharmHadron->sliceByCached (aod::femtodreamparticle::fdCollisionId, col.globalIndex (), cache);
428428 // / Filling QA histograms of the all tracks and all charm hadrons before pairing
429429 for (auto const & part : sliceTrk1) {
430- allTrackHisto.fillQA <false , true >(part, static_cast <aod::femtodreamparticle::MomentumType>(ConfTempFitVarMomentum .value ), col.multNtr (), col.multV0M ());
430+ allTrackHisto.fillQA <false , true >(part, static_cast <aod::femtodreamparticle::MomentumType>(confTempFitVarMomentum .value ), col.multNtr (), col.multV0M ());
431431 }
432432 for (auto const & part : sliceCharmHad) {
433433 float invMass = getCharmHadronMass (part);
434434 registryCharmHadronQa.fill (HIST (" CharmHadronQA/hPtVsMass" ), part.pt (), invMass);
435435 }
436436
437- if ((col.bitmaskTrackOne () & BitMask ) != BitMask || (col.bitmaskTrackTwo () & BitMask ) != BitMask ) {
437+ if ((col.bitmaskTrackOne () & bitMask ) != bitMask || (col.bitmaskTrackTwo () & bitMask ) != bitMask ) {
438438 return ;
439439 }
440440 doSameEvent<false >(sliceTrk1, sliceCharmHad, parts, col);
@@ -481,10 +481,10 @@ struct HfTaskCharmHadronsFemtoDream {
481481 }
482482 // / Filling QA histograms of the all mc tracks before pairing
483483 for (auto const & part : sliceMcTrk1) {
484- allTrackHisto.fillQA <true , true >(part, static_cast <aod::femtodreamparticle::MomentumType>(ConfTempFitVarMomentum .value ), col.multNtr (), col.multV0M ());
484+ allTrackHisto.fillQA <true , true >(part, static_cast <aod::femtodreamparticle::MomentumType>(confTempFitVarMomentum .value ), col.multNtr (), col.multV0M ());
485485 }
486486
487- if ((col.bitmaskTrackOne () & BitMask ) != BitMask || (col.bitmaskTrackTwo () & BitMask ) != BitMask ) {
487+ if ((col.bitmaskTrackOne () & bitMask ) != bitMask || (col.bitmaskTrackTwo () & bitMask ) != bitMask ) {
488488 return ;
489489 }
490490 doSameEvent<true >(sliceMcTrk1, sliceMcCharmHad, parts, col);
0 commit comments