|
|
Go to the documentation of this file.
15 #define COUT std::cout
17 #define COUT LogDebug("StripClusterizerAlgorithm")
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;
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;
206 s <<
"Digi charge of " << digi.
adc() <<
" ADC "
207 <<
"is out of range on strip " << digi.
strip() <<
". ";
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
T mod(const T &a, const T &b)
uint32_t quality_cache_id
const Range getRange(const uint32_t detID) const
void getDetIds(std::vector< uint32_t > &DetIds_) const
SiStripNoises::Range noiseRange
SiStripQuality const * quality
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
const uint16_t & adc() const
SiStripApvGain::Range gainRange
void getDetIds(std::vector< uint32_t > &DetIds_) const
ATTENTION: we assume the detIds are the same as those from the first gain.
void append(Exception const &another)
std::vector< Index > indices
__host__ constexpr __device__ RandomIt lower_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})
Det findDetId(const uint32_t) const
const uint16_t & strip() const
void clusterize(const edm::DetSetVector< SiStripDigi > &, output_t &) const
Range getRangeByPos(unsigned short pos) const
edm::ESHandle< SiStripNoises > noiseHandle
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
virtual void initialize(const edm::EventSetup &)
bool isModuleBad(const uint32_t &id) const
bool isModuleUsable(const uint32_t &id) const
A Digi for the silicon strip detector, containing both strip and adc information, and suitable for st...
edm::ESHandle< SiStripGain > gainHandle
const SiStripDetCabling * cabling() const
SiStripQuality::Range qualityRange
InvalidChargeException(const SiStripDigi &)
Namespace of DDCMS conversion namespace.