CMS 3D CMS Logo

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

Public Member Functions

void beginEvent () override
 
double operator() (const reco::PFTauRef &) const override
 
 RecoTauDiscriminantCleanerPlugin (const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
 
 ~RecoTauDiscriminantCleanerPlugin () override
 
- Public Member Functions inherited from reco::tau::RecoTauCleanerPlugin
 RecoTauCleanerPlugin (const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
 
 ~RecoTauCleanerPlugin () 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

edm::Handle< PFTauDiscriminatordiscriminator_
 
edm::EDGetTokenT< PFTauDiscriminatordiscriminator_token
 
edm::InputTag discriminatorSrc_
 

Detailed Description

Definition at line 16 of file RecoTauDiscriminantCleanerPlugin.cc.

Constructor & Destructor Documentation

◆ RecoTauDiscriminantCleanerPlugin()

reco::tau::RecoTauDiscriminantCleanerPlugin::RecoTauDiscriminantCleanerPlugin ( const edm::ParameterSet pset,
edm::ConsumesCollector &&  iC 
)

Definition at line 32 of file RecoTauDiscriminantCleanerPlugin.cc.

35  discriminatorSrc_ = pset.getParameter<edm::InputTag>("src");
36  discriminator_token = iC.consumes<PFTauDiscriminator>(discriminatorSrc_);
37  }

References discriminator_token, discriminatorSrc_, and muonDTDigis_cfi::pset.

◆ ~RecoTauDiscriminantCleanerPlugin()

reco::tau::RecoTauDiscriminantCleanerPlugin::~RecoTauDiscriminantCleanerPlugin ( )
inlineoverride

Definition at line 19 of file RecoTauDiscriminantCleanerPlugin.cc.

19 {}

Member Function Documentation

◆ beginEvent()

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

Reimplemented from reco::tau::RecoTauCleanerPlugin.

Definition at line 39 of file RecoTauDiscriminantCleanerPlugin.cc.

39  {
40  // Load our handle to the discriminators from the event
42  }

References discriminator_, discriminator_token, reco::tau::RecoTauEventHolderPlugin::evt(), and edm::Event::getByToken().

◆ operator()()

double reco::tau::RecoTauDiscriminantCleanerPlugin::operator() ( const reco::PFTauRef tau) const
overridevirtual

Implements reco::tau::RecoTauCleanerPlugin.

Definition at line 44 of file RecoTauDiscriminantCleanerPlugin.cc.

44  {
45  // Get the discriminator result for this tau. N.B. result is negated! lower
46  // = more "tau like"! This is opposite to the normal case.
47  double result = -(*discriminator_)[tau];
48  return result;
49  }

References mps_fire::result, and metsig::tau.

Member Data Documentation

◆ discriminator_

edm::Handle<PFTauDiscriminator> reco::tau::RecoTauDiscriminantCleanerPlugin::discriminator_
private

Definition at line 28 of file RecoTauDiscriminantCleanerPlugin.cc.

Referenced by beginEvent().

◆ discriminator_token

edm::EDGetTokenT<PFTauDiscriminator> reco::tau::RecoTauDiscriminantCleanerPlugin::discriminator_token
private

◆ discriminatorSrc_

edm::InputTag reco::tau::RecoTauDiscriminantCleanerPlugin::discriminatorSrc_
private
reco::tau::RecoTauEventHolderPlugin::evt
const edm::Event * evt() const
Definition: RecoTauPluginsCommon.cc:16
metsig::tau
Definition: SignAlgoResolutions.h:49
reco::tau::RecoTauDiscriminantCleanerPlugin::discriminator_token
edm::EDGetTokenT< PFTauDiscriminator > discriminator_token
Definition: RecoTauDiscriminantCleanerPlugin.cc:29
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:55
edm::Event::getByToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:539
reco::tau::RecoTauDiscriminantCleanerPlugin::discriminator_
edm::Handle< PFTauDiscriminator > discriminator_
Definition: RecoTauDiscriminantCleanerPlugin.cc:28
reco::tau::RecoTauCleanerPlugin::RecoTauCleanerPlugin
RecoTauCleanerPlugin(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
Definition: RecoTauBuilderPlugins.h:118
eostools.move
def move(src, dest)
Definition: eostools.py:511
mps_fire.result
result
Definition: mps_fire.py:311
reco::tau::RecoTauDiscriminantCleanerPlugin::discriminatorSrc_
edm::InputTag discriminatorSrc_
Definition: RecoTauDiscriminantCleanerPlugin.cc:27
edm::InputTag
Definition: InputTag.h:15
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27