@@ -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);
0 commit comments