15 #define COUT std::cout
17 #define COUT LogDebug("StripClusterizerAlgorithm")
52 COUT <<
"cabling " <<
conn.size() << std::endl;
58 COUT <<
"good detIds " <<
detIds.size() << std::endl;
81 unsigned short j=0,
i=0;
82 while (
i<dum.size() && j<
detIds.size()) {
91 assert(nn<=dum.size());
92 COUT <<
"quality " << dum.size() <<
" " <<nn<< std::endl;
95 std::vector<uint32_t> dum;
noiseHandle->getDetIds(dum);
97 unsigned short j=0,
i=0;
98 while (
i<dum.size() && j<
detIds.size()) {
107 assert(nn<=dum.size());
108 COUT <<
"noise " << dum.size() <<
" " <<nn<< std::endl;
111 std::vector<uint32_t> dum;
gainHandle->getDetIds(dum);
113 unsigned short j=0,
i=0;
114 while (
i<dum.size() && j<
detIds.size()) {
123 assert(nn<=dum.size());
124 COUT <<
"gain " << dum.size() <<
" " <<nn<< std::endl;
145 if (
id==
detId)
return true;
161 auto p = std::lower_bound(
b,
e,
id);
162 if (
p==
e ||
id!=(*
p)) {
163 #ifdef NOT_ON_MONTECARLO
165 <<
"id " <<
id <<
" not connected. this is impossible on data "
166 <<
"old id " <<
detId << std::endl;
198 s <<
"Digi charge of " << digi.
adc() <<
" ADC "
199 <<
"is out of range on strip " << digi.
strip() <<
". ";
edm::ESHandle< SiStripQuality > qualityHandle
void clusterize_(const T &input, output_t &output)
SiStripApvGain::Range gainRange
void append(Exception const &another)
edm::ESHandle< SiStripGain > gainHandle
SiStripQuality::Range qualityRange
bool isModuleBad(const uint32_t &id) const
InvalidChargeException(const SiStripDigi &)
edm::ESHandle< SiStripNoises > noiseHandle
static std::string const input
bool setDetId(const uint32_t)
const uint16_t & strip() const
std::vector< std::vector< const FedChannelConnection * > > connections
A Digi for the silicon strip detector, containing both strip and adc information, and suitable for st...
SiStripDetCabling const * theCabling
static unsigned short invalidI
SiStripNoises::Range noiseRange
const std::map< uint32_t, std::vector< const FedChannelConnection * > > & getDetCabling() const
virtual void initialize(const edm::EventSetup &)
SiStripDetCabling const * cabling() const
void clusterize(const edm::DetSetVector< SiStripDigi > &, output_t &)
std::vector< Index > indices
uint32_t quality_cache_id
std::map< uint32_t, std::vector< int > > const & connected() const
std::vector< uint32_t > detIds
const uint16_t & adc() const
T mod(const T &a, const T &b)