1 #ifndef RecoTauTag_RecoTau_TauDiscriminationProducerBase_H_
2 #define RecoTauTag_RecoTau_TauDiscriminationProducerBase_H_
47 template<
class TauType,
class TauDiscriminator>
116 <<
"Unsupported TauType used. You must use either PFTau or CaloTaus.";
edm::EDGetTokenT< TauDiscriminator > disc_token
virtual double discriminate(const TauRef &tau)=0
edm::RefProd< TauCollection > TauRefProd
bool getByToken(EDGetToken token, Handle< PROD > &result) const
TauDiscriminationProducerBase< reco::CaloTau, reco::CaloTauDiscriminator > CaloTauDiscriminationProducerBase
std::vector< TauType > TauCollection
TauDiscriminationProducerBase()
edm::Handle< TauDiscriminator > handle
std::vector< TauDiscInfo > prediscriminants_
edm::Ref< TauCollection > TauRef
uint8_t andPrediscriminants_
void produce(edm::Event &, const edm::EventSetup &)
virtual void endEvent(edm::Event &evt)
virtual ~TauDiscriminationProducerBase()
void fill(const edm::Event &evt)
edm::EDGetTokenT< TauCollection > Tau_token
std::string getProducerString()
helper function retrieve the correct cfi getter string (ie PFTauProducer)
TauDiscriminationProducerBase< reco::PFTau, reco::PFTauDiscriminator > PFTauDiscriminationProducerBase
virtual void beginEvent(const edm::Event &evt, const edm::EventSetup &evtSetup)
edm::InputTag TauProducer_
double prediscriminantFailValue_