示例#1
0
 def update(self,ignored) :
     self.value = utils.hackMap(self.cIso,
                      self.source[self.IsoCombined],
                      self.source[self.ESuperClusterEta]) if self.combined else \
                  utils.hackMap(self.relIso,
                      self.source[self.TrackIsoRel],
                      self.source[self.EcalIsoRel],
                      self.source[self.HcalIsoRel],
                      self.source[self.ESuperClusterEta])
示例#2
0
 def update(self,ignored) :
     self.value = utils.hackMap(self.combinedIso,
                                self.source[self.Dr03TkSumPt],
                                self.source[self.Dr03EcalRecHitSumEt],
                                self.source[self.Dr03HcalTowerSumEt],
                                self.source[self.P4],
                                self.source[self.ESuperClusterEta])
示例#3
0
文件: muon.py 项目: elaird/susycaf
 def update(self,ignored) :
     self.value = utils.hackMap(self.tight,
                      self.source[self.IsTrackerMuon],
                      self.source[self.IDGlobalMuonPromptTight],
                      self.source[self.NumberOfMatches],
                      self.source[self.InnerTrackNumberOfValidHits],
                      self.source[self.NumberOfValidPixelHits],
                      self.source[self.GlobalTrackDxy])    
示例#4
0
 def update(self, _):
     self.value = [
         i for i, a in enumerate(
             utils.hackMap(
                 self.accept, *[
                     self.source[getattr(self, item)]
                     for item in self.stashed
                 ])) if a
     ]
示例#5
0
 def update(self,ignored) :
     self.value = utils.hackMap(self.id, 
                      self.source[self.HcalOverEcal],
                      self.source[self.DeltaPhiSuperClusterTrackAtVtx],
                      self.source[self.DeltaEtaSuperClusterTrackAtVtx],
                      self.source[self.SigmaIetaIeta],
                      self.source[self.ConversionMissingHits],
                      self.source[self.ConversionDist],
                      self.source[self.ConversionDCot],
                      self.source[self.ESuperClusterEta])
示例#6
0
文件: photon.py 项目: elaird/susycaf
 def update(self, ignored):
     self.value = utils.hackMap(
         self.passId,
         self.source[self.p4Name],
         self.source[self.EcalRecHitEtConeDR04],
         self.source[self.HcalTowSumEtConeDR04],
         self.source[self.HadronicOverEm],
         self.source[self.TrkSumPtHollowConeDR04],
         self.source[self.SigmaIetaIeta],
         self.source[self.HasPixelSeed],
     )
示例#7
0
文件: muon.py 项目: elaird/susycaf
 def update(self,_) :
     vIndices = self.source["vertexIndices"]
     self.pvz = self.source["vertexPosition"][vIndices[0]].z() if len(vIndices) else 0
     self.value = utils.hackMap( self.id,
                                 self.source[self.IsGlobalMuon],
                                 self.source[self.IsTrackerMuon],
                                 self.source[self.GlobalTracknormalizedChi2],
                                 self.source[self.GlobalTracknumberOfValidTrackerHits],
                                 self.source[self.GlobalTracknumberOfValidHits],
                                 self.source[self.GlobalTrackDxy],
                                 self.source[self.Vertex],
                                 self.source[self.NumberOfPixelLayersWithMeasurement],
                                 self.source[self.NumberOfMatches] )
示例#8
0
文件: muon.py 项目: elaird/susycaf
 def update(self,ignored) :
     self.value = utils.hackMap(self.hcalreliso, self.source[self.HcalIso],self.source[self.P4] )
示例#9
0
文件: muon.py 项目: elaird/susycaf
 def update(self,ignored) :
     self.value = utils.hackMap(self.trackreliso, self.source[self.TrackIso],self.source[self.P4] )
示例#10
0
文件: muon.py 项目: elaird/susycaf
 def update(self,ignored) :
     self.value = utils.hackMap(self.combinedRelativeIso,
                      self.source[self.TrackIso],
                      self.source[self.EcalIso],
                      self.source[self.HcalIso],
                      self.source[self.P4])
示例#11
0
文件: jet.py 项目: elaird/susycaf
 def update(self,ignored) : 
     self.value = utils.hackMap(self.matrix , self.source[self.CorrectedP4] , self.source[self.Resolution] )
示例#12
0
文件: jet.py 项目: betchart/topref
 def update(self,_) :
     self.value = utils.hackMap(self.genIndex, self.source[self.AdjustedP4], self.source[self.GenFlavor])
示例#13
0
    def update(self,ignored) : self.value = utils.hackMap(self.relIso, self.source[self.isoSource], self.source[self.P4])
    
class TrackIsoRel(IsoRel) :
示例#14
0
文件: jet.py 项目: betchart/topref
 def update(self,_) : 
     self.value = utils.hackMap(self.matrix , self.source[self.AdjustedP4] , self.source[self.Resolution] )
示例#15
0
文件: muon.py 项目: betchart/topref
 def update(self,_) :
     self.value = [i for i,a in enumerate(utils.hackMap(self.accept,
                                                        *[self.source[getattr(self,item)] for item in self.stashed]))
                   if a]
示例#16
0
文件: jet.py 项目: betchart/topref
 def update(self, _):
     self.value = (utils.hackMap(
         self.jes, self.source[self.P4], self.source[self.JecFactor],
         self.source[self.JecUnc]) if self.source['isRealData'] else
                   utils.hackMap(self.smear, self.source[self.P4],
                                 self.source[self.Smear]))
示例#17
0
文件: jet.py 项目: betchart/topref
 def update(self, _):
     self.value = utils.hackMap(self.matrix, self.source[self.AdjustedP4],
                                self.source[self.Resolution])
示例#18
0
文件: jet.py 项目: betchart/topref
 def update(self, _):
     self.value = utils.hackMap(operator.add, self.source[self.Eta2Moment],
                                self.source[self.Phi2Moment])
示例#19
0
文件: jet.py 项目: betchart/topref
 def update(self, _):
     self.value = utils.hackMap(self.genIndex, self.source[self.AdjustedP4],
                                self.source[self.GenFlavor])
示例#20
0
文件: vertex.py 项目: elaird/susycaf
 def update(self,ignored) :
     self.value = utils.hackMap(self.id, self.source["vertexIsFake"],self.source["vertexNdof"],self.source["vertexPosition"])
示例#21
0
文件: jet.py 项目: betchart/topref
 def update(self,_) :
     self.value = sum(utils.hackMap(self.delta, *[self.source[getattr(self,item)] for item in self.stashed]), utils.LorentzV())
示例#22
0
文件: jet.py 项目: betchart/topref
 def update(self,_) :
     self.value = ( utils.hackMap(self.jes, self.source[self.P4], self.source[self.JecFactor], self.source[self.JecUnc]) if self.source['isRealData'] else
                    utils.hackMap(self.smear, self.source[self.P4], self.source[self.Smear]) )
示例#23
0
文件: jet.py 项目: elaird/susycaf
 def update(self,ignored) :
     #self.value = sum([p4.pt() for p4 in self.source[self.CorrectedP4]])
     self.value = sum(utils.hackMap(lambda p4: p4.pt(), self.source[self.CorrectedP4]))
示例#24
0
文件: jet.py 项目: betchart/topref
 def update(self,_) :
     self.value = utils.hackMap(operator.add,self.source[self.Eta2Moment],self.source[self.Phi2Moment])
示例#25
0
文件: jet.py 项目: elaird/susycaf
 def update(self, ignored) :
     self.value = utils.hackMap(self.res, self.source[self.CorrectedP4])
示例#26
0
文件: jet.py 项目: betchart/topref
 def update(self, _):
     self.value = sum(
         utils.hackMap(
             self.delta,
             *[self.source[getattr(self, item)] for item in self.stashed]),
         utils.LorentzV())
示例#27
0
文件: jet.py 项目: betchart/topref
 def update(self,_) :
     self.value = utils.hackMap( lambda x: x.pt(), self.source[self.AdjustedP4] )
示例#28
0
文件: muon.py 项目: betchart/topref
 def update(self,_) :
     self.value = utils.hackMap(self.passID,
                                *[self.source[getattr(self,item)] for item in self.stashed])
示例#29
0
文件: jet.py 项目: betchart/topref
 def update(self, _):
     self.value = utils.hackMap(lambda x: x.pt(),
                                self.source[self.AdjustedP4])