Skip to content
Merged
Changes from 2 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
11 changes: 10 additions & 1 deletion Detectors/CTP/workflowScalers/src/ctp-ccdb-orbit.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,16 @@ int main(int argc, char** argv)
ret = api.storeAsTFileAny(&(vect), ccdbPath, metadata, tmin, tmax);
} else {
std::cout << "Storing:" << ccdbPath << " tmin:" << tmin << " tmax:" << tmax << " ts:" << tt << std::endl;
ret = api.storeAsTFileAny(&(vect), ccdbPath, metadata, tmin, tmax);
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);
if (!api.isSnapshotMode() && metadata.find("adjustableEOV") != metadata.end() && metadata.find("default") == metadata.end()) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's ok, although since you know how you fill the metadata, the checks for metadata.find("adjustableEOV") != metadata.end() && metadata.find("default") == metadata.end() are not really needed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I removed the check.

o2::ccdb::CcdbObjectInfo oi(ccdbPath, classname, filename, metadata, tmin, tmax);
adjustOverriddenEOV(api, oi);
}
}
}
//
Expand Down