|
|
#include <SiStripFedZeroSuppression.h>
|
void | init (const edm::EventSetup &es) |
|
| SiStripFedZeroSuppression (uint16_t fedalgo, bool trunc=true, bool trunc10bits=false) |
|
void | suppress (const edm::DetSet< SiStripRawDigi > &in, edm::DetSet< SiStripDigi > &out) |
|
void | suppress (const std::vector< int16_t > &in, uint16_t firstAPV, edm::DetSet< SiStripDigi > &out) |
|
void | suppress (const std::vector< SiStripDigi > &in, std::vector< SiStripDigi > &selectedSignal, uint32_t detId) |
|
void | suppress (const std::vector< SiStripDigi > &in, std::vector< SiStripDigi > &selectedSignal, uint32_t detId, edm::ESHandle< SiStripNoises > &, edm::ESHandle< SiStripThreshold > &) |
|
uint16_t | truncate (int16_t adc) const |
|
| ~SiStripFedZeroSuppression () |
|
Definition at line 16 of file SiStripFedZeroSuppression.h.
◆ SiStripFedZeroSuppression()
SiStripFedZeroSuppression::SiStripFedZeroSuppression |
( |
uint16_t |
fedalgo, |
|
|
bool |
trunc = true , |
|
|
bool |
trunc10bits = false |
|
) |
| |
|
inline |
◆ ~SiStripFedZeroSuppression()
SiStripFedZeroSuppression::~SiStripFedZeroSuppression |
( |
| ) |
|
|
inline |
◆ fillThresholds_()
void SiStripFedZeroSuppression::fillThresholds_ |
( |
const uint32_t |
detID, |
|
|
size_t |
size |
|
) |
| |
|
private |
◆ init()
◆ isAValidDigi()
bool SiStripFedZeroSuppression::isAValidDigi |
( |
| ) |
|
|
private |
◆ suppress() [1/4]
◆ suppress() [2/4]
void SiStripFedZeroSuppression::suppress |
( |
const std::vector< int16_t > & |
in, |
|
|
uint16_t |
firstAPV, |
|
|
edm::DetSet< SiStripDigi > & |
out |
|
) |
| |
Definition at line 265 of file SiStripFedZeroSuppression.cc.
268 const uint32_t detID =
out.id;
270 #ifdef DEBUG_SiStripZeroSuppression_
273 <<
"[SiStripFedZeroSuppression::suppress] Zero suppression on std::vector<int16_t>: detID " << detID
274 <<
" size = " <<
in.size();
279 std::vector<int16_t>::const_iterator in_iter =
in.begin();
280 uint16_t
strip = firstAPV * 128;
282 size_t strip_mod_128 =
strip & 127;
283 #ifdef DEBUG_SiStripZeroSuppression_
285 LogTrace(
"SiStripZeroSuppression") <<
"[SiStripFedZeroSuppression::suppress] detID= " << detID
286 <<
" strip= " <<
strip <<
" adc= " << *in_iter;
304 if (strip_mod_128 == 127) {
318 if (strip_mod_128 == 0) {
343 if (strip_mod_128 >= 126) {
351 if (strip_mod_128 <= 1) {
362 #ifdef DEBUG_SiStripZeroSuppression_
365 <<
"[SiStripFedZeroSuppression::suppress] DetId " <<
out.id <<
" strip " <<
strip <<
" adc " << *in_iter
366 <<
" digiCollection size " <<
out.data.size();
References gpuClustering::adc, recoMuon::in, edm::isDebugEnabled(), LogTrace, MillePedeFileConverter_cfg::out, findQualityFiles::size, and digitizers_cfi::strip.
◆ suppress() [3/4]
void SiStripFedZeroSuppression::suppress |
( |
const std::vector< SiStripDigi > & |
in, |
|
|
std::vector< SiStripDigi > & |
selectedSignal, |
|
|
uint32_t |
detId |
|
) |
| |
◆ suppress() [4/4]
Definition at line 32 of file SiStripFedZeroSuppression.cc.
38 int inSize =
in.size();
43 selectedSignal.clear();
44 selectedSignal.reserve(inSize);
45 for (
i = 0;
i < inSize;
i++) {
77 if (((
strip) % 128) == 127) {
88 if (((
strip) % 128) == 126) {
99 if (((
strip) % 128) == 0) {
110 if (((
strip) % 128) == 1) {
References gpuClustering::adc, SiStripThreshold::getData(), SiStripThreshold::Data::getHth(), SiStripThreshold::Data::getLth(), SiStripNoises::getNoiseFast(), SiStripNoises::getRange(), SiStripThreshold::getRange(), mps_fire::i, recoMuon::in, digitizers_cfi::strip, and particleFlowZeroSuppressionECAL_cff::thresholds.
Referenced by DigiSimLinkAlgorithm::run().
◆ truncate()
uint16_t SiStripFedZeroSuppression::truncate |
( |
int16_t |
adc | ) |
const |
|
inline |
◆ SiStripRawProcessingFactory
◆ adc
int16_t SiStripFedZeroSuppression::adc |
|
private |
◆ adcMaxNeigh
int16_t SiStripFedZeroSuppression::adcMaxNeigh |
|
private |
◆ adcNext
int16_t SiStripFedZeroSuppression::adcNext |
|
private |
◆ adcNext2
int16_t SiStripFedZeroSuppression::adcNext2 |
|
private |
◆ adcPrev
int16_t SiStripFedZeroSuppression::adcPrev |
|
private |
◆ adcPrev2
int16_t SiStripFedZeroSuppression::adcPrev2 |
|
private |
◆ doTruncate
bool SiStripFedZeroSuppression::doTruncate |
|
private |
◆ doTruncate10bits
bool SiStripFedZeroSuppression::doTruncate10bits |
|
private |
◆ highThr_
std::vector<int16_t> SiStripFedZeroSuppression::highThr_ |
|
private |
◆ highThrSN_
std::vector<float> SiStripFedZeroSuppression::highThrSN_ |
|
private |
◆ lowThr_
std::vector<int16_t> SiStripFedZeroSuppression::lowThr_ |
|
private |
◆ lowThrSN_
std::vector<float> SiStripFedZeroSuppression::lowThrSN_ |
|
private |
◆ noise_cache_id
uint32_t SiStripFedZeroSuppression::noise_cache_id |
|
private |
◆ noiseHandle
◆ noises_
std::vector<float> SiStripFedZeroSuppression::noises_ |
|
private |
◆ theFEDalgorithm
uint16_t SiStripFedZeroSuppression::theFEDalgorithm |
|
private |
◆ theFEDhighThresh
int16_t SiStripFedZeroSuppression::theFEDhighThresh |
|
private |
◆ theFEDlowThresh
int16_t SiStripFedZeroSuppression::theFEDlowThresh |
|
private |
◆ theNeighFEDhighThresh
int16_t SiStripFedZeroSuppression::theNeighFEDhighThresh |
|
private |
◆ theNeighFEDlowThresh
int16_t SiStripFedZeroSuppression::theNeighFEDlowThresh |
|
private |
◆ theNext2FEDlowThresh
int16_t SiStripFedZeroSuppression::theNext2FEDlowThresh |
|
private |
◆ theNextFEDhighThresh
int16_t SiStripFedZeroSuppression::theNextFEDhighThresh |
|
private |
◆ theNextFEDlowThresh
int16_t SiStripFedZeroSuppression::theNextFEDlowThresh |
|
private |
◆ thePrev2FEDlowThresh
int16_t SiStripFedZeroSuppression::thePrev2FEDlowThresh |
|
private |
◆ thePrevFEDhighThresh
int16_t SiStripFedZeroSuppression::thePrevFEDhighThresh |
|
private |
◆ thePrevFEDlowThresh
int16_t SiStripFedZeroSuppression::thePrevFEDlowThresh |
|
private |
◆ threshold_cache_id
uint32_t SiStripFedZeroSuppression::threshold_cache_id |
|
private |
◆ thresholdHandle
int16_t theNextFEDlowThresh
void allThresholds(std::vector< float > &lowThs, std::vector< float > &highThs, const Range &range) const
static float getNoiseFast(const uint16_t &strip, const Range &range)
std::vector< int16_t > highThr_
int16_t theNext2FEDlowThresh
int16_t theNeighFEDlowThresh
const Range getRange(const uint32_t detID) const
std::vector< float > lowThrSN_
void suppress(const std::vector< SiStripDigi > &in, std::vector< SiStripDigi > &selectedSignal, uint32_t detId, edm::ESHandle< SiStripNoises > &, edm::ESHandle< SiStripThreshold > &)
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
edm::ESHandle< SiStripNoises > noiseHandle
uint32_t threshold_cache_id
std::pair< ContainerIterator, ContainerIterator > Range
const Range getRange(const uint32_t &detID) const
SiStripThreshold::Data getData(const uint16_t &strip, const Range &range) const
std::vector< float > noises_
std::vector< float > highThrSN_
int16_t thePrevFEDhighThresh
std::pair< ContainerIterator, ContainerIterator > Range
edm::ESHandle< SiStripThreshold > thresholdHandle
std::vector< int16_t > lowThr_
int16_t thePrev2FEDlowThresh
void fillThresholds_(const uint32_t detID, size_t size)
void allNoises(std::vector< float > &noises, const Range &range) const
int16_t theNeighFEDhighThresh
int16_t theNextFEDhighThresh
A Digi for the silicon strip detector, containing both strip and adc information, and suitable for st...
int16_t thePrevFEDlowThresh
uint16_t truncate(int16_t adc) const
collection_type::const_iterator const_iterator