CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
PFTauDiscriminatorLogicalAndProducer Class Reference
Inheritance diagram for PFTauDiscriminatorLogicalAndProducer:
TauDiscriminationProducerBase< TauType, TauDiscriminator, TauDiscriminatorDataType, ConsumeType > edm::stream::EDProducer<>

Public Member Functions

double discriminate (const PFTauRef &pfTau) const override
 
 PFTauDiscriminatorLogicalAndProducer (const edm::ParameterSet &)
 
 ~PFTauDiscriminatorLogicalAndProducer () override
 
- Public Member Functions inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator, TauDiscriminatorDataType, ConsumeType >
virtual void beginEvent (const edm::Event &, const edm::EventSetup &)
 
virtual TauDiscriminatorDataType discriminate (const TauRef &tau) const =0
 
virtual void endEvent (edm::Event &)
 
void produce (edm::Event &, const edm::EventSetup &) override
 
 TauDiscriminationProducerBase ()
 
 TauDiscriminationProducerBase (const edm::ParameterSet &iConfig)
 
 ~TauDiscriminationProducerBase () override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator, TauDiscriminatorDataType, ConsumeType >
static void fillProducerDescriptions (edm::ParameterSetDescription &desc)
 
static std::string getTauTypeString ()
 helper method to retrieve tau type name, e.g. to build correct cfi getter More...
 

Private Attributes

double passResult_
 

Additional Inherited Members

- Public Types inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator, TauDiscriminatorDataType, ConsumeType >
typedef std::vector< TauType > TauCollection
 
typedef edm::Ref< TauCollectionTauRef
 
typedef edm::RefProd< TauCollectionTauRefProd
 
- Public Types inherited from edm::stream::EDProducer<>
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Protected Attributes inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator, TauDiscriminatorDataType, ConsumeType >
std::string moduleLabel_
 
double prediscriminantFailValue_
 
edm::EDGetTokenT< TauCollectionTau_token
 
size_t tauIndex_
 
edm::InputTag TauProducer_
 

Detailed Description

Definition at line 21 of file PFTauDiscriminatorLogicalAndProducer.cc.

Constructor & Destructor Documentation

◆ PFTauDiscriminatorLogicalAndProducer()

PFTauDiscriminatorLogicalAndProducer::PFTauDiscriminatorLogicalAndProducer ( const edm::ParameterSet iConfig)
explicit

◆ ~PFTauDiscriminatorLogicalAndProducer()

PFTauDiscriminatorLogicalAndProducer::~PFTauDiscriminatorLogicalAndProducer ( )
inlineoverride

Definition at line 24 of file PFTauDiscriminatorLogicalAndProducer.cc.

24 {};

Member Function Documentation

◆ discriminate()

double PFTauDiscriminatorLogicalAndProducer::discriminate ( const PFTauRef pfTau) const
override

Definition at line 38 of file PFTauDiscriminatorLogicalAndProducer.cc.

38  {
39  // if this function is called on a tau, it is has passed (in the base class)
40  // the set of prediscriminants, using the prescribed boolean operation. thus
41  // we only need to return TRUE
42  return passResult_;
43 }

References passResult_.

◆ fillDescriptions()

void PFTauDiscriminatorLogicalAndProducer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 45 of file PFTauDiscriminatorLogicalAndProducer.cc.

45  {
46  // PFTauDiscriminatorLogicalAndProducer
48 
49  {
51  psd0.add<std::string>("BooleanOperator", "and");
52  {
54  psd1.add<double>("cut", 0.5);
55  psd1.add<edm::InputTag>("Producer", edm::InputTag("pfRecoTauDiscriminationAgainstElectron"));
56  psd0.add<edm::ParameterSetDescription>("discr2", psd1);
57  }
58  {
60  psd1.add<double>("cut", 0.5);
61  psd1.add<edm::InputTag>("Producer", edm::InputTag("pfRecoTauDiscriminationByIsolation"));
62  psd0.add<edm::ParameterSetDescription>("discr1", psd1);
63  }
64  desc.add<edm::ParameterSetDescription>("Prediscriminants", psd0);
65  }
66 
67  desc.add<double>("PassValue", 1.0);
68  desc.add<double>("FailValue", 0.0);
69  desc.add<edm::InputTag>("PFTauProducer", edm::InputTag("pfRecoTauProducer"));
70  descriptions.add("PFTauDiscriminatorLogicalAndProducer", desc);
71 }

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), HLT_2018_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

Member Data Documentation

◆ passResult_

double PFTauDiscriminatorLogicalAndProducer::passResult_
private
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
PFTauDiscriminationProducerBase
TauDiscriminationProducerBase< reco::PFTau, reco::PFTauDiscriminator > PFTauDiscriminationProducerBase
Definition: TauDiscriminationProducerBase.h:124
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
PFTauDiscriminatorLogicalAndProducer::passResult_
double passResult_
Definition: PFTauDiscriminatorLogicalAndProducer.cc:29
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
edm::InputTag
Definition: InputTag.h:15
TauDiscriminationProducerBase::prediscriminantFailValue_
double prediscriminantFailValue_
Definition: TauDiscriminationProducerBase.h:102