27 : internalJetSource_(iConfig.getParameter<edm::
InputTag>(
"internalJetSource")),
30 centralBxOnly_(iConfig.getParameter<bool>(
"centralBxOnly")) {
31 using namespace l1extra;
33 produces<L1JetParticleCollection>(
"Internal");
41 using namespace l1extra;
51 double etSumLSB = jetScale->linearLsb();
57 if (!hwIntJetCands.isValid()) {
58 std::cout <<
"These aren't the Jets you're looking for" << std::endl;
61 <<
"\nrequested in configuration, but not found in the event." << std::endl;
65 L1GctInternJetDataCollection::const_iterator jetItr = hwIntJetCands->begin();
66 L1GctInternJetDataCollection::const_iterator jetEnd = hwIntJetCands->end();
68 for (i = 0; jetItr != jetEnd; ++jetItr, ++
i) {
71 double et = (jetItr->oflow() ? (double)0xfff : (
double)jetItr->et()) * etSumLSB + 1.
e-6;
76 double eta = caloGeom->etaBinCenter(jetItr->regionId());
77 double phi = caloGeom->emJetPhiBinCenter(jetItr->regionId());
79 internJetColl->push_back(
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
#define DEFINE_FWK_MODULE(type)
edm::ESGetToken< L1CaloGeometry, L1CaloGeometryRecord > caloGeomToken_
edm::InputTag internalJetSource_
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
edm::ESGetToken< L1CaloEtScale, L1JetEtScaleRcd > jetScaleToken_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
L1GctInternJetProducer(const edm::ParameterSet &)
void produce(edm::Event &, const edm::EventSetup &) override
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
~L1GctInternJetProducer() override