00001 /* 00002 * class RecoTauHashDiscriminatorProducer 00003 * Author : Evan K. Friis (UC Davis) 00004 * 00005 * Helper utility module that produces a PFTauDiscriminator 00006 * that only contains a unique identifier for a PFTau. 00007 * 00008 * Currently, it is only the index into the original colleciton. 00009 * 00010 */ 00011 00012 #include "RecoTauTag/RecoTau/interface/TauDiscriminationProducerBase.h" 00013 00014 class RecoTauIndexDiscriminatorProducer : public PFTauDiscriminationProducerBase { 00015 public: 00016 explicit RecoTauIndexDiscriminatorProducer(const edm::ParameterSet& cfg) 00017 :PFTauDiscriminationProducerBase(cfg) {} 00018 ~RecoTauIndexDiscriminatorProducer(){} 00019 double discriminate(const reco::PFTauRef& thePFTauRef); 00020 void beginEvent(const edm::Event& evt, const edm::EventSetup& evtSetup) {}; 00021 }; 00022 00023 double RecoTauIndexDiscriminatorProducer::discriminate(const reco::PFTauRef& thePFTauRef) { 00024 return thePFTauRef.key(); 00025 } 00026 00027 DEFINE_FWK_MODULE(RecoTauIndexDiscriminatorProducer);