20 produces<l1t::CaloRegionBxCollection>();
21 produces<l1t::CaloEmCandBxCollection>();
57 for (std::vector<L1CaloEmCand>::const_iterator em=ems->begin(); em!=ems->end(); ++em) {
59 if (bx < firstBx) firstBx = bx;
60 if (bx > lastBx) lastBx = bx;
63 emcands->setBXRange(firstBx, lastBx);
64 regions->setBXRange(firstBx, lastBx);
67 for (std::vector<L1CaloEmCand>::const_iterator em=ems->begin(); em!=ems->end(); ++em) {
74 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > *
p4 =
75 new ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> >();
80 (int) em->regionId().ieta(),
81 (int) em->regionId().iphi(),
85 emcands->push_back( em->bx(), EmCand );
90 for (std::vector<L1CaloRegion>::const_iterator rgn=rgns->begin(); rgn!=rgns->end(); ++rgn) {
98 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > *
p4 =
99 new ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> >();
108 (int) rgn->id().ieta(),
109 (int) rgn->id().iphi(),
115 regions->push_back( rgn->bx(), region );
T getParameter(std::string const &) const
L1TCaloRCTToUpgradeConverter(const edm::ParameterSet &ps)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
~L1TCaloRCTToUpgradeConverter()
edm::EDGetToken rgnToken_
virtual void produce(edm::Event &, const edm::EventSetup &) override
virtual void endJob() override
virtual void beginJob() override
void addDefault(ParameterSetDescription const &psetDescription)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)