68 emToken_{consumes<L1CaloEmCollection>(ps.getParameter<
edm::InputTag>(
"emTag"))},
69 rgnPutToken_{produces<CaloRegionBxCollection>()},
70 emPutToken_{produces<CaloEmCandBxCollection>()} {}
87 for (
auto const& em : ems) {
96 regions.setBXRange(firstBx, lastBx);
98 const ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > p4(0, 0, 0, 0);
101 for (
auto const& em : ems) {
109 CaloEmCand EmCand(p4, (
int)em.rank(), (
int)em.regionId().ieta(), (
int)em.regionId().iphi(), (
int)em.index());
111 EmCand.
setHwIso((
int)em.isolated());
119 for (
auto const& rgn : rgns) {
126 bool tauVeto = rgn.fineGrain();
135 (
int)rgn.id().ieta(),
136 (
int)rgn.id().iphi(),
T getParameter(std::string const &) const
edm::EDGetTokenT< L1CaloRegionCollection > const rgnToken_
L1TCaloRCTToUpgradeConverter(const edm::ParameterSet &ps)
void addDefault(ParameterSetDescription const &psetDescription)
edm::EDPutTokenT< CaloRegionBxCollection > const rgnPutToken_
edm::EDGetTokenT< L1CaloEmCollection > const emToken_
#define DEFINE_FWK_MODULE(type)
void setBXRange(int bxFirst, int bxLast)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
edm::EDPutTokenT< CaloEmCandBxCollection > const emPutToken_
void push_back(int bx, T object)