#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.
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, MetTreeProducer::var(), and var_.
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 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, getGTfromDQMFile::obj, and w.
|
private |
Definition at line 63 of file JetCharge.h.
|
private |
Definition at line 51 of file JetCharge.h.
References end, getWeight(), pileupDistInMC::num, getGTfromDQMFile::obj, and w.
|
private |
Definition at line 82 of file JetCharge.h.
References funct::abs(), HLT_25ns14e33_v1_cff::DeltaR, exp_, create_public_lumi_plots::log, funct::pow(), Pt, RelEta, RelPt, run_regression::ret, mathSSE::sqrt(), Unit, and var_.
Referenced by chargeFromRef(), and chargeFromValIterator().
|
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().