31 PFMETAlgo::~PFMETAlgo() { }
39 for(
unsigned i=0;
i<pfCandidates.size();
i++ ) {
50 double phi = cand.
phi();
51 double cosphi =
cos(phi);
52 double sinphi =
sin(phi);
55 double sintheta =
sin(theta);
57 double et = E*sintheta;
58 double ex = et*cosphi;
59 double ey = et*sinphi;
66 double Et =
sqrt( sumEx*sumEx + sumEy*sumEy);
70 cout<<
"PFMETAlgo: mEx, mEy, mEt = " 71 << missingEt.X() <<
", " 72 << missingEt.Y() <<
", " 73 << missingEt.T() <<endl;
77 return MET(sumEt, missingEt, vertex);
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
double theta() const final
momentum polar angle
Sin< T >::type sin(const T &t)
Geom::Theta< T > theta() const
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Cos< T >::type cos(const T &t)
double energy() const final
energy
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
XYZPointD XYZPoint
point in space with cartesian internal representation
et
define resolution functions of each parameter
Particle reconstructed by the particle flow algorithm.
virtual ParticleType particleId() const
double phi() const final
momentum azimuthal angle