11 template<
class TauType,
class TauDiscriminator>
12 class TauDiscriminationByStringCut :
18 iConfig.getParameter<
std::
string>(
"cut"))) {
19 cutFailValue_ = ( iConfig.
exists(
"cutFailValue") ) ?
21 cutPassValue_ = ( iConfig.
exists(
"cutPassValue") ) ?
23 this->prediscriminantFailValue_ = cutFailValue_;
31 return ( (*cut_)(*tau) ) ? cutPassValue_ : cutFailValue_;
35 std::unique_ptr<StringCutObjectSelector<TauType> > cut_;
41 typedef TauDiscriminationByStringCut<reco::PFTau, reco::PFTauDiscriminator>
43 typedef TauDiscriminationByStringCut<reco::CaloTau, reco::CaloTauDiscriminator>
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
std::vector< TauType > TauCollection
bool exists(std::string const ¶meterName) const
checks if a parameter exists
edm::Ref< TauCollection > TauRef
TauDiscriminationByStringCut< reco::CaloTau, reco::CaloTauDiscriminator > CaloRecoTauDiscriminationByStringCut
virtual double discriminate(const TauRef &tau) const =0
TauDiscriminationByStringCut< reco::PFTau, reco::PFTauDiscriminator > PFRecoTauDiscriminationByStringCut