CMS 3D CMS Logo

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

Functions

def addCaloDiscriminator
 
def addCaloDiscriminatorSequence
 
def addCaloTauDiscriminationSequenceForChargedHiggs
 

Function Documentation

def CaloRecoTauDiscriminationForChargedHiggs_cfi.addCaloDiscriminator (   process,
  tau,
  name,
  module 
)

Definition at line 17 of file CaloRecoTauDiscriminationForChargedHiggs_cfi.py.

Referenced by addCaloDiscriminatorSequence().

17 
18 def addCaloDiscriminator(process, tau, name, module):
19  module.CaloTauProducer = cms.InputTag(tau+"Producer")
20  process.__setattr__(tau+name, module)
21  return module
def CaloRecoTauDiscriminationForChargedHiggs_cfi.addCaloDiscriminatorSequence (   process,
  tau 
)

Definition at line 22 of file CaloRecoTauDiscriminationForChargedHiggs_cfi.py.

References addCaloDiscriminator().

Referenced by addCaloTauDiscriminationSequenceForChargedHiggs().

22 
23 def addCaloDiscriminatorSequence(process, tau):
24  lst = []
25 
26  lst.append(addCaloDiscriminator(process, tau, "DiscriminationForChargedHiggsByLeadingTrackPtCut",
27  caloRecoTauDiscriminationByLeadingTrackPtCut.clone(
28  MinPtLeadingObject = cms.double(20.0),
29  )))
30 
31  lst.append(addCaloDiscriminator(process, tau, "DiscriminationByCharge",
32  caloRecoTauDiscriminationByCharge.clone()))
33 
34  # index -1 points to the last element in the list
35  lst.append(addCaloDiscriminator(process, tau, "DiscriminationForChargedHiggsByECALIsolation",
36  caloRecoTauDiscriminationByECALIsolation.clone()))
37  lst[-1].Prediscriminants.leadTrack.Producer = cms.InputTag(tau+'DiscriminationByLeadingTrackFinding')
38 
39  lst.append(addCaloDiscriminator(process, tau, "DiscriminationForChargedHiggsAgainstMuon",
40  caloRecoTauDiscriminationAgainstMuon.clone()))
41  lst[-1].Prediscriminants.leadTrack.Producer = cms.InputTag(tau+'DiscriminationByLeadingTrackFinding')
42 
43  lst.append(addCaloDiscriminator(process, tau, "DiscriminationByTauPolarization",
44  caloRecoTauDiscriminationByTauPolarization.clone()))
45  lst[-1].Prediscriminants.leadTrack.Producer = cms.InputTag(tau+'DiscriminationByLeadingTrackFinding')
46 
47  lst.append(addCaloDiscriminator(process, tau, "DiscriminationByDeltaE",
48  caloRecoTauDiscriminationByDeltaE.clone()))
49  lst[-1].Prediscriminants.leadTrack.Producer = cms.InputTag(tau+'DiscriminationByLeadingTrackFinding')
50 
51  lst.append(addCaloDiscriminator(process, tau, "DiscriminationByInvMass",
52  caloRecoTauDiscriminationByInvMass.clone()))
53  lst[-1].Prediscriminants.leadTrack.Producer = cms.InputTag(tau+'DiscriminationByLeadingTrackFinding')
54 
55  lst.append(addCaloDiscriminator(process, tau, "DiscriminationByFlightPathSignificance",
56  caloRecoTauDiscriminationByFlightPathSignificance.clone()))
57  lst[-1].Prediscriminants.leadTrack.Producer = cms.InputTag(tau+'DiscriminationByLeadingTrackFinding')
58 
59  lst.append(addCaloDiscriminator(process, tau, "DiscriminationBy1Prong",
60  caloRecoTauDiscriminationByNProngs.clone(
61  nProngs = cms.uint32(1)
62  )))
63  lst[-1].Prediscriminants.leadTrack.Producer = cms.InputTag(tau+'DiscriminationByLeadingTrackFinding')
64 
65  lst.append(addCaloDiscriminator(process, tau, "DiscriminationBy3Prongs",
66  caloRecoTauDiscriminationByNProngs.clone(
67  nProngs = cms.uint32(3)
68  )))
69  lst[-1].Prediscriminants.leadTrack.Producer = cms.InputTag(tau+'DiscriminationByLeadingTrackFinding')
70 
71  lst.append(addCaloDiscriminator(process, tau, "DiscriminationForChargedHiggsBy3ProngCombined",
72  caloRecoTauDiscriminationByNProngs.clone(
73  nProngs = cms.uint32(3),
74  Prediscriminants = cms.PSet(
75  BooleanOperator = cms.string("and"),
76  leadTrack = cms.PSet(
77  Producer = cms.InputTag(tau+'DiscriminationByLeadingTrackFinding'),
78  cut = cms.double(0.5)
79  ),
80  deltaE = cms.PSet(
81  Producer = cms.InputTag(tau+'DiscriminationByDeltaE'),
82  cut = cms.double(0.5)
83  ),
84  invMass = cms.PSet(
85  Producer = cms.InputTag(tau+'DiscriminationByInvMass'),
86  cut = cms.double(0.5)
87  ),
88  flightPathSig = cms.PSet(
89  Producer = cms.InputTag(tau+'DiscriminationByFlightPathSignificance'),
90  cut = cms.double(0.5)
91  )
92  )
93  )))
94  lst[-1].Prediscriminants.leadTrack.Producer = cms.InputTag(tau+'DiscriminationByLeadingTrackFinding')
95 
96  lst.append(addCaloDiscriminator(process, tau, "DiscriminationForChargedHiggsBy1or3Prongs",
97  caloRecoTauDiscriminationByLeadingTrackFinding.clone(
98  Prediscriminants = cms.PSet(
99  BooleanOperator = cms.string("or"),
100  oneProng = cms.PSet(
101  Producer = cms.InputTag(tau+'DiscriminationBy1Prong'),
102  cut = cms.double(0.5)
103  ),
104  threeProng = cms.PSet(
105  Producer = cms.InputTag(tau+'DiscriminationForChargedHiggsBy3ProngCombined'),
106  cut = cms.double(0.5)
107  )
108  )
109  )))
110  lst.append(addCaloDiscriminator(process, tau, "DiscriminationForChargedHiggs",
111  caloRecoTauDiscriminationByTrackIsolation.clone(
112  Prediscriminants = cms.PSet(
113  BooleanOperator = cms.string("and"),
114  leadingTrack = cms.PSet(
115  Producer = cms.InputTag(tau+'DiscriminationForChargedHiggsByLeadingTrackPtCut'),
116  cut = cms.double(0.5)
117  ),
118  charge = cms.PSet(
119  Producer = cms.InputTag(tau+'DiscriminationByCharge'),
120  cut = cms.double(0.5)
121  ),
122  ecalIsolation = cms.PSet(
123  Producer = cms.InputTag(tau+'DiscriminationForChargedHiggsByECALIsolation'),
124  cut = cms.double(0.5)
125  ),
126  electronVeto = cms.PSet(
127  Producer = cms.InputTag(tau+'DiscriminationAgainstElectron'),
128  cut = cms.double(0.5)
129  ),
130  polarization = cms.PSet(
131  Producer = cms.InputTag(tau+'DiscriminationByTauPolarization'),
132  cut = cms.double(0.5)
133  ),
134  prongs = cms.PSet(
135  Producer = cms.InputTag(tau+'DiscriminationForChargedHiggsBy1or3Prongs'),
136  cut = cms.double(0.5)
137  )
138  )
139  )))
140 
141  sequence = cms.Sequence()
142  for m in lst:
143  sequence *= m
144 
145  process.__setattr__(tau+"HplusDiscriminationSequence", sequence)
146  return sequence
def CaloRecoTauDiscriminationForChargedHiggs_cfi.addCaloTauDiscriminationSequenceForChargedHiggs (   process)

Definition at line 147 of file CaloRecoTauDiscriminationForChargedHiggs_cfi.py.

References addCaloDiscriminatorSequence().

149  process.CaloTauDiscriminationSequenceForChargedHiggs = cms.Sequence(
150  addCaloDiscriminatorSequence(process, "caloRecoTau")
151  )
152 
153  return process.CaloTauDiscriminationSequenceForChargedHiggs