Skip to content

Commit

Permalink
code check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Nov 29, 2021
1 parent 79a0d1c commit 6694c62
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SimG4Core/HelpfulWatchers/src/MonopoleSteppingAction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
MonopoleSteppingAction::MonopoleSteppingAction(edm::ParameterSet const &p) : actOnTrack(false), bZ(0) {
mode = p.getUntrackedParameter<bool>("ChangeFromFirstStep", true);
edm::LogVerbatim("SimG4CoreWatcher") << "MonopoleSeppingAction set mode for"
<< " start at first step to " << mode;
<< " start at first step to " << mode;
}

MonopoleSteppingAction::~MonopoleSteppingAction() {}
Expand All @@ -34,7 +34,7 @@ void MonopoleSteppingAction::beginRun(edm::EventSetup const &es) {
const GlobalPoint p(0, 0, 0);
bZ = (bField->inTesla(p)).z();
edm::LogVerbatim("SimG4CoreWatcher") << "Magnetic Field (X): " << (bField->inTesla(p)).x()
<< " Y: " << (bField->inTesla(p)).y() << " Z: " << bZ;
<< " Y: " << (bField->inTesla(p)).y() << " Z: " << bZ;
}

void MonopoleSteppingAction::update(const BeginOfRun *) {
Expand All @@ -56,8 +56,8 @@ void MonopoleSteppingAction::update(const BeginOfRun *) {
cMeVToKgMByS = CLHEP::e_SI * CLHEP::meter / (CLHEP::eV * CLHEP::c_light * CLHEP::second);
cInMByS = CLHEP::c_light * CLHEP::second / CLHEP::meter;
edm::LogVerbatim("SimG4CoreWatcher") << "MonopoleSeppingAction Constants:"
<< " MevToJoules = " << cMevToJ << ", MevToKgm/s = " << cMeVToKgMByS
<< ", c in m/s = " << cInMByS << ", mag. charge = " << magCharge;
<< " MevToJoules = " << cMevToJ << ", MevToKgm/s = " << cMeVToKgMByS
<< ", c in m/s = " << cInMByS << ", mag. charge = " << magCharge;
}

void MonopoleSteppingAction::update(const BeginOfTrack *trk) {
Expand Down

0 comments on commit 6694c62

Please sign in to comment.