1 #ifndef RecoTauTag_RecoTau_TauDiscriminationProducerBase_H_
2 #define RecoTauTag_RecoTau_TauDiscriminationProducerBase_H_
50 template<
class TauType,
class TauDiscriminator>
126 <<
"Unsupported TauType used. You must use either PFTau, PATTau or CaloTaus.";
edm::EDGetTokenT< TauDiscriminator > disc_token
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
virtual double discriminate(const TauRef &tau) const =0
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()
TauDiscriminationProducerBase< pat::Tau, pat::PATTauDiscriminator > PATTauDiscriminationProducerBase
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_