CMS 3D CMS Logo

SiStripNoisesReader.cc
Go to the documentation of this file.
2 
3 using namespace cms;
4 
6  : printdebug_(iConfig.getUntrackedParameter<uint32_t>("printDebug", 1)), noisesToken_(esConsumes()) {}
7 
9 
11  const auto& stripNoises = iSetup.getData(noisesToken_);
12  edm::LogInfo("SiStripNoisesReader") << "[SiStripNoisesReader::analyze] End Reading SiStripNoises" << std::endl;
13 
14  std::vector<uint32_t> detid;
15  stripNoises.getDetIds(detid);
16  edm::LogInfo("Number of detids ") << detid.size() << std::endl;
17 
18  if (printdebug_)
19  for (size_t id = 0; id < detid.size() && id < printdebug_; id++) {
20  SiStripNoises::Range range = stripNoises.getRange(detid[id]);
21 
22  int strip = 0;
23  for (int it = 0; it < (range.second - range.first) * 8 / 9; it++) {
24  edm::LogInfo("SiStripNoisesReader") << "detid " << detid[id] << " \t"
25  << " strip " << strip++ << " \t" << stripNoises.getNoise(it, range)
26  << " \t"
27  //<< stripNoises.getDisable(it,range) << " \t"
28  << std::endl;
29  }
30  }
31 }
FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
SiStripNoisesReader::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: SiStripNoisesReader.cc:10
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
SiStripNoisesReader.h
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
SiStripNoises::Range
std::pair< ContainerIterator, ContainerIterator > Range
Definition: SiStripNoises.h:47
SiStripNoisesReader::printdebug_
uint32_t printdebug_
Definition: SiStripNoisesReader.h:33
edm::ParameterSet
Definition: ParameterSet.h:47
edm::EventSetup
Definition: EventSetup.h:57
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:120
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
SiStripNoisesReader::SiStripNoisesReader
SiStripNoisesReader(const edm::ParameterSet &)
Definition: SiStripNoisesReader.cc:5
edm::Event
Definition: Event.h:73
SiStripNoisesReader::noisesToken_
edm::ESGetToken< SiStripNoises, SiStripNoisesRcd > noisesToken_
Definition: SiStripNoisesReader.h:34
SiStripNoisesReader::~SiStripNoisesReader
~SiStripNoisesReader() override
Definition: SiStripNoisesReader.cc:8
cms
Namespace of DDCMS conversion namespace.
Definition: ProducerAnalyzer.cc:21
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37