16 printdebug_(iConfig.getUntrackedParameter<bool>(
"printDebug",
true)),
17 formatedOutput_(iConfig.getUntrackedParameter<std::
string>(
"outputFile",
"")),
18 gainType_ (iConfig.getUntrackedParameter<uint32_t>(
"gainType",1))
27 edm::LogInfo(
"SiStripApvGainReader") <<
"[SiStripApvGainReader::analyze] End Reading SiStripApvGain" << std::endl;
29 std::vector<uint32_t>
detid;
30 SiStripApvGain_->getDetIds(detid);
31 edm::LogInfo(
"Number of detids ") << detid.size() << std::endl;
36 for (
size_t id=0;
id<detid.size();
id++){
40 for(
int it=0;it<range.second-range.first;it++){
41 edm::LogInfo(
"SiStripApvGainReader") <<
"detid " << detid[id] <<
" \t " << apv++ <<
" \t " << SiStripApvGain_->getApvGain(it,range) << std::endl;
46 fprintf(pFile,
"%i ",detid[
id]);
47 for(
int it=0;it<range.second-range.first;it++){
48 fprintf(pFile,
"%f ", SiStripApvGain_->getApvGain(it,range) );
49 }fprintf(pFile,
"\n");
54 if(pFile)fclose(pFile);
std::pair< ContainerIterator, ContainerIterator > Range
std::string formatedOutput_
void analyze(const edm::Event &, const edm::EventSetup &)
SiStripApvGainReader(const edm::ParameterSet &)