Skip to content

Commit d95c353

Browse files
committed
dev:orbitReset EOV
1 parent 662f864 commit d95c353

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,16 @@ int main(int argc, char** argv)
124124
ret = api.storeAsTFileAny(&(vect), ccdbPath, metadata, tmin, tmax);
125125
} else {
126126
std::cout << "Storing:" << ccdbPath << " tmin:" << tmin << " tmax:" << tmax << " ts:" << tt << std::endl;
127-
ret = api.storeAsTFileAny(&(vect), ccdbPath, metadata, tmin, tmax);
127+
std::string filename = "orbitReset.root";
128+
TClass* tcls = TClass::GetClass(typeid(vect));
129+
auto ti = tcls->GetTypeInfo();
130+
auto classname = "std::vector<int64_t>";
131+
metadata["adjustableEOV"] = "true";
132+
ret = api.storeAsTFile_impl(&(vect), *ti, ccdbPath, metadata, tmin, tmax);
133+
if (!api.isSnapshotMode() && metadata.find("adjustableEOV") != metadata.end() && metadata.find("default") == metadata.end()) {
134+
o2::ccdb::CcdbObjectInfo oi(ccdbPath, classname, filename, metadata, tmin, tmax);
135+
adjustOverriddenEOV(api, oi);
136+
}
128137
}
129138
}
130139
//

0 commit comments

Comments
 (0)