1 #ifndef RecoTauTag_RecoTau_TauDiscriminationProducerBase_H_ 2 #define RecoTauTag_RecoTau_TauDiscriminationProducerBase_H_ 53 template<
class TauType,
class TauDiscriminator>
129 <<
"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
std::vector< TauDiscInfo > prediscriminants_
edm::Ref< TauCollection > TauRef
void produce(edm::Event &, const edm::EventSetup &) override
uint8_t andPrediscriminants_
static void fillProducerDescriptions(edm::ParameterSetDescription &desc)
TauDiscriminationProducerBase< pat::Tau, pat::PATTauDiscriminator > PATTauDiscriminationProducerBase
virtual void beginEvent(const edm::Event &, const edm::EventSetup &)
void fill(const edm::Event &evt)
edm::EDGetTokenT< TauCollection > Tau_token
std::string getProducerString()
helper function retrieve the correct cfi getter string (ie PFTauProducer)
virtual double discriminate(const TauRef &tau) const =0
TauDiscriminationProducerBase< reco::PFTau, reco::PFTauDiscriminator > PFTauDiscriminationProducerBase
~TauDiscriminationProducerBase() override
edm::InputTag TauProducer_
double prediscriminantFailValue_
virtual void endEvent(edm::Event &)