Skip to content

Commit a69009b

Browse files
authored
Eov for orbitreset (AliceO2Group#14534)
* dev:orbitReset EOV * clang * fix
1 parent 792df66 commit a69009b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,14 @@ 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+
o2::ccdb::CcdbObjectInfo oi(ccdbPath, classname, filename, metadata, tmin, tmax);
134+
adjustOverriddenEOV(api, oi);
128135
}
129136
}
130137
//

0 commit comments

Comments
 (0)