#include <JetCharge.h>
Public Types | |
typedef reco::Particle::LorentzVector | LorentzVector |
enum | Variable { Pt, RelPt, RelEta, DeltaR, Unit } |
typedef reco::Particle::Vector | Vector |
Public Member Functions | |
double | charge (const LorentzVector &lv, const reco::TrackCollection &vec) const |
double | charge (const LorentzVector &lv, const reco::TrackRefVector &vec) const |
double | charge (const LorentzVector &lv, const reco::CandidateCollection &vec) const |
double | charge (const reco::Candidate &parent) const |
JetCharge (Variable var, double exponent=1.0) | |
JetCharge (const edm::ParameterSet &iCfg) | |
Private Member Functions | |
template<typename T , typename C > | |
double | chargeFromRef (const LorentzVector &lv, const C &vec) const |
template<typename T , typename C > | |
double | chargeFromVal (const LorentzVector &lv, const C &vec) const |
template<typename T , typename IT > | |
double | chargeFromValIterator (const LorentzVector &lv, const IT &begin, const IT &end) const |
template<class T > | |
double | getWeight (const LorentzVector &lv, const T &obj) const |
Private Attributes | |
double | exp_ |
Variable | var_ |
Definition at line 18 of file JetCharge.h.
Definition at line 21 of file JetCharge.h.
Definition at line 22 of file JetCharge.h.
enum JetCharge::Variable |
Enumerator | |
---|---|
Pt | |
RelPt | |
RelEta | |
DeltaR | |
Unit |
Definition at line 20 of file JetCharge.h.
|
inline |
Definition at line 24 of file JetCharge.h.
References begin, patCaloMETCorrections_cff::C, charge(), chargeFromRef(), chargeFromVal(), chargeFromValIterator(), end, getWeight(), NewMuonAssociatorByHits_cfi::obj, and class-composition::parent.
JetCharge::JetCharge | ( | const edm::ParameterSet & | iCfg | ) |
Definition at line 19 of file JetCharge.cc.
References DeltaR, Exception, edm::ParameterSet::getParameter(), Pt, RelEta, RelPt, AlCaHLTBitMon_QueryRunRegistry::string, Unit, JetChargeProducer_cfi::var, and var_.
double JetCharge::charge | ( | const LorentzVector & | lv, |
const reco::TrackCollection & | vec | ||
) | const |
Definition at line 7 of file JetCharge.cc.
Referenced by JetCharge(), and JetChargeProducer::produce().
double JetCharge::charge | ( | const LorentzVector & | lv, |
const reco::TrackRefVector & | vec | ||
) | const |
Definition at line 11 of file JetCharge.cc.
double JetCharge::charge | ( | const LorentzVector & | lv, |
const reco::CandidateCollection & | vec | ||
) | const |
Definition at line 3 of file JetCharge.cc.
double JetCharge::charge | ( | const reco::Candidate & | parent | ) | const |
Definition at line 15 of file JetCharge.cc.
References reco::Candidate::begin(), reco::Candidate::end(), and reco::Candidate::p4().
|
private |
Definition at line 69 of file JetCharge.h.
References end, getWeight(), pileupDistInMC::num, NewMuonAssociatorByHits_cfi::obj, and w.
Referenced by JetCharge().
|
private |
|
private |
Definition at line 51 of file JetCharge.h.
References end, getWeight(), pileupDistInMC::num, NewMuonAssociatorByHits_cfi::obj, and w.
Referenced by JetCharge().
|
private |
Definition at line 82 of file JetCharge.h.
References funct::abs(), HiRegitMuonDetachedTripletStep_cff::DeltaR, exp_, cmsBatch::log, funct::pow(), Pt, RelEta, RelPt, mathSSE::sqrt(), Unit, and var_.
Referenced by chargeFromRef(), chargeFromValIterator(), and JetCharge().
|
private |
Definition at line 46 of file JetCharge.h.
Referenced by getWeight().
|
private |
Definition at line 46 of file JetCharge.h.
Referenced by getWeight(), and JetCharge().