CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Types | Protected Attributes
DCCTBEventBlock Class Reference

#include <DCCEventBlock.h>

Inheritance diagram for DCCTBEventBlock:
DCCTBBlockPrototype

Public Member Functions

std::pair< bool, std::string > compare (DCCTBEventBlock *)
 
void dataCheck ()
 
 DCCTBEventBlock (DCCTBDataParser *parser, uint32_t *buffer, uint32_t numbBytes, uint32_t wordsToEnd, uint32_t wordBufferOffset=0, uint32_t wordEventOffset=0)
 
void displayEvent (std::ostream &os=std::cout)
 
std::string eventErrorString ()
 
bool eventHasErrors ()
 
DCCTBSRPBlocksrpBlock ()
 
std::vector< DCCTBTCCBlock * > & tccBlocks ()
 
std::vector< DCCTBTowerBlock * > & towerBlocks ()
 
std::vector< DCCTBTowerBlock * > towerBlocksById (uint32_t towerId)
 
DCCTBTrailerBlocktrailerBlock ()
 
 ~DCCTBEventBlock ()
 
- Public Member Functions inherited from DCCTBBlockPrototype
bool blockError ()
 
virtual std::pair< bool,
std::string > 
checkDataField (std::string name, uint32_t data)
 
virtual std::pair< bool,
std::string > 
compare (DCCTBBlockPrototype *block)
 
 DCCTBBlockPrototype (DCCTBDataParser *parser, std::string name, uint32_t *buffer, uint32_t numbBytes, uint32_t wordsToEndOfEvent, uint32_t wordEventOffset=0)
 
virtual void displayData (std::ostream &os=std::cout)
 
std::map< std::string, uint32_t > & errorCounters ()
 
std::string & errorString ()
 
virtual uint32_t getDataField (std::string name)
 
virtual uint32_t getDataWord (uint32_t wordPosition, uint32_t bitPosition, uint32_t mask)
 
DCCTBDataParsergetParser ()
 
virtual void increment (uint32_t numb, std::string msg="")
 
std::string name ()
 
virtual void parseData ()
 
virtual void seeIfIsPossibleToIncrement (uint32_t numb, std::string msg="")
 
virtual void setDataField (std::string name, uint32_t data)
 
uint32_t size ()
 
uint32_t wOffset ()
 
virtual ~DCCTBBlockPrototype ()
 

Protected Types

enum  dccFields {
  PHYSICTRIGGER = 1, CALIBRATIONTRIGGER = 2, TESTTRIGGER = 3, TECHNICALTRIGGER = 4,
  CH_ENABLED = 0, CH_DISABLED = 1, CH_TIMEOUT = 2, CH_SUPPRESS = 7,
  SR_NREAD = 0, BOE = 0x5, DCCERROR_EMPTYEVENT = 0x1, TOWERHEADER_SIZE = 8,
  TRAILER_SIZE = 8
}
 

Protected Attributes

DCCTBTrailerBlockdccTrailerBlock_
 
bool emptyEvent
 
DCCTBSRPBlocksrpBlock_
 
std::vector< DCCTBTCCBlock * > tccBlocks_
 
std::vector< DCCTBTowerBlock * > towerBlocks_
 
uint32_t wordBufferOffset_
 
- Protected Attributes inherited from DCCTBBlockPrototype
uint32_t * beginOfBuffer_
 
bool blockError_
 
uint32_t blockSize_
 
std::string blockString_
 
std::map< std::string, uint32_t > dataFields_
 
uint32_t * dataP_
 
std::map< std::string, uint32_t > errors_
 
std::string errorString_
 
std::set< DCCTBDataField
*, DCCTBDataFieldComparator > * 
mapperFields_
 
std::string name_
 
DCCTBDataParserparser_
 
std::string processingString_
 
uint32_t wordCounter_
 
uint32_t wordEventOffset_
 
uint32_t wordsToEndOfEvent_
 

Additional Inherited Members

- Protected Member Functions inherited from DCCTBBlockPrototype
std::string formatString (std::string myString, uint32_t minPositions)
 

Detailed Description

Definition at line 17 of file DCCEventBlock.h.

Member Enumeration Documentation

Enumerator
PHYSICTRIGGER 
CALIBRATIONTRIGGER 
TESTTRIGGER 
TECHNICALTRIGGER 
CH_ENABLED 
CH_DISABLED 
CH_TIMEOUT 
CH_SUPPRESS 
SR_NREAD 
BOE 
DCCERROR_EMPTYEVENT 
TOWERHEADER_SIZE 
TRAILER_SIZE 

Definition at line 47 of file DCCEventBlock.h.

Constructor & Destructor Documentation

DCCTBEventBlock::DCCTBEventBlock ( DCCTBDataParser parser,
uint32_t *  buffer,
uint32_t  numbBytes,
uint32_t  wordsToEnd,
uint32_t  wordBufferOffset = 0,
uint32_t  wordEventOffset = 0 
)

Definition at line 15 of file DCCEventBlock.cc.

DCCTBEventBlock::~DCCTBEventBlock ( )

Definition at line 197 of file DCCEventBlock.cc.

Member Function Documentation

std::pair< bool, std::string > DCCTBEventBlock::compare ( DCCTBEventBlock block)

Definition at line 307 of file DCCEventBlock.cc.

void DCCTBEventBlock::dataCheck ( )

Definition at line 214 of file DCCEventBlock.cc.

void DCCTBEventBlock::displayEvent ( std::ostream &  os = std::cout)

Definition at line 267 of file DCCEventBlock.cc.

std::string DCCTBEventBlock::eventErrorString ( )

Definition at line 481 of file DCCEventBlock.cc.

bool DCCTBEventBlock::eventHasErrors ( )

Definition at line 436 of file DCCEventBlock.cc.

DCCTBSRPBlock * DCCTBEventBlock::srpBlock ( )
inline

Definition at line 83 of file DCCEventBlock.h.

References srpBlock_.

83 { return srpBlock_; }
DCCTBSRPBlock * srpBlock_
Definition: DCCEventBlock.h:75
std::vector< DCCTBTCCBlock * > & DCCTBEventBlock::tccBlocks ( )
inline

Definition at line 82 of file DCCEventBlock.h.

References tccBlocks_.

82 { return tccBlocks_; }
std::vector< DCCTBTCCBlock * > tccBlocks_
Definition: DCCEventBlock.h:73
std::vector< DCCTBTowerBlock * > & DCCTBEventBlock::towerBlocks ( )
inline

Definition at line 81 of file DCCEventBlock.h.

References towerBlocks_.

81 { return towerBlocks_; }
std::vector< DCCTBTowerBlock * > towerBlocks_
Definition: DCCEventBlock.h:72
std::vector< DCCTBTowerBlock * > DCCTBEventBlock::towerBlocksById ( uint32_t  towerId)

Definition at line 548 of file DCCEventBlock.cc.

DCCTBTrailerBlock * DCCTBEventBlock::trailerBlock ( )
inline

Definition at line 84 of file DCCEventBlock.h.

References dccTrailerBlock_.

84 { return dccTrailerBlock_; }
DCCTBTrailerBlock * dccTrailerBlock_
Definition: DCCEventBlock.h:74

Member Data Documentation

DCCTBTrailerBlock* DCCTBEventBlock::dccTrailerBlock_
protected

Definition at line 74 of file DCCEventBlock.h.

Referenced by trailerBlock().

bool DCCTBEventBlock::emptyEvent
protected

Definition at line 77 of file DCCEventBlock.h.

DCCTBSRPBlock* DCCTBEventBlock::srpBlock_
protected

Definition at line 75 of file DCCEventBlock.h.

Referenced by srpBlock().

std::vector< DCCTBTCCBlock * > DCCTBEventBlock::tccBlocks_
protected

Definition at line 73 of file DCCEventBlock.h.

Referenced by tccBlocks().

std::vector< DCCTBTowerBlock * > DCCTBEventBlock::towerBlocks_
protected

Definition at line 72 of file DCCEventBlock.h.

Referenced by towerBlocks().

uint32_t DCCTBEventBlock::wordBufferOffset_
protected

Definition at line 76 of file DCCEventBlock.h.