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::auto_ptr<StringCutObjectSelector<TauType> > cut_;
41 typedef TauDiscriminationByStringCut<reco::PFTau, reco::PFTauDiscriminator>
43 typedef TauDiscriminationByStringCut<reco::CaloTau, reco::CaloTauDiscriminator>
T getParameter(std::string const &) const
edm::Ref< TauBxCollection > TauRef
#define DEFINE_FWK_MODULE(type)
std::vector< TauType > TauCollection
bool exists(std::string const ¶meterName) const
checks if a parameter exists
virtual double discriminate(const TauRef &tau) const =0
edm::Ref< TauCollection > TauRef
TauDiscriminationByStringCut< reco::CaloTau, reco::CaloTauDiscriminator > CaloRecoTauDiscriminationByStringCut
TauDiscriminationByStringCut< reco::PFTau, reco::PFTauDiscriminator > PFRecoTauDiscriminationByStringCut