CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 = nullptr
 

Detailed Description

Definition at line 8 of file CocoaDaqReader.h.

Constructor & Destructor Documentation

CocoaDaqReader::CocoaDaqReader ( )
inline

Definition at line 10 of file CocoaDaqReader.h.

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

Definition at line 14 of file CocoaDaqReader.h.

14 {};

Member Function Documentation

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

Reimplemented in CocoaDaqReaderRoot, and CocoaDaqReaderText.

Definition at line 17 of file CocoaDaqReader.cc.

17 {}
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
int CocoaDaqReader::GetNEvents ( ) const
inline

Definition at line 21 of file CocoaDaqReader.h.

References nev.

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

Reimplemented in CocoaDaqReaderRoot.

Definition at line 17 of file CocoaDaqReader.h.

17 { return false; };
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 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 }
tuple reader
Definition: DQM.py:105
static CocoaDaqReader * theDaqReader

Member Data Documentation

int CocoaDaqReader::nev
protected

Definition at line 27 of file CocoaDaqReader.h.

Referenced by GetNEvents().

int CocoaDaqReader::nextEvent
protected

Definition at line 28 of file CocoaDaqReader.h.

CocoaDaqReader * CocoaDaqReader::theDaqReader = nullptr
staticprivate

Definition at line 24 of file CocoaDaqReader.h.

Referenced by GetDaqReader(), and SetDaqReader().