#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, gen::C, charge(), chargeFromRef(), chargeFromVal(), chargeFromValIterator(), end, getWeight(), getGTfromDQMFile::obj, and class-composition::parent.
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::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 68 of file JetCharge.h.
References end, getWeight(), EgammaValidation_cff::num, getGTfromDQMFile::obj, and w.
Referenced by JetCharge().
|
private |
|
private |
Definition at line 50 of file JetCharge.h.
References end, getWeight(), EgammaValidation_cff::num, getGTfromDQMFile::obj, and w.
Referenced by JetCharge().
|
private |
Definition at line 81 of file JetCharge.h.
References funct::abs(), electronAnalyzer_cfi::DeltaR, exp_, dqm-mbProfile::log, funct::pow(), Pt, RelEta, RelPt, runTheMatrix::ret, mathSSE::sqrt(), Unit, and var_.
Referenced by chargeFromRef(), chargeFromValIterator(), and JetCharge().
|
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().