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
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,13 @@ class DsChannelId

ClassDefNV(DsChannelId, 1); // class for MCH readout channel
};

inline bool operator==(const DsChannelId& a, const DsChannelId& b) { return a.value() == b.value(); }
inline bool operator!=(const DsChannelId& a, const DsChannelId& b) { return !(a == b); }
inline bool operator<(const DsChannelId& a, const DsChannelId& b) { return a.value() < b.value(); }
inline bool operator>(const DsChannelId& a, const DsChannelId& b) { return b < a; }
inline bool operator<=(const DsChannelId& a, const DsChannelId& b) { return !(a > b); }
inline bool operator>=(const DsChannelId& a, const DsChannelId& b) { return !(a < b); }

} // namespace o2::mch
#endif
6 changes: 5 additions & 1 deletion Detectors/MUON/MCH/Conditions/src/bad-channels-ccdb.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
// or submit itself to any jurisdiction.

#include <boost/program_options.hpp>
#include <algorithm>
#include <ctime>
#include <fstream>
#include <iterator>
Expand Down Expand Up @@ -209,9 +210,12 @@ void uploadBadChannels(const std::string ccdbUrl,
const std::string badChannelType,
uint64_t startTimestamp,
uint64_t endTimestamp,
const BadChannelsVector& bv,
BadChannelsVector& bv,
bool makeDefault)
{
std::sort(bv.begin(), bv.end());
bv.erase(std::unique(bv.begin(), bv.end()), bv.end());

std::cout << std::endl;
o2::ccdb::CcdbApi api;
api.init(ccdbUrl);
Expand Down