@@ -86,6 +86,9 @@ 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+
8992 std::shared_ptr<TH1> mEfficiencyD = nullptr ;
9093 std::shared_ptr<TH1> mEfficiencyAssociated = nullptr ;
9194
@@ -416,9 +419,9 @@ struct HfTaskCorrelationDsHadrons {
416419 registry.fill (HIST (" hCorrel2DVsPtSignalRegionMcRec" ), deltaPhi, deltaEta, ptD, ptHadron, statusDsPrompt, poolBin, efficiencyWeight);
417420 if (isPhysicalPrimary) {
418421 registry.fill (HIST (" hCorrel2DVsPtPhysicalPrimaryMcRec" ), deltaPhi, deltaEta, ptD, ptHadron, statusDsPrompt, poolBin, efficiencyWeight);
419- if (statusDsPrompt == 1 && statusPromptHadron == 1 ) {
422+ if (statusDsPrompt == 1 && statusPromptHadron == comingFromCharm ) {
420423 registry.fill (HIST (" hCorrel2DVsPtSignalRegionPromptDsPromptHadronMcRec" ), deltaPhi, deltaEta, ptD, ptHadron, poolBin, efficiencyWeight);
421- } else if (statusDsPrompt == 0 && statusPromptHadron == 2 ) {
424+ } else if (statusDsPrompt == 0 && statusPromptHadron == comingFromBeauty ) {
422425 registry.fill (HIST (" hCorrel2DVsPtSignalRegionNonPromptDsNonPromptHadronMcRec" ), deltaPhi, deltaEta, ptD, ptHadron, poolBin, efficiencyWeight);
423426 }
424427 }
@@ -458,12 +461,12 @@ struct HfTaskCorrelationDsHadrons {
458461 registry.fill (HIST (" hDeltaPhiPtIntMcGen" ), deltaPhi);
459462 if (isDsPrompt) {
460463 registry.fill (HIST (" hCorrel2DVsPtMcGenPrompt" ), deltaPhi, deltaEta, ptD, ptHadron, poolBin);
461- if (statusPromptHadron == 1 ) {
464+ if (statusPromptHadron == comingFromCharm ) {
462465 registry.fill (HIST (" hCorrel2DVsPtMcGenPromptDsPromptHadron" ), deltaPhi, deltaEta, ptD, ptHadron, poolBin);
463466 }
464467 } else {
465468 registry.fill (HIST (" hCorrel2DVsPtMcGenNonPrompt" ), deltaPhi, deltaEta, ptD, ptHadron, poolBin);
466- if (statusPromptHadron == 2 ) {
469+ if (statusPromptHadron == comingFromBeauty ) {
467470 registry.fill (HIST (" hCorrel2DVsPtMcGenNonPromptDsNonPromptHadron" ), deltaPhi, deltaEta, ptD, ptHadron, poolBin);
468471 }
469472 }
@@ -609,9 +612,9 @@ struct HfTaskCorrelationDsHadrons {
609612 registry.fill (HIST (" hCorrel2DVsPtSignalRegionMcRec" ), deltaPhi, deltaEta, ptD, ptHadron, statusDsPrompt, poolBin, efficiencyWeight);
610613 if (isPhysicalPrimary) {
611614 registry.fill (HIST (" hCorrel2DVsPtPhysicalPrimaryMcRec" ), deltaPhi, deltaEta, ptD, ptHadron, statusDsPrompt, poolBin, efficiencyWeight);
612- if (statusDsPrompt == 1 && statusPromptHadron == 1 ) {
615+ if (statusDsPrompt == 1 && statusPromptHadron == comingFromCharm ) {
613616 registry.fill (HIST (" hCorrel2DVsPtSignalRegionPromptDsPromptHadronMcRec" ), deltaPhi, deltaEta, ptD, ptHadron, poolBin, efficiencyWeight);
614- } else if (statusDsPrompt == 0 && statusPromptHadron == 2 ) {
617+ } else if (statusDsPrompt == 0 && statusPromptHadron == comingFromBeauty ) {
615618 registry.fill (HIST (" hCorrel2DVsPtSignalRegionNonPromptDsNonPromptHadronMcRec" ), deltaPhi, deltaEta, ptD, ptHadron, poolBin, efficiencyWeight);
616619 }
617620 }
@@ -898,9 +901,9 @@ struct HfTaskCorrelationDsHadrons {
898901 }
899902 if (separateTrackOrigins) {
900903 int trackOrigin = RecoDecay::getCharmHadronOrigin (mcParticles, mcParticle, true );
901- if (trackOrigin == 1 ) { // charm orgin
904+ if (trackOrigin == comingFromCharm ) { // charm orgin
902905 registry.fill (HIST (" hPtPrmPromptPartMcGen" ), mcParticle.pt ());
903- } else if (trackOrigin == 2 ) { // beauty origin
906+ } else if (trackOrigin == comingFromBeauty ) { // beauty origin
904907 registry.fill (HIST (" hPtPrmNonPromptPartMcGen" ), mcParticle.pt ());
905908 }
906909 }
@@ -939,9 +942,9 @@ struct HfTaskCorrelationDsHadrons {
939942 // check track origin
940943 if (separateTrackOrigins) {
941944 int trackOrigin = RecoDecay::getCharmHadronOrigin (mcParticles, mcParticle, true );
942- if (trackOrigin == 1 ) { // charm orgin
945+ if (trackOrigin == comingFromCharm ) { // charm orgin
943946 registry.fill (HIST (" hPtPrmPromptPartMcRec" ), track.pt ());
944- } else if (trackOrigin == 2 ) { // beauty origin
947+ } else if (trackOrigin == comingFromBeauty ) { // beauty origin
945948 registry.fill (HIST (" hPtPrmNonPromptPartMcRec" ), track.pt ());
946949 }
947950 }
0 commit comments