Jpp - the software that should make you happy
|
Auxiliary class to synchronously read DAQ events and Monte Carlo events (and optionally other events). More...
#include <JTriggeredFileScanner.hh>
Public Types | |
typedef JTypeList< JDAQEvent, JTypelist_t > | typelist |
typedef JParallelFileScanner < typelist, JMultipleFileScanner > | base_class |
typedef JMultiPointer < JTypeList< Evt, typelist > > | multi_pointer_type |
typedef JMultipleFileScanner < JNullType >::input_type | input_type |
typedef JRewindableObjectIterator < JTypeList< JDAQEvent, JTypelist_t > >::pointer_type | pointer_type |
Public Member Functions | |
JTriggeredFileScanner () | |
Default constructor. More... | |
JTriggeredFileScanner (const typename base_class::input_type &input) | |
Constructor. More... | |
JTriggeredFileScanner (const typename base_class::input_type &input, const JLimit &limit) | |
Constructor. More... | |
virtual bool | hasNext () override |
Check availability of next element. More... | |
virtual const multi_pointer_type & | next () override |
Get next element. More... | |
const std::string & | getFilename () const |
Get current file name. More... | |
counter_type | getCounter () const |
Get counter. More... | |
virtual void | rewind () override |
Rewind. More... | |
virtual skip_type | skip (const skip_type ns) override |
Skip items. More... | |
virtual skip_type | skip (const skip_type ns) |
Skip items. More... | |
Protected Attributes | |
JTreeScanner< Evt > | in |
std::string | file_name |
JFileScanner< JTypeList < JDAQEvent, JTypelist_t > > | scanner |
unsigned int | index |
counter_type | counter |
Auxiliary class to synchronously read DAQ events and Monte Carlo events (and optionally other events).
It is assumed that the TTree corresponding to the template argument and the TTree with KM3NETDAQ::JDAQEvent can be read in parallel.
Definition at line 39 of file JTriggeredFileScanner.hh.
typedef JTypeList<JDAQEvent, JTypelist_t> JSUPPORT::JTriggeredFileScanner< JTypelist_t >::typelist |
Definition at line 42 of file JTriggeredFileScanner.hh.
typedef JParallelFileScanner<typelist, JMultipleFileScanner> JSUPPORT::JTriggeredFileScanner< JTypelist_t >::base_class |
Definition at line 43 of file JTriggeredFileScanner.hh.
typedef JMultiPointer< JTypeList<Evt, typelist> > JSUPPORT::JTriggeredFileScanner< JTypelist_t >::multi_pointer_type |
Definition at line 44 of file JTriggeredFileScanner.hh.
|
inherited |
Definition at line 38 of file JParallelFileScanner.hh.
|
inherited |
Definition at line 264 of file JMultipleFileScanner.hh.
|
inline |
Default constructor.
Definition at line 50 of file JTriggeredFileScanner.hh.
|
inline |
Constructor.
input | input |
Definition at line 60 of file JTriggeredFileScanner.hh.
|
inline |
Constructor.
input | input |
limit | limit |
Definition at line 72 of file JTriggeredFileScanner.hh.
|
inlineoverridevirtual |
Check availability of next element.
Reimplemented from JSUPPORT::JMultipleFileScanner< JTypeList< JDAQEvent, JTypelist_t > >.
Definition at line 83 of file JTriggeredFileScanner.hh.
|
inlineoverridevirtual |
Get next element.
Reimplemented from JSUPPORT::JParallelFileScanner< JTypeList< JDAQEvent, JTypelist_t >, JMultipleFileScanner >.
Definition at line 103 of file JTriggeredFileScanner.hh.
|
inlineinherited |
Get current file name.
Note that this method should only be called when method hasNext() returns true.
Definition at line 325 of file JMultipleFileScanner.hh.
|
inlineinherited |
Get counter.
Definition at line 336 of file JMultipleFileScanner.hh.
|
inlineoverridevirtualinherited |
Rewind.
Implements JLANG::JRewindable< T >.
Definition at line 345 of file JMultipleFileScanner.hh.
|
inlineoverridevirtualinherited |
Skip items.
ns | number of items to skip |
Definition at line 425 of file JMultipleFileScanner.hh.
|
inlinevirtualinherited |
Skip items.
ns | number of items to skip |
Reimplemented in JLANG::JPipe< T >, JLANG::JPipe< JTail_t >, JLANG::JPipe< JHead_t >, JLANG::JSTDObjectIterator< T >, JLANG::JAbstractObjectReader< T >, JLANG::JAbstractObjectReader< JNullType >, JLANG::JAbstractObjectReader< const T >, JLANG::JAbstractObjectReader< JTail_t >, JLANG::JAbstractObjectReader< JHead_t >, JLANG::JAbstractObjectReader< KM3NETDAQ::KM3NETDAQ::JDAQEvent >, JLANG::JAbstractObjectReader< JDAQSummaryslice >, and JLANG::JAbstractObjectReader< JTypeList< JDAQEvent, JTypelist_t > >.
Definition at line 90 of file JObjectIterator.hh.
|
protected |
Definition at line 118 of file JTriggeredFileScanner.hh.
|
protected |
Definition at line 119 of file JTriggeredFileScanner.hh.
|
protectedinherited |
Definition at line 440 of file JMultipleFileScanner.hh.
|
protectedinherited |
Definition at line 441 of file JMultipleFileScanner.hh.
|
protectedinherited |
Definition at line 442 of file JMultipleFileScanner.hh.