CondTools
SiStrip
plugins
SiStripNoisesReader.cc
Go to the documentation of this file.
1
#include "
CondTools/SiStrip/plugins/SiStripNoisesReader.h
"
2
3
using namespace
cms
;
4
5
SiStripNoisesReader::SiStripNoisesReader
(
const
edm::ParameterSet
& iConfig)
6
: printdebug_(iConfig.getUntrackedParameter<uint32_t>(
"printDebug"
, 1)) {}
7
8
SiStripNoisesReader::~SiStripNoisesReader
() {}
9
10
void
SiStripNoisesReader::analyze
(
const
edm::Event
&
e
,
const
edm::EventSetup
& iSetup) {
11
edm::ESHandle<SiStripNoises>
SiStripNoises_;
12
iSetup.
get
<
SiStripNoisesRcd
>().
get
(SiStripNoises_);
13
edm::LogInfo
(
"SiStripNoisesReader"
) <<
"[SiStripNoisesReader::analyze] End Reading SiStripNoises"
<< std::endl;
14
15
std::vector<uint32_t> detid;
16
SiStripNoises_->
getDetIds
(detid);
17
edm::LogInfo
(
"Number of detids "
) << detid.size() << std::endl;
18
19
if
(
printdebug_
)
20
for
(
size_t
id
= 0;
id
< detid.size() &&
id
<
printdebug_
;
id
++) {
21
SiStripNoises::Range
range
= SiStripNoises_->
getRange
(detid[
id
]);
22
23
int
strip
= 0;
24
for
(
int
it = 0; it < (
range
.second -
range
.first) * 8 / 9; it++) {
25
edm::LogInfo
(
"SiStripNoisesReader"
) <<
"detid "
<< detid[
id
] <<
" \t"
26
<<
" strip "
<<
strip
++ <<
" \t"
<< SiStripNoises_->
getNoise
(it,
range
)
27
<<
" \t"
28
//<< SiStripNoises_->getDisable(it,range) << " \t"
29
<< std::endl;
30
}
31
}
32
}
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
edm::LogInfo
Definition:
MessageLogger.h:254
SiStripNoisesReader.h
SiStripNoises::getRange
const Range getRange(const uint32_t detID) const
Definition:
SiStripNoises.cc:34
SiStripNoises::getDetIds
void getDetIds(std::vector< uint32_t > &DetIds_) const
Definition:
SiStripNoises.cc:58
SiStripNoisesRcd
Definition:
SiStripCondDataRecords.h:40
edm::EventSetup::get
T get() const
Definition:
EventSetup.h:73
SiStripNoises::Range
std::pair< ContainerIterator, ContainerIterator > Range
Definition:
SiStripNoises.h:47
edm::ESHandle< SiStripNoises >
SiStripNoisesReader::printdebug_
uint32_t printdebug_
Definition:
SiStripNoisesReader.h:33
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::EventSetup
Definition:
EventSetup.h:57
get
#define get
triggerObjects_cff.id
id
Definition:
triggerObjects_cff.py:31
SiStripNoises::getNoise
static float getNoise(uint16_t strip, const Range &range)
Definition:
SiStripNoises.h:71
SiStripNoisesReader::SiStripNoisesReader
SiStripNoisesReader(const edm::ParameterSet &)
Definition:
SiStripNoisesReader.cc:5
edm::Event
Definition:
Event.h:73
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
Generated for CMSSW Reference Manual by
1.8.16