14 : printdebug_(iConfig.getUntrackedParameter<
bool>(
"printDebug",
true)),
15 formatedOutput_(iConfig.getUntrackedParameter<
std::
string>(
"outputFile",
"")),
16 gainType_(iConfig.getUntrackedParameter<uint32_t>(
"gainType", 1)),
21 tree_->Branch(
"Index", &
id_,
"Index/I");
32 edm::LogInfo(
"SiStripApvGainReader") <<
"[SiStripApvGainReader::analyze] End Reading SiStripApvGain" << std::endl;
33 std::vector<uint32_t> detid;
34 stripApvGain.getDetIds(detid);
35 edm::LogInfo(
"Number of detids ") << detid.size() << std::endl;
37 FILE* pFile =
nullptr;
40 for (
size_t id = 0;
id < detid.size();
id++) {
44 for (
int it = 0; it <
range.second -
range.first; it++) {
46 <<
"detid " << detid[
id] <<
" \t " << apv++ <<
" \t " << stripApvGain.getApvGain(it,
range) << std::endl;
59 fprintf(pFile,
"%i ", detid[
id]);
60 for (
int it = 0; it <
range.second -
range.first; it++) {
61 fprintf(pFile,
"%f ", stripApvGain.getApvGain(it,
range));