CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Protected Attributes | Static Private Attributes

CocoaDaqReader Class Reference

#include <CocoaDaqReader.h>

Inheritance diagram for CocoaDaqReader:
CocoaDaqReaderRoot CocoaDaqReaderText

List of all members.

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 CocoaDaqReaderGetDaqReader ()
static void SetDaqReader (CocoaDaqReader *reader)

Protected Attributes

int nev
int nextEvent

Static Private Attributes

static CocoaDaqReadertheDaqReader = 0

Detailed Description

Definition at line 9 of file CocoaDaqReader.h.


Constructor & Destructor Documentation

CocoaDaqReader::CocoaDaqReader ( ) [inline]

Definition at line 11 of file CocoaDaqReader.h.

{ };
virtual CocoaDaqReader::~CocoaDaqReader ( ) [inline, virtual]

Definition at line 16 of file CocoaDaqReader.h.

{ };

Member Function Documentation

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]

Reimplemented in CocoaDaqReaderRoot.

Definition at line 19 of file CocoaDaqReader.h.

{ return 0; };
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; 
}

Member Data Documentation

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.

Definition at line 26 of file CocoaDaqReader.h.

Referenced by GetDaqReader(), and SetDaqReader().