19 double NeutralEMEt = 0.0;
20 double NeutralHadEt = 0.0;
21 double ChargedEMEt = 0.0;
22 double ChargedHadEt = 0.0;
30 if (!pfCand)
continue;
32 const double e = pfCand->
energy();
33 const double et = e*
sin(theta);
35 case 211: ChargedHadEt += et;
break;
36 case 11: ChargedEMEt += et;
break;
37 case 13: MuonEt += et;
break;
38 case 22: NeutralEMEt += et;
break;
39 case 130: NeutralHadEt += et;
break;
40 case 1: type6Et += et;
break;
41 case 2: type7Et += et;
break;
45 const double Et_total = NeutralEMEt + NeutralHadEt + ChargedEMEt + ChargedHadEt + MuonEt + type6Et + type7Et;
virtual double energy() const =0
energy
Sin< T >::type sin(const T &t)
Geom::Theta< T > theta() const
const_iterator begin() const
virtual double theta() const =0
momentum polar angle
Abs< T >::type abs(const T &t)
MET made from Particle Flow Candidates.
SpecificPFMETData run(const edm::View< reco::Candidate > &pfCands)
virtual int pdgId() const =0
PDG identifier.
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
const_iterator end() const