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);
edm::EDGetTokenT< l1extra::L1EmParticleCollection > l1nonisoseeds_
edm::EDGetTokenT< CaloTowerCollection > towers_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual float phi() const
momentum azimuthal angle
EgammaHLTCaloTowerProducer(const edm::ParameterSet &)
virtual double energy() const
energy
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual float eta() const
momentum pseudorapidity
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::EDGetTokenT< l1extra::L1EmParticleCollection > l1isoseeds_
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)