14 #ifndef IOVDATA_SNAPSHOT_H 15 #define IOVDATA_SNAPSHOT_H 57 template<
class U =
T,
62 if ( it ==
fData.end() || it->Channel() != ch) {
68 template<
class U =
T,
69 typename std::enable_if<std::is_base_of<ChData, U>::value,
int>::type = 0>
74 if ( it ==
fData.end() || it->Channel() != ch ) {
83 template<
class U =
T,
84 typename std::enable_if<std::is_base_of<ChData, U>::value,
int>::type = 0>
87 if (it ==
fData.end() || data.Channel() != it->Channel() ) {
88 bool sort = ( !(
fData.empty()) && data <
fData.back());
89 fData.push_back(data);
90 if (sort) std::sort(
fData.begin(),
fData.end());
117 throw IOVDataError(
"Called Snapshot::SetIoV with start timestamp >= end timestamp!");
end
while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for...
void SetStamp(unsigned long stamp, unsigned int substamp=0)
void msg(const char *fmt,...)
~Snapshot()
Default destructor.
void AddOrReplaceRow(const T &data)
bool HasChannel(unsigned int ch) const
Only included with class if T has base class ChData.
const T & GetRow(unsigned int ch) const
Class def header for a class IOVTimeStamp.
unsigned long SubStamp() const
Snapshot()
Default constructor.
const IOVTimeStamp & Start() const
Filters for channels, events, etc.
void SetIoV(const IOVTimeStamp &start, const IOVTimeStamp &end)
const IOVTimeStamp & End() const
unsigned long Stamp() const
const std::vector< T > & Data() const
Collection of exception classes for IOVData.
Class def header for a class ChData.
static IOVTimeStamp MaxTimeStamp()
bool IsValid(const IOVTimeStamp &ts) const
std::string to_string(ModuleType const mt)