Public Types | |
typedef std::vector< TauType > | TauCollection |
typedef edm::Ref< TauCollection > | TauRef |
Public Member Functions | |
double | discriminate (const TauRef &tau) |
TauDiscriminationByStringCut (const edm::ParameterSet &iConfig) | |
Private Attributes | |
std::auto_ptr < StringCutObjectSelector < TauType > > | cut_ |
double | cutFailValue_ |
double | cutPassValue_ |
Definition at line 11 of file TauDiscriminationByStringCut.cc.
typedef std::vector<TauType> TauDiscriminationByStringCut< TauType, TauDiscriminator >::TauCollection |
Reimplemented from TauDiscriminationProducerBase< TauType, TauDiscriminator >.
Definition at line 25 of file TauDiscriminationByStringCut.cc.
typedef edm::Ref<TauCollection> TauDiscriminationByStringCut< TauType, TauDiscriminator >::TauRef |
Reimplemented from TauDiscriminationProducerBase< TauType, TauDiscriminator >.
Definition at line 26 of file TauDiscriminationByStringCut.cc.
TauDiscriminationByStringCut< TauType, TauDiscriminator >::TauDiscriminationByStringCut | ( | const edm::ParameterSet & | iConfig | ) | [inline, explicit] |
Definition at line 14 of file TauDiscriminationByStringCut.cc.
References TauDiscriminationByStringCut< TauType, TauDiscriminator >::cutFailValue_, TauDiscriminationByStringCut< TauType, TauDiscriminator >::cutPassValue_, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), and TauDiscriminationProducerBase< TauType, TauDiscriminator >::prediscriminantFailValue_.
: TauDiscriminationProducerBase<TauType, TauDiscriminator>(iConfig), cut_(new StringCutObjectSelector<TauType>( iConfig.getParameter<std::string>("cut"))) { cutFailValue_ = ( iConfig.exists("cutFailValue") ) ? iConfig.getParameter<double>("cutFailValue") : 0.; cutPassValue_ = ( iConfig.exists("cutPassValue") ) ? iConfig.getParameter<double>("cutPassValue") : 1.; this->prediscriminantFailValue_ = cutFailValue_; }
double TauDiscriminationByStringCut< TauType, TauDiscriminator >::discriminate | ( | const TauRef & | tau | ) | [inline, virtual] |
Implements TauDiscriminationProducerBase< TauType, TauDiscriminator >.
Definition at line 28 of file TauDiscriminationByStringCut.cc.
References TauDiscriminationByStringCut< TauType, TauDiscriminator >::cut_, TauDiscriminationByStringCut< TauType, TauDiscriminator >::cutFailValue_, and TauDiscriminationByStringCut< TauType, TauDiscriminator >::cutPassValue_.
{ // StringCutObjectSelector::operator() returns true if tau passes cut return ( (*cut_)(*tau) ) ? cutPassValue_ : cutFailValue_; }
std::auto_ptr<StringCutObjectSelector<TauType> > TauDiscriminationByStringCut< TauType, TauDiscriminator >::cut_ [private] |
Definition at line 34 of file TauDiscriminationByStringCut.cc.
Referenced by TauDiscriminationByStringCut< TauType, TauDiscriminator >::discriminate().
double TauDiscriminationByStringCut< TauType, TauDiscriminator >::cutFailValue_ [private] |
Definition at line 35 of file TauDiscriminationByStringCut.cc.
Referenced by TauDiscriminationByStringCut< TauType, TauDiscriminator >::discriminate(), and TauDiscriminationByStringCut< TauType, TauDiscriminator >::TauDiscriminationByStringCut().
double TauDiscriminationByStringCut< TauType, TauDiscriminator >::cutPassValue_ [private] |
Definition at line 36 of file TauDiscriminationByStringCut.cc.
Referenced by TauDiscriminationByStringCut< TauType, TauDiscriminator >::discriminate(), and TauDiscriminationByStringCut< TauType, TauDiscriminator >::TauDiscriminationByStringCut().