19 #include "Math/GenVector/VectorUtil.h"
25 using namespace l1extra ;
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);
61 cands->reserve(caloTowers->size());
63 for (
unsigned idx = 0;
idx < caloTowers->size();
idx++) {
68 for (l1extra::L1EmParticleCollection::const_iterator emItr = emIsolColl->begin(); emItr != emIsolColl->end() ;++emItr) {
69 double delta = ROOT::Math::VectorUtil::DeltaR((*emItr).p4().Vect(),
p);
71 cands->push_back(*cal);
78 for(l1extra::L1EmParticleCollection::const_iterator emItr = emNonIsolColl->begin(); emItr != emNonIsolColl->end() ;++emItr) {
79 double delta = ROOT::Math::VectorUtil::DeltaR((*emItr).p4().Vect(),
p);
81 cands->push_back(*cal);
virtual double energy() const GCC11_FINAL
energy
edm::EDGetTokenT< l1extra::L1EmParticleCollection > l1nonisoseeds_
edm::EDGetTokenT< CaloTowerCollection > towers_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
EgammaHLTCaloTowerProducer(const edm::ParameterSet &)
virtual float phi() const GCC11_FINAL
momentum azimuthal angle
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::EDGetTokenT< l1extra::L1EmParticleCollection > l1isoseeds_
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
PtEtaPhiELorentzVectorD PtEtaPhiELorentzVector
Lorentz vector with cartesian internal representation.
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void produce(edm::Event &e, const edm::EventSetup &) override
double et(double vtxZ) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)