Skip to content

Commit 359b3a5

Browse files
authored
[PWGHF] Fix linter issues (#10229)
1 parent 49ed3b1 commit 359b3a5

23 files changed

+206
-200
lines changed

PWGHF/TableProducer/candidateCreator2Prong.cxx

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/// \author Pengzhong Lu <pengzhong.lu@cern.ch>, GSI Darmstadt, USTC
1818

1919
#ifndef HomogeneousField
20-
#define HomogeneousField
20+
#define HomogeneousField // o2-linter: disable=name/macro (required by KFParticle)
2121
#endif
2222

2323
#include <memory>
@@ -372,7 +372,7 @@ struct HfCandidateCreator2Prong {
372372
kfpVertex.SetCovarianceMatrix(rowTrackIndexProng2.pvRefitSigmaX2(), rowTrackIndexProng2.pvRefitSigmaXY(), rowTrackIndexProng2.pvRefitSigmaY2(), rowTrackIndexProng2.pvRefitSigmaXZ(), rowTrackIndexProng2.pvRefitSigmaYZ(), rowTrackIndexProng2.pvRefitSigmaZ2());
373373
}
374374
kfpVertex.GetCovarianceMatrix(covMatrixPV);
375-
KFParticle KFPV(kfpVertex);
375+
KFParticle kfpV(kfpVertex);
376376
registry.fill(HIST("hCovPVXX"), covMatrixPV[0]);
377377
registry.fill(HIST("hCovPVYY"), covMatrixPV[2]);
378378
registry.fill(HIST("hCovPVXZ"), covMatrixPV[3]);
@@ -387,16 +387,16 @@ struct HfCandidateCreator2Prong {
387387
KFParticle kfNegKaon(kfpTrack1, kKPlus);
388388

389389
float impactParameter0XY = 0., errImpactParameter0XY = 0., impactParameter1XY = 0., errImpactParameter1XY = 0.;
390-
if (!kfPosPion.GetDistanceFromVertexXY(KFPV, impactParameter0XY, errImpactParameter0XY)) {
390+
if (!kfPosPion.GetDistanceFromVertexXY(kfpV, impactParameter0XY, errImpactParameter0XY)) {
391391
registry.fill(HIST("hDcaXYProngs"), track0.pt(), impactParameter0XY * toMicrometers);
392-
registry.fill(HIST("hDcaZProngs"), track0.pt(), std::sqrt(kfPosPion.GetDistanceFromVertex(KFPV) * kfPosPion.GetDistanceFromVertex(KFPV) - impactParameter0XY * impactParameter0XY) * toMicrometers);
392+
registry.fill(HIST("hDcaZProngs"), track0.pt(), std::sqrt(kfPosPion.GetDistanceFromVertex(kfpV) * kfPosPion.GetDistanceFromVertex(kfpV) - impactParameter0XY * impactParameter0XY) * toMicrometers);
393393
} else {
394394
registry.fill(HIST("hDcaXYProngs"), track0.pt(), -999.f);
395395
registry.fill(HIST("hDcaZProngs"), track0.pt(), -999.f);
396396
}
397-
if (!kfNegPion.GetDistanceFromVertexXY(KFPV, impactParameter1XY, errImpactParameter1XY)) {
397+
if (!kfNegPion.GetDistanceFromVertexXY(kfpV, impactParameter1XY, errImpactParameter1XY)) {
398398
registry.fill(HIST("hDcaXYProngs"), track1.pt(), impactParameter1XY * toMicrometers);
399-
registry.fill(HIST("hDcaZProngs"), track1.pt(), std::sqrt(kfNegPion.GetDistanceFromVertex(KFPV) * kfNegPion.GetDistanceFromVertex(KFPV) - impactParameter1XY * impactParameter1XY) * toMicrometers);
399+
registry.fill(HIST("hDcaZProngs"), track1.pt(), std::sqrt(kfNegPion.GetDistanceFromVertex(kfpV) * kfNegPion.GetDistanceFromVertex(kfpV) - impactParameter1XY * impactParameter1XY) * toMicrometers);
400400
} else {
401401
registry.fill(HIST("hDcaXYProngs"), track1.pt(), -999.f);
402402
registry.fill(HIST("hDcaZProngs"), track1.pt(), -999.f);
@@ -422,15 +422,15 @@ struct HfCandidateCreator2Prong {
422422
auto covMatrixSV = kfCandD0.CovarianceMatrix();
423423

424424
double phi, theta;
425-
getPointDirection(std::array{KFPV.GetX(), KFPV.GetY(), KFPV.GetZ()}, std::array{kfCandD0.GetX(), kfCandD0.GetY(), kfCandD0.GetZ()}, phi, theta);
425+
getPointDirection(std::array{kfpV.GetX(), kfpV.GetY(), kfpV.GetZ()}, std::array{kfCandD0.GetX(), kfCandD0.GetY(), kfCandD0.GetZ()}, phi, theta);
426426
auto errorDecayLength = std::sqrt(getRotatedCovMatrixXX(covMatrixPV, phi, theta) + getRotatedCovMatrixXX(covMatrixSV, phi, theta));
427427
auto errorDecayLengthXY = std::sqrt(getRotatedCovMatrixXX(covMatrixPV, phi, 0.) + getRotatedCovMatrixXX(covMatrixSV, phi, 0.));
428428

429429
float topolChi2PerNdfD0 = -999.;
430430
KFParticle kfCandD0Topol2PV;
431431
if (constrainKfToPv) {
432432
kfCandD0Topol2PV = kfCandD0;
433-
kfCandD0Topol2PV.SetProductionVertex(KFPV);
433+
kfCandD0Topol2PV.SetProductionVertex(kfpV);
434434
topolChi2PerNdfD0 = kfCandD0Topol2PV.GetChi2() / kfCandD0Topol2PV.GetNDF();
435435
}
436436

@@ -446,7 +446,7 @@ struct HfCandidateCreator2Prong {
446446

447447
// fill candidate table rows
448448
rowCandidateBase(indexCollision,
449-
KFPV.GetX(), KFPV.GetY(), KFPV.GetZ(),
449+
kfpV.GetX(), kfpV.GetY(), kfpV.GetZ(),
450450
kfCandD0.GetX(), kfCandD0.GetY(), kfCandD0.GetZ(),
451451
errorDecayLength, errorDecayLengthXY, // TODO: much different from the DCAFitterN one
452452
kfCandD0.GetChi2() / kfCandD0.GetNDF(), // TODO: to make sure it should be chi2 only or chi2/ndf, much different from the DCAFitterN one
@@ -683,22 +683,23 @@ struct HfCandidateCreator2ProngExpressions {
683683
Produces<aod::HfCand2ProngMcGen> rowMcMatchGen;
684684

685685
// Configuration
686-
o2::framework::Configurable<bool> rejectBackground{"rejectBackground", true, "Reject particles from background events"};
687-
o2::framework::Configurable<bool> matchKinkedDecayTopology{"matchKinkedDecayTopology", false, "Match also candidates with tracks that decay with kinked topology"};
688-
o2::framework::Configurable<bool> matchInteractionsWithMaterial{"matchInteractionsWithMaterial", false, "Match also candidates with tracks that interact with material"};
686+
Configurable<bool> rejectBackground{"rejectBackground", true, "Reject particles from background events"};
687+
Configurable<bool> matchKinkedDecayTopology{"matchKinkedDecayTopology", false, "Match also candidates with tracks that decay with kinked topology"};
688+
Configurable<bool> matchInteractionsWithMaterial{"matchInteractionsWithMaterial", false, "Match also candidates with tracks that interact with material"};
689689

690690
HfEventSelectionMc hfEvSelMc; // mc event selection and monitoring
691691

692692
using McCollisionsNoCents = soa::Join<aod::Collisions, aod::EvSels, aod::McCollisionLabels>;
693693
using McCollisionsFT0Cs = soa::Join<aod::Collisions, aod::EvSels, aod::McCollisionLabels, aod::CentFT0Cs>;
694694
using McCollisionsFT0Ms = soa::Join<aod::Collisions, aod::EvSels, aod::McCollisionLabels, aod::CentFT0Ms>;
695695
using McCollisionsCentFT0Ms = soa::Join<aod::McCollisions, aod::McCentFT0Ms>;
696+
using BCsInfo = soa::Join<aod::BCs, aod::Timestamps, aod::BcSels>;
697+
698+
Preslice<aod::McParticles> mcParticlesPerMcCollision = aod::mcparticle::mcCollisionId;
696699
PresliceUnsorted<McCollisionsNoCents> colPerMcCollision = aod::mccollisionlabel::mcCollisionId;
697700
PresliceUnsorted<McCollisionsFT0Cs> colPerMcCollisionFT0C = aod::mccollisionlabel::mcCollisionId;
698701
PresliceUnsorted<McCollisionsFT0Ms> colPerMcCollisionFT0M = aod::mccollisionlabel::mcCollisionId;
699-
Preslice<aod::McParticles> mcParticlesPerMcCollision = aod::mcparticle::mcCollisionId;
700702

701-
using BCsInfo = soa::Join<aod::BCs, aod::Timestamps, aod::BcSels>;
702703
HistogramRegistry registry{"registry"};
703704

704705
// inspect for which zPvPosMax cut was set for reconstructed
@@ -878,6 +879,6 @@ struct HfCandidateCreator2ProngExpressions {
878879
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
879880
{
880881
return WorkflowSpec{
881-
adaptAnalysisTask<HfCandidateCreator2Prong>(cfgc, TaskName{"hf-candidate-creator-2prong"}),
882-
adaptAnalysisTask<HfCandidateCreator2ProngExpressions>(cfgc, TaskName{"hf-candidate-creator-2prong-expressions"})};
882+
adaptAnalysisTask<HfCandidateCreator2Prong>(cfgc, TaskName{"hf-candidate-creator-2prong"}), // o2-linter: disable=name/o2-task (wrong hyphenation)
883+
adaptAnalysisTask<HfCandidateCreator2ProngExpressions>(cfgc, TaskName{"hf-candidate-creator-2prong-expressions"})}; // o2-linter: disable=name/o2-task (wrong hyphenation)
883884
}

PWGHF/TableProducer/candidateCreator3Prong.cxx

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/// \author Vít Kučera <vit.kucera@cern.ch>, CERN
1717

1818
#ifndef HomogeneousField
19-
#define HomogeneousField
19+
#define HomogeneousField // o2-linter: disable=name/macro (required by KFParticle)
2020
#endif
2121

2222
#include <memory>
@@ -404,7 +404,7 @@ struct HfCandidateCreator3Prong {
404404
kfpVertex.SetCovarianceMatrix(rowTrackIndexProng3.pvRefitSigmaX2(), rowTrackIndexProng3.pvRefitSigmaXY(), rowTrackIndexProng3.pvRefitSigmaY2(), rowTrackIndexProng3.pvRefitSigmaXZ(), rowTrackIndexProng3.pvRefitSigmaYZ(), rowTrackIndexProng3.pvRefitSigmaZ2());
405405
}
406406
kfpVertex.GetCovarianceMatrix(covMatrixPV);
407-
KFParticle KFPV(kfpVertex);
407+
KFParticle kfpV(kfpVertex);
408408
registry.fill(HIST("hCovPVXX"), covMatrixPV[0]);
409409
registry.fill(HIST("hCovPVYY"), covMatrixPV[2]);
410410
registry.fill(HIST("hCovPVXZ"), covMatrixPV[3]);
@@ -423,35 +423,35 @@ struct HfCandidateCreator3Prong {
423423
KFParticle kfThirdKaon(kfpTrack2, kKPlus);
424424

425425
float impactParameter0XY = 0., errImpactParameter0XY = 0., impactParameter1XY = 0., errImpactParameter1XY = 0., impactParameter2XY = 0., errImpactParameter2XY = 0.;
426-
if (!kfFirstProton.GetDistanceFromVertexXY(KFPV, impactParameter0XY, errImpactParameter0XY)) {
426+
if (!kfFirstProton.GetDistanceFromVertexXY(kfpV, impactParameter0XY, errImpactParameter0XY)) {
427427
registry.fill(HIST("hDcaXYProngs"), track0.pt(), impactParameter0XY * toMicrometers);
428-
registry.fill(HIST("hDcaZProngs"), track0.pt(), std::sqrt(kfFirstProton.GetDistanceFromVertex(KFPV) * kfFirstProton.GetDistanceFromVertex(KFPV) - impactParameter0XY * impactParameter0XY) * toMicrometers);
428+
registry.fill(HIST("hDcaZProngs"), track0.pt(), std::sqrt(kfFirstProton.GetDistanceFromVertex(kfpV) * kfFirstProton.GetDistanceFromVertex(kfpV) - impactParameter0XY * impactParameter0XY) * toMicrometers);
429429
} else {
430430
registry.fill(HIST("hDcaXYProngs"), track0.pt(), UndefValueFloat);
431431
registry.fill(HIST("hDcaZProngs"), track0.pt(), UndefValueFloat);
432432
}
433-
if (!kfSecondKaon.GetDistanceFromVertexXY(KFPV, impactParameter1XY, errImpactParameter1XY)) {
433+
if (!kfSecondKaon.GetDistanceFromVertexXY(kfpV, impactParameter1XY, errImpactParameter1XY)) {
434434
registry.fill(HIST("hDcaXYProngs"), track1.pt(), impactParameter1XY * toMicrometers);
435-
registry.fill(HIST("hDcaZProngs"), track1.pt(), std::sqrt(kfSecondKaon.GetDistanceFromVertex(KFPV) * kfSecondKaon.GetDistanceFromVertex(KFPV) - impactParameter1XY * impactParameter1XY) * toMicrometers);
435+
registry.fill(HIST("hDcaZProngs"), track1.pt(), std::sqrt(kfSecondKaon.GetDistanceFromVertex(kfpV) * kfSecondKaon.GetDistanceFromVertex(kfpV) - impactParameter1XY * impactParameter1XY) * toMicrometers);
436436
} else {
437437
registry.fill(HIST("hDcaXYProngs"), track1.pt(), UndefValueFloat);
438438
registry.fill(HIST("hDcaZProngs"), track1.pt(), UndefValueFloat);
439439
}
440-
if (!kfThirdProton.GetDistanceFromVertexXY(KFPV, impactParameter2XY, errImpactParameter2XY)) {
440+
if (!kfThirdProton.GetDistanceFromVertexXY(kfpV, impactParameter2XY, errImpactParameter2XY)) {
441441
registry.fill(HIST("hDcaXYProngs"), track2.pt(), impactParameter2XY * toMicrometers);
442-
registry.fill(HIST("hDcaZProngs"), track2.pt(), std::sqrt(kfThirdProton.GetDistanceFromVertex(KFPV) * kfThirdProton.GetDistanceFromVertex(KFPV) - impactParameter2XY * impactParameter2XY) * toMicrometers);
442+
registry.fill(HIST("hDcaZProngs"), track2.pt(), std::sqrt(kfThirdProton.GetDistanceFromVertex(kfpV) * kfThirdProton.GetDistanceFromVertex(kfpV) - impactParameter2XY * impactParameter2XY) * toMicrometers);
443443
} else {
444444
registry.fill(HIST("hDcaXYProngs"), track2.pt(), UndefValueFloat);
445445
registry.fill(HIST("hDcaZProngs"), track2.pt(), UndefValueFloat);
446446
}
447447

448-
auto [impactParameter0Z, errImpactParameter0Z] = kfCalculateImpactParameterZ(kfFirstProton, KFPV);
449-
auto [impactParameter1Z, errImpactParameter1Z] = kfCalculateImpactParameterZ(kfSecondKaon, KFPV);
450-
auto [impactParameter2Z, errImpactParameter2Z] = kfCalculateImpactParameterZ(kfThirdProton, KFPV);
448+
auto [impactParameter0Z, errImpactParameter0Z] = kfCalculateImpactParameterZ(kfFirstProton, kfpV);
449+
auto [impactParameter1Z, errImpactParameter1Z] = kfCalculateImpactParameterZ(kfSecondKaon, kfpV);
450+
auto [impactParameter2Z, errImpactParameter2Z] = kfCalculateImpactParameterZ(kfThirdProton, kfpV);
451451

452-
const float chi2primFirst = kfCalculateChi2ToPrimaryVertex(kfFirstProton, KFPV);
453-
const float chi2primSecond = kfCalculateChi2ToPrimaryVertex(kfSecondKaon, KFPV);
454-
const float chi2primThird = kfCalculateChi2ToPrimaryVertex(kfThirdPion, KFPV);
452+
const float chi2primFirst = kfCalculateChi2ToPrimaryVertex(kfFirstProton, kfpV);
453+
const float chi2primSecond = kfCalculateChi2ToPrimaryVertex(kfSecondKaon, kfpV);
454+
const float chi2primThird = kfCalculateChi2ToPrimaryVertex(kfThirdPion, kfpV);
455455

456456
const float dcaSecondThird = kfCalculateDistanceBetweenParticles(kfSecondKaon, kfThirdPion);
457457
const float dcaFirstThird = kfCalculateDistanceBetweenParticles(kfFirstProton, kfThirdPion);
@@ -506,8 +506,8 @@ struct HfCandidateCreator3Prong {
506506
const float massPiK = kfPairPiK.GetMass();
507507

508508
const float chi2geo = kfCandPKPi.Chi2() / kfCandPKPi.NDF();
509-
const float chi2topo = kfCalculateChi2ToPrimaryVertex(kfCandPKPi, KFPV);
510-
const std::pair<float, float> ldl = kfCalculateLdL(kfCandPKPi, KFPV);
509+
const float chi2topo = kfCalculateChi2ToPrimaryVertex(kfCandPKPi, kfpV);
510+
const std::pair<float, float> ldl = kfCalculateLdL(kfCandPKPi, kfpV);
511511

512512
std::array<float, 3> pProng0 = kfCalculateProngMomentumInSecondaryVertex(kfFirstProton, kfCandPiKP);
513513
std::array<float, 3> pProng1 = kfCalculateProngMomentumInSecondaryVertex(kfSecondKaon, kfCandPiKP);
@@ -520,7 +520,7 @@ struct HfCandidateCreator3Prong {
520520

521521
auto covMatrixSV = kfCandPKPi.CovarianceMatrix();
522522
double phi, theta;
523-
getPointDirection(std::array{KFPV.GetX(), KFPV.GetY(), KFPV.GetZ()}, std::array{kfCandPKPi.GetX(), kfCandPKPi.GetY(), kfCandPKPi.GetZ()}, phi, theta);
523+
getPointDirection(std::array{kfpV.GetX(), kfpV.GetY(), kfpV.GetZ()}, std::array{kfCandPKPi.GetX(), kfCandPKPi.GetY(), kfCandPKPi.GetZ()}, phi, theta);
524524
auto errorDecayLength = std::sqrt(getRotatedCovMatrixXX(covMatrixPV, phi, theta) + getRotatedCovMatrixXX(covMatrixSV, phi, theta));
525525
auto errorDecayLengthXY = std::sqrt(getRotatedCovMatrixXX(covMatrixPV, phi, 0.) + getRotatedCovMatrixXX(covMatrixSV, phi, 0.));
526526

@@ -539,7 +539,7 @@ struct HfCandidateCreator3Prong {
539539

540540
// fill candidate table rows
541541
rowCandidateBase(indexCollision,
542-
KFPV.GetX(), KFPV.GetY(), KFPV.GetZ(),
542+
kfpV.GetX(), kfpV.GetY(), kfpV.GetZ(),
543543
kfCandPKPi.GetX(), kfCandPKPi.GetY(), kfCandPKPi.GetZ(),
544544
errorDecayLength, errorDecayLengthXY,
545545
kfCandPKPi.GetChi2() / kfCandPKPi.GetNDF(),
@@ -555,7 +555,7 @@ struct HfCandidateCreator3Prong {
555555

556556
// fill KF info
557557
rowCandidateKF(kfCandPKPi.GetErrX(), kfCandPKPi.GetErrY(), kfCandPKPi.GetErrZ(),
558-
std::sqrt(KFPV.Covariance(0, 0)), std::sqrt(KFPV.Covariance(1, 1)), std::sqrt(KFPV.Covariance(2, 2)),
558+
std::sqrt(kfpV.Covariance(0, 0)), std::sqrt(kfpV.Covariance(1, 1)), std::sqrt(kfpV.Covariance(2, 2)),
559559
massPKPi, massPiKP, massPiKPi, massKKPi, massPiKK, massKPi, massPiK,
560560
kfCandPKPi.GetPx(), kfCandPKPi.GetPy(), kfCandPKPi.GetPz(),
561561
kfCandPKPi.GetErrPx(), kfCandPKPi.GetErrPy(), kfCandPKPi.GetErrPz(),
@@ -783,22 +783,24 @@ struct HfCandidateCreator3ProngExpressions {
783783
Produces<aod::HfCand3ProngMcGen> rowMcMatchGen;
784784

785785
// Configuration
786-
o2::framework::Configurable<bool> rejectBackground{"rejectBackground", true, "Reject particles from background events"};
787-
o2::framework::Configurable<bool> matchKinkedDecayTopology{"matchKinkedDecayTopology", false, "Match also candidates with tracks that decay with kinked topology"};
788-
o2::framework::Configurable<bool> matchInteractionsWithMaterial{"matchInteractionsWithMaterial", false, "Match also candidates with tracks that interact with material"};
786+
Configurable<bool> rejectBackground{"rejectBackground", true, "Reject particles from background events"};
787+
Configurable<bool> matchKinkedDecayTopology{"matchKinkedDecayTopology", false, "Match also candidates with tracks that decay with kinked topology"};
788+
Configurable<bool> matchInteractionsWithMaterial{"matchInteractionsWithMaterial", false, "Match also candidates with tracks that interact with material"};
789789

790790
HfEventSelectionMc hfEvSelMc; // mc event selection and monitoring
791-
using BCsInfo = soa::Join<aod::BCs, aod::Timestamps, aod::BcSels>;
792-
HistogramRegistry registry{"registry"};
793791

792+
using BCsInfo = soa::Join<aod::BCs, aod::Timestamps, aod::BcSels>;
794793
using McCollisionsNoCents = soa::Join<aod::Collisions, aod::EvSels, aod::McCollisionLabels>;
795794
using McCollisionsFT0Cs = soa::Join<aod::Collisions, aod::EvSels, aod::McCollisionLabels, aod::CentFT0Cs>;
796795
using McCollisionsFT0Ms = soa::Join<aod::Collisions, aod::EvSels, aod::McCollisionLabels, aod::CentFT0Ms>;
797796
using McCollisionsCentFT0Ms = soa::Join<aod::McCollisions, aod::McCentFT0Ms>;
797+
798+
Preslice<aod::McParticles> mcParticlesPerMcCollision = aod::mcparticle::mcCollisionId;
798799
PresliceUnsorted<McCollisionsNoCents> colPerMcCollision = aod::mccollisionlabel::mcCollisionId;
799800
PresliceUnsorted<McCollisionsFT0Cs> colPerMcCollisionFT0C = aod::mccollisionlabel::mcCollisionId;
800801
PresliceUnsorted<McCollisionsFT0Ms> colPerMcCollisionFT0M = aod::mccollisionlabel::mcCollisionId;
801-
Preslice<aod::McParticles> mcParticlesPerMcCollision = aod::mcparticle::mcCollisionId;
802+
803+
HistogramRegistry registry{"registry"};
802804

803805
void init(InitContext& initContext)
804806
{
@@ -1078,6 +1080,6 @@ struct HfCandidateCreator3ProngExpressions {
10781080
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
10791081
{
10801082
return WorkflowSpec{
1081-
adaptAnalysisTask<HfCandidateCreator3Prong>(cfgc, TaskName{"hf-candidate-creator-3prong"}),
1082-
adaptAnalysisTask<HfCandidateCreator3ProngExpressions>(cfgc, TaskName{"hf-candidate-creator-3prong-expressions"})};
1083+
adaptAnalysisTask<HfCandidateCreator3Prong>(cfgc, TaskName{"hf-candidate-creator-3prong"}), // o2-linter: disable=name/o2-task (wrong hyphenation)
1084+
adaptAnalysisTask<HfCandidateCreator3ProngExpressions>(cfgc, TaskName{"hf-candidate-creator-3prong-expressions"})}; // o2-linter: disable=name/o2-task (wrong hyphenation)
10831085
}

PWGHF/TableProducer/candidateCreatorB0.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ struct HfCandidateCreatorB0 {
9898
Preslice<CandsDFiltered> candsDPerCollision = aod::track_association::collisionId;
9999
Preslice<aod::TrackAssoc> trackIndicesPerCollision = aod::track_association::collisionId;
100100

101+
std::shared_ptr<TH1> hCandidatesD, hCandidatesB;
102+
HistogramRegistry registry{"registry"};
103+
101104
OutputObj<TH1F> hMassDToPiKPi{TH1F("hMassDToPiKPi", "D^{#minus} candidates;inv. mass (p^{#minus} K^{#plus} #pi^{#minus}) (GeV/#it{c}^{2});entries", 500, 0., 5.)};
102105
OutputObj<TH1F> hPtD{TH1F("hPtD", "D^{#minus} candidates;D^{#minus} candidate #it{p}_{T} (GeV/#it{c});entries", 100, 0., 10.)};
103106
OutputObj<TH1F> hPtPion{TH1F("hPtPion", "#pi^{#plus} candidates;#pi^{#plus} candidate #it{p}_{T} (GeV/#it{c});entries", 100, 0., 10.)};
@@ -106,9 +109,6 @@ struct HfCandidateCreatorB0 {
106109
OutputObj<TH1F> hCovPVXX{TH1F("hCovPVXX", "2-prong candidates;XX element of cov. matrix of prim. vtx. position (cm^{2});entries", 100, 0., 1.e-4)};
107110
OutputObj<TH1F> hCovSVXX{TH1F("hCovSVXX", "2-prong candidates;XX element of cov. matrix of sec. vtx. position (cm^{2});entries", 100, 0., 0.2)};
108111

109-
std::shared_ptr<TH1> hCandidatesD, hCandidatesB;
110-
HistogramRegistry registry{"registry"};
111-
112112
void init(InitContext const&)
113113
{
114114
// invariant-mass window cut

0 commit comments

Comments
 (0)