4 return chargeFromVal<reco::Candidate, reco::CandidateCollection>(lv, vec);
8 return chargeFromVal<reco::Track, reco::TrackCollection>(lv, vec);
12 return chargeFromRef<reco::TrackRef, reco::TrackRefVector>(lv, vec);
16 return chargeFromValIterator<reco::Candidate, reco::Candidate::const_iterator>(
24 }
else if (var ==
"RelPt") {
26 }
else if (var ==
"RelEta") {
28 }
else if (var ==
"DeltaR") {
30 }
else if (var ==
"Unit") {
33 throw cms::Exception(
"Configuration error") <<
"Unknown variable " << var.c_str() <<
" for computing jet charge";
double charge(const LorentzVector &lv, const reco::TrackCollection &vec) const
std::vector< Track > TrackCollection
collection of Tracks
JetCharge(Variable var, double exponent=1.0)
const_iterator end() const
last daughter const_iterator
reco::Particle::LorentzVector LorentzVector
T getParameter(std::string const &) const
const_iterator begin() const
first daughter const_iterator
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector