CMS 3D CMS Logo

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 = nullptr
 

Detailed Description

Definition at line 8 of file CocoaDaqReader.h.

Constructor & Destructor Documentation

◆ CocoaDaqReader()

CocoaDaqReader::CocoaDaqReader ( )
inline

Definition at line 10 of file CocoaDaqReader.h.

10 {};

◆ ~CocoaDaqReader()

virtual CocoaDaqReader::~CocoaDaqReader ( )
inlinevirtual

Definition at line 14 of file CocoaDaqReader.h.

14 {};

Member Function Documentation

◆ BuildMeasurementsFromOptAlign()

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

Reimplemented in CocoaDaqReaderRoot, and CocoaDaqReaderText.

Definition at line 17 of file CocoaDaqReader.cc.

17 {}

◆ GetDaqReader()

static CocoaDaqReader* CocoaDaqReader::GetDaqReader ( )
inlinestatic

Definition at line 11 of file CocoaDaqReader.h.

References theDaqReader.

Referenced by Fit::fitNextEvent().

11 { return theDaqReader; }
static CocoaDaqReader * theDaqReader

◆ GetNEvents()

int CocoaDaqReader::GetNEvents ( ) const
inline

Definition at line 21 of file CocoaDaqReader.h.

References nev.

21 { return nev; }

◆ ReadEvent()

virtual bool CocoaDaqReader::ReadEvent ( int  nev)
inlinevirtual

Reimplemented in CocoaDaqReaderRoot.

Definition at line 17 of file CocoaDaqReader.h.

17 { return false; };

◆ ReadNextEvent()

virtual bool CocoaDaqReader::ReadNextEvent ( )
pure virtual

Implemented in CocoaDaqReaderRoot, and CocoaDaqReaderText.

Referenced by Fit::fitNextEvent().

◆ SetDaqReader()

void CocoaDaqReader::SetDaqReader ( CocoaDaqReader reader)
static

Definition at line 7 of file CocoaDaqReader.cc.

References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, cppFunctionSkipper::exception, DQM::reader, and theDaqReader.

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

7  {
8  if (theDaqReader != nullptr) {
9  std::cerr << "!!FATAL ERROR CocoaDaqReader:: trying to instantiate two CocoaDaqReader " << std::endl;
11  }
12 
14 }
reader
Definition: DQM.py:105
static CocoaDaqReader * theDaqReader

Member Data Documentation

◆ nev

int CocoaDaqReader::nev
protected

Definition at line 27 of file CocoaDaqReader.h.

Referenced by GetNEvents().

◆ nextEvent

int CocoaDaqReader::nextEvent
protected

Definition at line 28 of file CocoaDaqReader.h.

◆ theDaqReader

CocoaDaqReader * CocoaDaqReader::theDaqReader = nullptr
staticprivate

Definition at line 24 of file CocoaDaqReader.h.

Referenced by GetDaqReader(), and SetDaqReader().