Skip to content

Commit

Permalink
make seed depend on jet eta and variation direction
Browse files Browse the repository at this point in the history
  • Loading branch information
kpedro88 committed Sep 1, 2017
1 parent 457804c commit e4d33c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PhysicsTools/PatUtils/interface/SmearedJetProducerT.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ class SmearedJetProducerT : public edm::stream::EDProducer<> {
unsigned int runNum_uint = static_cast <unsigned int> (event.id().run());
unsigned int lumiNum_uint = static_cast <unsigned int> (event.id().luminosityBlock());
unsigned int evNum_uint = static_cast <unsigned int> (event.id().event());
unsigned int jet0pt = uint32_t(jets.empty() ? 0 : jets[0].pt()/0.01);
std::uint32_t seed = jet0pt + (lumiNum_uint<<10) + (runNum_uint<<20) + evNum_uint;
unsigned int jet0eta = uint32_t(jets.empty() ? 0 : jets[0].eta()/0.01);
std::uint32_t seed = jet0eta + m_nomVar + (lumiNum_uint<<10) + (runNum_uint<<20) + evNum_uint;
m_random_generator.seed(seed);
}
}
Expand Down

0 comments on commit e4d33c5

Please sign in to comment.