SimTracker/SiPhase2Digitizer/plugins/PSSDigitizerAlgorithm.cc
//
// -- Read Bad Channels from the Condidion DB and kill channels/module accordingly
//
Read Bad Channels from the Condidion DB and kill channels/module accordingly
Read Bad Channels from the Condidion DB and kill channels / module accordingly
void PSSDigitizerAlgorithm::module_killing_DB(const Phase2TrackerGeomDetUnit* pixdet) {
  uint32_t detId = pixdet->geographicalId().rawId();
  signal_map_type& theSignal = _signal[detId];
  signal_map_type signalNew;
  SiStripBadStrip::Range range = badChannelPayload_->getRange(detId);
  for (std::vector<unsigned int>::const_iterator badChannel = range.first; badChannel != range.second; ++badChannel) {
    const auto& firstStrip = badChannelPayload_->decodePhase2(*badChannel).firstStrip;
    const auto& channelRange = badChannelPayload_->decodePhase2(*badChannel).range;
    for (int index = 0; index < channelRange; index++) {
      for (auto& s : theSignal) {
        auto& channel = s.first;
        if (channel == firstStrip + index)
          s.second.set(0.);
      }
    }
  }
}
void PSSDigitizerAlgorithm :: module_killing_DB ( const Phase2TrackerGeomDetUnit * pixdet ) { uint32_t detId = pixdet -> geographicalId ( ) . rawId ( ) ; signal_map_type & theSignal = _signal [ detId ] ; signal_map_type signalNew ; SiStripBadStrip :: Range range = badChannelPayload_ -> getRange ( detId ) ; for ( std :: vector < unsigned int > :: const_iterator badChannel = range . first ; badChannel != range . second ; ++ badChannel ) { const auto & firstStrip = badChannelPayload_ -> decodePhase2 ( * badChannel ) . firstStrip ; const auto & channelRange = badChannelPayload_ -> decodePhase2 ( * badChannel ) . range ; for ( int index = 0 ; index < channelRange ; index ++ ) { for ( auto & s : theSignal ) { auto & channel = s . first ; if ( channel == firstStrip + index ) s . second . set ( 0. ) ; } } } }
Read Bad Channels from the Condidion DB and kill channels/module accordingly
Read Bad Channels from the Condidion DB and kill channels / module accordingly