LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "Snapshot.h"
Public Member Functions | |
Snapshot () | |
Default constructor. More... | |
~Snapshot () | |
Default destructor. More... | |
void | Clear () |
const IOVTimeStamp & | Start () const |
const IOVTimeStamp & | End () const |
void | SetIoV (const IOVTimeStamp &start, const IOVTimeStamp &end) |
bool | IsValid (const IOVTimeStamp &ts) const |
size_t | NChannels () const |
const std::vector< T > & | Data () const |
template<class U = T, typename std::enable_if< std::is_base_of< ChData, U >::value, int >::type = 0> | |
bool | HasChannel (unsigned int ch) const |
Only included with class if T has base class ChData. More... | |
template<class U = T, typename std::enable_if< std::is_base_of< ChData, U >::value, int >::type = 0> | |
const T & | GetRow (unsigned int ch) const |
template<class U = T, typename std::enable_if< std::is_base_of< ChData, U >::value, int >::type = 0> | |
void | AddOrReplaceRow (const T &data) |
Private Attributes | |
IOVTimeStamp | fStart |
IOVTimeStamp | fEnd |
std::vector< T > | fData |
Definition at line 31 of file Snapshot.h.
|
inline |
|
inline |
|
inline |
Definition at line 82 of file Snapshot.h.
void lariov::Snapshot< T >::Clear | ( | ) |
Definition at line 106 of file Snapshot.h.
References lariov::Snapshot< T >::fData, lariov::Snapshot< T >::fEnd, lariov::Snapshot< T >::fStart, lariov::IOVTimeStamp::MaxTimeStamp(), lariov::IOVTimeStamp::SetStamp(), lariov::IOVTimeStamp::Stamp(), and lariov::IOVTimeStamp::SubStamp().
Referenced by lariov::Snapshot< lariov::PmtGain >::~Snapshot().
|
inline |
Definition at line 50 of file Snapshot.h.
|
inline |
Definition at line 43 of file Snapshot.h.
|
inline |
Definition at line 66 of file Snapshot.h.
|
inline |
bool lariov::Snapshot< T >::IsValid | ( | const IOVTimeStamp & | ts | ) | const |
Definition at line 125 of file Snapshot.h.
References lariov::Snapshot< T >::fEnd, and lariov::Snapshot< T >::fStart.
Referenced by lariov::Snapshot< lariov::PmtGain >::End().
|
inline |
Definition at line 48 of file Snapshot.h.
void lariov::Snapshot< T >::SetIoV | ( | const IOVTimeStamp & | start, |
const IOVTimeStamp & | end | ||
) |
Definition at line 114 of file Snapshot.h.
References util::end(), lariov::Snapshot< T >::fEnd, and lariov::Snapshot< T >::fStart.
Referenced by lariov::Snapshot< lariov::PmtGain >::End().
|
inline |
Definition at line 42 of file Snapshot.h.
|
private |
Definition at line 99 of file Snapshot.h.
Referenced by lariov::Snapshot< lariov::PmtGain >::AddOrReplaceRow(), lariov::Snapshot< T >::Clear(), lariov::Snapshot< lariov::PmtGain >::Data(), lariov::Snapshot< lariov::PmtGain >::GetRow(), lariov::Snapshot< lariov::PmtGain >::HasChannel(), and lariov::Snapshot< lariov::PmtGain >::NChannels().
|
private |
Definition at line 98 of file Snapshot.h.
Referenced by lariov::Snapshot< T >::Clear(), lariov::Snapshot< lariov::PmtGain >::End(), lariov::Snapshot< T >::IsValid(), and lariov::Snapshot< T >::SetIoV().
|
private |
Definition at line 97 of file Snapshot.h.
Referenced by lariov::Snapshot< T >::Clear(), lariov::Snapshot< T >::IsValid(), lariov::Snapshot< T >::SetIoV(), and lariov::Snapshot< lariov::PmtGain >::Start().