19 #include "Math/GenVector/VectorUtil.h" 28 cone_ (p.getParameter<double> (
"useTowersInCone")),
31 EtThreshold_ (p.getParameter<double> (
"EtMin")),
32 EThreshold_ (p.getParameter<double> (
"EMin")) {
34 produces<CaloTowerCollection>();
44 desc.
add<
double>((
"useTowersInCone"), 0.8);
45 desc.
add<
double>((
"EtMin"), 1.0);
46 desc.
add<
double>((
"EMin"), 1.0);
47 descriptions.
add((
"hltCaloTowerForEgamma"), desc);
60 auto cands = std::make_unique<CaloTowerCollection>();
61 cands->reserve(caloTowers->
size());
71 cands->push_back(*cal);
81 cands->push_back(*cal);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
virtual double eta() const final
momentum pseudorapidity
bool getByToken(EDGetToken token, Handle< PROD > &result) const
EgammaHLTCaloTowerProducer(const edm::ParameterSet &)
virtual double phi() const final
momentum azimuthal angle
virtual double energy() const final
energy
ParameterDescriptionBase * add(U const &iLabel, T const &value)
const double EtThreshold_
PtEtaPhiELorentzVectorD PtEtaPhiELorentzVector
Lorentz vector with cartesian internal representation.
const edm::EDGetTokenT< CaloTowerCollection > towers_
const edm::EDGetTokenT< edm::View< reco::Candidate > > l1isoseeds_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
const edm::EDGetTokenT< edm::View< reco::Candidate > > l1nonisoseeds_
double et(double vtxZ) const
void produce(edm::StreamID, edm::Event &, edm::EventSetup const &) const override final
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)