#include <Run.h>
Public Member Functions | |
Run () | |
Default constructor makes "null" run object. | |
Run (const boost::shared_ptr< EventLoop > &evtLoop, int run) | |
~Run () | |
operator bool () const | |
This object is converted to true for non-null instance. | |
bool | operator! () const |
PSEnv::Env & | env () const |
Get environment object, cannot be called for "null" source. | |
int | run () const |
Get run number, -1 returned for if unknown. | |
EventIter | events () |
Returns iterator for events in this run. | |
StepIter | steps () |
Returns iterator for steps in this run. | |
Index & | index () |
Returns run index for random access. |
Main purpose of this class is to provide iteration over contained events or steps.
This software was developed for the LCLS project. If you use all or part of it, please give an appropriate acknowledgment.
Definition at line 61 of file Run.h.
psana::Run::Run | ( | ) |
psana::Run::Run | ( | const boost::shared_ptr< EventLoop > & | evtLoop, | |
int | run | |||
) |
PSEnv::Env & psana::Run::env | ( | ) | const |
EventIter psana::Run::events | ( | ) | [inline] |
Returns iterator for events in this run.
Definition at line 84 of file Run.h.
References psana::EventLoop::EndRun.
Referenced by BOOST_AUTO_TEST_CASE().
Index& psana::Run::index | ( | ) | [inline] |
psana::Run::operator bool | ( | ) | const [inline] |
int psana::Run::run | ( | ) | const [inline] |
StepIter psana::Run::steps | ( | ) | [inline] |
Returns iterator for steps in this run.
Definition at line 87 of file Run.h.
References psana::EventLoop::EndRun.
Referenced by BOOST_AUTO_TEST_CASE().