@@ -64,10 +64,10 @@ void uploadOTSobjects(std::string inputList, std::string passName, bool useAlien
6464 std ::unique_ptr < TFile > scalersFile {TFile ::Open ((path + "/AnalysisResults_fullrun.root" ).data (), "READ" )};
6565 TH1 * scalers = static_cast < TH1 * > (scalersFile -> Get ("central-event-filter-task/scalers/mScalers" ));
6666 TH1 * filters = static_cast < TH1 * > (scalersFile -> Get ("central-event-filter-task/scalers/mFiltered" ));
67- api .storeAsTFile (scalers , baseCCDBpath + "FilterCounters" , metadata , duration .first , duration .second );
68- api .storeAsTFile (filters , baseCCDBpath + "SelectionCounters" , metadata , duration .first , duration .second );
67+ api .storeAsTFile (scalers , baseCCDBpath + "FilterCounters" , metadata , duration .first , duration .second + 1 );
68+ api .storeAsTFile (filters , baseCCDBpath + "SelectionCounters" , metadata , duration .first , duration .second + 1 );
6969 TH1 * hCounterTVX = static_cast < TH1 * > (scalersFile -> Get ("bc-selection-task/hCounterTVX" ));
70- api .storeAsTFile (hCounterTVX , baseCCDBpath + "InspectedTVX" , metadata , duration .first , duration .second );
70+ api .storeAsTFile (hCounterTVX , baseCCDBpath + "InspectedTVX" , metadata , duration .first , duration .second + 1 );
7171
7272 std ::vector < ZorroHelper > zorroHelpers ;
7373 std ::unique_ptr < TFile > bcRangesFile {TFile ::Open ((path + "/bcRanges_fullrun.root" ).data (), "READ" )};
@@ -99,7 +99,7 @@ void uploadOTSobjects(std::string inputList, std::string passName, bool useAlien
9999 return a .bcAOD < b .bcAOD ;
100100 });
101101 if (!chunkedProcessing ) {
102- api .storeAsTFileAny (& zorroHelpers , baseCCDBpath + "ZorroHelpers" , metadata , duration .first , duration .second );
102+ api .storeAsTFileAny (& zorroHelpers , baseCCDBpath + "ZorroHelpers" , metadata , duration .first , duration .second + 1 );
103103 std ::cout << std ::endl ;
104104 } else {
105105 uint32_t helperIndex {0 };
@@ -126,7 +126,7 @@ void uploadOTSobjects(std::string inputList, std::string passName, bool useAlien
126126 endIndex ++ ;
127127 }
128128 std ::cout << ">>> Chunk " << helperIndex << " - " << helperIndex + chunk .size () << " : " << startTS << " - " << endTS << " \t" << (endTS - startTS ) * 1.e-3 << std ::endl ;
129- api .storeAsTFileAny (& chunk , baseCCDBpath + "ZorroHelpers" , metadata , startTS , endTS );
129+ api .storeAsTFileAny (& chunk , baseCCDBpath + "ZorroHelpers" , metadata , startTS , endTS + 1 );
130130 startTS = endTS + 1 ;
131131 helperIndex += chunk .size ();
132132 }
0 commit comments