Example #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])
Example #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])
Example #3
0
 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])    
Example #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
     ]
Example #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])
Example #6
0
 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],
     )
Example #7
0
 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] )
Example #8
0
 def update(self,ignored) :
     self.value = utils.hackMap(self.hcalreliso, self.source[self.HcalIso],self.source[self.P4] )
Example #9
0
 def update(self,ignored) :
     self.value = utils.hackMap(self.trackreliso, self.source[self.TrackIso],self.source[self.P4] )
Example #10
0
 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])
Example #11
0
 def update(self,ignored) : 
     self.value = utils.hackMap(self.matrix , self.source[self.CorrectedP4] , self.source[self.Resolution] )
Example #12
0
 def update(self,_) :
     self.value = utils.hackMap(self.genIndex, self.source[self.AdjustedP4], self.source[self.GenFlavor])
Example #13
0
    def update(self,ignored) : self.value = utils.hackMap(self.relIso, self.source[self.isoSource], self.source[self.P4])
    
class TrackIsoRel(IsoRel) :
Example #14
0
 def update(self,_) : 
     self.value = utils.hackMap(self.matrix , self.source[self.AdjustedP4] , self.source[self.Resolution] )
Example #15
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]
Example #16
0
 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]))
Example #17
0
 def update(self, _):
     self.value = utils.hackMap(self.matrix, self.source[self.AdjustedP4],
                                self.source[self.Resolution])
Example #18
0
 def update(self, _):
     self.value = utils.hackMap(operator.add, self.source[self.Eta2Moment],
                                self.source[self.Phi2Moment])
Example #19
0
 def update(self, _):
     self.value = utils.hackMap(self.genIndex, self.source[self.AdjustedP4],
                                self.source[self.GenFlavor])
Example #20
0
 def update(self,ignored) :
     self.value = utils.hackMap(self.id, self.source["vertexIsFake"],self.source["vertexNdof"],self.source["vertexPosition"])
Example #21
0
 def update(self,_) :
     self.value = sum(utils.hackMap(self.delta, *[self.source[getattr(self,item)] for item in self.stashed]), utils.LorentzV())
Example #22
0
 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]) )
Example #23
0
 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]))
Example #24
0
 def update(self,_) :
     self.value = utils.hackMap(operator.add,self.source[self.Eta2Moment],self.source[self.Phi2Moment])
Example #25
0
 def update(self, ignored) :
     self.value = utils.hackMap(self.res, self.source[self.CorrectedP4])
Example #26
0
 def update(self, _):
     self.value = sum(
         utils.hackMap(
             self.delta,
             *[self.source[getattr(self, item)] for item in self.stashed]),
         utils.LorentzV())
Example #27
0
 def update(self,_) :
     self.value = utils.hackMap( lambda x: x.pt(), self.source[self.AdjustedP4] )
Example #28
0
 def update(self,_) :
     self.value = utils.hackMap(self.passID,
                                *[self.source[getattr(self,item)] for item in self.stashed])
Example #29
0
 def update(self, _):
     self.value = utils.hackMap(lambda x: x.pt(),
                                self.source[self.AdjustedP4])