#include <LazyFrameSource.h>
Definition at line 24 of file LazyFrameSource.h.
 
      
        
          | LazyFrameSource::LazyFrameSource  | 
          ( | 
           | ) | 
           | 
        
      
 
 
  
  
      
        
          | LazyFrameSource::~LazyFrameSource  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
  
  
      
        
          | void LazyFrameSource::configure  | 
          ( | 
          const WireCell::Configuration &  | 
          config | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
Definition at line 137 of file LazyFrameSource.cxx.
  139     const std::string art_tag = cfg[
"art_tag"].asString();
 
  140     if (art_tag.empty()) {
 
  141         THROW(ValueError() << errmsg{
"LazyFrameSource requires a source_label"});
 
  145     m_tick = cfg[
"tick"].asDouble();
 
  146     for (
auto jtag : cfg[
"frame_tags"]) {
 
std::vector< std::string > m_frame_tags
 
 
 
 
  
  
      
        
          | WireCell::Configuration LazyFrameSource::default_configuration  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
IConfigurable. 
Definition at line 127 of file LazyFrameSource.cxx.
  131     cfg[
"tick"] = 0.5*WireCell::units::us;
 
  132     cfg[
"frame_tags"][0] = 
"orig"; 
 
 
 
 
  
  
      
        
          | bool LazyFrameSource::operator()  | 
          ( | 
          WireCell::IFrame::pointer &  | 
          frame | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
IFrameSource. 
Definition at line 184 of file LazyFrameSource.cxx.
std::deque< WireCell::IFrame::pointer > m_frames
 
 
 
 
  
  
      
        
          | void LazyFrameSource::visit  | 
          ( | 
          art::Event &  | 
          event | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
IArtEventVisitor. 
Implements wcls::IArtEventVisitor.
Definition at line 163 of file LazyFrameSource.cxx.
  168     art::Handle< std::vector<raw::RawDigit> > rdvh;
 
  169     bool okay = 
event.getByLabel(
m_inputTag, rdvh);
 
  171         std::string 
msg = 
"LazyFrameSource failed to get vector<raw::RawDigit>: " + 
m_inputTag.encode();
 
  173         THROW(RuntimeError() << errmsg{msg});
 
  175     else if (rdvh->size() == 0) 
return;
 
  176     const double time = 
tdiff(event.getRun().beginTime(), 
event.time());
 
  178     std::cerr << 
"LazyFrameSource: got " << rdvh->size() << 
" raw::RawDigit objects\n";
 
BEGIN_PROLOG could also be cerr
 
std::deque< WireCell::IFrame::pointer > m_frames
 
static double tdiff(const art::Timestamp &ts1, const art::Timestamp &ts2)
 
tick_as<> tick
Tick number, represented by std::ptrdiff_t. 
 
std::vector< std::string > m_frame_tags
 
 
 
 
  
  
      
        
          | std::vector<std::string> wcls::LazyFrameSource::m_frame_tags | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | std::deque<WireCell::IFrame::pointer> wcls::LazyFrameSource::m_frames | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | art::InputTag wcls::LazyFrameSource::m_inputTag | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | int wcls::LazyFrameSource::m_nticks | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | double wcls::LazyFrameSource::m_tick | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following files: