CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
13 
14 namespace {
15 
16 class RecoTauIndexDiscriminatorProducer final : public PFTauDiscriminationProducerBase {
17  public:
18  explicit RecoTauIndexDiscriminatorProducer(const edm::ParameterSet& cfg)
20  ~RecoTauIndexDiscriminatorProducer(){}
21  double discriminate(const reco::PFTauRef& thePFTauRef) const override;
22  void beginEvent(const edm::Event& evt, const edm::EventSetup& evtSetup) override {};
23 };
24 
25 double RecoTauIndexDiscriminatorProducer::discriminate(const reco::PFTauRef& thePFTauRef) const {
26  return thePFTauRef.key();
27 }
28 
29 }
30 
31 DEFINE_FWK_MODULE(RecoTauIndexDiscriminatorProducer);
tuple cfg
Definition: looper.py:259
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
virtual double discriminate(const TauRef &tau) const =0
key_type key() const
Accessor for product key.
Definition: Ref.h:264
virtual void beginEvent(const edm::Event &evt, const edm::EventSetup &evtSetup)