Cached set of RawDigitInfo_t. More...
Classes | |
| struct | BoolWithUpToDateMetadata |
Public Member Functions | |
| std::vector< RawDigitInfo_t > const & | Digits () const |
| Returns the list of digit info. More... | |
| RawDigitInfo_t const * | FindChannel (raw::ChannelID_t channel) const |
| Returns a pointer to the digit info of given channel, nullptr if none. More... | |
| size_t | MaxSamples () const |
| Returns the largest number of samples in the unpacked raw digits. More... | |
| bool | empty () const |
| Returns whether the cache is empty() (STL-like interface) More... | |
| void | Clear () |
| Empties the cache. More... | |
| void | Refill (art::Handle< std::vector< raw::RawDigit >> &rdcol) |
| Fills the cache from the specified raw digits product handle. More... | |
| void | Invalidate () |
| Clears the cache and marks it as invalid (use Update() to fill it) More... | |
| bool | Update (art::Event const &evt, CacheID_t const &new_timestamp) |
| template<typename Stream > | |
| void | Dump (Stream &&out) const |
| Dump the content of the cache. More... | |
Private Member Functions | |
| BoolWithUpToDateMetadata | CheckUpToDate (CacheID_t const &ts, art::Event const *evt=nullptr) const |
| Checks whether an update is needed; can load digits in the process. More... | |
Static Private Member Functions | |
| static std::vector < raw::RawDigit > const * | ReadProduct (art::Event const &evt, art::InputTag label) |
Private Attributes | |
| std::vector< RawDigitInfo_t > | digits |
| vector of raw digit information More... | |
| CacheID_t | timestamp |
| object expressing validity range of cached data More... | |
| size_t | max_samples = 0 |
| the largest number of ticks in any digit More... | |
Cached set of RawDigitInfo_t.
Definition at line 286 of file RawDataDrawer.cxx.
|
private |
Checks whether an update is needed; can load digits in the process.
Definition at line 1936 of file RawDataDrawer.cxx.
| void evd::details::RawDigitCacheDataClass::Clear | ( | ) |
Empties the cache.
Definition at line 1928 of file RawDataDrawer.cxx.
|
inline |
Returns the list of digit info.
Definition at line 290 of file RawDataDrawer.cxx.
| void evd::details::RawDigitCacheDataClass::Dump | ( | Stream && | out | ) | const |
Dump the content of the cache.
Definition at line 2003 of file RawDataDrawer.cxx.
|
inline |
Returns whether the cache is empty() (STL-like interface)
Definition at line 307 of file RawDataDrawer.cxx.
| RawDigitInfo_t const * evd::details::RawDigitCacheDataClass::FindChannel | ( | raw::ChannelID_t | channel | ) | const |
Returns a pointer to the digit info of given channel, nullptr if none.
Definition at line 1892 of file RawDataDrawer.cxx.
| void evd::details::RawDigitCacheDataClass::Invalidate | ( | ) |
Clears the cache and marks it as invalid (use Update() to fill it)
Definition at line 1922 of file RawDataDrawer.cxx.
|
inline |
Returns the largest number of samples in the unpacked raw digits.
Definition at line 300 of file RawDataDrawer.cxx.
|
staticprivate |
Definition at line 1902 of file RawDataDrawer.cxx.
| void evd::details::RawDigitCacheDataClass::Refill | ( | art::Handle< std::vector< raw::RawDigit >> & | rdcol | ) |
Fills the cache from the specified raw digits product handle.
Definition at line 1910 of file RawDataDrawer.cxx.
| bool evd::details::RawDigitCacheDataClass::Update | ( | art::Event const & | evt, |
| CacheID_t const & | new_timestamp | ||
| ) |
Updates the cache for new_timestamp using the specified event
Definition at line 1977 of file RawDataDrawer.cxx.
|
private |
vector of raw digit information
Definition at line 343 of file RawDataDrawer.cxx.
|
private |
the largest number of ticks in any digit
Definition at line 347 of file RawDataDrawer.cxx.
|
private |
object expressing validity range of cached data
Definition at line 345 of file RawDataDrawer.cxx.
1.8.5