Skip to content

Commit

Permalink
Code check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Aug 31, 2021
1 parent 73b8af6 commit b5aed4d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 21 deletions.
16 changes: 8 additions & 8 deletions SimG4Core/PrintGeomInfo/plugins/PrintGeomInfoAction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ PrintGeomInfoAction::PrintGeomInfoAction(const edm::ParameterSet &p) {
G4cout << "PrintGeomInfoAction:: initialised for dd4hep " << dd4hep_ << " with verbosity levels:"
<< " Summary " << dumpSummary_ << " LVTree " << dumpLVTree_ << " LVList " << dumpLVList_ << " Material "
<< dumpMaterial_ << G4endl << " "
<< " LV " << dumpLV_ << " Solid " << dumpSolid_ << " Attribs " << dumpAtts_
<< G4endl << " "
<< " PV " << dumpPV_ << " Rotation " << dumpRotation_ << " Replica " << dumpReplica_
<< G4endl << " "
<< " Touchable " << dumpTouch_ << " for names (0-" << nchar_ << ") = " << name_
<< G4endl << " "
<< " LV " << dumpLV_ << " Solid " << dumpSolid_ << " Attribs " << dumpAtts_ << G4endl
<< " "
<< " PV " << dumpPV_ << " Rotation " << dumpRotation_ << " Replica " << dumpReplica_ << G4endl
<< " "
<< " Touchable " << dumpTouch_ << " for names (0-" << nchar_ << ") = " << name_ << G4endl
<< " "
<< " Sensitive " << dumpSense_ << " Files " << fileMat_ << ":" << fileSolid_ << ":" << fileLV_ << ":"
<< filePV_ << ":" << fileTouch_ << " FileDetail " << fileDetail_
<< G4endl << " for " << names_.size() << " names:";
<< filePV_ << ":" << fileTouch_ << " FileDetail " << fileDetail_ << G4endl
<< " for " << names_.size() << " names:";
for (unsigned int i = 0; i < names_.size(); i++)
G4cout << " " << names_[i];
G4cout << G4endl;
Expand Down
18 changes: 6 additions & 12 deletions SimG4Core/PrintGeomInfo/plugins/PrintMaterialBudgetInfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,9 @@ void PrintMaterialBudgetInfo::dumpHeader(std::ostream& out) {
}

void PrintMaterialBudgetInfo::dumpLaTeXHeader(std::ostream& out) {
out << "\\begin{table}[h!]" << G4endl
<< " \\caption{\\textsf {" << name << "} volume list.}" << G4endl
<< " \\label{tab: " << name << "}" << G4endl
<< " \\begin{center}" << G4endl
<< " \\begin{tabular}{ccccccc}" << G4endl
<< " \\hline" << G4endl;
out << "\\begin{table}[h!]" << G4endl << " \\caption{\\textsf {" << name << "} volume list.}" << G4endl
<< " \\label{tab: " << name << "}" << G4endl << " \\begin{center}" << G4endl << " \\begin{tabular}{ccccccc}"
<< G4endl << " \\hline" << G4endl;
out << " Geom."
<< "\t & "
<< " Volume"
Expand Down Expand Up @@ -203,15 +200,12 @@ void PrintMaterialBudgetInfo::dumpLaTeXHeader(std::ostream& out) {
<< " "
<< "\t & "
<< " "
<< "\t \\\\ " << G4endl
<< " \\hline\\hline" << G4endl;
<< "\t \\\\ " << G4endl << " \\hline\\hline" << G4endl;
}

void PrintMaterialBudgetInfo::dumpLaTeXFooter(std::ostream& out) {
out << " \\hline" << G4endl
<< " \\end{tabular}" << G4endl
<< " \\end{center}" << G4endl
<< "\\end{table}" << G4endl;
out << " \\hline" << G4endl << " \\end{tabular}" << G4endl << " \\end{center}" << G4endl << "\\end{table}"
<< G4endl;
}

void PrintMaterialBudgetInfo::dumpHierarchyLeaf(
Expand Down
2 changes: 1 addition & 1 deletion SimG4Core/PrintGeomInfo/plugins/PrintSensitive.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ PrintSensitive::PrintSensitive(const edm::ParameterSet &p) {
nchar_ = name_.find('*');
name_.assign(name_, 0, nchar_);
G4cout << "PrintSensitive:: Print position of all Sensitive Touchables: "
<< " for names (0-" << nchar_ << ") = " << name_ << G4endl;
<< " for names (0-" << nchar_ << ") = " << name_ << G4endl;
}

PrintSensitive::~PrintSensitive() {}
Expand Down

0 comments on commit b5aed4d

Please sign in to comment.