Skip to content

Commit

Permalink
BeamCalReco: seed random3 correctly, and also once in init
Browse files Browse the repository at this point in the history
  • Loading branch information
andresailer committed Apr 23, 2020
1 parent 1ef9b40 commit 2a37a6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/MarlinProcessors/src/BeamCalClusterReco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ void BeamCalClusterReco::init() {
streamlog_out(DEBUG6) << "Geometry:\n" << *m_BCG;

m_BCbackground = BeamCalBkg::Factory(m_bgMethodName, m_BCG);
m_BCbackground->setRandom3Seed(Global::EVENTSEEDER->getSeed(this));

//Fill BCPCuts object with cuts from the processor parameters
m_bcpCuts = new BCPCuts(m_startingRings, m_requiredRemainingEnergy, m_requiredClusterEnergy, m_minimumTowerSize,
Expand Down Expand Up @@ -386,7 +387,7 @@ void BeamCalClusterReco::processEvent( LCEvent * evt ) {
colBCal = nullptr;
}

m_BCbackground->setRandom3Seed(m_nEvt+Global::EVENTSEEDER->getSeed(this));
m_BCbackground->setRandom3Seed(Global::EVENTSEEDER->getSeed(this));

BCPadEnergies padEnergiesLeft(m_BCG, BCPadEnergies::kLeft);
BCPadEnergies padEnergiesRight(m_BCG, BCPadEnergies::kRight);
Expand Down

0 comments on commit 2a37a6b

Please sign in to comment.