34 internalJetSource_(iConfig.getParameter<edm::
InputTag>(
"internalJetSource")),
35 centralBxOnly_(iConfig.getParameter<bool>(
"centralBxOnly"))
37 using namespace l1extra ;
39 produces< L1JetParticleCollection >(
"Internal" ) ;
50 using namespace l1extra ;
62 double etSumLSB = jetScale->linearLsb() ;
68 if( !hwIntJetCands.isValid() ) {
69 std::cout <<
"These aren't the Jets you're looking for" << std::endl;
73 <<
"\nrequested in configuration, but not found in the event."
78 L1GctInternJetDataCollection::const_iterator jetItr = hwIntJetCands->begin() ;
79 L1GctInternJetDataCollection::const_iterator jetEnd = hwIntJetCands->end() ;
81 for( i = 0 ; jetItr != jetEnd ; ++jetItr, ++
i ){
83 if( !jetItr->empty() &&
87 double et = (jetItr->oflow() ?
89 (
double) jetItr->et() ) * etSumLSB + 1.
e-6;
94 double eta = caloGeom->etaBinCenter( jetItr->regionId() );
95 double phi = caloGeom->emJetPhiBinCenter( jetItr->regionId() );
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
#define DEFINE_FWK_MODULE(type)
edm::InputTag internalJetSource_
~L1GctInternJetProducer()
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
L1GctInternJetProducer(const edm::ParameterSet &)
virtual void produce(edm::Event &, const edm::EventSetup &)