68 emToken_{consumes<L1CaloEmCollection>(ps.getParameter<
edm::InputTag>(
"emTag"))},
69 rgnPutToken_{produces<CaloRegionBxCollection>()},
70 emPutToken_{produces<CaloEmCandBxCollection>()} {}
87 for (
auto const& em : ems) {
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();
127 int hwQual = (int)tauVeto;
135 (int)rgn.id().ieta(),
136 (int)rgn.id().iphi(),
edm::EDGetTokenT< L1CaloRegionCollection > const rgnToken_
#define DEFINE_FWK_MODULE(type)
L1TCaloRCTToUpgradeConverter(const edm::ParameterSet &ps)
void addDefault(ParameterSetDescription const &psetDescription)
edm::EDPutTokenT< CaloRegionBxCollection > const rgnPutToken_
edm::EDGetTokenT< L1CaloEmCollection > const emToken_
bool get(ProductID const &oid, Handle< PROD > &result) const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
T getParameter(std::string const &) const
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)