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

#include <DCCEventBlock.h>

Inheritance diagram for DCCEventBlock:
DCCEBEventBlock DCCEEEventBlock

Public Member Functions

unsigned int bx ()
 
 DCCEventBlock (DCCDataUnpacker *u, EcalElectronicsMapper *m, bool hU, bool srpU, bool tccU, bool feU, bool memU, bool forceToKeepFRdata)
 
void display (std::ostream &o)
 
void enableFeIdChecks ()
 
void enableSyncChecks ()
 
unsigned int fov ()
 
short getHLTChannel (int channel)
 
unsigned int l1A ()
 
unsigned int mem ()
 
void reset ()
 
void setFESyncNumbers (short l1, short bx, short id)
 
void setHLTChannel (int channel, short value)
 
void setSRPSyncNumbers (short l1, short bx)
 
void setTCCSyncNumbers (short l1, short bx, short id)
 
unsigned int smId ()
 
virtual void unpack (const uint64_t *buffer, size_t bufferSize, unsigned int expFedId)
 
DCCDataUnpackerunpacker ()
 
void updateCollectors ()
 
virtual ~DCCEventBlock ()
 

Protected Member Functions

void addHeaderToCollection ()
 
unsigned int next_tower_search (const unsigned int current_tower_id)
 
virtual int unpackTCCBlocks ()
 

Protected Attributes

unsigned int blockLength_
 
unsigned int bx_
 
const uint64_t * data_
 
unsigned int dccErrors_
 
std::auto_ptr
< EcalRawDataCollection > * 
dccHeaders_
 
unsigned int detailedTriggerType_
 
unsigned int dwToEnd_
 
unsigned int eventSize_
 
std::vector< short > feBx_
 
std::vector< short > feChStatus_
 
unsigned int fedId_
 
std::vector< short > feLv1_
 
bool feUnpacking_
 
bool forceToKeepFRdata_
 
unsigned int fov_
 
bool headerUnpacking_
 
std::vector< short > hlt_
 
unsigned int l1_
 
EcalElectronicsMappermapper_
 
unsigned int mem_
 
DCCMemBlockmemBlock_
 
bool memUnpacking_
 
unsigned int orbitCounter_
 
unsigned int runNumber_
 
unsigned int runType_
 
unsigned int smId_
 
unsigned int sr_
 
unsigned int srChStatus_
 
DCCSRPBlocksrpBlock_
 
short srpBx_
 
short srpLv1_
 
bool srpUnpacking_
 
DCCTCCBlocktccBlock_
 
std::vector< short > tccBx_
 
std::vector< short > tccChStatus_
 
std::vector< short > tccLv1_
 
bool tccUnpacking_
 
DCCFEBlocktowerBlock_
 
unsigned int triggerType_
 
unsigned int tzs_
 
DCCDataUnpackerunpacker_
 
unsigned int zs_
 

Detailed Description

Definition at line 31 of file DCCEventBlock.h.

Constructor & Destructor Documentation

DCCEventBlock::DCCEventBlock ( DCCDataUnpacker u,
EcalElectronicsMapper m,
bool  hU,
bool  srpU,
bool  tccU,
bool  feU,
bool  memU,
bool  forceToKeepFRdata 
)

Definition at line 14 of file DCCEventBlock.cc.

DCCEventBlock::~DCCEventBlock ( )
virtual

Definition at line 210 of file DCCEventBlock.cc.

Member Function Documentation

void DCCEventBlock::addHeaderToCollection ( )
protected

Definition at line 127 of file DCCEventBlock.cc.

unsigned int DCCEventBlock::bx ( )
inline
void DCCEventBlock::display ( std::ostream &  o)

Definition at line 177 of file DCCEventBlock.cc.

void DCCEventBlock::enableFeIdChecks ( )

Definition at line 54 of file DCCEventBlock.cc.

Referenced by DCCDataUnpacker::DCCDataUnpacker().

void DCCEventBlock::enableSyncChecks ( )

Definition at line 45 of file DCCEventBlock.cc.

Referenced by DCCDataUnpacker::DCCDataUnpacker().

unsigned int DCCEventBlock::fov ( )
inline

Definition at line 52 of file DCCEventBlock.h.

References fov_.

Referenced by DCCEBSRPBlock::addSRFlagToCollection(), DCCSRPBlock::unpack(), and DCCTCCBlock::unpack().

52 { return fov_; }
unsigned int fov_
Definition: DCCEventBlock.h:89
short DCCEventBlock::getHLTChannel ( int  channel)
inline

Definition at line 62 of file DCCEventBlock.h.

References hlt_.

62 { return hlt_[channel-1];}
std::vector< short > hlt_
Definition: DCCEventBlock.h:80
unsigned int DCCEventBlock::l1A ( )
inline
unsigned int DCCEventBlock::mem ( )
inline

Definition at line 53 of file DCCEventBlock.h.

References mem_.

53 { return mem_; }
unsigned int mem_
unsigned int DCCEventBlock::next_tower_search ( const unsigned int  current_tower_id)
protected

Definition at line 60 of file DCCEventBlock.cc.

void DCCEventBlock::reset ( void  )

Definition at line 34 of file DCCEventBlock.cc.

void DCCEventBlock::setFESyncNumbers ( short  l1,
short  bx,
short  id 
)
inline

Definition at line 59 of file DCCEventBlock.h.

References bx(), feBx_, and feLv1_.

59 { feLv1_[id]= l1; feBx_[id]=bx;}
unsigned int bx()
Definition: DCCEventBlock.h:55
std::vector< short > feBx_
Definition: DCCEventBlock.h:82
std::vector< short > feLv1_
Definition: DCCEventBlock.h:82
void DCCEventBlock::setHLTChannel ( int  channel,
short  value 
)
inline

Definition at line 61 of file DCCEventBlock.h.

References hlt_, and relativeConstraints::value.

61 { hlt_[channel-1] = value; }
std::vector< short > hlt_
Definition: DCCEventBlock.h:80
void DCCEventBlock::setSRPSyncNumbers ( short  l1,
short  bx 
)
inline

Definition at line 58 of file DCCEventBlock.h.

References bx(), srpBx_, and srpLv1_.

Referenced by DCCSRPBlock::unpack().

58 { srpLv1_=l1; srpBx_=bx; }
unsigned int bx()
Definition: DCCEventBlock.h:55
void DCCEventBlock::setTCCSyncNumbers ( short  l1,
short  bx,
short  id 
)
inline

Definition at line 60 of file DCCEventBlock.h.

References bx(), tccBx_, and tccLv1_.

Referenced by DCCTCCBlock::unpack().

60 { tccLv1_[id]= l1; tccBx_[id]=bx;}
std::vector< short > tccBx_
Definition: DCCEventBlock.h:83
unsigned int bx()
Definition: DCCEventBlock.h:55
std::vector< short > tccLv1_
Definition: DCCEventBlock.h:83
unsigned int DCCEventBlock::smId ( )
inline

Definition at line 51 of file DCCEventBlock.h.

References smId_.

51 { return smId_; }
unsigned int smId_
Definition: DCCEventBlock.h:94
virtual void DCCEventBlock::unpack ( const uint64_t *  buffer,
size_t  bufferSize,
unsigned int  expFedId 
)
inlinevirtual

Reimplemented in DCCEBEventBlock, and DCCEEEventBlock.

Definition at line 39 of file DCCEventBlock.h.

39 {};
DCCDataUnpacker* DCCEventBlock::unpacker ( )
inline

Definition at line 56 of file DCCEventBlock.h.

References unpacker_.

56 { return unpacker_; }
DCCDataUnpacker * unpacker_
Definition: DCCEventBlock.h:71
virtual int DCCEventBlock::unpackTCCBlocks ( )
inlineprotectedvirtual

Reimplemented in DCCEBEventBlock, and DCCEEEventBlock.

Definition at line 69 of file DCCEventBlock.h.

References BLOCK_UNPACKED.

void DCCEventBlock::updateCollectors ( )

Definition at line 113 of file DCCEventBlock.cc.

Referenced by DCCDataUnpacker::unpack().

Member Data Documentation

unsigned int DCCEventBlock::blockLength_
protected

Definition at line 95 of file DCCEventBlock.h.

unsigned int DCCEventBlock::bx_
protected

Definition at line 91 of file DCCEventBlock.h.

Referenced by bx().

const uint64_t* DCCEventBlock::data_
protected

Definition at line 72 of file DCCEventBlock.h.

unsigned int DCCEventBlock::dccErrors_
protected

Definition at line 96 of file DCCEventBlock.h.

std::auto_ptr<EcalRawDataCollection>* DCCEventBlock::dccHeaders_
protected

Definition at line 120 of file DCCEventBlock.h.

unsigned int DCCEventBlock::detailedTriggerType_
protected

Definition at line 99 of file DCCEventBlock.h.

unsigned int DCCEventBlock::dwToEnd_
protected

Definition at line 74 of file DCCEventBlock.h.

unsigned int DCCEventBlock::eventSize_
protected

Definition at line 73 of file DCCEventBlock.h.

std::vector<short> DCCEventBlock::feBx_
protected

Definition at line 82 of file DCCEventBlock.h.

Referenced by setFESyncNumbers().

std::vector<short> DCCEventBlock::feChStatus_
protected

Definition at line 78 of file DCCEventBlock.h.

unsigned int DCCEventBlock::fedId_
protected

Definition at line 90 of file DCCEventBlock.h.

std::vector<short> DCCEventBlock::feLv1_
protected

Definition at line 82 of file DCCEventBlock.h.

Referenced by setFESyncNumbers().

bool DCCEventBlock::feUnpacking_
protected

Definition at line 116 of file DCCEventBlock.h.

bool DCCEventBlock::forceToKeepFRdata_
protected

Definition at line 118 of file DCCEventBlock.h.

unsigned int DCCEventBlock::fov_
protected

Definition at line 89 of file DCCEventBlock.h.

Referenced by fov().

bool DCCEventBlock::headerUnpacking_
protected

Definition at line 113 of file DCCEventBlock.h.

std::vector<short> DCCEventBlock::hlt_
protected

Definition at line 80 of file DCCEventBlock.h.

Referenced by getHLTChannel(), and setHLTChannel().

unsigned int DCCEventBlock::l1_
protected

Definition at line 92 of file DCCEventBlock.h.

Referenced by l1A().

EcalElectronicsMapper* DCCEventBlock::mapper_
protected

Definition at line 111 of file DCCEventBlock.h.

unsigned int DCCEventBlock::mem_
protected

Definition at line 102 of file DCCEventBlock.h.

Referenced by mem().

DCCMemBlock* DCCEventBlock::memBlock_
protected

Definition at line 109 of file DCCEventBlock.h.

bool DCCEventBlock::memUnpacking_
protected

Definition at line 117 of file DCCEventBlock.h.

unsigned int DCCEventBlock::orbitCounter_
protected

Definition at line 101 of file DCCEventBlock.h.

unsigned int DCCEventBlock::runNumber_
protected

Definition at line 97 of file DCCEventBlock.h.

unsigned int DCCEventBlock::runType_
protected

Definition at line 98 of file DCCEventBlock.h.

unsigned int DCCEventBlock::smId_
protected

Definition at line 94 of file DCCEventBlock.h.

Referenced by smId().

unsigned int DCCEventBlock::sr_
protected

Definition at line 103 of file DCCEventBlock.h.

unsigned int DCCEventBlock::srChStatus_
protected

Definition at line 87 of file DCCEventBlock.h.

DCCSRPBlock* DCCEventBlock::srpBlock_
protected

Definition at line 110 of file DCCEventBlock.h.

short DCCEventBlock::srpBx_
protected

Definition at line 84 of file DCCEventBlock.h.

Referenced by setSRPSyncNumbers().

short DCCEventBlock::srpLv1_
protected

Definition at line 84 of file DCCEventBlock.h.

Referenced by setSRPSyncNumbers().

bool DCCEventBlock::srpUnpacking_
protected

Definition at line 114 of file DCCEventBlock.h.

DCCTCCBlock* DCCEventBlock::tccBlock_
protected

Definition at line 108 of file DCCEventBlock.h.

std::vector<short> DCCEventBlock::tccBx_
protected

Definition at line 83 of file DCCEventBlock.h.

Referenced by setTCCSyncNumbers().

std::vector<short> DCCEventBlock::tccChStatus_
protected

Definition at line 79 of file DCCEventBlock.h.

std::vector<short> DCCEventBlock::tccLv1_
protected

Definition at line 83 of file DCCEventBlock.h.

Referenced by setTCCSyncNumbers().

bool DCCEventBlock::tccUnpacking_
protected

Definition at line 115 of file DCCEventBlock.h.

DCCFEBlock* DCCEventBlock::towerBlock_
protected

Definition at line 107 of file DCCEventBlock.h.

unsigned int DCCEventBlock::triggerType_
protected

Definition at line 93 of file DCCEventBlock.h.

unsigned int DCCEventBlock::tzs_
protected

Definition at line 105 of file DCCEventBlock.h.

DCCDataUnpacker* DCCEventBlock::unpacker_
protected

Definition at line 71 of file DCCEventBlock.h.

Referenced by unpacker().

unsigned int DCCEventBlock::zs_
protected

Definition at line 104 of file DCCEventBlock.h.