#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::CandidateCollection &vec) const |
double | charge (const LorentzVector &lv, const reco::TrackCollection &vec) const |
double | charge (const LorentzVector &lv, const reco::TrackRefVector &vec) const |
double | charge (const reco::Candidate &parent) const |
JetCharge (const edm::ParameterSet &iCfg) | |
JetCharge (Variable var, double exponent=1.0) | |
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 |
|
inline |
JetCharge::JetCharge | ( | const edm::ParameterSet & | iCfg | ) |
Definition at line 20 of file JetCharge.cc.
References DeltaR, Exception, edm::ParameterSet::getParameter(), Pt, RelEta, RelPt, AlCaHLTBitMon_QueryRunRegistry::string, Unit, trigObjTnPSource_cfi::var, and var_.
double JetCharge::charge | ( | const LorentzVector & | lv, |
const reco::CandidateCollection & | vec | ||
) | const |
Definition at line 3 of file JetCharge.cc.
double JetCharge::charge | ( | const LorentzVector & | lv, |
const reco::TrackCollection & | vec | ||
) | const |
Definition at line 7 of file JetCharge.cc.
Referenced by 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 reco::Candidate & | parent | ) | const |
|
private |
Definition at line 68 of file JetCharge.h.
References mps_fire::end, getWeight(), EgammaValidation_cff::num, getGTfromDQMFile::obj, and w.
|
private |
Definition at line 62 of file JetCharge.h.
|
private |
Definition at line 50 of file JetCharge.h.
References mps_fire::end, getWeight(), EgammaValidation_cff::num, getGTfromDQMFile::obj, and w.
|
private |
Definition at line 81 of file JetCharge.h.
References funct::abs(), DeltaR, electronAnalyzer_cfi::DeltaR, exp_, dqm-mbProfile::log, getGTfromDQMFile::obj, funct::pow(), Pt, RelEta, RelPt, runTheMatrix::ret, mathSSE::sqrt(), Unit, and var_.
Referenced by chargeFromRef(), and chargeFromValIterator().
|
private |
Definition at line 47 of file JetCharge.h.
Referenced by getWeight().
|
private |
Definition at line 46 of file JetCharge.h.
Referenced by getWeight(), and JetCharge().