15 #define COUT std::cout
17 #define COUT LogDebug("StripClusterizerAlgorithm")
52 COUT <<
"cabling " << conn.size() << std::endl;
54 detIds.reserve(conn.size());
58 COUT <<
"good detIds " <<
detIds.size() << std::endl;
60 if (0==
detIds.size())
return;
79 unsigned short j=0,
i=0;
80 while (
i<dum.size() && j<
detIds.size()) {
90 COUT <<
"quality " << dum.size() <<
" " <<nn<< std::endl;
93 std::vector<uint32_t> dum;
noiseHandle->getDetIds(dum);
95 unsigned short j=0,
i=0;
96 while (
i<dum.size() && j<
detIds.size()) {
106 COUT <<
"noise " << dum.size() <<
" " <<nn<< std::endl;
109 std::vector<uint32_t> dum;
gainHandle->getDetIds(dum);
111 unsigned short j=0,
i=0;
112 while (
i<dum.size() && j<
detIds.size()) {
122 COUT <<
"gain " << dum.size() <<
" " <<nn<< std::endl;
133 auto p = std::lower_bound(
b,
e,
id);
134 if (
p==
e ||
id!=(*
p)) {
135 #ifdef NOT_ON_MONTECARLO
137 <<
"id " <<
id <<
" not connected. this is impossible on data "
138 <<
"old id " << detId << std::endl;
173 s <<
"Digi charge of " << digi.
adc() <<
" ADC "
174 <<
"is out of range on strip " << digi.
strip() <<
". ";
SiStripQuality::Range qualityRange
edm::ESHandle< SiStripQuality > qualityHandle
void clusterize(const edm::DetSetVector< SiStripDigi > &, output_t &) const
void append(Exception const &another)
edm::ESHandle< SiStripGain > gainHandle
SiStripQuality const * quality
bool isModuleBad(const uint32_t &id) const
SiStripApvGain::Range gainRange
InvalidChargeException(const SiStripDigi &)
edm::ESHandle< SiStripNoises > noiseHandle
static std::string const input
const uint16_t & strip() const
std::vector< std::vector< const FedChannelConnection * > > connections
void clusterize_(const T &input, output_t &output) const
A Digi for the silicon strip detector, containing both strip and adc information, and suitable for st...
SiStripDetCabling const * theCabling
static unsigned short invalidI
const std::map< uint32_t, std::vector< const FedChannelConnection * > > & getDetCabling() const
bool isModuleUsable(const uint32_t &id) const
virtual void initialize(const edm::EventSetup &)
SiStripDetCabling const * cabling() const
T const * product() const
std::vector< Index > indices
uint32_t quality_cache_id
SiStripNoises::Range noiseRange
Det findDetId(const uint32_t) const
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)