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>(parent.
p4(),parent.
begin(),parent.
end());
21 exp_(iCfg.getParameter<double>(
"exp")) {
25 }
else if (var ==
"RelPt") {
27 }
else if (var ==
"RelEta") {
29 }
else if (var ==
"DeltaR") {
31 }
else if (var ==
"Unit") {
35 << var.c_str() <<
" for computing jet charge";
T getParameter(std::string const &) const
double charge(const LorentzVector &lv, const reco::TrackCollection &vec) const
std::vector< Track > TrackCollection
collection of Tracks
JetCharge(Variable var, double exponent=1.0)
virtual const_iterator end() const =0
last daughter const_iterator
reco::Particle::LorentzVector LorentzVector
virtual const_iterator begin() const =0
first daughter const_iterator
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector