@@ -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 }
0 commit comments