Go to the documentation of this file.
15 : printdebug_(iConfig.getUntrackedParameter<
bool>(
"printDebug",
true)),
16 formatedOutput_(iConfig.getUntrackedParameter<
std::
string>(
"outputFile",
"")),
17 gainType_(iConfig.getUntrackedParameter<uint32_t>(
"gainType", 1)),
22 tree_->Branch(
"Index", &
id_,
"Index/I");
34 edm::LogInfo(
"SiStripApvGainReader") <<
"[SiStripApvGainReader::analyze] End Reading SiStripApvGain" << std::endl;
35 std::vector<uint32_t> detid;
37 edm::LogInfo(
"Number of detids ") << detid.size() << std::endl;
39 FILE* pFile =
nullptr;
42 for (
size_t id = 0;
id < detid.size();
id++) {
46 for (
int it = 0; it <
range.second -
range.first; it++) {
47 edm::LogInfo(
"SiStripApvGainReader") <<
"detid " << detid[
id] <<
" \t " << apv++ <<
" \t "
61 fprintf(pFile,
"%i ", detid[
id]);
62 for (
int it = 0; it <
range.second -
range.first; it++) {
SiStripApvGainReader(const edm::ParameterSet &)
const SiStripApvGain::Range getRange(uint32_t detID) const
void getDetIds(std::vector< uint32_t > &DetIds_) const
ATTENTION: we assume the detIds are the same as those from the first gain.
void analyze(const edm::Event &, const edm::EventSetup &) override
static float getApvGain(const uint16_t &apv, const SiStripApvGain::Range &range)
~SiStripApvGainReader() override
std::string formatedOutput_
std::pair< ContainerIterator, ContainerIterator > Range
T * make(const Args &... args) const
make new ROOT object
edm::Service< TFileService > fs_
Namespace of DDCMS conversion namespace.