CMS 3D CMS Logo

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

Public Member Functions

def __init__
 
def __str__
 
def dxy
 
def dxy_approx
 
def dz
 
def mvaId
 
def relIso
 
def zImpact
 

Public Attributes

 tau
 

Detailed Description

Definition at line 10 of file Tau.py.

Constructor & Destructor Documentation

def Tau.Tau.__init__ (   self,
  tau 
)

Definition at line 12 of file Tau.py.

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

Member Function Documentation

def Tau.Tau.__str__ (   self)

Definition at line 61 of file Tau.py.

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

61 
62  def __str__(self):
63  lep = super(Tau, self).__str__()
64  spec = '\t\tTau: decay = {decMode:<15}'.format(
65  decMode = tauDecayModes.intToName(self.decayMode())
66  )
67  return '\n'.join([lep, spec])
68 
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def __str__
Definition: Tau.py:61
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 33 of file Tau.py.

References funct.abs(), Electron.Electron.associatedVertex, reco::tau::RecoTauVertexAssociator.associatedVertex(), Tau.Tau.dxy_approx(), CosmicParametersDefinerForTP.vertex(), TrimmedVertexFitter.vertex(), TrackRefitter.vertex, TrackClassFilter::Input.vertex, GsfTrackRefitter.vertex, KineParticleFilter.vertex(), KinematicVertexFactory.vertex(), AbstractConfFitter.vertex(), ConfigurableVertexFitter.vertex(), VertexFitter< N >.vertex(), VertexFitter< 5 >.vertex(), VertexFitter< 6 >.vertex(), EcalSimPhotonMCTruth.vertex(), reco::VZero.vertex(), tauImpactParameter::LorentzVectorParticle.vertex(), ParametersDefinerForTP.vertex(), PhotonMCTruth.vertex(), AdaptiveGsfVertexFitter.vertex(), FSimDisplacedVertex.vertex(), pat::VertexAssociation.vertex(), GsfVertexFitter.vertex(), reco::NuclearInteraction.vertex(), SoftPFElectronTagInfoProducer.vertex, FSimTrack.vertex(), Cone.vertex(), KalmanVertexFitter.vertex(), reco::TemplatedSecondaryVertexTagInfo< IPTI, VTX >::VertexData.vertex, AdaptiveVertexFitter.vertex(), FastHelix.vertex(), SimpleConeBounds.vertex(), CaloPoint::DistanceToVertex.vertex, SequentialVertexFitter< N >.vertex(), SequentialVertexFitter< 5 >.vertex(), FBaseSimEvent.vertex(), reco::Candidate.vertex(), TrackingParticle.vertex(), VertexFitterResult.vertex, reco::Particle.vertex(), FastPixelHitMatcher.vertex, reco::ParticleState.vertex(), reco::PFCluster.vertex(), CandidateWithRef< Ref >.vertex(), reco::LeafCandidate.vertex(), pat::PackedGenParticle.vertex(), pat::PackedCandidate.vertex(), RawParticle.vertex(), reco::TrackBase.vertex(), reco::PFCandidate.vertex(), PEcalValidInfo.vertex(), and detailsBasic3DVector.z.

33 
34  def dxy(self, vertex=None):
35  '''More precise dxy calculation as pre-calculated in the tau object
36  for the primary vertex it was constructed with.
37  Returns standard dxy calculation if the passed vertex differs from the
38  one in the tau object.
39  '''
40  if vertex is None:
41  vertex = self.associatedVertex
42  # x/y/z are directly saved in the tau object instead of a reference to
43  # the PV
44  if abs(vertex.z() == self.vertex().z()) < 0.0001:
45  return self.physObj.dxy()
46  else:
47  return self.dxy_approx(vertex)
def dxy
Definition: Tau.py:33
float float float z
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
def dxy_approx
Definition: Tau.py:24
def Tau.Tau.dxy_approx (   self,
  vertex = None 
)
Returns standard dxy for an arbitrary passed vertex

Definition at line 24 of file Tau.py.

References Electron.Electron.associatedVertex, reco::tau::RecoTauVertexAssociator.associatedVertex(), pat::Tau.leadChargedHadrCand(), 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(), pat::PackedCandidate.p4(), PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex.p4, @578.p4, TrackingParticle.p4(), reco::LeafCandidate.p4(), CandidateWithRef< Ref >.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(), x, and detailsBasic3DVector.y.

Referenced by Tau.Tau.dxy().

24 
25  def dxy_approx(self, vertex=None):
26  '''Returns standard dxy for an arbitrary passed vertex'''
27  if vertex is None:
28  vertex = self.associatedVertex
29  vtx = self.leadChargedHadrCand().vertex()
30  p4 = self.p4()
31  return ( - (vtx.x()-vertex.position().x()) * p4.y()
32  + (vtx.y()-vertex.position().y()) * p4.x() ) / p4.pt()
def dxy_approx
Definition: Tau.py:24
Definition: DDAxes.h:10
def Tau.Tau.dz (   self,
  vertex = None 
)

Definition at line 48 of file Tau.py.

References Electron.Electron.associatedVertex, reco::tau::RecoTauVertexAssociator.associatedVertex(), pat::Tau.leadChargedHadrCand(), 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(), pat::PackedCandidate.p4(), PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex.p4, @578.p4, TrackingParticle.p4(), reco::LeafCandidate.p4(), CandidateWithRef< Ref >.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(), x, detailsBasic3DVector.y, and detailsBasic3DVector.z.

48 
49  def dz(self, vertex=None):
50  if vertex is None:
51  vertex = self.associatedVertex
52  vtx = self.leadChargedHadrCand().vertex()
53  p4 = self.p4()
54  return (vtx.z()-vertex.position().z()) - ((vtx.x()-vertex.position().x())*p4.x()+(vtx.y()-vertex.position().y())*p4.y())/ p4.pt() * p4.z()/ p4.pt()
float float float z
def dz
Definition: Tau.py:48
Definition: DDAxes.h:10
def Tau.Tau.mvaId (   self)
For a transparent treatment of electrons, muons and taus. Returns -99

Definition at line 20 of file Tau.py.

20 
21  def mvaId(self):
22  '''For a transparent treatment of electrons, muons and taus. Returns -99'''
23  return -99
def mvaId
Definition: Tau.py:20
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 
17  def relIso(self, dBetaFactor=0, allCharged=0):
18  '''Just making the tau behave as a lepton, with dummy parameters.'''
19  return -1
def relIso
Definition: Tau.py:16
def Tau.Tau.zImpact (   self,
  vertex = None 
)
z impact at ECAL surface

Definition at line 55 of file Tau.py.

References Electron.Electron.associatedVertex, reco::tau::RecoTauVertexAssociator.associatedVertex(), res::HelperMET.theta(), DDHCalEndcapModuleAlgo::HcalEndcapPar.theta, res::HelperElectron.theta(), res::HelperMuon.theta(), TwoBodyDecayDerivatives.theta, res::HelperJet.theta(), TwoBodyDecayParameters.theta, DDHCalTBZposAlgo.theta, DDHCalTestBeamAlgo.theta, DDPixBarStackLinear.theta, DDPixBarStackLinearGap.theta, DDHCalTBCableAlgo.theta, DDTrackerLinear.theta, reco::isodeposit::Direction.theta(), lhef::JetClustering::Jet.theta(), TtFullHadSignalSel.theta(), reco::CaloMuon.theta(), reco::GhostTrackPrediction.theta(), PerigeeTrajectoryParameters.theta(), ValidationMisalignedTracker.theta, Thrust::ThetaPhi.theta, Geom::Spherical2Cartesian< T >.theta(), PV3DBase< T, PointTag, GlobalTag >.theta(), Point3DBase< T, Frame >.theta(), Vector3DBase< U, GlobalTag >.theta(), Vector3DBase< U, FrameTag >.theta(), PV3DBase< float, PointTag, LocalTag >.theta(), Point3DBase< U, FrameTag >.theta(), Vector3DBase< U, Frame >.theta(), Point3DBase< U, Frame >.theta(), Vector3DBase< T, Frame >.theta(), Vector3DBase< double, LocalTag >.theta(), PV3DBase< T, PointTag, FrameTag >.theta(), Vector3DBase< T, FrameTag >.theta(), PV3DBase< T, PVType, FrameType >.theta(), PV3DBase< float, VectorTag, LocalTag >.theta(), PV3DBase< float, VectorTag, GlobalTag >.theta(), PV3DBase< float, VectorTag, MeasurementTag >.theta(), PV3DBase< float, PointTag, MeasurementTag >.theta(), PV3DBase< Scalar, VectorTag, GlobalTag >.theta(), Point3DBase< U, GlobalTag >.theta(), PV3DBase< T, VectorTag, FrameTag >.theta(), Vector3DBase< U, LocalTag >.theta(), PV3DBase< Scalar, PointTag, GlobalTag >.theta(), PV3DBase< float, PointTag, GlobalTag >.theta(), PV3DBase< align::Scalar, PointTag, GlobalTag >.theta(), PV3DBase< long double, PointTag, GlobalTag >.theta(), Point3DBase< U, LocalTag >.theta(), DDTrap.theta(), SingleParticleEvent.theta(), EcalTrapezoidParameters.theta(), reco::Candidate.theta(), reco::Particle.theta(), TrackingParticle.theta(), reco::ParticleState.theta(), pat::PackedGenParticle.theta(), DDHCalBarrelAlgo.theta, Basic3DVector< long double >.theta(), pat::PackedCandidate.theta(), CandidateWithRef< Ref >.theta(), reco::LeafCandidate.theta(), reco::PFCluster.theta(), Basic3DVector< align::Scalar >.theta(), Basic3DVector< float > mom GlobalVector.theta(), Basic3DVector< U >.theta(), Basic3DVector< T >.theta(), Basic3DVector< float > pos GlobalPoint.theta(), Basic3DVector< float >.theta(), Basic3DVector< Scalar >.theta(), Basic3DVector< double >.theta(), reco::TrackBase.theta(), and DDParallelepiped.theta().

55 
56  def zImpact(self, vertex=None):
57  '''z impact at ECAL surface'''
58  if vertex is None:
59  vertex = self.associatedVertex
60  return vertex.z() + 130./math.tan(self.theta())
def zImpact
Definition: Tau.py:55

Member Data Documentation

Tau.Tau.tau

Definition at line 13 of file Tau.py.

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