CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
Jet.Jet Class Reference
Inheritance diagram for Jet.Jet:

Public Member Functions

def __init__
 
def btag
 
def btagWP
 
def jetID
 
def leadingTrack
 
def leadTrackPt
 
def looseJetId
 
def puJetId
 
def puMva
 
def rawFactor
 
def setRawFactor
 

Private Member Functions

def _physObjInit
 

Private Attributes

 _leadingTrack
 
 _leadingTrackSearched
 
 _rawFactorMultiplier
 

Detailed Description

Definition at line 37 of file Jet.py.

Constructor & Destructor Documentation

def Jet.Jet.__init__ (   self,
  args,
  kwargs 
)

Definition at line 38 of file Jet.py.

References Electron.Electron._physObjInit(), and Jet.Jet._physObjInit().

38 
39  def __init__(self, *args, **kwargs):
40  super(Jet, self).__init__(*args, **kwargs)
41  self._physObjInit()
def _physObjInit
Definition: Jet.py:42
def __init__
Definition: Jet.py:38

Member Function Documentation

def Jet.Jet._physObjInit (   self)
private

Definition at line 42 of file Jet.py.

Referenced by Jet.Jet.__init__().

42 
43  def _physObjInit(self):
45  self._leadingTrack = None
46  self._leadingTrackSearched = False
_leadingTrack
Definition: Jet.py:44
def _physObjInit
Definition: Jet.py:42
_rawFactorMultiplier
Definition: Jet.py:43
_leadingTrackSearched
Definition: Jet.py:45
def Jet.Jet.btag (   self,
  name 
)

Definition at line 99 of file Jet.py.

References pat::Jet.bDiscriminator().

99 
100  def btag(self,name):
101  return self.bDiscriminator(name)
def btag
Definition: Jet.py:99
def Jet.Jet.btagWP (   self,
  name 
)

Definition at line 102 of file Jet.py.

References pat::Jet.bDiscriminator().

103  def btagWP(self,name):
104  global _btagWPs
105  (disc,val) = _btagWPs[name]
106  return self.bDiscriminator(disc) > val
def btagWP
Definition: Jet.py:102
def Jet.Jet.jetID (   self,
  name = "" 
)

Definition at line 47 of file Jet.py.

References funct.abs(), reco::JPTJet.chargedEmEnergy(), reco::PFJet.chargedEmEnergy(), JetTester.chargedEmEnergy, pat::Jet.chargedEmEnergy(), reco::JPTJet.chargedHadronEnergy(), reco::PFJet.chargedHadronEnergy(), JetTester.chargedHadronEnergy, pat::Jet.chargedHadronEnergy(), reco::PFJet.chargedHadronMultiplicity(), JetTester.chargedHadronMultiplicity, pat::Jet.chargedHadronMultiplicity(), reco::JPTJet.chargedMultiplicity(), reco::PFJet.chargedMultiplicity(), JetTester.chargedMultiplicity, pat::Jet.chargedMultiplicity(), relval_parameters_module.energy, DBlmapWriter::_LMapRowHBEF.eta, res::HelperElectron.eta(), res::HelperMuon.eta(), res::HelperJet.eta(), MSLayersKeeperX0AtEta.eta(), muonisolation::NominalEfficiencyThresholds::ThresholdLocation.eta, RecoObj.eta, HcalCellType::HcalCell.eta, res::HelperMET.eta(), SimG4HcalHitCluster.eta(), Raddam_ch.eta, jetData.eta, SuperClusterHelper.eta(), Residual1DHit.eta, CaloHit.eta(), DDHCalTBZposAlgo.eta, DDHCalTestBeamAlgo.eta, MatchStruct.eta, HcalChannelId.eta, PtEtaPhiMass.eta(), BenchmarkTreeEntry.eta, HcalFlexiHardcodeGeometryLoader::HBHOCellParameters.eta, learn_.eta, ImpactPoint.eta, reco::isodeposit::Direction.eta(), L2TauPixelTrackMatch::TinyTrack.eta, EnergyResolutionVsLumi::DegradationAtEta.eta, TrackerValidationVariables::AVHitStruct.eta, egHLT::BinData.eta, ShallowClustersProducer::NearDigis.eta(), ElectronMVAEstimator.eta, LMapLoader::_LMapRowHBEF.eta, LMapRow.eta, DTMuonLocalAlignment.eta, HcalTestHistoClass::Hit.eta, ZMuMuIsolationAnalyzer.eta, HcalFlexiHardcodeGeometryLoader::HECellParameters.eta, PatTrackAnalyzer::Plots.eta, PHcalTB04Info.eta(), BeamProfileVtxGenerator.eta(), MaterialBudgetCastorHistos.eta, lhef::JetClustering::Jet.eta(), StripCPEgeometric::WrappedCluster.eta(), GloballyPositioned< float >.eta(), GloballyPositioned< align::Scalar >.eta(), GloballyPositioned< T >.eta(), RotationType.eta(), QcdLowPtDQM::Pixel.eta(), IdealZPrism.eta(), PHcalTB06Info::Hit.eta, IdealObliquePrism.eta(), jpt::Map.eta(), OnePiRange< T >.eta(), Geom::OnePiRange< T >.eta(), PGlobalSimHit::CalHit.eta, MaterialBudget.eta, HLTJetsCleanedFromLeadingLeptons< JetType >::EtaPhiE.eta(), L1MuGMTEtaLUT.eta(), TrackerValidationVariables::AVTrackStruct.eta, trigger::TriggerObject.eta(), FWPFCandidateDetailView.eta(), JetCalibrationParameterSetTauJet.eta(), MaterialBudgetForward.eta, XMLHTRZeroSuppressionLoader::_datasetDBConfig.eta, PFECALSuperClusterAlgo::CalibratedPFCluster.eta(), reco::GhostTrackPrediction.eta(), HcalDDDRecConstants::HcalActiveLength.eta, HcalTB02HistoClass.eta(), MaterialBudgetHcalHistos.eta, IsolatedPixelTrackCandidateProducer::seedAtEC.eta, reco::PattRecoPeak< double >.eta(), HcalFlexiHardcodeGeometryLoader::HFCellParameters.eta, reco::PattRecoPeak< float >.eta(), reco::PattRecoPeak< Real >.eta(), PattRecoPeak< Real >.eta(), SoftElectronMVAEstimator.eta, PGlobalSimHit::FwdHit.eta, reco::CaloMuon.eta(), PdtPdgMini.eta, PHcalTB06Info.eta(), HTrackVariables.eta(), SimpleL1MuGMTCand.eta(), CSCSP_SPblock.eta(), MuScleFitMuon.eta(), EleRelPoint.eta(), ValidationMisalignedTracker.eta, XMLProcessor::_LMapRowHBEF.eta, reco::CastorCell.eta(), HcalDDDRecConstantsTemp::HcalActiveLength.eta, cms::MinBias.eta, PhotonFix.eta(), L1MuDTEtaPattern.eta(), LMapDetId.eta, PGlobalSimHit::BrlHit.eta, PatPhotonSimpleAnalyzer::struct_recPhoton.eta, cms::Analyzer_minbias.eta, PhotonIDSimpleAnalyzer::struct_recPhoton.eta, reco::IsoDeposit.eta(), reco::CastorEgamma.eta(), reco::CastorJet.eta(), PV3DBase< float, VectorTag, LocalTag >.eta(), PV3DBase< float, PointTag, LocalTag >.eta(), PV3DBase< long double, PointTag, GlobalTag >.eta(), PV3DBase< float, VectorTag, MeasurementTag >.eta(), PV3DBase< float, PointTag, MeasurementTag >.eta(), PV3DBase< Scalar, VectorTag, GlobalTag >.eta(), PV3DBase< T, VectorTag, FrameTag >.eta(), PV3DBase< float, VectorTag, GlobalTag >.eta(), PV3DBase< Scalar, PointTag, GlobalTag >.eta(), PV3DBase< align::Scalar, PointTag, GlobalTag >.eta(), PV3DBase< float, PointTag, GlobalTag >.eta(), Point3DBase< U, LocalTag >.eta(), Vector3DBase< U, LocalTag >.eta(), Point3DBase< U, GlobalTag >.eta(), PV3DBase< T, PointTag, FrameTag >.eta(), Vector3DBase< U, FrameTag >.eta(), Vector3DBase< U, Frame >.eta(), Vector3DBase< T, Frame >.eta(), Point3DBase< U, Frame >.eta(), Vector3DBase< double, LocalTag >.eta(), PV3DBase< T, PVType, FrameType >.eta(), Vector3DBase< U, GlobalTag >.eta(), PV3DBase< T, PointTag, GlobalTag >.eta(), QcdLowPtDQM::Tracklet.eta(), Point3DBase< U, FrameTag >.eta(), Vector3DBase< T, FrameTag >.eta(), Point3DBase< T, Frame >.eta(), MuonDTLocalMillepedeAlgorithm.eta, L1MuDTTrack.eta(), L1MuDTEtaProcessor.eta(), HcalTB02Analysis.eta, EgammaTowerIsolationNew< NC >.eta, L1TDEMON.eta, MuonGmtPair.eta(), L1TdeGCT.eta, reco::PreId.eta(), reco::CastorCluster.eta(), Lepton.eta, reco::Candidate.eta(), egHLT::OffPho.eta(), JetPartonNamespace::JetPartonCalibrationParameterSet.eta(), reco::Particle.eta(), TrackingParticle.eta(), reco::ParticleState.eta(), L1GctInternJetData.eta(), pat::PackedGenParticle.eta(), egHLT::OffEle.eta(), EcalTestPulseAnalyzer.eta, EcalABAnalyzer.eta, MuonGeometryArrange::MGACollection.eta, pat::PackedCandidate.eta(), Basic3DVector< long double >.eta(), reco::LeafCandidate.eta(), CandidateWithRef< Ref >.eta(), EcalPerEvtLaserAnalyzer.eta, reco::IsoDeposit::const_iterator.eta(), Basic3DVector< align::Scalar >.eta(), Basic3DVector< Scalar >.eta(), Basic3DVector< double >.eta(), Basic3DVector< float >.eta(), Basic3DVector< T >.eta(), Basic3DVector< U >.eta(), Basic3DVector< float > mom GlobalVector.eta(), Basic3DVector< float > pos GlobalPoint.eta(), GoodSeedProducer.eta, reco::CaloCluster.eta(), EcalLaserAnalyzer.eta, RawParticle.eta(), EcalLaserAnalyzer2.eta, SiPixelErrorEstimation.eta, HLTEgamma::OpenHLTPhoton.eta, reco::TrackBase.eta(), HLTEgamma::OpenHLTElectron.eta, EcalSelectiveReadoutValidation::energiesEb_t.eta, EcalSelectiveReadoutValidation::energiesEe_t.eta, SiPixelTrackingRecHitsValid.eta, PMuonSimHit::Trk.eta, PTrackerSimHit::Trk.eta, JetTester.isPFJet, pat::Jet.isPFJet(), JetAnalyzer_HeavyIons.isPFJet, JetTester_HeavyIons.isPFJet, Jet.Jet.jetID(), JetMETHLTOfflineSource.jetID, ExoticaDQM.jetID, HLTJets.jetID, pat::Jet.jetID(), reco::PFJet.muonEnergy(), JetTester.muonEnergy, pat::Jet.muonEnergy(), reco::JPTJet.neutralEmEnergy(), reco::PFJet.neutralEmEnergy(), JetTester.neutralEmEnergy, pat::Jet.neutralEmEnergy(), reco::JPTJet.neutralHadronEnergy(), reco::PFJet.neutralHadronEnergy(), JetTester.neutralHadronEnergy, pat::Jet.neutralHadronEnergy(), reco::PFJet.neutralMultiplicity(), JetTester.neutralMultiplicity, pat::Jet.neutralMultiplicity(), CondFormats_SiPixelObjects::dictionary.p4, InvariantMassFromVertex.p4(), reco::PUSubMETCandInfo.p4(), lhef::JetClustering::Jet.p4(), tauImpactParameter::LorentzVectorParticle.p4(), MuScleFitMuon.p4(), reco::Candidate.p4(), reco::Particle.p4(), reco::ParticleState.p4(), pat::PackedGenParticle.p4(), TopDecaySubset.p4(), PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex.p4, pat::PackedCandidate.p4(), @578.p4, TrackingParticle.p4(), CandidateWithRef< Ref >.p4(), reco::LeafCandidate.p4(), PrimaryVertexAnalyzer4PU::simPrimaryVertex.p4, egHLT::OffPho.p4(), CaloTower.p4(), reco::tau::RecoTauConstructor.p4(), egHLT::OffEle.p4(), reco::Vertex.p4(), Electron.Electron.p4(), reco::Photon.p4(), reco::GsfElectron.p4(), and Jet.Jet.rawFactor().

Referenced by Jet.Jet.jetID(), and Jet.Jet.looseJetId().

47 
48  def jetID(self,name=""):
49  if not self.isPFJet():
50  raise RuntimeError, "jetID implemented only for PF Jets"
51  eta = abs(self.eta());
52  energy = (self.p4()*self.rawFactor()).energy();
53  chf = self.chargedHadronEnergy()/energy;
54  nhf = self.neutralHadronEnergy()/energy;
55  phf = self.neutralEmEnergy()/energy;
56  muf = self.muonEnergy()/energy;
57  elf = self.chargedEmEnergy()/energy;
58  chm = self.chargedHadronMultiplicity();
59  npr = self.chargedMultiplicity() + self.neutralMultiplicity();
60  #if npr != self.nConstituents():
61  # import pdb; pdb.set_trace()
62  if name == "POG_PFID":
63  if self.jetID("POG_PFID_Tight") : return 3;
64  elif self.jetID("POG_PFID_Medium") : return 2;
65  elif self.jetID("POG_PFID_Loose") : return 1;
66  else : return 0;
67 
68  if name == "POG_PFID_Loose": return (npr>1 and phf<0.99 and nhf<0.99 and muf < 0.8) and (eta>2.4 or (elf<0.99 and chf>0 and chm>0));
69  if name == "POG_PFID_Medium": return (npr>1 and phf<0.95 and nhf<0.95 and muf < 0.8) and (eta>2.4 or (elf<0.99 and chf>0 and chm>0));
70  if name == "POG_PFID_Tight": return (npr>1 and phf<0.90 and nhf<0.90 and muf < 0.8) and (eta>2.4 or (elf<0.90 and chf>0 and chm>0));
71  if name == "VBFHBB_PFID_Loose": return (npr>1 and phf<0.99 and nhf<0.99);
72  if name == "VBFHBB_PFID_Medium": return (npr>1 and phf<0.99 and nhf<0.99) and ((eta<=2.4 and nhf<0.9 and phf<0.9 and elf<0.99 and muf<0.99 and chf>0 and chm>0) or eta>2.4);
73  if name == "VBFHBB_PFID_Tight": return (npr>1 and phf<0.99 and nhf<0.99) and ((eta<=2.4 and nhf<0.9 and phf<0.9 and elf<0.70 and muf<0.70 and chf>0 and chm>0) or eta>2.4);
74  raise RuntimeError, "jetID '%s' not supported" % name
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
def jetID
Definition: Jet.py:47
def rawFactor
Definition: Jet.py:94
def Jet.Jet.leadingTrack (   self)

Definition at line 107 of file Jet.py.

References Jet.Jet._leadingTrack, Jet.Jet._leadingTrackSearched, reco::CompositePtrCandidate.daughterPtrVector(), and bookConverter.max.

Referenced by Jet.Jet.leadTrackPt().

108  def leadingTrack(self):
109  if self._leadingTrackSearched :
110  return self._leadingTrack
111  self._leadingTrackSearched = True
112  self._leadingTrack = max( self.daughterPtrVector() , key = lambda x : x.pt() if x.charge()!=0 else 0. )
113  if self._leadingTrack.charge()==0: #in case of "all neutral"
114  self._leadingTrack = None
115  return self._leadingTrack
_leadingTrack
Definition: Jet.py:44
def leadingTrack
Definition: Jet.py:107
_leadingTrackSearched
Definition: Jet.py:45
def Jet.Jet.leadTrackPt (   self)

Definition at line 116 of file Jet.py.

References Jet.Jet.leadingTrack().

117  def leadTrackPt(self):
118  lt=self.leadingTrack()
119  if lt :
120  return lt.pt()
121  else :
122  return 0.
def leadingTrack
Definition: Jet.py:107
def leadTrackPt
Definition: Jet.py:116
def Jet.Jet.looseJetId (   self)
PF Jet ID (loose operation point) [method provided for convenience only]

Definition at line 75 of file Jet.py.

References Jet.Jet.jetID(), JetMETHLTOfflineSource.jetID, ExoticaDQM.jetID, HLTJets.jetID, and pat::Jet.jetID().

75 
76  def looseJetId(self):
77  '''PF Jet ID (loose operation point) [method provided for convenience only]'''
78  return self.jetID("POG_PFID_Loose")
def looseJetId
Definition: Jet.py:75
def jetID
Definition: Jet.py:47
def Jet.Jet.puJetId (   self,
  label = "pileupJetId:fullDiscriminant" 
)
Full mva PU jet id

Definition at line 82 of file Jet.py.

References funct.abs(), DBlmapWriter::_LMapRowHBEF.eta, res::HelperElectron.eta(), res::HelperMuon.eta(), res::HelperJet.eta(), MSLayersKeeperX0AtEta.eta(), RecoObj.eta, muonisolation::NominalEfficiencyThresholds::ThresholdLocation.eta, HcalCellType::HcalCell.eta, res::HelperMET.eta(), SimG4HcalHitCluster.eta(), Raddam_ch.eta, jetData.eta, SuperClusterHelper.eta(), Residual1DHit.eta, CaloHit.eta(), DDHCalTBZposAlgo.eta, DDHCalTestBeamAlgo.eta, MatchStruct.eta, HcalChannelId.eta, PtEtaPhiMass.eta(), BenchmarkTreeEntry.eta, HcalFlexiHardcodeGeometryLoader::HBHOCellParameters.eta, learn_.eta, ImpactPoint.eta, reco::isodeposit::Direction.eta(), L2TauPixelTrackMatch::TinyTrack.eta, EnergyResolutionVsLumi::DegradationAtEta.eta, TrackerValidationVariables::AVHitStruct.eta, egHLT::BinData.eta, ShallowClustersProducer::NearDigis.eta(), ElectronMVAEstimator.eta, LMapLoader::_LMapRowHBEF.eta, LMapRow.eta, DTMuonLocalAlignment.eta, HcalTestHistoClass::Hit.eta, ZMuMuIsolationAnalyzer.eta, HcalFlexiHardcodeGeometryLoader::HECellParameters.eta, PatTrackAnalyzer::Plots.eta, PHcalTB04Info.eta(), BeamProfileVtxGenerator.eta(), MaterialBudgetCastorHistos.eta, lhef::JetClustering::Jet.eta(), GloballyPositioned< float >.eta(), GloballyPositioned< align::Scalar >.eta(), GloballyPositioned< T >.eta(), RotationType.eta(), QcdLowPtDQM::Pixel.eta(), IdealZPrism.eta(), PHcalTB06Info::Hit.eta, StripCPEgeometric::WrappedCluster.eta(), IdealObliquePrism.eta(), jpt::Map.eta(), OnePiRange< T >.eta(), Geom::OnePiRange< T >.eta(), PGlobalSimHit::CalHit.eta, MaterialBudget.eta, HLTJetsCleanedFromLeadingLeptons< JetType >::EtaPhiE.eta(), L1MuGMTEtaLUT.eta(), TrackerValidationVariables::AVTrackStruct.eta, trigger::TriggerObject.eta(), FWPFCandidateDetailView.eta(), JetCalibrationParameterSetTauJet.eta(), MaterialBudgetForward.eta, XMLHTRZeroSuppressionLoader::_datasetDBConfig.eta, PFECALSuperClusterAlgo::CalibratedPFCluster.eta(), reco::GhostTrackPrediction.eta(), HcalDDDRecConstants::HcalActiveLength.eta, HcalTB02HistoClass.eta(), MaterialBudgetHcalHistos.eta, IsolatedPixelTrackCandidateProducer::seedAtEC.eta, HcalFlexiHardcodeGeometryLoader::HFCellParameters.eta, reco::PattRecoPeak< double >.eta(), reco::PattRecoPeak< float >.eta(), PattRecoPeak< Real >.eta(), reco::PattRecoPeak< Real >.eta(), SoftElectronMVAEstimator.eta, PGlobalSimHit::FwdHit.eta, reco::CaloMuon.eta(), PHcalTB06Info.eta(), PdtPdgMini.eta, HTrackVariables.eta(), SimpleL1MuGMTCand.eta(), CSCSP_SPblock.eta(), MuScleFitMuon.eta(), ValidationMisalignedTracker.eta, EleRelPoint.eta(), HcalDDDRecConstantsTemp::HcalActiveLength.eta, reco::CastorCell.eta(), XMLProcessor::_LMapRowHBEF.eta, cms::MinBias.eta, PhotonFix.eta(), L1MuDTEtaPattern.eta(), LMapDetId.eta, PGlobalSimHit::BrlHit.eta, PatPhotonSimpleAnalyzer::struct_recPhoton.eta, cms::Analyzer_minbias.eta, PhotonIDSimpleAnalyzer::struct_recPhoton.eta, reco::IsoDeposit.eta(), reco::CastorEgamma.eta(), reco::CastorJet.eta(), Vector3DBase< T, Frame >.eta(), PV3DBase< align::Scalar, PointTag, GlobalTag >.eta(), PV3DBase< float, PointTag, GlobalTag >.eta(), QcdLowPtDQM::Tracklet.eta(), PV3DBase< T, PVType, FrameType >.eta(), Vector3DBase< U, GlobalTag >.eta(), PV3DBase< float, VectorTag, LocalTag >.eta(), PV3DBase< float, PointTag, LocalTag >.eta(), PV3DBase< float, PointTag, MeasurementTag >.eta(), PV3DBase< T, PointTag, GlobalTag >.eta(), PV3DBase< float, VectorTag, GlobalTag >.eta(), PV3DBase< T, PointTag, FrameTag >.eta(), Point3DBase< U, LocalTag >.eta(), Vector3DBase< U, LocalTag >.eta(), PV3DBase< Scalar, VectorTag, GlobalTag >.eta(), Point3DBase< T, Frame >.eta(), Vector3DBase< T, FrameTag >.eta(), Vector3DBase< U, FrameTag >.eta(), PV3DBase< long double, PointTag, GlobalTag >.eta(), Vector3DBase< U, Frame >.eta(), PV3DBase< Scalar, PointTag, GlobalTag >.eta(), Point3DBase< U, Frame >.eta(), Vector3DBase< double, LocalTag >.eta(), Point3DBase< U, FrameTag >.eta(), PV3DBase< float, VectorTag, MeasurementTag >.eta(), PV3DBase< T, VectorTag, FrameTag >.eta(), Point3DBase< U, GlobalTag >.eta(), L1MuDTEtaProcessor.eta(), L1MuDTTrack.eta(), MuonDTLocalMillepedeAlgorithm.eta, HcalTB02Analysis.eta, EgammaTowerIsolationNew< NC >.eta, L1TDEMON.eta, MuonGmtPair.eta(), L1TdeGCT.eta, reco::PreId.eta(), reco::CastorCluster.eta(), Lepton.eta, reco::Candidate.eta(), egHLT::OffPho.eta(), JetPartonNamespace::JetPartonCalibrationParameterSet.eta(), reco::Particle.eta(), TrackingParticle.eta(), L1GctInternJetData.eta(), reco::ParticleState.eta(), egHLT::OffEle.eta(), pat::PackedGenParticle.eta(), EcalTestPulseAnalyzer.eta, EcalABAnalyzer.eta, MuonGeometryArrange::MGACollection.eta, pat::PackedCandidate.eta(), Basic3DVector< long double >.eta(), CandidateWithRef< Ref >.eta(), reco::LeafCandidate.eta(), EcalPerEvtLaserAnalyzer.eta, reco::IsoDeposit::const_iterator.eta(), Basic3DVector< T >.eta(), Basic3DVector< float > pos GlobalPoint.eta(), Basic3DVector< align::Scalar >.eta(), Basic3DVector< Scalar >.eta(), Basic3DVector< double >.eta(), Basic3DVector< float > mom GlobalVector.eta(), Basic3DVector< U >.eta(), Basic3DVector< float >.eta(), GoodSeedProducer.eta, reco::CaloCluster.eta(), EcalLaserAnalyzer.eta, RawParticle.eta(), EcalLaserAnalyzer2.eta, SiPixelErrorEstimation.eta, reco::TrackBase.eta(), HLTEgamma::OpenHLTPhoton.eta, HLTEgamma::OpenHLTElectron.eta, EcalSelectiveReadoutValidation::energiesEb_t.eta, EcalSelectiveReadoutValidation::energiesEe_t.eta, SiPixelTrackingRecHitsValid.eta, PMuonSimHit::Trk.eta, PTrackerSimHit::Trk.eta, and Jet.Jet.puMva().

82 
83  def puJetId(self, label="pileupJetId:fullDiscriminant"):
84  '''Full mva PU jet id'''
85 
86  puMva = self.puMva(label)
87  wp = loose_53X_WP
88  eta = abs(self.eta())
89 
90  for etamin, etamax, cut in wp:
91  if not(eta>=etamin and eta<etamax):
92  continue
93  return puMva>cut
def puMva
Definition: Jet.py:79
def puJetId
Definition: Jet.py:82
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
def Jet.Jet.puMva (   self,
  label = "pileupJetId:fullDiscriminant" 
)

Definition at line 79 of file Jet.py.

References pat::PATObject< ObjectType >.userFloat(), Lepton< LeptonType >.userFloat(), pat::PATObject< reco::Muon >.userFloat(), pat::PATObject< reco::LeafCandidate >.userFloat(), pat::PATObject< reco::GsfElectron >.userFloat(), pat::PATObject< reco::MET >.userFloat(), pat::PATObject< reco::Photon >.userFloat(), pat::PATObject< reco::RecoCandidate >.userFloat(), pat::PATObject< reco::BaseTau >.userFloat(), pat::PATObject< reco::PFCandidate >.userFloat(), pat::PATObject< reco::CompositeCandidate >.userFloat(), pat::PATObject< LeptonType >.userFloat(), and pat::PATObject< reco::Jet >.userFloat().

Referenced by Jet.Jet.puJetId().

79 
80  def puMva(self, label="pileupJetId:fullDiscriminant"):
81  return self.userFloat(label)
def puMva
Definition: Jet.py:79
def Jet.Jet.rawFactor (   self)

Definition at line 94 of file Jet.py.

References Jet.Jet._rawFactorMultiplier, pat::Jet.jecFactor(), and pat::Tau.jecFactor().

Referenced by Jet.Jet.jetID().

94 
95  def rawFactor(self):
return self.jecFactor('Uncorrected') * self._rawFactorMultiplier
_rawFactorMultiplier
Definition: Jet.py:43
def rawFactor
Definition: Jet.py:94
def Jet.Jet.setRawFactor (   self,
  factor 
)

Definition at line 96 of file Jet.py.

References Jet.Jet._rawFactorMultiplier, pat::Jet.jecFactor(), and pat::Tau.jecFactor().

96 
97  def setRawFactor(self, factor):
98  self._rawFactorMultiplier = factor/self.jecFactor('Uncorrected')
def setRawFactor
Definition: Jet.py:96
_rawFactorMultiplier
Definition: Jet.py:43

Member Data Documentation

Jet.Jet._leadingTrack
private

Definition at line 44 of file Jet.py.

Referenced by Jet.Jet.leadingTrack().

Jet.Jet._leadingTrackSearched
private

Definition at line 45 of file Jet.py.

Referenced by Jet.Jet.leadingTrack().

Jet.Jet._rawFactorMultiplier
private

Definition at line 43 of file Jet.py.

Referenced by Jet.Jet.rawFactor(), and Jet.Jet.setRawFactor().