template<typename T>
class CalibratedElectronProducerRun2T< T >
Definition at line 24 of file CalibratedElectronProducersRun2.cc.
Definition at line 60 of file CalibratedElectronProducersRun2.cc.
References ElectronEnergyCalibratorRun2::calibrate(), edm::EventID::event(), dqmdumpme::first, edm::EventSetup::get(), edm::Event::getByToken(), edm::EventBase::id(), recoMuon::in, EpCombinationTool::init(), createfilelist::int, edm::EventID::luminosityBlock(), M_PI, SiStripPI::max, eostools::move(), MillePedeFileConverter_cfg::out, edm::ESHandle< T >::product(), edm::Event::put(), edm::EventID::run(), SurveyInfoScenario_cff::seed, edm::Event::streamID(), CalibratedElectronProducerRun2T< T >::theElectronToken, CalibratedElectronProducerRun2T< T >::theEnCorrectorRun2, CalibratedElectronProducerRun2T< T >::theEpCombinationTool, CalibratedElectronProducerRun2T< T >::theGBRForestHandle, CalibratedElectronProducerRun2T< T >::theGBRForestName, and CalibratedElectronProducerRun2T< T >::theSemiDeterministicRng.
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
67 std::unique_ptr<std::vector<T> >
out(
new std::vector<T>());
68 out->reserve(in->size());
71 const auto &
first = in->front();
72 std::seed_seq seeder = {
int(iEvent.
id().
event()),
74 int(iEvent.
id().
run()),
78 uint32_t
seed = 0, tries = 10;
80 seeder.generate(&seed, &seed + 1);
82 }
while (seed == 0 && tries < 10);
86 for (
const T &ele : *in) {
EventNumber_t event() const
edm::EDGetTokenT< edm::View< T > > theElectronToken
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::ESHandle< GBRForest > theGBRForestHandle
LuminosityBlockNumber_t luminosityBlock() const
void calibrate(SimpleElectron &electron, edm::StreamID const &id=edm::StreamID::invalidStreamID()) const
EpCombinationTool theEpCombinationTool
std::unique_ptr< TRandom > theSemiDeterministicRng
StreamID streamID() const
std::string theGBRForestName
T const * product() const
ElectronEnergyCalibratorRun2 theEnCorrectorRun2