CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
Tau.Tau Class Reference
Inheritance diagram for Tau.Tau:

Public Member Functions

def __init__ (self, tau)
 
def __str__ (self)
 
def dxy (self, vertex=None)
 
def dxy_approx (self, vertex=None)
 
def dz (self, vertex=None)
 
def mvaId (self)
 
def relIso (self, dBetaFactor=0, allCharged=0)
 
def relIsoR (self, R=0.3, dBetaFactor=0, allCharged=0)
 
def zImpact (self, vertex=None)
 

Public Attributes

 tau
 

Detailed Description

Definition at line 10 of file Tau.py.

Constructor & Destructor Documentation

◆ __init__()

def Tau.Tau.__init__ (   self,
  tau 
)

Definition at line 12 of file Tau.py.

12  def __init__(self, tau):
13  self.tau = tau
14  super(Tau, self).__init__(tau)
15 

Member Function Documentation

◆ __str__()

def Tau.Tau.__str__ (   self)

Definition at line 65 of file Tau.py.

65  def __str__(self):
66  lep = super(Tau, self).__str__()
67  spec = '\t\tTau: decay = {decMode:<15}'.format(
68  decMode = tauDecayModes.intToName(self.decayMode())
69  )
70  return '\n'.join([lep, spec])
71 
72 

References dnn_inputs_2017v1.decayMode, reco::PFTau.decayMode(), pat::Tau.decayMode(), and join().

◆ dxy()

def Tau.Tau.dxy (   self,
  vertex = None 
)
More precise dxy calculation as pre-calculated in the tau object
for the primary vertex it was constructed with.
Returns standard dxy calculation if the passed vertex differs from the
one in the tau object.

Definition at line 37 of file Tau.py.

37  def dxy(self, vertex=None):
38  '''More precise dxy calculation as pre-calculated in the tau object
39  for the primary vertex it was constructed with.
40  Returns standard dxy calculation if the passed vertex differs from the
41  one in the tau object.
42  '''
43  if vertex is None:
44  vertex = self.associatedVertex
45  # x/y/z are directly saved in the tau object instead of a reference to
46  # the PV
47  if abs(vertex.z() == self.vertex().z()) < 0.0001:
48  return self.physObj.dxy()
49  else:
50  return self.dxy_approx(vertex)
51 

References funct.abs(), Electron.Electron.associatedVertex, reco::tau::RecoTauVertexAssociator.associatedVertex(), Tau.Tau.dxy_approx(), PhysicsObject.PhysicsObject.physObj, ParticleFlux::flux.vertex, CosmicParametersDefinerForTP.vertex(), TrimmedVertexFitter.vertex(), ScoutingParticle.vertex(), TrackClassFilter::Input.vertex, KinematicVertexFactory.vertex(), TrackRefitter.vertex, AbstractConfFitter.vertex(), ConfigurableVertexFitter.vertex(), GsfTrackRefitter.vertex, VertexFitter< N >.vertex(), VertexFitter< 5 >.vertex(), VertexFitter< 6 >.vertex(), EcalSimPhotonMCTruth.vertex(), AdaptiveGsfVertexFitter.vertex(), PhotonMCTruth.vertex(), FSimDisplacedVertex.vertex(), GsfVertexFitter.vertex(), Cone.vertex(), ParametersDefinerForTP.vertex(), SoftPFElectronTagInfoProducer.vertex, KalmanVertexFitter.vertex(), pat::VertexAssociation.vertex(), reco::NuclearInteraction.vertex(), reco::TemplatedSecondaryVertexTagInfo< IPTI, VTX >::VertexData.vertex, CTPPSFastTrack.vertex(), tauImpactParameter::LorentzVectorParticle.vertex(), AdaptiveVertexFitter.vertex(), reco::ForwardProton.vertex(), FSimTrack.vertex(), BPHDecayVertex.vertex(), FastHelix.vertex(), CaloPoint::DistanceToVertex.vertex, SimpleConeBounds.vertex(), SequentialVertexFitter< N >.vertex(), SequentialVertexFitter< 5 >.vertex(), FBaseSimEvent.vertex(), reco::MuonSimInfo.vertex, reco::Candidate.vertex(), VertexFitterResult.vertex, reco::PFCluster.vertex(), reco::Particle.vertex(), TrackingParticle.vertex(), HGCalClusterT< C >.vertex(), reco::LeafCandidate.vertex(), reco::ParticleState.vertex(), RawParticle.vertex(), reco::TrackBase.vertex(), pat::PackedGenParticle.vertex(), reco::PFCandidate.vertex(), pat::PackedCandidate.vertex(), ntupleDataFormat.Track.vertex(), and PEcalValidInfo.vertex().

Referenced by ntupleDataFormat.Track.dxyPull().

◆ dxy_approx()

def Tau.Tau.dxy_approx (   self,
  vertex = None 
)

◆ dz()

def Tau.Tau.dz (   self,
  vertex = None 
)

◆ mvaId()

def Tau.Tau.mvaId (   self)
For a transparent treatment of electrons, muons and taus. Returns -99

Definition at line 24 of file Tau.py.

24  def mvaId(self):
25  '''For a transparent treatment of electrons, muons and taus. Returns -99'''
26  return -99
27 

◆ relIso()

def Tau.Tau.relIso (   self,
  dBetaFactor = 0,
  allCharged = 0 
)
Just making the tau behave as a lepton, with dummy parameters.

Definition at line 16 of file Tau.py.

16  def relIso(self, dBetaFactor=0, allCharged=0):
17  '''Just making the tau behave as a lepton, with dummy parameters.'''
18  return -1
19 

◆ relIsoR()

def Tau.Tau.relIsoR (   self,
  R = 0.3,
  dBetaFactor = 0,
  allCharged = 0 
)
Just making the tau behave as a lepton, with dummy parameters.

Definition at line 20 of file Tau.py.

20  def relIsoR(self, R=0.3, dBetaFactor=0, allCharged=0):
21  '''Just making the tau behave as a lepton, with dummy parameters.'''
22  return -1
23 

◆ zImpact()

def Tau.Tau.zImpact (   self,
  vertex = None 
)
z impact at ECAL surface

Definition at line 59 of file Tau.py.

59  def zImpact(self, vertex=None):
60  '''z impact at ECAL surface'''
61  if vertex is None:
62  vertex = self.associatedVertex
63  return vertex.z() + 130./math.tan(self.theta())
64 

References Electron.Electron.associatedVertex, reco::tau::RecoTauVertexAssociator.associatedVertex(), L1TkMuMantraDF::track_df.theta, TwoBodyDecayParameters.theta, res::HelperMET.theta(), TwoBodyDecayDerivatives.theta, l1t::EMTFPtLUT.theta, res::HelperElectron.theta(), res::HelperMuon.theta(), res::HelperJet.theta(), L1TkMuMantraDF::muon_df.theta, reco::isodeposit::Direction.theta(), DDHCalEndcapModuleAlgo::HcalEndcapPar.theta, DDTrackerLinear.theta, HcalBarrelAlgo.theta, DDHCalTBZposAlgo.theta, DDHCalTestBeamAlgo.theta, DDHCalTBCableAlgo.theta, reco::CaloMuon.theta(), tmtt::TP.theta(), l1t::emtf::RPC.theta, reco::GhostTrackPrediction.theta(), HCalEndcapModuleAlgo::HcalEndcapPar.theta, PerigeeTrajectoryParameters.theta(), tmtt::TrackerModule.theta(), TtFullHadSignalSel.theta(), ValidationMisalignedTracker.theta, Geom::Spherical2Cartesian< T >.theta(), Thrust::ThetaPhi.theta, PV3DBase< Scalar, PointTag, GlobalTag >.theta(), Vector3DBase< U, GlobalTag >.theta(), PV3DBase< Scalar, VectorTag, GlobalTag >.theta(), PV3DBase< T, PointTag, GlobalTag >.theta(), PV3DBase< T, VectorTag, FrameTag >.theta(), Point3DBase< T, Frame >.theta(), PV3DBase< T, PointTag, FrameTag >.theta(), PV3DBase< align::Scalar, PointTag, GlobalTag >.theta(), Point3DBase< U, LocalTag >.theta(), Vector3DBase< U, LocalTag >.theta(), Point3DBase< U, GlobalTag >.theta(), Point3DBase< U, FrameTag >.theta(), Vector3DBase< U, FrameTag >.theta(), PV3DBase< float, PointTag, GlobalTag >.theta(), Vector3DBase< U, Frame >.theta(), Vector3DBase< T, Frame >.theta(), Point3DBase< U, Frame >.theta(), Vector3DBase< T, FrameTag >.theta(), Vector3DBase< float, GlobalTag >.theta(), Vector3DBase< double, LocalTag >.theta(), PV3DBase< long double, PointTag, GlobalTag >.theta(), PV3DBase< T, PV, F >.theta(), PV3DBase< T, PVType, FrameType >.theta(), PV3DBase< float, VectorTag, LocalTag >.theta(), PV3DBase< float, PointTag, LocalTag >.theta(), EcalTrapezoidParameters.theta(), DDTrap.theta(), cms::dd::DDTrap.theta(), reco::Candidate.theta(), tmtt::Stub.theta(), Basic3DVector< long double >.theta(), tmtt::KFTrackletTrack.theta(), reco::Particle.theta(), SingleParticleEvent.theta(), TrackStruct::TrackParameterStruct.theta, reco::PFCluster.theta(), CaloParticle.theta(), Basic3DVector< float > mom GlobalVector.theta(), Basic3DVector< align::Scalar >.theta(), Basic3DVector< U >.theta(), Basic3DVector< Scalar >.theta(), Basic3DVector< float >.theta(), Basic3DVector< float > pos GlobalPoint.theta(), Basic3DVector< float > seedCentre float.theta(), Basic3DVector< float > tcCentre float.theta(), Basic3DVector< double >.theta(), Basic3DVector< float > constituentCentre Basic3DVector< float >.theta(), Basic3DVector< float > seedCentre.theta(), Basic3DVector< T >.theta(), reco::ParticleState.theta(), CosmicRateAnalyzer.theta, SimCluster.theta(), TrackingParticle.theta(), HGCalClusterT< C >.theta(), reco::LeafCandidate.theta(), DDHCalBarrelAlgo.theta, tmtt::L1track3D.theta(), l1t::EMTFTrack.theta, reco::TrackBase.theta(), RawParticle.theta(), tmtt::L1fittedTrack.theta(), pat::PackedGenParticle.theta(), l1t::EMTFHit.theta, DDParallelepiped.theta(), and pat::PackedCandidate.theta().

Member Data Documentation

◆ tau

Tau.Tau.tau

Definition at line 13 of file Tau.py.

Referenced by DiObject.TauMuon.leg1(), DiObject.TauElectron.leg1(), and DiObject.TauTau.leg1().

join
static std::string join(char **cmd)
Definition: RemoteFile.cc:17
muons_cff.mvaId
mvaId
Definition: muons_cff.py:164
objects.autophobj.relIso
relIso
Definition: autophobj.py:169
bphysicsOniaDQM_cfi.vertex
vertex
Definition: bphysicsOniaDQM_cfi.py:7
TriggerAnalyzer.__str__
def __str__(self)
Definition: TriggerAnalyzer.py:103
PVValHelper::dxy
Definition: PVValidationHelpers.h:47
PVValHelper::dz
Definition: PVValidationHelpers.h:50
format
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22