CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
TauDiscriminationByStringCut< TauType, TauDiscriminator > Class Template Reference
Inheritance diagram for TauDiscriminationByStringCut< TauType, TauDiscriminator >:
TauDiscriminationProducerBase< TauType, TauDiscriminator > edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

Public Types

typedef std::vector< TauType > TauCollection
 
typedef edm::Ref< TauCollectionTauRef
 
- Public Types inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator >
typedef std::vector< TauType > TauCollection
 
typedef edm::Ref< TauCollectionTauRef
 
typedef edm::RefProd
< TauCollection
TauRefProd
 
- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
typedef WorkerT< EDProducerWorkerType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 

Public Member Functions

double discriminate (const TauRef &tau)
 
 TauDiscriminationByStringCut (const edm::ParameterSet &iConfig)
 
- Public Member Functions inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator >
virtual void beginEvent (const edm::Event &evt, const edm::EventSetup &evtSetup)
 
virtual void endEvent (edm::Event &evt)
 
void produce (edm::Event &, const edm::EventSetup &)
 
 TauDiscriminationProducerBase (const edm::ParameterSet &iConfig)
 
 TauDiscriminationProducerBase ()
 
virtual ~TauDiscriminationProducerBase ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
boost::function< void(const
BranchDescription &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 

Private Attributes

std::auto_ptr
< StringCutObjectSelector
< TauType > > 
cut_
 
double cutFailValue_
 
double cutPassValue_
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::EDProducer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDProducer
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::ProducerBase
template<class TProducer , class TMethod >
void callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod)
 
- Protected Attributes inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator >
double prediscriminantFailValue_
 
edm::InputTag TauProducer_
 

Detailed Description

template<class TauType, class TauDiscriminator>
class TauDiscriminationByStringCut< TauType, TauDiscriminator >

Definition at line 11 of file TauDiscriminationByStringCut.cc.

Member Typedef Documentation

template<class TauType , class TauDiscriminator >
typedef std::vector<TauType> TauDiscriminationByStringCut< TauType, TauDiscriminator >::TauCollection

Definition at line 25 of file TauDiscriminationByStringCut.cc.

template<class TauType , class TauDiscriminator >
typedef edm::Ref<TauCollection> TauDiscriminationByStringCut< TauType, TauDiscriminator >::TauRef

Definition at line 26 of file TauDiscriminationByStringCut.cc.

Constructor & Destructor Documentation

template<class TauType , class TauDiscriminator >
TauDiscriminationByStringCut< TauType, TauDiscriminator >::TauDiscriminationByStringCut ( const edm::ParameterSet iConfig)
inlineexplicit

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_.

17  iConfig.getParameter<std::string>("cut"))) {
18  cutFailValue_ = ( iConfig.exists("cutFailValue") ) ?
19  iConfig.getParameter<double>("cutFailValue") : 0.;
20  cutPassValue_ = ( iConfig.exists("cutPassValue") ) ?
21  iConfig.getParameter<double>("cutPassValue") : 1.;
23  }
T getParameter(std::string const &) const
bool exists(std::string const &parameterName) const
checks if a parameter exists
std::auto_ptr< StringCutObjectSelector< TauType > > cut_

Member Function Documentation

template<class TauType , class TauDiscriminator >
double TauDiscriminationByStringCut< TauType, TauDiscriminator >::discriminate ( const TauRef tau)
inlinevirtual

Member Data Documentation

template<class TauType , class TauDiscriminator >
std::auto_ptr<StringCutObjectSelector<TauType> > TauDiscriminationByStringCut< TauType, TauDiscriminator >::cut_
private
template<class TauType , class TauDiscriminator >
double TauDiscriminationByStringCut< TauType, TauDiscriminator >::cutFailValue_
private
template<class TauType , class TauDiscriminator >
double TauDiscriminationByStringCut< TauType, TauDiscriminator >::cutPassValue_
private