18 produces<l1t::CaloRegionBxCollection>();
19 produces<l1t::CaloEmCandBxCollection>();
51 for (std::vector<L1CaloEmCand>::const_iterator em=ems->begin(); em!=ems->end(); ++em) {
53 if (bx < firstBx) firstBx = bx;
54 if (bx > lastBx) lastBx = bx;
57 emcands->setBXRange(firstBx, lastBx);
58 regions->setBXRange(firstBx, lastBx);
61 for (std::vector<L1CaloEmCand>::const_iterator em=ems->begin(); em!=ems->end(); ++em) {
68 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> >
p4(0,0,0,0);
73 (int) em->regionId().ieta(),
74 (int) em->regionId().iphi(),
78 emcands->push_back( em->bx(), EmCand );
83 for (std::vector<L1CaloRegion>::const_iterator rgn=rgns->begin(); rgn!=rgns->end(); ++rgn) {
91 bool tauVeto = rgn->tauVeto();
92 int hwQual = (int) tauVeto;
94 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> >
p4(0,0,0,0);
103 (int) rgn->id().ieta(),
104 (int) rgn->id().iphi(),
110 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)