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::EDConsumerBase 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 &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndex indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

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
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
- Protected Attributes inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator >
std::string moduleLabel_
 
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