LArSoft
v07_13_02
Liquid Argon Software toolkit - http://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 249 of file RawDataDrawer.cxx.
|
private |
Checks whether an update is needed; can load digits in the process.
Definition at line 1767 of file RawDataDrawer.cxx.
References evd::details::RawDigitInfo_t::Digit(), evd::details::RawDigitCacheDataClass::BoolWithUpToDateMetadata::digits, util::DataProductChangeTracker_t::inputLabel(), util::PlaneDataChangeTracker_t::sameProduct(), and Update().
void evd::details::RawDigitCacheDataClass::Clear | ( | ) |
Empties the cache.
Definition at line 1758 of file RawDataDrawer.cxx.
|
inline |
Returns the list of digit info.
Definition at line 253 of file RawDataDrawer.cxx.
Referenced by evd::details::begin(), and evd::details::end().
void evd::details::RawDigitCacheDataClass::Dump | ( | Stream && | out | ) | const |
Dump the content of the cache.
Definition at line 1839 of file RawDataDrawer.cxx.
|
inline |
Returns whether the cache is empty() (STL-like interface)
Definition at line 262 of file RawDataDrawer.cxx.
References details::PointerToData_t< T >::Clear(), tca::evt, and 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 1721 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 1753 of file RawDataDrawer.cxx.
|
inline |
Returns the largest number of samples in the unpacked raw digits.
Definition at line 259 of file RawDataDrawer.cxx.
|
staticprivate |
Definition at line 1732 of file RawDataDrawer.cxx.
References art::DataViewImpl::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 1741 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 1812 of file RawDataDrawer.cxx.
References art::DataViewImpl::getByLabel(), util::DataProductChangeTracker_t::inputLabel(), and LOG_DEBUG.
Referenced by evd::RawDataDrawer::GetRawDigits().
|
private |
vector of raw digit information
Definition at line 297 of file RawDataDrawer.cxx.
|
private |
the largest number of ticks in any digit
Definition at line 301 of file RawDataDrawer.cxx.
|
private |
object expressing validity range of cached data
Definition at line 299 of file RawDataDrawer.cxx.