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 Member Functions | Protected Attributes
DCCTBTowerBlock Class Reference

#include <DCCTowerBlock.h>

Inheritance diagram for DCCTBTowerBlock:
DCCTBBlockPrototype

Public Member Functions

 DCCTBTowerBlock (DCCTBEventBlock *dccBlock, DCCTBDataParser *parser, uint32_t *buffer, uint32_t numbBytes, uint32_t wordsToEnd, uint32_t wordEventOffset, uint32_t expectedTowerID)
 
void parseXtalData ()
 
int towerID ()
 
std::vector< DCCTBXtalBlock * > & xtalBlocks ()
 
std::vector< DCCTBXtalBlock * > xtalBlocksById (uint32_t stripId, uint32_t xtalId)
 
 ~DCCTBTowerBlock ()
 
- 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  towerFields { BXMASK = 0xFFF, L1MASK = 0xFFF }
 

Protected Member Functions

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

Protected Attributes

DCCTBEventBlockdccBlock_
 
uint32_t expectedTowerID_
 
std::vector< DCCTBXtalBlock * > xtalBlocks_
 
- 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_
 

Detailed Description

Definition at line 21 of file DCCTowerBlock.h.

Member Enumeration Documentation

Enumerator
BXMASK 
L1MASK 

Definition at line 48 of file DCCTowerBlock.h.

Constructor & Destructor Documentation

DCCTBTowerBlock::DCCTBTowerBlock ( DCCTBEventBlock dccBlock,
DCCTBDataParser parser,
uint32_t *  buffer,
uint32_t  numbBytes,
uint32_t  wordsToEnd,
uint32_t  wordEventOffset,
uint32_t  expectedTowerID 
)

Definition at line 11 of file DCCTowerBlock.cc.

DCCTBTowerBlock::~DCCTBTowerBlock ( )

Definition at line 118 of file DCCTowerBlock.cc.

Member Function Documentation

void DCCTBTowerBlock::dataCheck ( )
protected

Definition at line 126 of file DCCTowerBlock.cc.

void DCCTBTowerBlock::parseXtalData ( )

Definition at line 39 of file DCCTowerBlock.cc.

int DCCTBTowerBlock::towerID ( )

Definition at line 178 of file DCCTowerBlock.cc.

std::vector< DCCTBXtalBlock * > & DCCTBTowerBlock::xtalBlocks ( )
inline

Definition at line 57 of file DCCTowerBlock.h.

References xtalBlocks_.

57 { return xtalBlocks_; }
std::vector< DCCTBXtalBlock * > xtalBlocks_
Definition: DCCTowerBlock.h:50
std::vector< DCCTBXtalBlock * > DCCTBTowerBlock::xtalBlocksById ( uint32_t  stripId,
uint32_t  xtalId 
)

Definition at line 160 of file DCCTowerBlock.cc.

Member Data Documentation

DCCTBEventBlock* DCCTBTowerBlock::dccBlock_
protected

Definition at line 51 of file DCCTowerBlock.h.

uint32_t DCCTBTowerBlock::expectedTowerID_
protected

Definition at line 52 of file DCCTowerBlock.h.

std::vector<DCCTBXtalBlock * > DCCTBTowerBlock::xtalBlocks_
protected

Definition at line 50 of file DCCTowerBlock.h.

Referenced by xtalBlocks().