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)
list var
if using global norm cols_to_minmax = ['t_delta', 't_hmaxNearP','t_emaxNearP', 't_hAnnular', 't_eAnnular','t_pt','t_nVtx','t_ieta','t_eHcal10', 't_eHcal30','t_rhoh','t_eHcal'] df[cols_to_minmax] = df[cols_to_minmax].apply(lambda x: (x - x.min()) / (x.max() - x.min()) if (x.max() - x.min() > 0) else 1.0/200.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