CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
reco::tau::RecoTauEnergyRecoveryPlugin2 Class Reference
Inheritance diagram for reco::tau::RecoTauEnergyRecoveryPlugin2:
reco::tau::RecoTauModifierPlugin reco::tau::RecoTauEventHolderPlugin reco::tau::RecoTauNamedPlugin

Public Member Functions

void beginEvent () override
 
void operator() (PFTau &) const override
 
 RecoTauEnergyRecoveryPlugin2 (const edm::ParameterSet &, edm::ConsumesCollector &&iC)
 
 ~RecoTauEnergyRecoveryPlugin2 () override
 
- Public Member Functions inherited from reco::tau::RecoTauModifierPlugin
virtual void endEvent ()
 
 RecoTauModifierPlugin (const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
 
 ~RecoTauModifierPlugin () override
 
- Public Member Functions inherited from reco::tau::RecoTauEventHolderPlugin
edm::Eventevt ()
 
const edm::Eventevt () const
 
const edm::EventSetupevtSetup () const
 
 RecoTauEventHolderPlugin (const edm::ParameterSet &pset)
 
void setup (edm::Event &, const edm::EventSetup &)
 
 ~RecoTauEventHolderPlugin () override
 
- Public Member Functions inherited from reco::tau::RecoTauNamedPlugin
const std::string & name () const
 
 RecoTauNamedPlugin (const edm::ParameterSet &pset)
 
virtual ~RecoTauNamedPlugin ()
 

Private Attributes

double dRcone_
 

Detailed Description

Definition at line 38 of file RecoTauEnergyRecoveryPlugin2.cc.

Constructor & Destructor Documentation

◆ RecoTauEnergyRecoveryPlugin2()

reco::tau::RecoTauEnergyRecoveryPlugin2::RecoTauEnergyRecoveryPlugin2 ( const edm::ParameterSet cfg,
edm::ConsumesCollector &&  iC 
)
explicit

Definition at line 49 of file RecoTauEnergyRecoveryPlugin2.cc.

51  : RecoTauModifierPlugin(cfg, std::move(iC)), dRcone_(cfg.getParameter<double>("dRcone")) {}

◆ ~RecoTauEnergyRecoveryPlugin2()

reco::tau::RecoTauEnergyRecoveryPlugin2::~RecoTauEnergyRecoveryPlugin2 ( )
override

Definition at line 53 of file RecoTauEnergyRecoveryPlugin2.cc.

53 {}

Member Function Documentation

◆ beginEvent()

void reco::tau::RecoTauEnergyRecoveryPlugin2::beginEvent ( )
overridevirtual

Reimplemented from reco::tau::RecoTauModifierPlugin.

Definition at line 55 of file RecoTauEnergyRecoveryPlugin2.cc.

55 {}

◆ operator()()

void reco::tau::RecoTauEnergyRecoveryPlugin2::operator() ( PFTau tau) const
overridevirtual

Implements reco::tau::RecoTauModifierPlugin.

Definition at line 57 of file RecoTauEnergyRecoveryPlugin2.cc.

57  {
58  reco::Candidate::LorentzVector tauAltP4(0., 0., 0., 0.);
59 
60  std::vector<reco::CandidatePtr> pfJetConstituents = tau.jetRef()->getJetConstituents();
61  for (std::vector<reco::CandidatePtr>::const_iterator pfJetConstituent = pfJetConstituents.begin();
62  pfJetConstituent != pfJetConstituents.end();
63  ++pfJetConstituent) {
64  double dR = deltaR((*pfJetConstituent)->p4(), tau.p4());
65  if (dR < dRcone_)
66  tauAltP4 += (*pfJetConstituent)->p4();
67  }
68 
69  tau.setalternatLorentzVect(tauAltP4);
70  }

References reco::deltaR(), HGC3DClusterGenMatchSelector_cfi::dR, dRcone_, and metsig::tau.

Member Data Documentation

◆ dRcone_

double reco::tau::RecoTauEnergyRecoveryPlugin2::dRcone_
private

Definition at line 46 of file RecoTauEnergyRecoveryPlugin2.cc.

Referenced by operator()().

metsig::tau
Definition: SignAlgoResolutions.h:49
reco::tau::RecoTauModifierPlugin::RecoTauModifierPlugin
RecoTauModifierPlugin(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
Definition: RecoTauBuilderPlugins.h:106
looper.cfg
cfg
Definition: looper.py:297
eostools.move
def move(src, dest)
Definition: eostools.py:511
reco::deltaR
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Definition: deltaR.h:30
HGC3DClusterGenMatchSelector_cfi.dR
dR
Definition: HGC3DClusterGenMatchSelector_cfi.py:7
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
reco::tau::RecoTauEnergyRecoveryPlugin2::dRcone_
double dRcone_
Definition: RecoTauEnergyRecoveryPlugin2.cc:46