21 produces<CaloRegionBxCollection>();
22 produces<CaloEmCandBxCollection>();
54 for (std::vector<L1CaloEmCand>::const_iterator em=ems->begin(); em!=ems->end(); ++em) {
56 if (bx < firstBx) firstBx = bx;
57 if (bx > lastBx) lastBx = bx;
60 emcands->setBXRange(firstBx, lastBx);
61 regions->setBXRange(firstBx, lastBx);
64 for (std::vector<L1CaloEmCand>::const_iterator em=ems->begin(); em!=ems->end(); ++em) {
71 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> >
p4(0,0,0,0);
76 (
int) em->regionId().ieta(),
77 (
int) em->regionId().iphi(),
80 EmCand.
setHwIso((
int) em->isolated());
84 emcands->push_back( em->bx(), EmCand );
89 for (std::vector<L1CaloRegion>::const_iterator rgn=rgns->begin(); rgn!=rgns->end(); ++rgn) {
97 bool tauVeto = rgn->fineGrain();
98 int hwQual = (
int) tauVeto;
100 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> >
p4(0,0,0,0);
109 (
int) rgn->id().ieta(),
110 (
int) rgn->id().iphi(),
116 regions->push_back( rgn->bx(), region );
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual void produce(edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
edm::EDGetToken rgnToken_
virtual void beginJob() override
~L1TCaloRCTToUpgradeConverter()
L1TCaloRCTToUpgradeConverter(const edm::ParameterSet &ps)
void addDefault(ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
virtual void endJob() override