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";
T getParameter(std::string const &) const
std::vector< Track > TrackCollection
collection of Tracks
JetCharge(Variable var, double exponent=1.0)
reco::Particle::LorentzVector LorentzVector
double charge(const LorentzVector &lv, const reco::TrackCollection &vec) const