Skip to content

Commit a54ebc1

Browse files
committed
code format
1 parent 6860907 commit a54ebc1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

SimG4Core/Application/src/RunManagerMTWorker.cc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ RunManagerMTWorker::RunManagerMTWorker(const edm::ParameterSet& p, edm::Consumes
181181
m_G4CommandsEndRun(p.getParameter<std::vector<std::string>>("G4CommandsEndRun")),
182182
m_p(p) {
183183
int id = getThreadIndex();
184-
if (id > CurrentG4Track::NumberOfThreads()) { CurrentG4Track::setNumberOfThreads(id); }
184+
if (id > CurrentG4Track::NumberOfThreads()) {
185+
CurrentG4Track::setNumberOfThreads(id);
186+
}
185187
edm::LogVerbatim("SimG4CoreApplication") << "RunManagerMTWorker for the thread " << id;
186188

187189
// Initialize per-thread output
@@ -764,15 +766,14 @@ void RunManagerMTWorker::DumpMagneticField(const G4Field* field, const std::stri
764766
for (int k = 0; k <= nx; ++k) {
765767
double x = k * dx - rmax;
766768
for (int i = 0; i <= nx; ++i) {
767-
double y = i * dx - rmax;
769+
double y = i * dx - rmax;
768770
for (int j = 0; j <= nz; ++j) {
769-
double z = j * dz - zmax;
771+
double z = j * dz - zmax;
770772
point[0] = x;
771773
point[1] = y;
772774
point[2] = z;
773775
field->GetFieldValue(point, bfield);
774-
fout << x * d2 << " " << y * d2 << " " << z * d2 << " "
775-
<< bfield[0] * d3 << " " << bfield[1] * d3 << " "
776+
fout << x * d2 << " " << y * d2 << " " << z * d2 << " " << bfield[0] * d3 << " " << bfield[1] * d3 << " "
776777
<< bfield[2] * d3 << G4endl;
777778
}
778779
}

SimG4Core/Notification/src/CurrentG4Track.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ const G4Track* CurrentG4Track::track() { return m_track; }
1010
int CurrentG4Track::NumberOfThreads() { return m_nThreads; };
1111

1212
void CurrentG4Track::setNumberOfThreads(int n) { m_nThreads = n; };
13-

0 commit comments

Comments
 (0)