Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
evd::InputSeeker Class Reference

This is obviously a hack, but it's modeled on what EventDisplayBase does. More...

#include <InputSeeker.h>

Public Member Functions

 InputSeeker (const fhicl::ParameterSet &pset, art::ActivityRegistry &reg)
 
void seekToEvent (int offset)
 
void seekToEvent (art::EventID evt)
 

Protected Member Functions

void postBeginJobWorkers (art::InputSource *src, const std::vector< art::Worker * > &workers)
 

Protected Attributes

art::RootInput * fSrc
 

Detailed Description

This is obviously a hack, but it's modeled on what EventDisplayBase does.

Definition at line 11 of file InputSeeker.h.

Constructor & Destructor Documentation

evd::InputSeeker::InputSeeker ( const fhicl::ParameterSet pset,
art::ActivityRegistry reg 
)

Definition at line 11 of file InputSeeker_service.cc.

13  {
15  }
GlobalSignal< detail::SignalResponseType::LIFO, void(InputSource *, std::vector< Worker * > const &)> sPostBeginJobWorkers
void postBeginJobWorkers(art::InputSource *src, const std::vector< art::Worker * > &workers)

Member Function Documentation

void evd::InputSeeker::postBeginJobWorkers ( art::InputSource src,
const std::vector< art::Worker * > &  workers 
)
protected

Definition at line 18 of file InputSeeker_service.cc.

20  {
21  fSrc = dynamic_cast<art::RootInput*>(src);
22  if(!fSrc){
23  std::cout << "InputSource is not RootInput -- will not be able to seek backward" << std::endl;
24  }
25  }
art::RootInput * fSrc
Definition: InputSeeker.h:23
QTextStream & endl(QTextStream &s)
void evd::InputSeeker::seekToEvent ( int  offset)

Definition at line 28 of file InputSeeker_service.cc.

29  {
30  if(!fSrc){
31  std::cout << "Unable to seek" << std::endl;
32  return;
33  }
34  fSrc->seekToEvent(offset);
35  }
art::RootInput * fSrc
Definition: InputSeeker.h:23
QTextStream & endl(QTextStream &s)
void evd::InputSeeker::seekToEvent ( art::EventID  evt)

Definition at line 38 of file InputSeeker_service.cc.

39  {
40  if(!fSrc){
41  std::cout << "Unable to seek" << std::endl;
42  return;
43  }
44  fSrc->seekToEvent(evt);
45  }
art::RootInput * fSrc
Definition: InputSeeker.h:23
QTextStream & endl(QTextStream &s)

Member Data Documentation

art::RootInput* evd::InputSeeker::fSrc
protected

Definition at line 23 of file InputSeeker.h.


The documentation for this class was generated from the following files: