Skip to content

Commit 6c76cd4

Browse files
committed
remove local flow
1 parent 28db102 commit 6c76cd4

2 files changed

Lines changed: 5 additions & 30 deletions

File tree

PWGDQ/Tasks/tableReader_withAssoc.cxx

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,8 +1360,7 @@ struct AnalysisSameEventPairing {
13601360
Configurable<bool> useRemoteCollisionInfo{"cfgUseRemoteCollisionInfo", false, "Use remote collision information from CCDB"};
13611361
Configurable<bool> useEfficiencyWeighting{"cfgUseEfficiencyWeighting", false, "Apply efficiency weighting to the pairs from CCDB"};
13621362
Configurable<int> efficiencyType{"cfgEfficiencyType", 0, "Type of efficiency to apply from CCDB: 0 no efficiency, 1 pt-cent-costhetastar"};
1363-
Configurable<bool> useRemoteFlow{"cfgUseRemoteFlow", false, "Use remote flow information from CCDB"};
1364-
Configurable<bool> useLocalFlow{"cfgUseLocalFlow", false, "Use flow information from local cache"};
1363+
Configurable<bool> useFlowReso{"cfgUseFlowReso", false, "Use remote flow information from CCDB"};
13651364
Configurable<bool> useQvecCalib{"cfgUseQvecCalib", false, "Use flow correction factors for Q-vector recalibration when removing the daughter"};
13661365
Configurable<bool> useCorrectionForRun{"cfgUseCorrectionForRun", false, "Apply run-by-run correction factors to the flow vectors"};
13671366
} fConfigOptions;
@@ -1820,7 +1819,7 @@ struct AnalysisSameEventPairing {
18201819
VarManager::SetEfficiencyObject(fConfigOptions.efficiencyType.value, effList->FindObject("efficiency"));
18211820
}
18221821

1823-
if (fConfigOptions.useRemoteFlow) {
1822+
if (fConfigOptions.useFlowReso) {
18241823
TString PathFlow = fConfigCCDB.flowPath.value;
18251824
TString ccdbPathFlowSP = Form("%s/ScalarProduct", PathFlow.Data());
18261825
TString ccdbPathFlowEP = Form("%s/EventPlane", PathFlow.Data());
@@ -1829,17 +1828,6 @@ struct AnalysisSameEventPairing {
18291828
if (ResoFlowSP == nullptr || ResoFlowEP == nullptr) {
18301829
LOGF(fatal, "Flow resolution histograms not available in CCDB at timestamp=%llu", timestamp);
18311830
}
1832-
} else if (fConfigOptions.useLocalFlow) {
1833-
TString pathFlow = fConfigCCDB.flowPathLocal.value;
1834-
TFile* fileFlow = TFile::Open(pathFlow.Data(), "READ");
1835-
if (fileFlow == nullptr || fileFlow->IsZombie()) {
1836-
LOGF(fatal, "Flow resolution file %s cannot be opened", pathFlow.Data());
1837-
}
1838-
fileFlow->GetObject("ScalarProduct", ResoFlowSP);
1839-
fileFlow->GetObject("EventPlane", ResoFlowEP);
1840-
if (ResoFlowSP == nullptr || ResoFlowEP == nullptr) {
1841-
LOGF(fatal, "Flow resolution histograms not available in file %s", pathFlow.Data());
1842-
}
18431831
}
18441832

18451833
if (fConfigOptions.useQvecCalib) {
@@ -2680,7 +2668,7 @@ struct AnalysisSameEventPairing {
26802668

26812669
fNPairPerEvent = 0;
26822670
VarManager::FillTwoMixEvents<TEventFillMap>(event1, event2, assocs1, assocs2);
2683-
if (fConfigOptions.useRemoteFlow || fConfigOptions.useLocalFlow) {
2671+
if (fConfigOptions.useFlowReso) {
26842672
VarManager::FillTwoMixEventsFlowResoFactor(ResoFlowSP, ResoFlowEP);
26852673
}
26862674
runMixedPairing<TPairType, TEventFillMap>(assocs1, assocs2, tracks, tracks);

PWGDQ/Tasks/tableReader_withAssoc_direct.cxx

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,8 +1325,7 @@ struct AnalysisSameEventPairing {
13251325
Configurable<bool> fConfigMiniTree{"cfgMiniTree", false, "Produce a single flat table with minimal information for analysis"};
13261326
Configurable<float> fConfigMiniTreeMinMass{"cfgMiniTreeMinMass", 2, "Min. mass cut for minitree"};
13271327
Configurable<float> fConfigMiniTreeMaxMass{"cfgMiniTreeMaxMass", 5, "Max. mass cut for minitree"};
1328-
Configurable<bool> useRemoteFlow{"cfgUseRemoteFlow", false, "Use remote flow information from CCDB"};
1329-
Configurable<bool> useLocalFlow{"cfgUseLocalFlow", false, "Use flow information from local cache"};
1328+
Configurable<bool> useFlowReso{"cfgUseFlowReso", false, "Use remote flow information from CCDB"};
13301329
Configurable<bool> useQvecCalib{"cfgUseQvecCalib", false, "Use flow correction factors for Q-vector recalibration when removing the daughter"};
13311330
Configurable<bool> useCorrectionForRun{"cfgUseCorrectionForRun", false, "Apply run-by-run correction factors to the flow vectors"};
13321331
} fConfigOptions;
@@ -1593,7 +1592,7 @@ struct AnalysisSameEventPairing {
15931592
}
15941593
}
15951594

1596-
if (fConfigOptions.useRemoteFlow) {
1595+
if (fConfigOptions.useFlowReso) {
15971596
TString PathFlow = fConfigCCDB.flowPath.value;
15981597
TString ccdbPathFlowSP = Form("%s/ScalarProduct", PathFlow.Data());
15991598
TString ccdbPathFlowEP = Form("%s/EventPlane", PathFlow.Data());
@@ -1602,18 +1601,6 @@ struct AnalysisSameEventPairing {
16021601
if (ResoFlowSP == nullptr || ResoFlowEP == nullptr) {
16031602
LOGF(fatal, "Flow resolution histograms not available in CCDB at timestamp=%llu", timestamp);
16041603
}
1605-
} else if (fConfigOptions.useLocalFlow) {
1606-
// LOGP(info, "Developing");
1607-
TString pathFlow = fConfigCCDB.flowPathLocal.value;
1608-
TFile* fileFlow = TFile::Open(pathFlow.Data(), "READ");
1609-
if (fileFlow == nullptr || fileFlow->IsZombie()) {
1610-
LOGF(fatal, "Flow resolution file %s cannot be opened", pathFlow.Data());
1611-
}
1612-
fileFlow->GetObject("ScalarProduct", ResoFlowSP);
1613-
fileFlow->GetObject("EventPlane", ResoFlowEP);
1614-
if (ResoFlowSP == nullptr || ResoFlowEP == nullptr) {
1615-
LOGF(fatal, "Flow resolution histograms not available in file %s", pathFlow.Data());
1616-
}
16171604
}
16181605

16191606
if (fConfigOptions.useQvecCalib) {

0 commit comments

Comments
 (0)