CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFTauDiscriminatorLogicalAndProducer_cfi.py
Go to the documentation of this file.
1 '''
2 
3 Select PFTaus that pass either all (option "and") or at least one (option "or") discriminators specified in "Prediscriminants" list.
4 
5 
6 '''
7 
8 import FWCore.ParameterSet.Config as cms
9 
10 PFTauDiscriminatorLogicalAndProducer = cms.EDProducer("PFTauDiscriminatorLogicalAndProducer",
11  PFTauProducer = cms.InputTag("pfRecoTauProducer"),
12  Prediscriminants = cms.PSet(
13  BooleanOperator = cms.string("and"), # pass all discriminats in the list
14 # BooleanOperator = cms.string("or"), # pass at least one discriminat in the list
15  discr1 = cms.PSet(
16  Producer = cms.InputTag("pfRecoTauDiscriminationByIsolation"),
17  cut = cms.double(0.5)
18  ),
19  discr2 = cms.PSet(
20  Producer = cms.InputTag("pfRecoTauDiscriminationAgainstElectron"),
21  cut = cms.double(0.5)
22  )
23  ),
24  PassValue = cms.double(1.),
25  FailValue = cms.double(0.)
26 )