Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:27:53

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 '''
0004 
0005 Configuration for Pi Zero producer plugins.
0006 
0007 Author: Evan K. Friis, UC Davis
0008 
0009 
0010 '''
0011 
0012 DELTA_M_PIZERO = 'abs(mass() - 0.13579)'
0013 
0014 greedy = cms.PSet(
0015     name = cms.string('Greedy'),
0016     plugin = cms.string('RecoTauPiZeroStringQuality'),
0017     selection = cms.string(
0018         'algoIs("kStrips") || ' +
0019         '(abs(eta()) < 1.5 & %s < 0.05) || ' % DELTA_M_PIZERO +
0020         '(abs(eta()) > 1.5 & mass < 0.2)'),
0021     selectionPassFunction = cms.string('-1*numberOfDaughters()'),
0022     selectionFailValue = cms.double(1000)
0023 )
0024 
0025 
0026 isInStrip = cms.PSet(
0027     name = cms.string('InStrip'),
0028     plugin = cms.string('RecoTauPiZeroStringQuality'),
0029     #selection = cms.string('maxDeltaPhi() < %(phi)f && maxDeltaEta() < %(eta)f'%
0030                            #{'eta':builders.strips.stripEtaAssociationDistance.value(),
0031                             #'phi':builders.strips.stripPhiAssociationDistance.value() }),
0032     # Mike pointed out the max value of the strip can be greater than what the
0033     # intial cuts are and still be consistent.  Until there is a good way to
0034     # deal with this just cut on the algo name.
0035     selection = cms.string('algoIs("kStrips")'),
0036     selectionPassFunction = cms.string(DELTA_M_PIZERO),
0037     selectionFailValue = cms.double(1000)
0038 )
0039 
0040 nearPiZeroMassBarrel = cms.PSet(
0041     name = cms.string('nearPiZeroMass'),
0042     plugin = cms.string('RecoTauPiZeroStringQuality'),
0043     selection = cms.string('abs(eta()) < 1.5 & %s < 0.05' % DELTA_M_PIZERO),
0044     # Rank by closeness to piZero
0045     selectionPassFunction = cms.string(DELTA_M_PIZERO),
0046     selectionFailValue = cms.double(1000),
0047 )
0048 
0049 # Loose selection for endcap
0050 nearPiZeroMassEndcap = cms.PSet(
0051     name = cms.string('nearPiZeroMass'),
0052     plugin = cms.string('RecoTauPiZeroStringQuality'),
0053     selection = cms.string('abs(eta()) > 1.5 & mass() < 0.2'),
0054     # Rank by closeness to piZero
0055     selectionPassFunction = cms.string(DELTA_M_PIZERO),
0056     selectionFailValue = cms.double(1000),
0057 )
0058 
0059 legacyPFTauDecayModeSelection = cms.PSet(
0060     name = cms.string("PFTDM"),
0061     plugin = cms.string("RecoTauPiZeroStringQuality"),
0062     selection = cms.string('mass() < 0.2'),
0063     selectionPassFunction = cms.string(DELTA_M_PIZERO),
0064     selectionFailValue = cms.double(1000),
0065 )
0066