55 |
|
'(chargedHadronIso+neutralHadronIso+photonIso%+.2f*puChargedHadronIso)/pt < %.2f'%(self.dBFactorMu, self.isoValues['mu']), |
56 |
|
'(isPFMuon && (isGlobalMuon || isTrackerMuon) )', |
57 |
|
], |
58 |
< |
'jet' : ['abs(eta)<2.5', # Careful! these jet cuts affect the typeI met corrections |
58 |
> |
'jet' : ['abs(eta)<2.5', |
59 |
|
'pt > 15.', |
60 |
|
# PF jet ID: |
61 |
|
'numberOfDaughters > 1', |
158 |
|
return |
159 |
|
|
160 |
|
def configPatJets(self) : |
161 |
+ |
sel = self.attr('selectedPatJets'+self.fix) |
162 |
+ |
self.process.selectedPatJetsForAnalysis = sel.clone( cut = ' && '.join(self.cuts['jet'])) |
163 |
+ |
self.patSeq.replace(sel,sel+self.process.selectedPatJetsForAnalysis) |
164 |
|
for mod,attr,val in [('patJets','discriminatorSources',[tags(tag+'BJetTagsAOD'+self.fix) for tag in self.btags]), |
165 |
|
('patJets','tagInfoSources',[tags(tag+'TagInfosAOD'+self.fix) for tag in self.taginfos]), |
166 |
|
('patJets','addTagInfos',True), |
167 |
< |
('selectedPatJets','cut', ' && '.join(self.cuts['jet'])), |
167 |
> |
('selectedPatJets','cut', ' pt > 10'), |
168 |
|
] : setattr( self.attr(mod+self.fix), attr, val ) |
169 |
|
self.show('selectedPatJets'+self.fix) |
170 |
+ |
self.show('selectedPatJetsForAnalysis') |
171 |
|
return |
172 |
|
|
173 |
|
def configLeptonFilter(self) : |
194 |
|
|
195 |
|
def removeCruft(self) : |
196 |
|
nothanks = [mod for mod in set(str(self.patSeq).split('+')) |
197 |
< |
if ( any( keyword in mod for keyword in ['count','Legacy','pfJetsPiZeros','ak7','soft','iterativeCone', |
197 |
> |
if ( any( keyword in mod for keyword in ['count','Legacy','pfJetsPiZeros','ak7','soft','iterativeCone','pfNoJet', |
198 |
|
'tauIsoDeposit','tauGenJet','hpsPFTau','tauMatch','pfTau','hpsSelection', |
199 |
|
'photonMatch','phPFIso','pfIsolatedPhotons','pfCandsNotInJet','pfCandMETcorr', |
200 |
|
'Negative','ToVertex','particleFlowDisplacedVertex', |