@@ -86,9 +86,6 @@ struct HfTaskCorrelationDsHadrons {
8686 Configurable<std::string> fdEffCcdbPath{" fdEffCcdbPath" , " " , " CCDB path for trigger efficiency" };
8787 Configurable<int64_t > timestampCcdb{" timestampCcdb" , -1 , " timestamp of the efficiency files used to query in CCDB" };
8888
89- const int comingFromCharm = 1 ;
90- const int comingFromBeauty = 2 ;
91-
9289 std::shared_ptr<TH1> mEfficiencyD = nullptr ;
9390 std::shared_ptr<TH1> mEfficiencyAssociated = nullptr ;
9491
@@ -419,9 +416,9 @@ struct HfTaskCorrelationDsHadrons {
419416 registry.fill (HIST (" hCorrel2DVsPtSignalRegionMcRec" ), deltaPhi, deltaEta, ptD, ptHadron, statusDsPrompt, poolBin, efficiencyWeight);
420417 if (isPhysicalPrimary) {
421418 registry.fill (HIST (" hCorrel2DVsPtPhysicalPrimaryMcRec" ), deltaPhi, deltaEta, ptD, ptHadron, statusDsPrompt, poolBin, efficiencyWeight);
422- if (statusDsPrompt == 1 && statusPromptHadron == comingFromCharm ) {
419+ if (statusDsPrompt == 1 && statusPromptHadron == RecoDecay::OriginType::Prompt ) {
423420 registry.fill (HIST (" hCorrel2DVsPtSignalRegionPromptDsPromptHadronMcRec" ), deltaPhi, deltaEta, ptD, ptHadron, poolBin, efficiencyWeight);
424- } else if (statusDsPrompt == 0 && statusPromptHadron == comingFromBeauty ) {
421+ } else if (statusDsPrompt == 0 && statusPromptHadron == RecoDecay::OriginType::NonPrompt ) {
425422 registry.fill (HIST (" hCorrel2DVsPtSignalRegionNonPromptDsNonPromptHadronMcRec" ), deltaPhi, deltaEta, ptD, ptHadron, poolBin, efficiencyWeight);
426423 }
427424 }
@@ -461,12 +458,12 @@ struct HfTaskCorrelationDsHadrons {
461458 registry.fill (HIST (" hDeltaPhiPtIntMcGen" ), deltaPhi);
462459 if (isDsPrompt) {
463460 registry.fill (HIST (" hCorrel2DVsPtMcGenPrompt" ), deltaPhi, deltaEta, ptD, ptHadron, poolBin);
464- if (statusPromptHadron == comingFromCharm ) {
461+ if (statusPromptHadron == RecoDecay::OriginType::Prompt ) {
465462 registry.fill (HIST (" hCorrel2DVsPtMcGenPromptDsPromptHadron" ), deltaPhi, deltaEta, ptD, ptHadron, poolBin);
466463 }
467464 } else {
468465 registry.fill (HIST (" hCorrel2DVsPtMcGenNonPrompt" ), deltaPhi, deltaEta, ptD, ptHadron, poolBin);
469- if (statusPromptHadron == comingFromBeauty ) {
466+ if (statusPromptHadron == RecoDecay::OriginType::NonPrompt ) {
470467 registry.fill (HIST (" hCorrel2DVsPtMcGenNonPromptDsNonPromptHadron" ), deltaPhi, deltaEta, ptD, ptHadron, poolBin);
471468 }
472469 }
@@ -612,9 +609,9 @@ struct HfTaskCorrelationDsHadrons {
612609 registry.fill (HIST (" hCorrel2DVsPtSignalRegionMcRec" ), deltaPhi, deltaEta, ptD, ptHadron, statusDsPrompt, poolBin, efficiencyWeight);
613610 if (isPhysicalPrimary) {
614611 registry.fill (HIST (" hCorrel2DVsPtPhysicalPrimaryMcRec" ), deltaPhi, deltaEta, ptD, ptHadron, statusDsPrompt, poolBin, efficiencyWeight);
615- if (statusDsPrompt == 1 && statusPromptHadron == comingFromCharm ) {
612+ if (statusDsPrompt == 1 && statusPromptHadron == RecoDecay::OriginType::Prompt ) {
616613 registry.fill (HIST (" hCorrel2DVsPtSignalRegionPromptDsPromptHadronMcRec" ), deltaPhi, deltaEta, ptD, ptHadron, poolBin, efficiencyWeight);
617- } else if (statusDsPrompt == 0 && statusPromptHadron == comingFromBeauty ) {
614+ } else if (statusDsPrompt == 0 && statusPromptHadron == RecoDecay::OriginType::NonPrompt ) {
618615 registry.fill (HIST (" hCorrel2DVsPtSignalRegionNonPromptDsNonPromptHadronMcRec" ), deltaPhi, deltaEta, ptD, ptHadron, poolBin, efficiencyWeight);
619616 }
620617 }
@@ -901,9 +898,9 @@ struct HfTaskCorrelationDsHadrons {
901898 }
902899 if (separateTrackOrigins) {
903900 int trackOrigin = RecoDecay::getCharmHadronOrigin (mcParticles, mcParticle, true );
904- if (trackOrigin == comingFromCharm ) { // charm orgin
901+ if (trackOrigin == RecoDecay::OriginType::Prompt ) { // charm orgin
905902 registry.fill (HIST (" hPtPrmPromptPartMcGen" ), mcParticle.pt ());
906- } else if (trackOrigin == comingFromBeauty ) { // beauty origin
903+ } else if (trackOrigin == RecoDecay::OriginType::NonPrompt ) { // beauty origin
907904 registry.fill (HIST (" hPtPrmNonPromptPartMcGen" ), mcParticle.pt ());
908905 }
909906 }
@@ -942,9 +939,9 @@ struct HfTaskCorrelationDsHadrons {
942939 // check track origin
943940 if (separateTrackOrigins) {
944941 int trackOrigin = RecoDecay::getCharmHadronOrigin (mcParticles, mcParticle, true );
945- if (trackOrigin == comingFromCharm ) { // charm orgin
942+ if (trackOrigin == RecoDecay::OriginType::Prompt ) { // charm orgin
946943 registry.fill (HIST (" hPtPrmPromptPartMcRec" ), track.pt ());
947- } else if (trackOrigin == comingFromBeauty ) { // beauty origin
944+ } else if (trackOrigin == RecoDecay::OriginType::NonPrompt ) { // beauty origin
948945 registry.fill (HIST (" hPtPrmNonPromptPartMcRec" ), track.pt ());
949946 }
950947 }
0 commit comments