Skip to content

Commit d13f06f

Browse files
authored
[PWGHF] Use the option of occupancy estimator from HfEventSelection in candidate creators (#12304)
1 parent fd0cf14 commit d13f06f

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

PWGHF/TableProducer/candidateCreator2Prong.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ struct HfCandidateCreator2Prong {
750750

751751
/// bitmask with event. selection info
752752
float centrality{-1.f};
753-
float occupancy = getOccupancyColl(collision, OccupancyEstimator::Its);
753+
float occupancy = getOccupancyColl(collision, hfEvSel.occEstimator);
754754
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::None, aod::BCsWithTimestamps>(collision, centrality, ccdb, registry);
755755

756756
/// monitor the satisfied event selections
@@ -768,7 +768,7 @@ struct HfCandidateCreator2Prong {
768768

769769
/// bitmask with event. selection info
770770
float centrality{-1.f};
771-
float occupancy = getOccupancyColl(collision, OccupancyEstimator::Its);
771+
float occupancy = getOccupancyColl(collision, hfEvSel.occEstimator);
772772
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::FT0C, aod::BCsWithTimestamps>(collision, centrality, ccdb, registry);
773773

774774
/// monitor the satisfied event selections
@@ -786,7 +786,7 @@ struct HfCandidateCreator2Prong {
786786

787787
/// bitmask with event. selection info
788788
float centrality{-1.f};
789-
float occupancy = getOccupancyColl(collision, OccupancyEstimator::Its);
789+
float occupancy = getOccupancyColl(collision, hfEvSel.occEstimator);
790790
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::FT0M, aod::BCsWithTimestamps>(collision, centrality, ccdb, registry);
791791

792792
/// monitor the satisfied event selections
@@ -809,7 +809,7 @@ struct HfCandidateCreator2Prong {
809809

810810
/// bitmask with event. selection info
811811
float centrality{-1.f};
812-
float occupancy = getOccupancyColl(collision, OccupancyEstimator::Its);
812+
float occupancy = getOccupancyColl(collision, hfEvSel.occEstimator);
813813
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMaskWithUpc<true, CentralityEstimator::None, aod::BcFullInfos>(collision, centrality, ccdb, registry, bcs);
814814

815815
/// monitor the satisfied event selections

PWGHF/TableProducer/candidateCreator3Prong.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ struct HfCandidateCreator3Prong {
894894

895895
/// bitmask with event. selection info
896896
float centrality{-1.f};
897-
float occupancy = getOccupancyColl(collision, OccupancyEstimator::Its);
897+
float occupancy = getOccupancyColl(collision, hfEvSel.occEstimator);
898898
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::None, aod::BCsWithTimestamps>(collision, centrality, ccdb, registry);
899899

900900
/// monitor the satisfied event selections
@@ -912,7 +912,7 @@ struct HfCandidateCreator3Prong {
912912

913913
/// bitmask with event. selection info
914914
float centrality{-1.f};
915-
float occupancy = getOccupancyColl(collision, OccupancyEstimator::Its);
915+
float occupancy = getOccupancyColl(collision, hfEvSel.occEstimator);
916916
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::FT0C, aod::BCsWithTimestamps>(collision, centrality, ccdb, registry);
917917

918918
/// monitor the satisfied event selections
@@ -930,7 +930,7 @@ struct HfCandidateCreator3Prong {
930930

931931
/// bitmask with event. selection info
932932
float centrality{-1.f};
933-
float occupancy = getOccupancyColl(collision, OccupancyEstimator::Its);
933+
float occupancy = getOccupancyColl(collision, hfEvSel.occEstimator);
934934
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::FT0M, aod::BCsWithTimestamps>(collision, centrality, ccdb, registry);
935935

936936
/// monitor the satisfied event selections
@@ -953,7 +953,7 @@ struct HfCandidateCreator3Prong {
953953

954954
/// bitmask with event. selection info
955955
float centrality{-1.f};
956-
float occupancy = getOccupancyColl(collision, OccupancyEstimator::Its);
956+
float occupancy = getOccupancyColl(collision, hfEvSel.occEstimator);
957957
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMaskWithUpc<true, CentralityEstimator::None, aod::BcFullInfos>(collision, centrality, ccdb, registry, bcs);
958958

959959
/// monitor the satisfied event selections

PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ struct HfCandidateCreatorXicToXiPiPi {
798798

799799
/// bitmask with event. selection info
800800
float centrality{-1.f};
801-
float occupancy = getOccupancyColl(collision, OccupancyEstimator::Its);
801+
float occupancy = getOccupancyColl(collision, hfEvSel.occEstimator);
802802
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::None, aod::BCsWithTimestamps>(collision, centrality, ccdb, registry);
803803

804804
/// monitor the satisfied event selections
@@ -815,7 +815,7 @@ struct HfCandidateCreatorXicToXiPiPi {
815815

816816
/// bitmask with event. selection info
817817
float centrality{-1.f};
818-
float occupancy = getOccupancyColl(collision, OccupancyEstimator::Its);
818+
float occupancy = getOccupancyColl(collision, hfEvSel.occEstimator);
819819
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::FT0C, aod::BCsWithTimestamps>(collision, centrality, ccdb, registry);
820820

821821
/// monitor the satisfied event selections
@@ -832,7 +832,7 @@ struct HfCandidateCreatorXicToXiPiPi {
832832

833833
/// bitmask with event. selection info
834834
float centrality{-1.f};
835-
float occupancy = getOccupancyColl(collision, OccupancyEstimator::Its);
835+
float occupancy = getOccupancyColl(collision, hfEvSel.occEstimator);
836836
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::FT0M, aod::BCsWithTimestamps>(collision, centrality, ccdb, registry);
837837

838838
/// monitor the satisfied event selections

0 commit comments

Comments
 (0)