Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Detectors/CTP/workflowScalers/src/ctp-ccdb-orbit.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,9 @@ int main(int argc, char** argv)
} else {
std::cout << "Storing:" << ccdbPath << " tmin:" << tmin << " tmax:" << tmax << " ts:" << tt << std::endl;
std::string filename = "orbitReset.root";
TClass* tcls = TClass::GetClass(typeid(vect));
auto ti = tcls->GetTypeInfo();
auto classname = "std::vector<int64_t>";
metadata["adjustableEOV"] = "true";
ret = api.storeAsTFile_impl(&(vect), *ti, ccdbPath, metadata, tmin, tmax);
ret = api.storeAsTFileAny(&(vect), ccdbPath, metadata, tmin, tmax);
o2::ccdb::CcdbObjectInfo oi(ccdbPath, classname, filename, metadata, tmin, tmax);
adjustOverriddenEOV(api, oi);
}
Expand Down
11 changes: 8 additions & 3 deletions Detectors/CTP/workflowScalers/src/ctpCCDBManager.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,14 @@ int ctpCCDBManager::saveOrbitReset(long timeStamp)
o2::ccdb::CcdbApi api;
std::map<std::string, std::string> metadata; // can be empty
api.init(mCCDBHost.c_str()); // or http://localhost:8080 for a local installation

// store abitrary user object in strongly typed manner
int ret = api.storeAsTFileAny(&vect, mCCDBPathOrbitReset, metadata, tmin, tmax);
// int ret = api.storeAsTFileAny(&vect, mCCDBPathOrbitReset, metadata, tmin, tmax);
std::cout << "Storing:" << mCCDBPathOrbitReset << " tmin:" << tmin << " tmax:" << tmax << " ts:" << timeStamp << std::endl;
std::string filename = "orbitReset.root";
auto classname = "std::vector<int64_t>";
metadata["adjustableEOV"] = "true";
int ret = api.storeAsTFileAny(&(vect), mCCDBPathOrbitReset, metadata, tmin, tmax);
o2::ccdb::CcdbObjectInfo oi(mCCDBPathOrbitReset, classname, filename, metadata, tmin, tmax);
adjustOverriddenEOV(api, oi);
if (ret == 0) {
LOG(info) << "Orbit reset saved in ccdb:" << mCCDBHost << " tmin:" << tmin << " tmax:" << tmax;
} else {
Expand Down