All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 10 of file InputSeeker.cc.

12  {
13  reg.sPostBeginJobWorkers.watch(this, &InputSeeker::postBeginJobWorkers);
14  }
void postBeginJobWorkers(art::InputSource *src, const std::vector< art::Worker * > &workers)
Definition: InputSeeker.cc:17

Member Function Documentation

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

Definition at line 17 of file InputSeeker.cc.

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

Definition at line 27 of file InputSeeker.cc.

28  {
29  if(!fSrc){
30  std::cout << "Unable to seek" << std::endl;
31  return;
32  }
33  fSrc->seekToEvent(offset);
34  }
BEGIN_PROLOG TPC Trig offset(g4 rise time) ProjectToHeight
Definition: CORSIKAGen.fcl:7
art::RootInput * fSrc
Definition: InputSeeker.h:23
BEGIN_PROLOG could also be cout
void evd::InputSeeker::seekToEvent ( art::EventID  evt)

Definition at line 37 of file InputSeeker.cc.

38  {
39  if(!fSrc){
40  std::cout << "Unable to seek" << std::endl;
41  return;
42  }
43  fSrc->seekToEvent(evt);
44  }
art::RootInput * fSrc
Definition: InputSeeker.h:23
TCEvent evt
Definition: DataStructs.cxx:8
BEGIN_PROLOG could also be cout

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: