15 using namespace pf2pat;
20 hfCalibFactor_ = iConfig.
getParameter<
double>(
"hfCalibFactor");
23 PFMETAlgo::~PFMETAlgo() {}
30 for (
unsigned i = 0;
i < pfCandidates.size();
i++) {
39 double phi = cand.
phi();
40 double cosphi =
cos(phi);
41 double sinphi =
sin(phi);
44 double sintheta =
sin(theta);
46 double et = E * sintheta;
47 double ex = et * cosphi;
48 double ey = et * sinphi;
55 double Et =
sqrt(sumEx * sumEx + sumEy * sumEy);
59 cout <<
"PFMETAlgo: mEx, mEy, mEt = " << missingEt.X() <<
", " << missingEt.Y() <<
", " << missingEt.T() << endl;
63 return MET(sumEt, missingEt, vertex);
T getUntrackedParameter(std::string const &, T const &) const
Sin< T >::type sin(const T &t)
Geom::Theta< T > theta() const
double theta() const final
momentum polar angle
Cos< T >::type cos(const T &t)
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
XYZPointD XYZPoint
point in space with cartesian internal representation
T getParameter(std::string const &) const
Particle reconstructed by the particle flow algorithm.
virtual ParticleType particleId() const
double phi() const final
momentum azimuthal angle
math::XYZTLorentzVector XYZTLorentzVector
double energy() const final
energy