Skip to content

Commit 2c8b282

Browse files
committed
fixes
1 parent dcd78bf commit 2c8b282

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Detectors/CTP/workflowScalers/src/ctp-ccdb-orbit.cxx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,9 @@ int main(int argc, char** argv)
125125
} else {
126126
std::cout << "Storing:" << ccdbPath << " tmin:" << tmin << " tmax:" << tmax << " ts:" << tt << std::endl;
127127
std::string filename = "orbitReset.root";
128-
TClass* tcls = TClass::GetClass(typeid(vect));
129-
auto ti = tcls->GetTypeInfo();
130128
auto classname = "std::vector<int64_t>";
131129
metadata["adjustableEOV"] = "true";
132-
ret = api.storeAsTFile_impl(&(vect), *ti, ccdbPath, metadata, tmin, tmax);
130+
ret = api.storeAsTFileAny(&(vect), ccdbPath, metadata, tmin, tmax);
133131
o2::ccdb::CcdbObjectInfo oi(ccdbPath, classname, filename, metadata, tmin, tmax);
134132
adjustOverriddenEOV(api, oi);
135133
}

Detectors/CTP/workflowScalers/src/ctpCCDBManager.cxx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,9 @@ int ctpCCDBManager::saveOrbitReset(long timeStamp)
160160
// int ret = api.storeAsTFileAny(&vect, mCCDBPathOrbitReset, metadata, tmin, tmax);
161161
std::cout << "Storing:" << mCCDBPathOrbitReset << " tmin:" << tmin << " tmax:" << tmax << " ts:" << timeStamp << std::endl;
162162
std::string filename = "orbitReset.root";
163-
TClass* tcls = TClass::GetClass(typeid(vect));
164-
auto ti = tcls->GetTypeInfo();
165163
auto classname = "std::vector<int64_t>";
166164
metadata["adjustableEOV"] = "true";
167-
int ret = api.storeAsTFile_impl(&(vect), *ti, mCCDBPathOrbitReset, metadata, tmin, tmax);
165+
int ret = api.storeAsTFileAny(&(vect), mCCDBPathOrbitReset, metadata, tmin, tmax);
168166
o2::ccdb::CcdbObjectInfo oi(mCCDBPathOrbitReset, classname, filename, metadata, tmin, tmax);
169167
adjustOverriddenEOV(api, oi);
170168
if (ret == 0) {

0 commit comments

Comments
 (0)