Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoTauTag
TauTagTools
plugins
RecoTauIndexDiscriminatorProducer.cc
Go to the documentation of this file.
1
/*
2
* class RecoTauHashDiscriminatorProducer
3
* Author : Evan K. Friis (UC Davis)
4
*
5
* Helper utility module that produces a PFTauDiscriminator
6
* that only contains a unique identifier for a PFTau.
7
*
8
* Currently, it is only the index into the original colleciton.
9
*
10
*/
11
12
#include "
RecoTauTag/RecoTau/interface/TauDiscriminationProducerBase.h
"
13
14
class
RecoTauIndexDiscriminatorProducer
:
public
PFTauDiscriminationProducerBase
{
15
public
:
16
explicit
RecoTauIndexDiscriminatorProducer
(
const
edm::ParameterSet
& cfg)
17
:
PFTauDiscriminationProducerBase
(cfg) {}
18
~RecoTauIndexDiscriminatorProducer
(){}
19
double
discriminate
(
const
reco::PFTauRef
& thePFTauRef);
20
void
beginEvent
(
const
edm::Event
& evt,
const
edm::EventSetup
& evtSetup) {};
21
};
22
23
double
RecoTauIndexDiscriminatorProducer::discriminate
(
const
reco::PFTauRef
& thePFTauRef) {
24
return
thePFTauRef.
key
();
25
}
26
27
DEFINE_FWK_MODULE
(
RecoTauIndexDiscriminatorProducer
);
TauDiscriminationProducerBase.h
RecoTauIndexDiscriminatorProducer
Definition:
RecoTauIndexDiscriminatorProducer.cc:14
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
RecoTauIndexDiscriminatorProducer::RecoTauIndexDiscriminatorProducer
RecoTauIndexDiscriminatorProducer(const edm::ParameterSet &cfg)
Definition:
RecoTauIndexDiscriminatorProducer.cc:16
edm::EventSetup
Definition:
EventSetup.h:44
RecoTauIndexDiscriminatorProducer::beginEvent
void beginEvent(const edm::Event &evt, const edm::EventSetup &evtSetup)
Definition:
RecoTauIndexDiscriminatorProducer.cc:20
RecoTauIndexDiscriminatorProducer::~RecoTauIndexDiscriminatorProducer
~RecoTauIndexDiscriminatorProducer()
Definition:
RecoTauIndexDiscriminatorProducer.cc:18
TauDiscriminationProducerBase
Definition:
TauDiscriminationProducerBase.h:47
edm::Ref::key
key_type key() const
Accessor for product key.
Definition:
Ref.h:266
RecoTauIndexDiscriminatorProducer::discriminate
double discriminate(const reco::PFTauRef &thePFTauRef)
Definition:
RecoTauIndexDiscriminatorProducer.cc:23
edm::ParameterSet
Definition:
ParameterSet.h:35
edm::Event
Definition:
Event.h:50
edm::Ref< PFTauCollection >
Generated for CMSSW Reference Manual by
1.8.5