CMS 3D CMS Logo

CocoaDaqReader Class Reference

#include <Alignment/CocoaDaq/interface/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.

00011 { };

virtual CocoaDaqReader::~CocoaDaqReader (  )  [inline, virtual]

Definition at line 16 of file CocoaDaqReader.h.

00016 { };


Member Function Documentation

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

Reimplemented in CocoaDaqReaderRoot, and CocoaDaqReaderText.

Definition at line 18 of file CocoaDaqReader.cc.

00019 {
00020 
00021 }

static CocoaDaqReader* CocoaDaqReader::GetDaqReader (  )  [inline, static]

Definition at line 12 of file CocoaDaqReader.h.

References theDaqReader.

Referenced by Fit::fitNextEvent().

00012                                        {
00013     return theDaqReader; }

int CocoaDaqReader::GetNEvents (  )  const [inline]

Reimplemented in CocoaDaqReaderRoot, and CocoaDaqReaderText.

Definition at line 23 of file CocoaDaqReader.h.

References nev.

00023 { return nev; }

virtual bool CocoaDaqReader::ReadEvent ( int  nev  )  [inline, virtual]

Reimplemented in CocoaDaqReaderRoot.

Definition at line 19 of file CocoaDaqReader.h.

00019 { 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 TestMuL1L2Filter_cff::cerr, lat::endl(), exception, and theDaqReader.

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

00008 {
00009   if( theDaqReader != 0 ) {
00010     std::cerr << "!!FATAL ERROR CocoaDaqReader:: trying to instantiate two CocoaDaqReader " << std::endl;
00011     std::exception();
00012   }
00013 
00014   theDaqReader = reader; 
00015 }


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.

CocoaDaqReader * CocoaDaqReader::theDaqReader = 0 [static, private]

Definition at line 26 of file CocoaDaqReader.h.

Referenced by GetDaqReader(), and SetDaqReader().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:16:25 2009 for CMSSW by  doxygen 1.5.4