19 double NeutralEMEt = 0.0;
20 double NeutralHadEt = 0.0;
21 double ChargedEMEt = 0.0;
22 double ChargedHadEt = 0.0;
27 for (
auto const& pfCandPtr : pfCands.
ptrs()) {
29 float weight = (weights !=
nullptr) ? (*weights)[pfCandPtr] : 1.0;
34 const double et = e *
sin(theta);
60 const double Et_total = NeutralEMEt + NeutralHadEt + ChargedEMEt + ChargedHadEt + MuonEt + type6Et + type7Et;
62 if (Et_total != 0.0) {
SpecificPFMETData run(const edm::View< reco::Candidate > &pfCands, edm::ValueMap< float > const *weights=nullptr)
virtual double energy() const =0
energy
Sin< T >::type sin(const T &t)
Geom::Theta< T > theta() const
virtual double theta() const =0
momentum polar angle
Abs< T >::type abs(const T &t)
MET made from Particle Flow Candidates.
virtual int pdgId() const =0
PDG identifier.
std::vector< Ptr< value_type > > const & ptrs() const
T get() const
get a component