1 #ifndef RecoEgamma_EgammaTools_EgammaRandomSeeds_h 2 #define RecoEgamma_EgammaTools_EgammaRandomSeeds_h 24 uint32_t
seed = 0, tries = 10;
26 seeder.generate(&seed,&seed+1); tries++;
27 }
while (seed == 0 && tries < 10);
28 return seed ? seed : iEvent.
id().
event() + 10000*objNr;
EventNumber_t event() const
LuminosityBlockNumber_t luminosityBlock() const
uint32_t getRandomSeedFromObj(const edm::Event &iEvent, const T &obj, size_t nrObjs, size_t objNr)
uint32_t getRandomSeedFromSC(const edm::Event &iEvent, const reco::SuperClusterRef scRef)