Skip to content

Commit d611e5d

Browse files
committed
ALICE3,PWGCF replace -1 with 1 in getForTimeStamp
1 parent cc910ed commit d611e5d

8 files changed

Lines changed: 9 additions & 9 deletions

File tree

ALICE3/Core/FastTracker.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ void FastTracker::AddGenericDetector(o2::fastsim::GeometryEntry configMap, o2::c
187187
LOG(fatal) << "CCDB manager is null, cannot retrieve file " << ccdbPath;
188188
return;
189189
}
190-
TGraph* g = ccdbManager->getForTimeStamp<TGraph>(ccdbPath, -1);
190+
TGraph* g = ccdbManager->getForTimeStamp<TGraph>(ccdbPath, 1);
191191
addedLayer->setDeadPhiRegions(g);
192192
} else {
193193
// Taking it as local file

ALICE3/TableProducer/alice3-centrality.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ struct ALICE3Centrality {
6767
void process(const o2::aod::Collision& collision, const soa::Join<aod::Tracks, aod::TracksDCA>& tracks)
6868
{
6969
if (!centralityLoaded) {
70-
hCumMultALICE3 = ccdb->getForTimeStamp<TH1D>("Analysis/ALICE3/Centrality", -1);
70+
hCumMultALICE3 = ccdb->getForTimeStamp<TH1D>("Analysis/ALICE3/Centrality", 1);
7171
centralityLoaded = true;
7272
LOGF(info, "ALICE 3 centrality calibration loaded!");
7373
}

PWGCF/EbyEFluctuations/Tasks/eventMeanPtId.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ struct EventMeanPtId {
185185
ccdb->setLocalObjectValidityChecking();
186186
// ccdb->setCreatedNotAfter(ccdbNoLaterThan.value);
187187
// LOGF(info, "Getting object %s", ccdbPath.value.data());
188-
TList* lst = ccdb->getForTimeStamp<TList>(cfgPathCCDB.value, -1);
188+
TList* lst = ccdb->getForTimeStamp<TList>(cfgPathCCDB.value, 1);
189189
ptHistogramAllchargeRec = reinterpret_cast<TH2D*>(lst->FindObject("hPtEta_rec"));
190190
}
191191
std::vector<double> ptBinning = {0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 4.0};

PWGCF/EbyEFluctuations/Tasks/meanPtFlucId.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ struct MeanPtFlucId {
174174
ccdb->setURL(cfgUrlCCDB.value);
175175
ccdb->setCaching(true);
176176

177-
TList* lst = ccdb->getForTimeStamp<TList>(cfgPathCCDB.value, -1);
177+
TList* lst = ccdb->getForTimeStamp<TList>(cfgPathCCDB.value, 1);
178178
hWeightPt = reinterpret_cast<TH1D*>(lst->FindObject("hWeightPt"));
179179
hWeightPtPi = reinterpret_cast<TH1D*>(lst->FindObject("hWeightPtPi"));
180180
hWeightPtKa = reinterpret_cast<TH1D*>(lst->FindObject("hWeightPtKa"));

PWGCF/EbyEFluctuations/Tasks/netchargeFluctuations.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ struct NetchargeFluctuations {
417417
ccdb->setCaching(true);
418418
ccdb->setLocalObjectValidityChecking();
419419

420-
TList* list = ccdb->getForTimeStamp<TList>(cfgPathCCDB.value, -1);
420+
TList* list = ccdb->getForTimeStamp<TList>(cfgPathCCDB.value, 1);
421421
efficiencyPos = reinterpret_cast<TH1D*>(list->FindObject("efficiency_Pos_Run3"));
422422
efficiencyNeg = reinterpret_cast<TH1D*>(list->FindObject("efficiency_Neg_Run3"));
423423
// Log fatal error if efficiency histogram is not found

PWGCF/Flow/Tasks/flowEventPlane.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ struct SpectatorPlaneTableProducer {
379379
// Load ZDC gain calibration
380380
if (cDoGainCalib) {
381381
std::string ccdbPath = static_cast<std::string>(cCcdbPath) + "/GainCalib" + "/Run" + std::to_string(cRunNum);
382-
auto ccdbObj = ccdbService->getForTimeStamp<TList>(ccdbPath, -1);
382+
auto ccdbObj = ccdbService->getForTimeStamp<TList>(ccdbPath, 1);
383383
CorrectionHistContainer.hGainCalib[0] = reinterpret_cast<TH2F*>(ccdbObj->FindObject("hZNASignal"));
384384
CorrectionHistContainer.hGainCalib[1] = reinterpret_cast<TH2F*>(ccdbObj->FindObject("hZNCSignal"));
385385
}
@@ -407,7 +407,7 @@ struct SpectatorPlaneTableProducer {
407407
std::string ccdbPath = static_cast<std::string>(cCcdbPath) + "/CorrItr_" + std::to_string(i + 1) + "/Run" + std::to_string(cRunNum);
408408

409409
// Get object from CCDB
410-
auto ccdbObject = ccdbService->getForTimeStamp<TList>(ccdbPath, -1);
410+
auto ccdbObject = ccdbService->getForTimeStamp<TList>(ccdbPath, 1);
411411

412412
// Check CCDB Object
413413
if (!ccdbObject) {

PWGCF/TwoParticleCorrelations/Tasks/Lambdacascadecorrelation.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ struct LambdaTableProducer {
897897
}
898898

899899
// Get from CCDB
900-
auto ccdbObj = ccdb->getForTimeStamp<TList>(cPathCCDB.value, -1);
900+
auto ccdbObj = ccdb->getForTimeStamp<TList>(cPathCCDB.value, 1);
901901

902902
// Check CCDB Object
903903
if (!ccdbObj) {

PWGCF/TwoParticleCorrelations/Tasks/lambdaSpinPolarization.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ struct LambdaTableProducer {
802802
return 1.;
803803

804804
// Get from CCDB
805-
auto ccdbObj = ccdb->getForTimeStamp<TList>(cPathCCDB.value, -1);
805+
auto ccdbObj = ccdb->getForTimeStamp<TList>(cPathCCDB.value, 1);
806806
if (!ccdbObj) {
807807
LOGF(warning, "CCDB OBJECT NOT FOUND");
808808
return 1.;

0 commit comments

Comments
 (0)