|
|
#include <StripClusterizerAlgorithm.h>
|
std::vector< uint32_t > const & | allDetIds () const |
|
SiStripDetCabling const * | cabling () const |
|
void | clusterize (const edm::DetSetVector< SiStripDigi > &, output_t &) const |
|
void | clusterize (const edmNew::DetSetVector< SiStripDigi > &, output_t &) const |
|
virtual void | clusterizeDetUnit (const edm::DetSet< SiStripDigi > &, output_t::TSFastFiller &) const =0 |
|
virtual void | clusterizeDetUnit (const edmNew::DetSet< SiStripDigi > &, output_t::TSFastFiller &) const =0 |
|
std::vector< const FedChannelConnection * > const & | currentConnection (const Det &det) const |
|
virtual void | initialize (const edm::EventSetup &) |
|
virtual void | stripByStripAdd (State &state, uint16_t strip, uint8_t adc, output_t::TSFastFiller &out) const |
|
virtual void | stripByStripAdd (State &state, uint16_t strip, uint8_t adc, std::vector< SiStripCluster > &out) const |
|
virtual Det | stripByStripBegin (uint32_t id) const =0 |
|
virtual void | stripByStripEnd (State &state, output_t::TSFastFiller &out) const |
|
virtual void | stripByStripEnd (State &state, std::vector< SiStripCluster > &out) const |
|
virtual | ~StripClusterizerAlgorithm () |
|
|
static constexpr unsigned short | invalidI = std::numeric_limits<unsigned short>::max() |
|
Definition at line 20 of file StripClusterizerAlgorithm.h.
◆ output_t
◆ ~StripClusterizerAlgorithm()
virtual StripClusterizerAlgorithm::~StripClusterizerAlgorithm |
( |
| ) |
|
|
inlinevirtual |
◆ StripClusterizerAlgorithm()
StripClusterizerAlgorithm::StripClusterizerAlgorithm |
( |
| ) |
|
|
inlineprotected |
◆ allDetIds()
std::vector<uint32_t> const& StripClusterizerAlgorithm::allDetIds |
( |
| ) |
const |
|
inline |
◆ cabling()
◆ clusterize() [1/2]
◆ clusterize() [2/2]
◆ clusterize_()
template<class T >
void StripClusterizerAlgorithm::clusterize_ |
( |
const T & |
input, |
|
|
output_t & |
output |
|
) |
| const |
|
inlineprivate |
◆ clusterizeDetUnit() [1/2]
◆ clusterizeDetUnit() [2/2]
◆ currentConnection()
std::vector<const FedChannelConnection*> const& StripClusterizerAlgorithm::currentConnection |
( |
const Det & |
det | ) |
const |
|
inline |
◆ findDetId()
Definition at line 161 of file StripClusterizerAlgorithm.cc.
165 if (
p ==
e ||
id != (*
p)) {
166 #ifdef NOT_ON_MONTECARLO
167 edm::LogWarning(
"StripClusterizerAlgorithm") <<
"id " <<
id <<
" not connected. this is impossible on data "
168 <<
"old id " << detId << std::endl;
184 assert(oldg == det.gainRange);
186 assert(oldn == det.noiseRange);
188 assert(oldq == det.qualityRange);
References cms::cuda::assert(), b, StripClusterizerAlgorithm::Det::detId, detIds, MillePedeFileConverter_cfg::e, gainHandle, StripClusterizerAlgorithm::Det::gainRange, SiStripNoises::getRange(), SiStripBadStrip::getRange(), SiStripGain::getRange(), SiStripNoises::getRangeByPos(), SiStripBadStrip::getRangeByPos(), SiStripGain::getRangeByPos(), triggerObjects_cff::id, StripClusterizerAlgorithm::Det::ind, indices, isModuleUsable(), cuda_std::lower_bound(), noiseHandle, StripClusterizerAlgorithm::Det::noiseRange, AlCaHLTBitMon_ParallelJobs::p, edm::ESHandle< T >::product(), StripClusterizerAlgorithm::Det::quality, qualityHandle, and StripClusterizerAlgorithm::Det::qualityRange.
Referenced by ThreeThresholdAlgorithm::clusterizeDetUnit_(), and ThreeThresholdAlgorithm::stripByStripBegin().
◆ initialize()
Definition at line 24 of file StripClusterizerAlgorithm.cc.
51 COUT <<
"cabling " <<
conn.size() << std::endl;
54 for (
auto const&
c :
conn) {
60 COUT <<
"good detIds " <<
detIds.size() << std::endl;
78 std::vector<uint32_t> dum;
81 unsigned short j = 0,
i = 0;
82 while (
i < dum.size() &&
j <
detIds.size()) {
102 COUT <<
"quality " << dum.size() <<
" " <<
nn << std::endl;
105 std::vector<uint32_t> dum;
108 unsigned short j = 0,
i = 0;
109 while (
i < dum.size() &&
j <
detIds.size()) {
129 COUT <<
"noise " << dum.size() <<
" " <<
nn << std::endl;
132 std::vector<uint32_t> dum;
135 unsigned short j = 0,
i = 0;
136 while (
i < dum.size() &&
j <
detIds.size()) {
156 COUT <<
"gain " << dum.size() <<
" " <<
nn << std::endl;
References cms::cuda::assert(), HltBtagPostValidation_cff::c, cabling(), SiStripQuality::cabling(), SiStripCommissioningClient_cfg::conn, SiStripDetCabling::connected(), connections, COUT, detIds, gain_cache_id, gainHandle, edm::EventSetup::get(), get, SiStripDetCabling::getDetCabling(), SiStripNoises::getDetIds(), SiStripBadStrip::getDetIds(), SiStripGain::getDetIds(), mps_fire::i, indices, invalidI, isModuleBad(), dqmiolumiharvest::j, dqmdumpme::k, mod(), groupFilesInBlocks::nn, noise_cache_id, noiseHandle, quality_cache_id, qualityHandle, qualityLabel, theCabling, and mitigatedMETSequence_cff::U.
◆ isModuleBad()
bool StripClusterizerAlgorithm::isModuleBad |
( |
const uint32_t & |
id | ) |
const |
|
inlineprotected |
◆ isModuleUsable()
bool StripClusterizerAlgorithm::isModuleUsable |
( |
const uint32_t & |
id | ) |
const |
|
inlineprotected |
◆ stripByStripAdd() [1/2]
virtual void StripClusterizerAlgorithm::stripByStripAdd |
( |
State & |
state, |
|
|
uint16_t |
strip, |
|
|
uint8_t |
adc, |
|
|
output_t::TSFastFiller & |
out |
|
) |
| const |
|
inlinevirtual |
◆ stripByStripAdd() [2/2]
virtual void StripClusterizerAlgorithm::stripByStripAdd |
( |
State & |
state, |
|
|
uint16_t |
strip, |
|
|
uint8_t |
adc, |
|
|
std::vector< SiStripCluster > & |
out |
|
) |
| const |
|
inlinevirtual |
◆ stripByStripBegin()
virtual Det StripClusterizerAlgorithm::stripByStripBegin |
( |
uint32_t |
id | ) |
const |
|
pure virtual |
◆ stripByStripEnd() [1/2]
◆ stripByStripEnd() [2/2]
virtual void StripClusterizerAlgorithm::stripByStripEnd |
( |
State & |
state, |
|
|
std::vector< SiStripCluster > & |
out |
|
) |
| const |
|
inlinevirtual |
◆ connections
◆ detIds
std::vector<uint32_t> StripClusterizerAlgorithm::detIds |
|
private |
◆ gain_cache_id
uint32_t StripClusterizerAlgorithm::gain_cache_id |
|
private |
◆ gainHandle
◆ indices
std::vector<Index> StripClusterizerAlgorithm::indices |
|
private |
◆ invalidI
constexpr unsigned short StripClusterizerAlgorithm::invalidI = std::numeric_limits<unsigned short>::max() |
|
staticconstexpr |
◆ noise_cache_id
uint32_t StripClusterizerAlgorithm::noise_cache_id |
|
private |
◆ noiseHandle
◆ quality_cache_id
uint32_t StripClusterizerAlgorithm::quality_cache_id |
|
private |
◆ qualityHandle
◆ qualityLabel
std::string StripClusterizerAlgorithm::qualityLabel |
|
protected |
◆ theCabling
T const * product() const
static const std::string input
SiStripDetCabling const * cabling() const
const Range getRange(const uint32_t detID) const
const std::map< uint32_t, std::vector< const FedChannelConnection * > > & getDetCabling() const
void clusterize_(const T &input, output_t &output) const
std::vector< std::vector< const FedChannelConnection * > > connections
bool IsModuleBad(const uint32_t &detid) const
T mod(const T &a, const T &b)
uint32_t quality_cache_id
bool IsModuleUsable(const uint32_t &detid) const
const Range getRange(const uint32_t detID) const
void getDetIds(std::vector< uint32_t > &DetIds_) const
edm::ESHandle< SiStripQuality > qualityHandle
const std::map< uint32_t, std::vector< int > > & connected() const
SiStripApvGain::Range getRangeByPos(unsigned short pos) const
const SiStripApvGain::Range getRange(uint32_t detID) const
void getDetIds(std::vector< uint32_t > &DetIds_) const
ATTENTION: we assume the detIds are the same as those from the first gain.
std::vector< Index > indices
__host__ constexpr __device__ RandomIt lower_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})
Range getRangeByPos(unsigned short pos) const
edm::ESHandle< SiStripNoises > noiseHandle
virtual void clusterizeDetUnit(const edm::DetSet< SiStripDigi > &, output_t::TSFastFiller &) const =0
SiStripDetCabling const * theCabling
static constexpr unsigned short invalidI
Range getRangeByPos(unsigned short pos) const
void getDetIds(std::vector< uint32_t > &DetIds_) const
std::vector< uint32_t > detIds
friend class TSFastFiller
bool isModuleBad(const uint32_t &id) const
bool isModuleUsable(const uint32_t &id) const
edm::ESHandle< SiStripGain > gainHandle
const SiStripDetCabling * cabling() const