CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
TCTauCorrector Class Reference

#include <TCTauCorrector.h>

Inheritance diagram for TCTauCorrector:
JetCorrector

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 More...
 
double correction (const reco::CaloTau &) const
 
double efficiency ()
 
virtual bool eventRequired () const
 if correction needs event information More...
 
void eventSetup (const edm::Event &, const edm::EventSetup &) const
 
void inputConfig (const edm::ParameterSet &, edm::ConsumesCollector &) const
 
int statistics ()
 
 TCTauCorrector ()
 
 TCTauCorrector (const edm::ParameterSet &fParameters, edm::ConsumesCollector &&iC)
 
virtual ~TCTauCorrector ()
 
- Public Member Functions inherited from JetCorrector
virtual double correction (const reco::Jet &fJet) const =0
 apply correction using Jet information only More...
 
virtual double correction (const reco::Jet &fJet, const edm::Event &fEvent, const edm::EventSetup &fSetup) const
 apply correction using all event information More...
 
virtual double correction (const reco::Jet &fJet, const edm::RefToBase< reco::Jet > &fJetRef, const edm::Event &fEvent, const edm::EventSetup &fSetup) const
 apply correction using all event information More...
 
virtual double correction (const reco::Jet &fJet, const edm::RefToBase< reco::Jet > &fJetRef, const edm::Event &fEvent, const edm::EventSetup &fSetup, LorentzVector &corrected) const
 Apply vectorial correction using all event information. More...
 
 JetCorrector ()
 
virtual bool refRequired () const =0
 if correction needs the jet reference More...
 
virtual bool vectorialCorrection () const
 if vectorial correction is provided More...
 
virtual ~JetCorrector ()
 

Private Member Functions

void init ()
 

Private Attributes

TCTauAlgorithmtcTauAlgorithm
 

Additional Inherited Members

- Public Types inherited from JetCorrector
typedef
reco::Particle::LorentzVector 
LorentzVector
 
- Static Public Member Functions inherited from JetCorrector
static const JetCorrectorgetJetCorrector (const std::string &fName, const edm::EventSetup &fSetup)
 retrieve corrector from the event setup. troughs exception if something is missing More...
 

Detailed Description

tau energy corrections from tracks and calo info

16.4.2008/S.Lehti

Definition at line 21 of file TCTauCorrector.h.

Constructor & Destructor Documentation

TCTauCorrector::TCTauCorrector ( )

Definition at line 3 of file TCTauCorrector.cc.

References init().

3  {
4  init();
5 }
TCTauCorrector::TCTauCorrector ( const edm::ParameterSet fParameters,
edm::ConsumesCollector &&  iC 
)

Definition at line 6 of file TCTauCorrector.cc.

References init(), and inputConfig().

6  {
7  init();
8  inputConfig(iConfig, iC);
9 }
void inputConfig(const edm::ParameterSet &, edm::ConsumesCollector &) const
TCTauCorrector::~TCTauCorrector ( )
virtual

Definition at line 10 of file TCTauCorrector.cc.

References tcTauAlgorithm.

10  {
11  delete tcTauAlgorithm;
12 }
TCTauAlgorithm * tcTauAlgorithm

Member Function Documentation

int TCTauCorrector::algoComponent ( )

Definition at line 81 of file TCTauCorrector.cc.

References TCTauAlgorithm::algoComponent(), and tcTauAlgorithm.

81  {
82  return tcTauAlgorithm->algoComponent();
83 }
TCTauAlgorithm * tcTauAlgorithm
int TCTauCorrector::allTauCandidates ( )

Definition at line 73 of file TCTauCorrector.cc.

References TCTauAlgorithm::allTauCandidates(), and tcTauAlgorithm.

73  {
75 }
TCTauAlgorithm * tcTauAlgorithm
math::XYZTLorentzVector TCTauCorrector::correctedP4 ( const reco::CaloTau fJet) const

Definition at line 26 of file TCTauCorrector.cc.

References TCTauAlgorithm::recalculateEnergy(), and tcTauAlgorithm.

26  {
27  return tcTauAlgorithm->recalculateEnergy(fJet);
28 }
math::XYZTLorentzVector recalculateEnergy(const reco::CaloTau &)
TCTauAlgorithm * tcTauAlgorithm
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.

36  {
37  return 0;
38 }
double TCTauCorrector::correction ( const reco::CaloTau fJet) const

Definition at line 57 of file TCTauCorrector.cc.

References reco::LeafCandidate::et(), TCTauAlgorithm::recalculateEnergy(), and tcTauAlgorithm.

57  {
58 
59  if(fJet.et() == 0) return 0;
60 
62  return corrected.Et()/fJet.et();
63 }
virtual double et() const
transverse energy
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
math::XYZTLorentzVector recalculateEnergy(const reco::CaloTau &)
TCTauAlgorithm * tcTauAlgorithm
double TCTauCorrector::efficiency ( )

Definition at line 69 of file TCTauCorrector.cc.

References TCTauAlgorithm::efficiency(), and tcTauAlgorithm.

69  {
70  return tcTauAlgorithm->efficiency();
71 }
double efficiency()
TCTauAlgorithm * tcTauAlgorithm
bool TCTauCorrector::eventRequired ( ) const
virtual

if correction needs event information

Implements JetCorrector.

Definition at line 65 of file TCTauCorrector.cc.

65  {
66  return true;
67 }
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.

22  {
23  tcTauAlgorithm->eventSetup(iEvent,iSetup);
24 }
void eventSetup(const edm::Event &, const edm::EventSetup &)
TCTauAlgorithm * tcTauAlgorithm
void TCTauCorrector::init ( void  )
private

Definition at line 14 of file TCTauCorrector.cc.

References tcTauAlgorithm.

Referenced by TCTauCorrector().

14  {
16 }
TCTauAlgorithm * tcTauAlgorithm
void TCTauCorrector::inputConfig ( const edm::ParameterSet iConfig,
edm::ConsumesCollector iC 
) const

Definition at line 18 of file TCTauCorrector.cc.

References TCTauAlgorithm::inputConfig(), and tcTauAlgorithm.

Referenced by TCTauCorrector().

18  {
19  tcTauAlgorithm->inputConfig(iConfig, iC);
20 }
TCTauAlgorithm * tcTauAlgorithm
void inputConfig(const edm::ParameterSet &iConfig, edm::ConsumesCollector &iC)
int TCTauCorrector::statistics ( )

Definition at line 77 of file TCTauCorrector.cc.

References TCTauAlgorithm::statistics(), and tcTauAlgorithm.

77  {
78  return tcTauAlgorithm->statistics();
79 }
TCTauAlgorithm * tcTauAlgorithm

Member Data Documentation

TCTauAlgorithm* TCTauCorrector::tcTauAlgorithm
private