Skip to content

Commit a5fd85c

Browse files
dstoccopillot
authored andcommitted
Improve metadata for default MID calibration CCDB objects
1 parent 55e9bbf commit a5fd85c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Detectors/MUON/MID/Calibration/macros/ccdbUtils.C

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,18 @@ void writeDCSMasks(const char* ccdbUrl, long timestamp, const char* outFilename
9393
/// @brief Uploads the list of channels provided
9494
/// @param ccdbUrl CCDB url
9595
/// @param timestamp Timestamp
96-
/// @param badChannels List of bad channels. Default is no bad channel
9796
/// @param path Calibration object path
97+
/// @param channels List of bad channels. Default is no bad channel
9898
void uploadBadChannels(const char* ccdbUrl, long timestamp, const std::string path, std::vector<o2::mid::ColumnData> channels = {})
9999
{
100100
o2::ccdb::CcdbApi api;
101101
api.init(ccdbUrl);
102102
std::map<std::string, std::string> md;
103+
if (timestamp == 1 && channels.empty()) {
104+
// This is the default
105+
md["default"] = "true";
106+
md["Created"] = "1"
107+
}
103108
std::cout << "Storing MID problematic channels (valid from " << timestamp << ") to " << path << "\n";
104109

105110
api.storeAsTFileAny(&channels, path, md, timestamp, o2::ccdb::CcdbObjectInfo::INFINITE_TIMESTAMP);

0 commit comments

Comments
 (0)