CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes | Static Private Attributes
CocoaDaqReader Class Referenceabstract

#include <CocoaDaqReader.h>

Inheritance diagram for CocoaDaqReader:
CocoaDaqReaderRoot CocoaDaqReaderText

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.

11 { };
virtual CocoaDaqReader::~CocoaDaqReader ( )
inlinevirtual

Definition at line 16 of file CocoaDaqReader.h.

16 { };

Member Function Documentation

void CocoaDaqReader::BuildMeasurementsFromOptAlign ( std::vector< OpticalAlignMeasurementInfo > &  measList)
virtual

Reimplemented in CocoaDaqReaderRoot, and CocoaDaqReaderText.

Definition at line 18 of file CocoaDaqReader.cc.

19 {
20 
21 }
static CocoaDaqReader* CocoaDaqReader::GetDaqReader ( )
inlinestatic

Definition at line 12 of file CocoaDaqReader.h.

References theDaqReader.

Referenced by Fit::fitNextEvent().

12  {
13  return theDaqReader; }
static CocoaDaqReader * theDaqReader
int CocoaDaqReader::GetNEvents ( ) const
inline

Definition at line 23 of file CocoaDaqReader.h.

References nev.

23 { return nev; }
virtual bool CocoaDaqReader::ReadEvent ( int  nev)
inlinevirtual

Reimplemented in CocoaDaqReaderRoot.

Definition at line 19 of file CocoaDaqReader.h.

19 { 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 dtNoiseDBValidation_cfg::cerr, cppFunctionSkipper::exception, matplotRender::reader, and theDaqReader.

Referenced by CocoaDaqReaderRoot::CocoaDaqReaderRoot(), and CocoaDaqReaderText::CocoaDaqReaderText().

8 {
9  if( theDaqReader != 0 ) {
10  std::cerr << "!!FATAL ERROR CocoaDaqReader:: trying to instantiate two CocoaDaqReader " << std::endl;
12  }
13 
15 }
static CocoaDaqReader * theDaqReader

Member Data Documentation

int CocoaDaqReader::nev
protected

Definition at line 29 of file CocoaDaqReader.h.

Referenced by GetNEvents().

int CocoaDaqReader::nextEvent
protected

Definition at line 30 of file CocoaDaqReader.h.

CocoaDaqReader * CocoaDaqReader::theDaqReader = 0
staticprivate

Definition at line 26 of file CocoaDaqReader.h.

Referenced by GetDaqReader(), and SetDaqReader().