Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
civanch committed Dec 2, 2021

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent ede17d0 commit 740798a
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 1 addition & 3 deletions SimG4Core/Application/src/RunManagerMT.cc
Original file line number Diff line number Diff line change
@@ -90,9 +90,7 @@ RunManagerMT::RunManagerMT(edm::ParameterSet const& p)
m_check = p.getUntrackedParameter<bool>("CheckGeometry", false);
}

RunManagerMT::~RunManagerMT() {
delete m_UIsession;
}
RunManagerMT::~RunManagerMT() { delete m_UIsession; }

void RunManagerMT::initG4(const DDCompactView* pDD,
const cms::DDCompactView* pDD4hep,
6 changes: 4 additions & 2 deletions SimG4Core/Application/src/RunManagerMTWorker.cc
Original file line number Diff line number Diff line change
@@ -259,9 +259,11 @@ void RunManagerMTWorker::initializeG4(RunManagerMT* runManagerMaster, const edm:
if (uitype == "MessageLogger") {
m_UIsession = new CustomUIsession();
} else if (uitype == "MessageLoggerThreadPrefix") {
m_UIsession = new CustomUIsessionThreadPrefix(m_pCustomUIsession.getUntrackedParameter<std::string>("ThreadPrefix", ""), thisID);
m_UIsession = new CustomUIsessionThreadPrefix(
m_pCustomUIsession.getUntrackedParameter<std::string>("ThreadPrefix", ""), thisID);
} else if (uitype == "FilePerThread") {
m_UIsession = new CustomUIsessionToFile(m_pCustomUIsession.getUntrackedParameter<std::string>("ThreadFile", ""), thisID);
m_UIsession =
new CustomUIsessionToFile(m_pCustomUIsession.getUntrackedParameter<std::string>("ThreadFile", ""), thisID);
} else {
throw edm::Exception(edm::errors::Configuration)
<< "RunManagerMTWorker::initializeG4: Invalid value of CustomUIsession.Type '" << uitype
4 changes: 2 additions & 2 deletions SimG4Core/Geometry/src/DDG4ProductionCuts.cc
Original file line number Diff line number Diff line change
@@ -89,15 +89,15 @@ void DDG4ProductionCuts::initialize() {
if (num != 1) {
throw cms::Exception("SimG4CoreGeometry", " DDG4ProductionCuts::initialize: Problem with Region tags.");
return;
}
}
if (regionName != curName) {
edm::LogVerbatim("Geometry") << "DDG4ProductionCuts : regionName " << regionName << ", the store of size "
<< store->size();
region = store->FindOrCreateRegion(regionName);
edm::LogVerbatim("Geometry") << "DDG4ProductionCuts : region " << region->GetName();
if (nullptr == region) {
throw cms::Exception("SimG4CoreGeometry", " DDG4ProductionCuts::initialize: Problem with Region tags.");
return;
return;
}
curName = regionName;
edm::LogVerbatim("Geometry") << "DDG4ProductionCuts : new G4Region " << vv.first->GetName();

0 comments on commit 740798a

Please sign in to comment.