test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
TauNeuralClassifiers_cfi Namespace Reference

Functions

def UpdateCuts
 

Variables

dictionary dmCodeTrans
 
tuple RunTanc
 
tuple shrinkingConePFTauDiscriminationByTaNCfrHalfPercent = copy.deepcopy(TauDecayModeCutMutliplexerPrototype)
 
tuple shrinkingConePFTauDiscriminationByTaNCfrOnePercent = copy.deepcopy(TauDecayModeCutMutliplexerPrototype)
 
tuple shrinkingConePFTauDiscriminationByTaNCfrQuarterPercent = copy.deepcopy(TauDecayModeCutMutliplexerPrototype)
 
tuple shrinkingConePFTauDiscriminationByTaNCfrTenthPercent = copy.deepcopy(TauDecayModeCutMutliplexerPrototype)
 
tuple TauDecayModeCutMutliplexerPrototype
 

Function Documentation

def TauNeuralClassifiers_cfi.UpdateCuts (   producer,
  cut_set 
)

Definition at line 21 of file TauNeuralClassifiers_cfi.py.

21 
22 def UpdateCuts(producer, cut_set):
23  oldDecayModes = producer.decayModes
24  newDecayModes = cms.VPSet()
25  for dm in oldDecayModes:
26  cut = cut_set[dmCodeTrans[(dm.nCharged.value(), dm.nPiZeros.value())]]
27  cut += 1.0
28  cut /= 2.0
29  newDecayMode = copy.deepcopy(dm)
30  newDecayMode.cut = cms.double(cut)
31  newDecayModes.append(newDecayMode)
32  producer.decayModes = newDecayModes

Variable Documentation

dictionary TauNeuralClassifiers_cfi.dmCodeTrans
Initial value:
1 = {
2  (1,0) : 'OneProngNoPiZero',
3  (1,1) : 'OneProngOnePiZero',
4  (1,2) : 'OneProngTwoPiZero',
5  (3,0) : 'ThreeProngNoPiZero',
6  (3,1) : 'ThreeProngOnePiZero',
7 }

Definition at line 13 of file TauNeuralClassifiers_cfi.py.

tuple TauNeuralClassifiers_cfi.RunTanc
Initial value:
1 = cms.Sequence(
2  shrinkingConePFTauDiscriminationByTaNCfrOnePercent+
3  shrinkingConePFTauDiscriminationByTaNCfrHalfPercent+
4  shrinkingConePFTauDiscriminationByTaNCfrQuarterPercent+
5  shrinkingConePFTauDiscriminationByTaNCfrTenthPercent
6  )

Definition at line 78 of file TauNeuralClassifiers_cfi.py.

tuple TauNeuralClassifiers_cfi.shrinkingConePFTauDiscriminationByTaNCfrHalfPercent = copy.deepcopy(TauDecayModeCutMutliplexerPrototype)

Definition at line 69 of file TauNeuralClassifiers_cfi.py.

tuple TauNeuralClassifiers_cfi.shrinkingConePFTauDiscriminationByTaNCfrOnePercent = copy.deepcopy(TauDecayModeCutMutliplexerPrototype)

Definition at line 63 of file TauNeuralClassifiers_cfi.py.

tuple TauNeuralClassifiers_cfi.shrinkingConePFTauDiscriminationByTaNCfrQuarterPercent = copy.deepcopy(TauDecayModeCutMutliplexerPrototype)

Definition at line 72 of file TauNeuralClassifiers_cfi.py.

tuple TauNeuralClassifiers_cfi.shrinkingConePFTauDiscriminationByTaNCfrTenthPercent = copy.deepcopy(TauDecayModeCutMutliplexerPrototype)

Definition at line 75 of file TauNeuralClassifiers_cfi.py.

tuple TauNeuralClassifiers_cfi.TauDecayModeCutMutliplexerPrototype
Initial value:
1 = cms.EDProducer(
2  "RecoTauDecayModeCutMultiplexer",
3  PFTauProducer = cms.InputTag("shrinkingConePFTauProducer"),
4  toMultiplex = cms.InputTag('shrinkingConePFTauDiscriminationByTaNC'),
5  Prediscriminants = shrinkingConeLeadTrackFinding,
6  #computers = TaNC,
7  decayModes = cms.VPSet(
8  cms.PSet(
9  nCharged = cms.uint32(1),
10  nPiZeros = cms.uint32(0),
11  ),
12  cms.PSet(
13  nCharged = cms.uint32(1),
14  nPiZeros = cms.uint32(1),
15  ),
16  cms.PSet(
17  nCharged = cms.uint32(1),
18  nPiZeros = cms.uint32(2),
19  ),
20  cms.PSet(
21  nCharged = cms.uint32(3),
22  nPiZeros = cms.uint32(0),
23  ),
24  cms.PSet(
25  nCharged = cms.uint32(3),
26  nPiZeros = cms.uint32(1),
27  ),
28  )
29 )

Definition at line 33 of file TauNeuralClassifiers_cfi.py.