CMS 3D CMS Logo

SiStripThresholdReader.cc
Go to the documentation of this file.
3 
4 using namespace std;
5 using namespace cms;
6 
8  : printdebug_(iConfig.getUntrackedParameter<uint32_t>("printDebug", 3)), thresholdToken_(esConsumes()) {}
9 
11 
13  const auto& thresholds = iSetup.getData(thresholdToken_);
14  edm::LogInfo("SiStripThresholdReader") << "[SiStripThresholdReader::analyze] End Reading SiStripThreshold"
15  << std::endl;
16 
17  std::vector<uint32_t> detid;
18  thresholds.getDetIds(detid);
19  edm::LogInfo("Number of detids ") << detid.size() << std::endl;
20  if (printdebug_)
21  for (size_t id = 0; id < detid.size() && id < printdebug_; id++) {
22  SiStripThreshold::Range range = thresholds.getRange(detid[id]);
23 
24  //int strip=0;
25  float old_clusTh = -1, old_lowTh = -1, old_highTh = -1, old_FirstStrip = -1;
26  for (int it = 0; it < 768; it++) {
28  std::stringstream ss;
29  data.print(ss);
30  if (old_clusTh != data.getClusth() || old_lowTh != data.getLth() || old_highTh != data.getHth() ||
31  old_FirstStrip != data.getFirstStrip()) {
32  edm::LogInfo("SiStripThresholdReader")
33  << "detid: " << detid[id] << " \t"
34  << "strip: " << it << " \t" << ss.str() << "FirstStrip_and_Hth: " << data.FirstStrip_and_Hth << " \n"
35  << std::endl;
36  old_lowTh = data.getLth();
37  old_highTh = data.getHth();
38  old_clusTh = data.getClusth();
39  old_FirstStrip = data.getFirstStrip();
40  }
41  }
42  }
43 }
FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
particleFlowZeroSuppressionECAL_cff.thresholds
thresholds
Definition: particleFlowZeroSuppressionECAL_cff.py:31
SiStripThresholdReader::SiStripThresholdReader
SiStripThresholdReader(const edm::ParameterSet &)
Definition: SiStripThresholdReader.cc:7
SiStripThresholdReader::~SiStripThresholdReader
~SiStripThresholdReader() override
Definition: SiStripThresholdReader.cc:10
SiStripThresholdReader.h
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
SiStripThresholdReader::printdebug_
uint32_t printdebug_
Definition: SiStripThresholdReader.h:33
SiStripThresholdReader::thresholdToken_
edm::ESGetToken< SiStripThreshold, SiStripThresholdRcd > thresholdToken_
Definition: SiStripThresholdReader.h:34
edm::ParameterSet
Definition: ParameterSet.h:47
SiStripThreshold::Range
std::pair< ContainerIterator, ContainerIterator > Range
Definition: SiStripThreshold.h:106
SiStripThresholdRcd.h
edm::EventSetup
Definition: EventSetup.h:58
SiStripThresholdReader::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: SiStripThresholdReader.cc:12
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
std
Definition: JetResolutionObject.h:76
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
SiStripThreshold::Data
Definition: SiStripThreshold.h:44
DeDxTools::esConsumes
ESGetTokenH3DDVariant esConsumes(std::string const &Reccord, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
edm::Event
Definition: Event.h:73
cms
Namespace of DDCMS conversion namespace.
Definition: ProducerAnalyzer.cc:21
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37