CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
DataMode Class Referenceabstract

#include <DAQSourceModels.h>

Inheritance diagram for DataMode:
DataModeFRD DataModeFRDStriped DataModeScoutingRun3

Public Member Functions

virtual bool checksumValid ()=0
 
virtual bool dataBlockCompleted () const =0
 
virtual bool dataBlockInitialized () const =0
 
virtual uint64_t dataBlockSize () const =0
 
 DataMode (DAQSource *daqSource)
 
virtual int dataVersion () const =0
 
virtual std::pair< bool, std::vector< std::string > > defineAdditionalFiles (std::string const &primaryName, bool fileListMode) const =0
 
virtual void detectVersion (unsigned char *fileBuf, uint32_t fileHeaderOffset)=0
 
virtual bool fitToBuffer () const =0
 
virtual std::string getChecksumError () const =0
 
virtual uint32_t headerSize () const =0
 
virtual bool isMultiDir ()
 
virtual bool isRealData () const =0
 
virtual std::vector< std::shared_ptr< const edm::DaqProvenanceHelper > > & makeDaqProvenanceHelpers ()=0
 
virtual void makeDataBlockView (unsigned char *addr, size_t maxSize, std::vector< uint64_t > const &fileSizes, size_t fileHeaderSize)=0
 
virtual void makeDirectoryEntries (std::vector< std::string > const &baseDirs, std::vector< int > const &numSources, std::string const &runDir)=0
 
virtual bool nextEventView ()=0
 
virtual void readEvent (edm::EventPrincipal &eventPrincipal)=0
 
virtual bool requireHeader () const =0
 
virtual uint32_t run () const =0
 
virtual void setDataBlockInitialized (bool)=0
 
virtual void setTCDSSearchRange (uint16_t, uint16_t)=0
 
void setTesting (bool testing)
 
virtual bool versionCheck () const =0
 
virtual ~DataMode ()=default
 

Protected Attributes

DAQSourcedaqSource_
 
bool testing_ = false
 

Detailed Description

Definition at line 32 of file DAQSourceModels.h.

Constructor & Destructor Documentation

◆ DataMode()

DataMode::DataMode ( DAQSource daqSource)
inline

Definition at line 34 of file DAQSourceModels.h.

34 : daqSource_(daqSource) {}
DAQSource * daqSource_

◆ ~DataMode()

virtual DataMode::~DataMode ( )
virtualdefault

Member Function Documentation

◆ checksumValid()

virtual bool DataMode::checksumValid ( )
pure virtual

◆ dataBlockCompleted()

virtual bool DataMode::dataBlockCompleted ( ) const
pure virtual

◆ dataBlockInitialized()

virtual bool DataMode::dataBlockInitialized ( ) const
pure virtual

◆ dataBlockSize()

virtual uint64_t DataMode::dataBlockSize ( ) const
pure virtual

◆ dataVersion()

virtual int DataMode::dataVersion ( ) const
pure virtual

◆ defineAdditionalFiles()

virtual std::pair<bool, std::vector<std::string> > DataMode::defineAdditionalFiles ( std::string const &  primaryName,
bool  fileListMode 
) const
pure virtual

◆ detectVersion()

virtual void DataMode::detectVersion ( unsigned char *  fileBuf,
uint32_t  fileHeaderOffset 
)
pure virtual

◆ fitToBuffer()

virtual bool DataMode::fitToBuffer ( ) const
pure virtual

◆ getChecksumError()

virtual std::string DataMode::getChecksumError ( ) const
pure virtual

◆ headerSize()

virtual uint32_t DataMode::headerSize ( ) const
pure virtual

◆ isMultiDir()

virtual bool DataMode::isMultiDir ( )
inlinevirtual

Definition at line 63 of file DAQSourceModels.h.

63 { return false; }

◆ isRealData()

virtual bool DataMode::isRealData ( ) const
pure virtual

◆ makeDaqProvenanceHelpers()

virtual std::vector<std::shared_ptr<const edm::DaqProvenanceHelper> >& DataMode::makeDaqProvenanceHelpers ( )
pure virtual

◆ makeDataBlockView()

virtual void DataMode::makeDataBlockView ( unsigned char *  addr,
size_t  maxSize,
std::vector< uint64_t > const &  fileSizes,
size_t  fileHeaderSize 
)
pure virtual

◆ makeDirectoryEntries()

virtual void DataMode::makeDirectoryEntries ( std::vector< std::string > const &  baseDirs,
std::vector< int > const &  numSources,
std::string const &  runDir 
)
pure virtual

◆ nextEventView()

virtual bool DataMode::nextEventView ( )
pure virtual

◆ readEvent()

virtual void DataMode::readEvent ( edm::EventPrincipal eventPrincipal)
pure virtual

◆ requireHeader()

virtual bool DataMode::requireHeader ( ) const
pure virtual

◆ run()

virtual uint32_t DataMode::run ( ) const
pure virtual

◆ setDataBlockInitialized()

virtual void DataMode::setDataBlockInitialized ( bool  )
pure virtual

◆ setTCDSSearchRange()

virtual void DataMode::setTCDSSearchRange ( uint16_t  ,
uint16_t   
)
pure virtual

◆ setTesting()

void DataMode::setTesting ( bool  testing)
inline

Definition at line 67 of file DAQSourceModels.h.

References testing, and testing_.

67 { testing_ = testing; }
bool testing

◆ versionCheck()

virtual bool DataMode::versionCheck ( ) const
pure virtual

Member Data Documentation

◆ daqSource_

DAQSource* DataMode::daqSource_
protected

◆ testing_

bool DataMode::testing_ = false
protected

Definition at line 71 of file DAQSourceModels.h.

Referenced by DataModeFRDStriped::fillFRDCollection(), and setTesting().