Skip to content

Commit 8c91497

Browse files
committed
directly using the hfEvSel.occEstimator as the occupancy estimator in candidate creator
1 parent 166b556 commit 8c91497

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

PWGHF/TableProducer/candidateCreator2Prong.cxx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ struct HfCandidateCreator2Prong {
105105
Configurable<double> minParamChange{"minParamChange", 1.e-3, "stop iterations if largest change of any X is smaller than this"};
106106
Configurable<double> minRelChi2Change{"minRelChi2Change", 0.9, "stop iterations is chi2/chi2old > this"};
107107
Configurable<bool> fillHistograms{"fillHistograms", true, "do validation plots"};
108-
Configurable<int> occEstimator{"occEstimator", 1, "Occupancy estimation (1: ITS, 2: FT0C)"};
109108
// magnetic field setting from CCDB
110109
Configurable<bool> isRun2{"isRun2", false, "enable Run 2 or Run 3 GRP objects for magnetic field"};
111110
Configurable<std::string> ccdbUrl{"ccdbUrl", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
@@ -751,7 +750,7 @@ struct HfCandidateCreator2Prong {
751750

752751
/// bitmask with event. selection info
753752
float centrality{-1.f};
754-
float occupancy = getOccupancyColl(collision, occEstimator);
753+
float occupancy = getOccupancyColl(collision, hfEvSel.occEstimator);
755754
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::None, aod::BCsWithTimestamps>(collision, centrality, ccdb, registry);
756755

757756
/// monitor the satisfied event selections
@@ -769,7 +768,7 @@ struct HfCandidateCreator2Prong {
769768

770769
/// bitmask with event. selection info
771770
float centrality{-1.f};
772-
float occupancy = getOccupancyColl(collision, occEstimator);
771+
float occupancy = getOccupancyColl(collision, hfEvSel.occEstimator);
773772
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::FT0C, aod::BCsWithTimestamps>(collision, centrality, ccdb, registry);
774773

775774
/// monitor the satisfied event selections
@@ -787,7 +786,7 @@ struct HfCandidateCreator2Prong {
787786

788787
/// bitmask with event. selection info
789788
float centrality{-1.f};
790-
float occupancy = getOccupancyColl(collision, occEstimator);
789+
float occupancy = getOccupancyColl(collision, hfEvSel.occEstimator);
791790
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::FT0M, aod::BCsWithTimestamps>(collision, centrality, ccdb, registry);
792791

793792
/// monitor the satisfied event selections
@@ -810,7 +809,7 @@ struct HfCandidateCreator2Prong {
810809

811810
/// bitmask with event. selection info
812811
float centrality{-1.f};
813-
float occupancy = getOccupancyColl(collision, occEstimator);
812+
float occupancy = getOccupancyColl(collision, hfEvSel.occEstimator);
814813
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMaskWithUpc<true, CentralityEstimator::None, aod::BcFullInfos>(collision, centrality, ccdb, registry, bcs);
815814

816815
/// monitor the satisfied event selections

PWGHF/TableProducer/candidateCreator3Prong.cxx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ struct HfCandidateCreator3Prong {
110110
Configurable<double> minParamChange{"minParamChange", 1.e-3, "stop iterations if largest change of any X is smaller than this"};
111111
Configurable<double> minRelChi2Change{"minRelChi2Change", 0.9, "stop iterations is chi2/chi2old > this"};
112112
Configurable<bool> fillHistograms{"fillHistograms", true, "do validation plots"};
113-
Configurable<int> occEstimator{"occEstimator", 1, "Occupancy estimation (1: ITS, 2: FT0C)"};
114113
// magnetic field setting from CCDB
115114
Configurable<bool> isRun2{"isRun2", false, "enable Run 2 or Run 3 GRP objects for magnetic field"};
116115
Configurable<std::string> ccdbUrl{"ccdbUrl", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
@@ -895,7 +894,7 @@ struct HfCandidateCreator3Prong {
895894

896895
/// bitmask with event. selection info
897896
float centrality{-1.f};
898-
float occupancy = getOccupancyColl(collision, occEstimator);
897+
float occupancy = getOccupancyColl(collision, hfEvSel.occEstimator);
899898
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::None, aod::BCsWithTimestamps>(collision, centrality, ccdb, registry);
900899

901900
/// monitor the satisfied event selections
@@ -913,7 +912,7 @@ struct HfCandidateCreator3Prong {
913912

914913
/// bitmask with event. selection info
915914
float centrality{-1.f};
916-
float occupancy = getOccupancyColl(collision, occEstimator);
915+
float occupancy = getOccupancyColl(collision, hfEvSel.occEstimator);
917916
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::FT0C, aod::BCsWithTimestamps>(collision, centrality, ccdb, registry);
918917

919918
/// monitor the satisfied event selections
@@ -931,7 +930,7 @@ struct HfCandidateCreator3Prong {
931930

932931
/// bitmask with event. selection info
933932
float centrality{-1.f};
934-
float occupancy = getOccupancyColl(collision, occEstimator);
933+
float occupancy = getOccupancyColl(collision, hfEvSel.occEstimator);
935934
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::FT0M, aod::BCsWithTimestamps>(collision, centrality, ccdb, registry);
936935

937936
/// monitor the satisfied event selections
@@ -954,7 +953,7 @@ struct HfCandidateCreator3Prong {
954953

955954
/// bitmask with event. selection info
956955
float centrality{-1.f};
957-
float occupancy = getOccupancyColl(collision, occEstimator);
956+
float occupancy = getOccupancyColl(collision, hfEvSel.occEstimator);
958957
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMaskWithUpc<true, CentralityEstimator::None, aod::BcFullInfos>(collision, centrality, ccdb, registry, bcs);
959958

960959
/// monitor the satisfied event selections

0 commit comments

Comments
 (0)