#include <TCTauCorrector.h>
Public Member Functions | |
int | algoComponent () |
int | allTauCandidates () |
math::XYZTLorentzVector | correctedP4 (const reco::CaloTau &) const |
virtual double | correction (const math::XYZTLorentzVector &) const |
get correction using Jet information only | |
double | correction (const reco::CaloTau &) const |
double | efficiency () |
virtual bool | eventRequired () const |
if correction needs event information | |
void | eventSetup (const edm::Event &, const edm::EventSetup &) const |
void | inputConfig (const edm::ParameterSet &) const |
int | statistics () |
TCTauCorrector (const edm::ParameterSet &fParameters) | |
TCTauCorrector () | |
virtual | ~TCTauCorrector () |
Private Member Functions | |
void | init () |
Private Attributes | |
TCTauAlgorithm * | tcTauAlgorithm |
tau energy corrections from tracks and calo info
16.4.2008/S.Lehti
Definition at line 21 of file TCTauCorrector.h.
TCTauCorrector::TCTauCorrector | ( | ) |
TCTauCorrector::TCTauCorrector | ( | const edm::ParameterSet & | fParameters | ) |
Definition at line 6 of file TCTauCorrector.cc.
References init(), and inputConfig().
{ init(); inputConfig(iConfig); }
TCTauCorrector::~TCTauCorrector | ( | ) | [virtual] |
Definition at line 10 of file TCTauCorrector.cc.
References tcTauAlgorithm.
{ delete tcTauAlgorithm; }
int TCTauCorrector::algoComponent | ( | ) |
Definition at line 81 of file TCTauCorrector.cc.
References TCTauAlgorithm::algoComponent(), and tcTauAlgorithm.
{ return tcTauAlgorithm->algoComponent(); }
int TCTauCorrector::allTauCandidates | ( | ) |
Definition at line 73 of file TCTauCorrector.cc.
References TCTauAlgorithm::allTauCandidates(), and tcTauAlgorithm.
{ return tcTauAlgorithm->allTauCandidates(); }
math::XYZTLorentzVector TCTauCorrector::correctedP4 | ( | const reco::CaloTau & | fJet | ) | const |
Definition at line 26 of file TCTauCorrector.cc.
References TCTauAlgorithm::recalculateEnergy(), and tcTauAlgorithm.
{ return tcTauAlgorithm->recalculateEnergy(fJet); }
double TCTauCorrector::correction | ( | const math::XYZTLorentzVector & | fJet | ) | const [virtual] |
get correction using Jet information only
Implements JetCorrector.
Definition at line 36 of file TCTauCorrector.cc.
{
return 0;
}
double TCTauCorrector::correction | ( | const reco::CaloTau & | fJet | ) | const |
Definition at line 57 of file TCTauCorrector.cc.
References reco::LeafCandidate::et(), TCTauAlgorithm::recalculateEnergy(), and tcTauAlgorithm.
{ if(fJet.et() == 0) return 0; math::XYZTLorentzVector corrected = tcTauAlgorithm->recalculateEnergy(fJet); return corrected.Et()/fJet.et(); }
double TCTauCorrector::efficiency | ( | ) |
Definition at line 69 of file TCTauCorrector.cc.
References TCTauAlgorithm::efficiency(), and tcTauAlgorithm.
{ return tcTauAlgorithm->efficiency(); }
bool TCTauCorrector::eventRequired | ( | ) | const [virtual] |
if correction needs event information
Implements JetCorrector.
Definition at line 65 of file TCTauCorrector.cc.
{ return true; }
void TCTauCorrector::eventSetup | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | const |
Definition at line 22 of file TCTauCorrector.cc.
References TCTauAlgorithm::eventSetup(), and tcTauAlgorithm.
{ tcTauAlgorithm->eventSetup(iEvent,iSetup); }
void TCTauCorrector::init | ( | void | ) | [private] |
Definition at line 14 of file TCTauCorrector.cc.
References tcTauAlgorithm.
Referenced by TCTauCorrector().
{ tcTauAlgorithm = new TCTauAlgorithm; }
void TCTauCorrector::inputConfig | ( | const edm::ParameterSet & | iConfig | ) | const |
Definition at line 18 of file TCTauCorrector.cc.
References TCTauAlgorithm::inputConfig(), and tcTauAlgorithm.
Referenced by TCTauCorrector().
{ tcTauAlgorithm->inputConfig(iConfig); }
int TCTauCorrector::statistics | ( | ) |
Definition at line 77 of file TCTauCorrector.cc.
References TCTauAlgorithm::statistics(), and tcTauAlgorithm.
{ return tcTauAlgorithm->statistics(); }
TCTauAlgorithm* TCTauCorrector::tcTauAlgorithm [private] |
Definition at line 49 of file TCTauCorrector.h.
Referenced by algoComponent(), allTauCandidates(), correctedP4(), correction(), efficiency(), eventSetup(), init(), inputConfig(), statistics(), and ~TCTauCorrector().