CMS 3D CMS Logo

DCCEESRPBlock.cc
Go to the documentation of this file.
5 
7  : DCCSRPBlock(u, m, e, unpack) {}
8 
10  // Set SR flag digis
12 }
13 
15  // Point to SR flags
16  data_++;
17  const uint16_t *my16Bitp_ = reinterpret_cast<const uint16_t *>(data_);
18 
19  for (unsigned int n = 0; n < expNumbSrFlags_; n++, pSCDetId_++) {
20  if (n != 0 && n % 4 == 0)
21  my16Bitp_++;
22 
23  unsigned short srFlag = (*my16Bitp_ >> ((n - (n / 4) * 4) * 3)) & SRP_SRFLAG_MASK;
24  srFlags_[n] = srFlag;
25  if (unpackInternalData_) {
26  std::vector<EcalSrFlag *> srs = mapper_->getSrFlagPointer(n + 1);
27  for (size_t i = 0; i < srs.size(); ++i) {
28  srs[i]->setValue(srFlag);
29  (*eeSrFlagsDigis_)->push_back(*((EESrFlag *)srs[i]));
30  }
31  }
32  }
33 }
34 
36  expNumbSrFlags_ = 36; //to be corrected
37 
38  int dccId = mapper_->getActiveDCC() - 600;
40  expNumbSrFlags_ = 41;
41 
42  //todo : checks to be implemented...
43  return true;
44 }
SiPixelPI::unpack
std::pair< unsigned int, unsigned int > unpack(cond::Time_t since)
Definition: SiPixelPayloadInspectorHelper.h:44
DCCEESRPBlock::addSRFlagToCollection
void addSRFlagToCollection() override
Definition: DCCEESRPBlock.cc:14
EESrFlag
Definition: EESrFlag.h:13
DCCDataUnpacker.h
DCCEventBlock
Definition: DCCEventBlock.h:29
SECTOR_EEM_CCU_JUMP
Definition: DCCRawDataDefinitions.h:62
mps_fire.i
i
Definition: mps_fire.py:355
DCCDataUnpacker::eeSrFlagsCollection
std::unique_ptr< EESrFlagCollection > * eeSrFlagsCollection()
Definition: DCCDataUnpacker.h:128
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
DCCSRPBlock::srFlags_
unsigned short srFlags_[SRP_NUMBFLAGS]
Definition: DCCSRPBlock.h:51
DCCDataBlockPrototype::data_
const uint64_t * data_
Definition: DCCDataBlockPrototype.h:73
DCCSRPBlock::expNumbSrFlags_
unsigned int expNumbSrFlags_
Definition: DCCSRPBlock.h:49
SRP_SRFLAG_MASK
Definition: DCCRawDataDefinitions.h:209
DCCSRPBlock
Definition: DCCSRPBlock.h:30
DCCDataUnpacker
Definition: DCCDataUnpacker.h:49
EcalElectronicsMapper.h
DCCEESRPBlock::pSCDetId_
EcalScDetId * pSCDetId_
Definition: DCCEESRPBlock.h:43
DCCEESRPBlock::checkSrpIdAndNumbSRFlags
bool checkSrpIdAndNumbSRFlags() override
Definition: DCCEESRPBlock.cc:35
DCCEESRPBlock::DCCEESRPBlock
DCCEESRPBlock(DCCDataUnpacker *u, EcalElectronicsMapper *m, DCCEventBlock *e, bool unpack)
Definition: DCCEESRPBlock.cc:6
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
DCCSRPBlock::srFlag
unsigned short srFlag(unsigned int feChannel)
Definition: DCCSRPBlock.h:38
DCCDataBlockPrototype::unpacker_
DCCDataUnpacker * unpacker_
Definition: DCCDataBlockPrototype.h:67
EcalElectronicsMapper::getActiveDCC
unsigned int getActiveDCC()
Definition: EcalElectronicsMapper.h:126
DCCEESRPBlock::eeSrFlagsDigis_
std::unique_ptr< EESrFlagCollection > * eeSrFlagsDigis_
Definition: DCCEESRPBlock.h:41
EcalElectronicsMapper::getSrFlagPointer
std::vector< EcalSrFlag * > getSrFlagPointer(unsigned int feChannel)
Definition: EcalElectronicsMapper.h:122
EcalElectronicsMapper
Definition: EcalElectronicsMapper.h:36
DCCDataBlockPrototype.h
DCCDataBlockPrototype::mapper_
EcalElectronicsMapper * mapper_
Definition: DCCDataBlockPrototype.h:69
DCCEESRPBlock::updateCollectors
void updateCollectors() override
Definition: DCCEESRPBlock.cc:9
DCCEESRPBlock.h
SECTOR_EEP_CCU_JUMP
Definition: DCCRawDataDefinitions.h:63
DCCDataBlockPrototype::unpackInternalData_
bool unpackInternalData_
Definition: DCCDataBlockPrototype.h:77
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
ecaldqm::dccId
unsigned dccId(DetId const &)
Definition: EcalDQMCommonUtils.cc:16