Skip to content

Commit

Permalink
update the B-Field configuration at beginRun in SimG4Core/GeometryPro…
Browse files Browse the repository at this point in the history
…ducer
  • Loading branch information
mmusich committed Aug 21, 2020
1 parent 9f54e0f commit 596d670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SimG4Core/GeometryProducer/src/GeometryProducer.cc
Expand Up @@ -102,7 +102,7 @@ void GeometryProducer::beginLuminosityBlock(edm::LuminosityBlock &, edm::EventSe
// updateMagneticField( es );
}

void GeometryProducer::beginRun(const edm::Run &, const edm::EventSetup &) {}
void GeometryProducer::beginRun(const edm::Run &run, const edm::EventSetup &es) { updateMagneticField(es); }

void GeometryProducer::endRun(const edm::Run &, const edm::EventSetup &) {}

Expand Down

0 comments on commit 596d670

Please sign in to comment.