#include <EventFilter/EcalRawToDigiDev/interface/DCCEEEventBlock.h>
Public Member Functions | |
DCCEEEventBlock (DCCDataUnpacker *u, EcalElectronicsMapper *m, bool hU, bool srpU, bool tccU, bool feU, bool memU) | |
Protected Member Functions | |
int | unpackTCCBlocks () |
Definition at line 26 of file DCCEEEventBlock.h.
DCCEEEventBlock::DCCEEEventBlock | ( | DCCDataUnpacker * | u, | |
EcalElectronicsMapper * | m, | |||
bool | hU, | |||
bool | srpU, | |||
bool | tccU, | |||
bool | feU, | |||
bool | memU | |||
) |
Definition at line 12 of file DCCEEEventBlock.cc.
References DCCEventBlock::feUnpacking_, DCCEventBlock::srpBlock_, DCCEventBlock::srpUnpacking_, DCCEventBlock::tccBlock_, DCCEventBlock::tccUnpacking_, and DCCEventBlock::towerBlock_.
00012 : 00013 DCCEventBlock(u,m,hU,srpU,tccU,feU,memU) 00014 { 00015 00016 //Builds a tower unpacker block 00017 towerBlock_ = new DCCSCBlock(u,m,this,feUnpacking_); 00018 00019 //Builds a srp unpacker block 00020 srpBlock_ = new DCCEESRPBlock(u,m,this,srpUnpacking_); 00021 00022 //Builds a tcc unpacker block 00023 tccBlock_ = new DCCEETCCBlock(u,m,this,tccUnpacking_); 00024 00025 00026 }
int DCCEEEventBlock::unpackTCCBlocks | ( | ) | [protected, virtual] |
Reimplemented from DCCEventBlock.
Definition at line 28 of file DCCEEEventBlock.cc.
References BLOCK_UNPACKED, CH_DISABLED, CH_TIMEOUT, DCCEventBlock::data_, DCCEventBlock::dwToEnd_, it, STOP_EVENT_UNPACKING, DCCEventBlock::tccBlock_, DCCEventBlock::tccChStatus_, and DCCTCCBlock::unpack().
00028 { 00029 00030 int STATUS(BLOCK_UNPACKED); 00031 std::vector<short>::iterator it; 00032 for(it=tccChStatus_.begin();it!=tccChStatus_.end();it++){ 00033 if( (*it) != CH_TIMEOUT && (*it) != CH_DISABLED){ 00034 STATUS = tccBlock_->unpack(&data_,&dwToEnd_); 00035 if(STATUS == STOP_EVENT_UNPACKING) break; 00036 } 00037 } 00038 return STATUS; 00039 00040 }