LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
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 234 of file RawDataDrawer.cxx.
|
private |
Checks whether an update is needed; can load digits in the process.
Definition at line 1699 of file RawDataDrawer.cxx.
References evd::details::RawDigitInfo_t::Digit(), evd::details::RawDigitCacheDataClass::BoolWithUpToDateMetadata::digits, util::empty(), util::DataProductChangeTracker_t::inputLabel(), and util::PlaneDataChangeTracker_t::sameProduct().
void evd::details::RawDigitCacheDataClass::Clear | ( | ) |
Empties the cache.
Definition at line 1692 of file RawDataDrawer.cxx.
|
inline |
Returns the list of digit info.
Definition at line 237 of file RawDataDrawer.cxx.
Referenced by evd::details::begin(), evd::details::end(), and evd::RawDataDrawer::RawDigit2D().
void evd::details::RawDigitCacheDataClass::Dump | ( | Stream && | out | ) | const |
Dump the content of the cache.
Definition at line 1765 of file RawDataDrawer.cxx.
|
inline |
Returns whether the cache is empty() (STL-like interface)
Definition at line 246 of file RawDataDrawer.cxx.
References details::PointerToData_t< T >::Clear(), tca::evt, and tca::Update().
Referenced by evd::RawDataDrawer::FillTQHisto(), and evd::RawDataDrawer::RunOperation().
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 1659 of file RawDataDrawer.cxx.
Referenced by evd::RawDataDrawer::FillTQHisto().
void evd::details::RawDigitCacheDataClass::Invalidate | ( | ) |
Clears the cache and marks it as invalid (use Update() to fill it)
Definition at line 1687 of file RawDataDrawer.cxx.
|
inline |
Returns the largest number of samples in the unpacked raw digits.
Definition at line 243 of file RawDataDrawer.cxx.
|
staticprivate |
Definition at line 1668 of file RawDataDrawer.cxx.
References art::ProductRetriever::getByLabel().
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 1676 of file RawDataDrawer.cxx.
References raw::RawDigit::Samples().
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 1740 of file RawDataDrawer.cxx.
References art::ProductRetriever::getByLabel(), util::DataProductChangeTracker_t::inputLabel(), and MF_LOG_DEBUG.
Referenced by evd::RawDataDrawer::GetRawDigits().
|
private |
vector of raw digit information
Definition at line 279 of file RawDataDrawer.cxx.
|
private |
the largest number of ticks in any digit
Definition at line 283 of file RawDataDrawer.cxx.
|
private |
object expressing validity range of cached data
Definition at line 281 of file RawDataDrawer.cxx.