Go to the documentation of this file.
127 std::vector<double> energyValues;
128 std::vector<double> energyErrorValues;
129 energyValues.reserve(egCollection->size());
130 energyErrorValues.reserve(egCollection->size());
149 for (reco::VertexCollection::const_iterator inV = inVertices.begin(); inV != inVertices.end(); ++inV) {
151 if (inV->ndof() >= 4 && inV->position().Rho() <= 2.0 && fabs(inV->z()) <= 24.0) {
162 rho = (*hRhoKt6PFJets);
164 for (reco::GsfElectronCollection::const_iterator egIter = egCandidates.begin(); egIter != egCandidates.end();
179 energyValues.push_back(
energy);
180 energyErrorValues.push_back(
error);
183 energyFiller.
insert(egCollection, energyValues.begin(), energyValues.end());
186 energyErrorFiller.
insert(egCollection, energyErrorValues.begin(), energyErrorValues.end());
187 energyErrorFiller.
fill();
edm::EDGetTokenT< reco::GsfElectronCollection > electronToken_
bool isInitialized() const
void insert(const H &h, I begin, I end)
double calculateRegressionEnergyUncertainty(const reco::GsfElectron *ele, SuperClusterHelper &mySCHelper, double rho, double nvertices, bool printDebug=false)
T const * product() const
bool filter(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< EcalRecHitCollection > recHitCollectionEEToken_
std::vector< Vertex > VertexCollection
collection of Vertex objects
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
T getUntrackedParameter(std::string const &, T const &) const
std::string nameEnergyReg_
const CaloTopology * ecalTopology_
#define DEFINE_FWK_MODULE(type)
~ElectronRegressionEnergyProducer() override
edm::EDGetTokenT< double > hRhoKt6PFJetsToken_
const CaloGeometry * caloGeometry_
ElectronEnergyRegressionType
ElectronEnergyRegressionEvaluate * regressionEvaluator
std::string regressionInputFile_
edm::EDGetTokenT< EcalRecHitCollection > recHitCollectionEBToken_
uint32_t energyRegressionType_
edm::EDGetTokenT< reco::VertexCollection > hVertexToken_
double calculateRegressionEnergy(const reco::GsfElectron *ele, SuperClusterHelper &mySCHelper, double rho, double nvertices, bool printDebug=false)
std::string nameEnergyErrorReg_
ElectronRegressionEnergyProducer(const edm::ParameterSet &)
T getParameter(std::string const &) const
void initialize(std::string weightsFile, ElectronEnergyRegressionEvaluate::ElectronEnergyRegressionType type)