Go to the documentation of this file.
83 corfile.
Initialize(iSetup,
"/afs/cern.ch/user/b/bendavid/cmspublic/gbrv3ph.root");
94 iEvent.getByLabel(
"photons", hPhotonProduct);
99 iEvent.getByLabel(
"offlinePrimaryVerticesWithBS", hVertexProduct);
101 for (reco::PhotonCollection::const_iterator it = hPhotonProduct->begin(); it != hPhotonProduct->end(); ++it) {
105 printf(
"file: default = %5f, correction = %5f, uncertainty = %5f\n", it->energy(), corsfile.first, corsfile.second);
106 printf(
"db: default = %5f, correction = %5f, uncertainty = %5f\n", it->energy(), corsdb.first, corsdb.second);
void Initialize(const edm::EventSetup &iSetup, std::string regweights, bool weightsFromDB=false)
EGEnergyCorrector corfile
const EcalClusterLazyTools::ESGetTokens ecalClusterToolsESGetTokens_
~EGEnergyAnalyzer() override
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< EcalRecHitCollection > eeRHToken_
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< EcalRecHitCollection > ebRHToken_
void analyze(const edm::Event &, const edm::EventSetup &) override
EGEnergyAnalyzer(const edm::ParameterSet &)
Bool_t IsInitialized() const
std::pair< double, double > CorrectedEnergyWithError(const reco::Photon &p, const reco::VertexCollection &vtxcol, EcalClusterLazyTools &clustertools, const edm::EventSetup &es)
void addDefault(ParameterSetDescription const &psetDescription)