28 produces<edm::ValueMap<int>>(
"iEtaOriX");
29 produces<edm::ValueMap<int>>(
"iPhiOriY");
47 unsigned nSrc =
src->size();
54 std::vector<int> iEtaOriX(nSrc, 0);
55 std::vector<int> iPhiOriY(nSrc, 0);
57 for (
unsigned i = 0;
i < nSrc;
i++) {
59 auto detid =
obj->superCluster()->seed()->seed();
63 iEtaOriX[
i] = ebdetid.
ieta();
64 iPhiOriY[
i] = ebdetid.
iphi();
67 iEtaOriX[
i] = eedetid.
ix();
68 iPhiOriY[
i] = eedetid.
iy();
74 filleriEtaOriXV.
insert(
src, iEtaOriX.begin(), iEtaOriX.end());
75 filleriEtaOriXV.
fill();
80 filleriPhiOriYV.
insert(
src, iPhiOriY.begin(), iPhiOriY.end());
81 filleriPhiOriYV.
fill();
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
EGMSeedLocationProducer< pat::Electron > ElectronSeedLocationProducer
int iphi() const
get the crystal iphi
void insert(const H &h, I begin, I end)
EGMSeedLocationProducer(const edm::ParameterSet &iConfig)
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
int ieta() const
get the crystal ieta
edm::EDGetTokenT< edm::View< T > > src_
~EGMSeedLocationProducer() override
void addDefault(ParameterSetDescription const &psetDescription)
#define DEFINE_FWK_MODULE(type)
EGMSeedLocationProducer< pat::Photon > PhotonSeedLocationProducer
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override