Skip to content

Commit

Permalink
Code check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Jan 14, 2021
1 parent c19b313 commit d51941d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Geometry/HGCalCommonData/test/HGCalConvert.cpp
Expand Up @@ -288,8 +288,8 @@ void ConvertSilicon::writeSilicon(const char* outfile,
}
fOut << "\n" << blank << "</Vector>\n";
if (mode) {
fOut << blank << "<Vector name=" << apost << "WaferLayerStart" << tag << apost << " type=" << apost << "numeric" << apost
<< " nEntries=" << apost << layerStart.size() << apost << ">";
fOut << blank << "<Vector name=" << apost << "WaferLayerStart" << tag << apost << " type=" << apost << "numeric"
<< apost << " nEntries=" << apost << layerStart.size() << apost << ">";
} else {
fOut << blank << "<Vector name=" << apost << "WaferLayerStart" << apost << " type=" << apost << "numeric" << apost
<< " nEntries=" << apost << layerStart.size() << apost << ">";
Expand Down Expand Up @@ -605,8 +605,8 @@ void ConvertScintillator::makeTitle(
std::cout << std::setw(7) << f1f2 << last;
}
if (zones[k].layer != layer) {
layerStart.emplace_back(k);
layer = zones[k].layer;
layerStart.emplace_back(k);
layer = zones[k].layer;
}
}
fout << "\n </Vector>\n";
Expand All @@ -620,11 +620,11 @@ void ConvertScintillator::makeTitle(
for (unsigned int k = 0; k < layerStart.size(); ++k) {
std::string last = ((k + 1) == layerStart.size()) ? " " : ",";
if (k % 10 == 0) {
fout << "\n " << std::setw(5) << layerStart[k] << last;
fout << "\n " << std::setw(5) << layerStart[k] << last;
if (debug)
std::cout << "\n " << std::setw(5) << layerStart[k] << last;
std::cout << "\n " << std::setw(5) << layerStart[k] << last;
} else {
fout << std::setw(5) << layerStart[k] << last;
fout << std::setw(5) << layerStart[k] << last;
if (debug)
std::cout << std::setw(5) << layerStart[k] << last;
}
Expand Down

0 comments on commit d51941d

Please sign in to comment.