Skip to content

Commit 436b143

Browse files
authored
Add files via upload
1 parent 25a425c commit 436b143

1 file changed

Lines changed: 1 addition & 31 deletions

File tree

‎PWGDQ/Tasks/tableReader_withAssoc.h‎

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
#include <TMath.h>
6464
#include <TMathBase.h>
6565
#include <TObjString.h>
66-
#include <TRandom3.h>
6766
#include <TString.h>
6867

6968
#include <RtypesCore.h>
@@ -4134,7 +4133,7 @@ struct AnalysisDileptonTrack {
41344133
o2::framework::Configurable<bool> fConfigApplyMassEC{"cfgApplyMassEC", false, "Apply fit mass for sideband for the energy correlator study"};
41354134
o2::framework::Configurable<std::vector<float>> fConfigFitmassEC{"cfgTFitmassEC", std::vector<float>{-0.541438, 2.8, 3.2}, "parameter from the fit fuction and fit range"};
41364135
o2::framework::Configurable<std::vector<float>> fConfigTransRange{"cfgTransRange", std::vector<float>{0.333333, 0.666667}, "Transverse region for the energy correlstor analysis"};
4137-
o2::framework::Configurable<int> fConfigbootstrapRN{"cfgBootstrapRN", -1, "Number of bootstrap samples for the energy correlator study"};
4136+
41384137
o2::framework::Configurable<bool> fConfigApplyEfficiency{"cfgApplyEfficiency", false, "If true, apply efficiency correction for the energy correlator study"};
41394138
o2::framework::Configurable<bool> fConfigApplyEfficiencyME{"cfgApplyEfficiencyME", false, "If true, apply efficiency correction for the energy correlator study"};
41404139
o2::framework::Configurable<std::string> fConfigAccCCDBPath{"AccCCDBPath", "Users/y/yalin/pptest/test2", "Path of the efficiency corrections"};
@@ -4177,9 +4176,6 @@ struct AnalysisDileptonTrack {
41774176
TH2F* hEfficiency_dilepton = nullptr;
41784177
TH2F* hEfficiency_hadron = nullptr;
41794178
TH1F* hMasswindow = nullptr;
4180-
TRandom3 fRndm{0};
4181-
using BootstrapEventKey = std::pair<uint64_t, uint64_t>;
4182-
std::map<BootstrapEventKey, int> fBootstrapSampleMap;
41834179

41844180
void init(o2::framework::InitContext& context)
41854181
{
@@ -4463,24 +4459,6 @@ struct AnalysisDileptonTrack {
44634459
return hEff->Interpolate(safeX, safeY);
44644460
}
44654461

4466-
template <typename TEvent>
4467-
int getBootstrapSample(TEvent const& event)
4468-
{
4469-
const BootstrapEventKey key{
4470-
static_cast<uint64_t>(event.timestamp()),
4471-
static_cast<uint64_t>(event.globalIndex())};
4472-
4473-
if (auto it = fBootstrapSampleMap.find(key);
4474-
it != fBootstrapSampleMap.end()) {
4475-
return it->second;
4476-
}
4477-
4478-
const int sample = static_cast<int>(fRndm.Rndm() * fConfigbootstrapRN.value);
4479-
fBootstrapSampleMap.emplace(key, sample);
4480-
4481-
return sample;
4482-
}
4483-
44844462
// Template function to run pair - hadron combinations
44854463
template <int TCandidateType, uint32_t TEventFillMap, uint32_t TTrackFillMap, typename TEvent, typename TTracks, typename TTrackAssocs, typename TDileptons>
44864464
void runDileptonHadron(TEvent const& event, TTrackAssocs const& assocs, TTracks const& tracks, TDileptons const& dileptons)
@@ -4490,10 +4468,6 @@ struct AnalysisDileptonTrack {
44904468
VarManager::FillEvent<TEventFillMap>(event, fValuesHadron);
44914469
VarManager::FillEvent<TEventFillMap>(event, fValuesDilepton);
44924470

4493-
if (fConfigbootstrapRN.value > 0) {
4494-
const int bootstrapSample = getBootstrapSample(event);
4495-
fValuesHadron[VarManager::kECBootstrapSample] = bootstrapSample;
4496-
}
44974471
for (auto const& dilepton : dileptons) {
44984472
// get full track info of tracks based on the index
44994473
auto lepton1 = tracks.rawIteratorAt(dilepton.index0Id());
@@ -4766,10 +4740,6 @@ struct AnalysisDileptonTrack {
47664740
auto evAssocs = assocs.sliceBy(trackAssocsPerCollision, event2.globalIndex());
47674741
evAssocs.bindExternalIndices(&events);
47684742

4769-
if (fConfigbootstrapRN.value > 0) {
4770-
const int bootstrapSample = getBootstrapSample(event1);
4771-
dqtablereader_helpers::varValues()[VarManager::kECBootstrapSample] = bootstrapSample;
4772-
}
47734743
// loop over associations
47744744
for (auto const& assoc : evAssocs) {
47754745

0 commit comments

Comments
 (0)