#include <CocoaDaqReader.h>
Public Member Functions | |
virtual void | BuildMeasurementsFromOptAlign (std::vector< OpticalAlignMeasurementInfo > &measList) |
CocoaDaqReader () | |
int | GetNEvents () const |
virtual bool | ReadEvent (int nev) |
virtual bool | ReadNextEvent ()=0 |
virtual | ~CocoaDaqReader () |
Static Public Member Functions | |
static CocoaDaqReader * | GetDaqReader () |
static void | SetDaqReader (CocoaDaqReader *reader) |
Protected Attributes | |
int | nev |
int | nextEvent |
Static Private Attributes | |
static CocoaDaqReader * | theDaqReader = 0 |
Definition at line 9 of file CocoaDaqReader.h.
CocoaDaqReader::CocoaDaqReader | ( | ) | [inline] |
Definition at line 11 of file CocoaDaqReader.h.
{ };
virtual CocoaDaqReader::~CocoaDaqReader | ( | ) | [inline, virtual] |
Definition at line 16 of file CocoaDaqReader.h.
{ };
void CocoaDaqReader::BuildMeasurementsFromOptAlign | ( | std::vector< OpticalAlignMeasurementInfo > & | measList | ) | [virtual] |
Reimplemented in CocoaDaqReaderRoot, and CocoaDaqReaderText.
Definition at line 18 of file CocoaDaqReader.cc.
{ }
static CocoaDaqReader* CocoaDaqReader::GetDaqReader | ( | ) | [inline, static] |
Definition at line 12 of file CocoaDaqReader.h.
References theDaqReader.
Referenced by Fit::fitNextEvent().
{ return theDaqReader; }
int CocoaDaqReader::GetNEvents | ( | ) | const [inline] |
Reimplemented in CocoaDaqReaderRoot, and CocoaDaqReaderText.
Definition at line 23 of file CocoaDaqReader.h.
References nev.
{ return nev; }
virtual bool CocoaDaqReader::ReadEvent | ( | int | nev | ) | [inline, virtual] |
virtual bool CocoaDaqReader::ReadNextEvent | ( | ) | [pure virtual] |
Implemented in CocoaDaqReaderRoot, and CocoaDaqReaderText.
Referenced by Fit::fitNextEvent().
void CocoaDaqReader::SetDaqReader | ( | CocoaDaqReader * | reader | ) | [static] |
Definition at line 7 of file CocoaDaqReader.cc.
References benchmark_cfg::cerr, exception, and theDaqReader.
Referenced by CocoaDaqReaderRoot::CocoaDaqReaderRoot(), and CocoaDaqReaderText::CocoaDaqReaderText().
{ if( theDaqReader != 0 ) { std::cerr << "!!FATAL ERROR CocoaDaqReader:: trying to instantiate two CocoaDaqReader " << std::endl; std::exception(); } theDaqReader = reader; }
int CocoaDaqReader::nev [protected] |
Reimplemented in CocoaDaqReaderRoot, and CocoaDaqReaderText.
Definition at line 29 of file CocoaDaqReader.h.
Referenced by GetNEvents().
int CocoaDaqReader::nextEvent [protected] |
Reimplemented in CocoaDaqReaderRoot, and CocoaDaqReaderText.
Definition at line 30 of file CocoaDaqReader.h.
CocoaDaqReader * CocoaDaqReader::theDaqReader = 0 [static, private] |
Definition at line 26 of file CocoaDaqReader.h.
Referenced by GetDaqReader(), and SetDaqReader().