1 #ifndef CalibratedElectronProducerRun2_h 2 #define CalibratedElectronProducerRun2_h 53 produces<std::vector<T> >();
71 std::unique_ptr<std::vector<T> >
out(
new std::vector<T>());
72 out->reserve(in->size());
75 const auto &
first = in->front();
78 uint32_t
seed = 0, tries = 10;
80 seeder.generate(&seed,&seed+1); tries++;
81 }
while (seed == 0 && tries < 10);
85 for (
const T &ele : *in) {
T getParameter(std::string const &) const
EventNumber_t event() const
CalibratedElectronProducerRun2T< reco::GsfElectron > CalibratedElectronProducerRun2
edm::EDGetTokenT< edm::View< T > > theElectronToken
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
CalibratedElectronProducerRun2T(const edm::ParameterSet &)
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::ESHandle< GBRForest > theGBRForestHandle
void produce(edm::Event &, const edm::EventSetup &) override
LuminosityBlockNumber_t luminosityBlock() const
void initPrivateRng(TRandom *rnd)
void calibrate(SimpleElectron &electron, edm::StreamID const &id=edm::StreamID::invalidStreamID()) const
EpCombinationTool theEpCombinationTool
CalibratedElectronProducerRun2T< pat::Electron > CalibratedPatElectronProducerRun2
std::unique_ptr< TRandom > theSemiDeterministicRng
StreamID streamID() const
std::string theGBRForestName
~CalibratedElectronProducerRun2T() override
T const * product() const
ElectronEnergyCalibratorRun2 theEnCorrectorRun2