File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -185,15 +185,11 @@ std::vector<int> Zorro::initCCDB(o2::ccdb::BasicCCDBManager* ccdb, int runNumber
185185 mCCDB = ccdb;
186186 mRunNumber = runNumber;
187187 mBCtolerance = bcRange;
188- std::map<std::string, std::string> metadata;
189- metadata[" runNumber" ] = std::to_string (runNumber);
190- mRunDuration = mCCDB ->getRunDuration (runNumber, true );
191- int64_t runTs = (mRunDuration .first / 2 + mRunDuration .second / 2 );
192- auto ctp = ccdb->getForTimeStamp <std::vector<Long64_t>>(" CTP/Calib/OrbitReset" , runTs);
188+ auto ctp = ccdb->getForRun <std::vector<Long64_t>>(" CTP/Calib/OrbitReset" , runNumber, false );
193189 mOrbitResetTimestamp = (*ctp)[0 ];
194- mScalers = mCCDB ->getSpecific <TH1D>(mBaseCCDBPath + " FilterCounters" , runTs, metadata );
195- mSelections = mCCDB ->getSpecific <TH1D>(mBaseCCDBPath + " SelectionCounters" , runTs, metadata );
196- mInspectedTVX = mCCDB ->getSpecific <TH1D>(mBaseCCDBPath + " InspectedTVX" , runTs, metadata );
190+ mScalers = mCCDB ->getForRun <TH1D>(mBaseCCDBPath + " FilterCounters" , runNumber, true );
191+ mSelections = mCCDB ->getForRun <TH1D>(mBaseCCDBPath + " SelectionCounters" , runNumber, true );
192+ mInspectedTVX = mCCDB ->getForRun <TH1D>(mBaseCCDBPath + " InspectedTVX" , runNumber, true );
197193 setupHelpers (timestamp);
198194 mLastBCglobalId = 0 ;
199195 mLastSelectedIdx = 0 ;
You can’t perform that action at this time.
0 commit comments