CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions
tauImpactParameter::LorentzVectorParticle Class Reference

#include <LorentzVectorParticle.h>

Inheritance diagram for tauImpactParameter::LorentzVectorParticle:
tauImpactParameter::Particle

Public Types

enum  LorentzandVectorPar {
  vx =0, vy, vz, px,
  py, pz, m, NLorentzandVertexPar,
  E =-1, p =-2, pt =-3
}
 
enum  VertexInfo { NVertex =3 }
 

Public Member Functions

 LorentzVectorParticle ()
 
 LorentzVectorParticle (const TVectorT< double > &par, const TMatrixTSym< double > &cov, int pdgid, double charge, double b)
 
virtual double mass () const
 
virtual int nParameters () const
 
TLorentzVector p4 () const
 
virtual double parameter (int i) const
 
TVector3 vertex () const
 
TMatrixTSym< double > vertexCov () const
 
virtual ~LorentzVectorParticle ()
 
- Public Member Functions inherited from tauImpactParameter::Particle
virtual double bField () const
 
virtual double charge () const
 
virtual double covariance (int i, int j) const
 
virtual const TMatrixTSym< double > & covariance () const
 
virtual const TVectorT< double > & parameter () const
 
 Particle (const TVectorT< double > &par, const TMatrixTSym< double > &cov, int pdgid, double charge, double b)
 
virtual int pdgId () const
 
virtual double qB () const
 
virtual ~Particle ()
 

Static Public Member Functions

static TString name (int i)
 

Detailed Description

Definition at line 17 of file LorentzVectorParticle.h.

Member Enumeration Documentation

Enumerator
NVertex 

Definition at line 20 of file LorentzVectorParticle.h.

Constructor & Destructor Documentation

LorentzVectorParticle::LorentzVectorParticle ( )

Definition at line 5 of file LorentzVectorParticle.cc.

6  : Particle(TVectorT<double>(NLorentzandVertexPar),TMatrixTSym<double>(NLorentzandVertexPar),0,0,0)
7 {}
Particle(const TVectorT< double > &par, const TMatrixTSym< double > &cov, int pdgid, double charge, double b)
Definition: Particle.h:15
LorentzVectorParticle::LorentzVectorParticle ( const TVectorT< double > &  par,
const TMatrixTSym< double > &  cov,
int  pdgid,
double  charge,
double  b 
)

Definition at line 9 of file LorentzVectorParticle.cc.

10  : Particle(par, cov, pdgid, charge,b)
11 {}
virtual double charge() const
Definition: Particle.h:29
double b
Definition: hdecay.h:120
Particle(const TVectorT< double > &par, const TMatrixTSym< double > &cov, int pdgid, double charge, double b)
Definition: Particle.h:15
virtual tauImpactParameter::LorentzVectorParticle::~LorentzVectorParticle ( )
inlinevirtual

Definition at line 23 of file LorentzVectorParticle.h.

References mps_fire::i, and name().

23 {};

Member Function Documentation

virtual double tauImpactParameter::LorentzVectorParticle::mass ( ) const
inlinevirtual
TString LorentzVectorParticle::name ( int  i)
static
virtual int tauImpactParameter::LorentzVectorParticle::nParameters ( ) const
inlinevirtual
TLorentzVector tauImpactParameter::LorentzVectorParticle::p4 ( ) const
inline
virtual double tauImpactParameter::LorentzVectorParticle::parameter ( int  i) const
inlinevirtual

Reimplemented from tauImpactParameter::Particle.

Definition at line 27 of file LorentzVectorParticle.h.

References E, m, p, tauImpactParameter::Particle::parameter(), pt, px, py, pz, and mathSSE::sqrt().

Referenced by tauImpactParameter::MultiProngTauSolver::estimateNu(), and tauImpactParameter::TauA1NuConstrainedFitter::TauA1NuConstrainedFitter().

27  {
28  double particle_px = Particle::parameter(px);
29  double particle_py = Particle::parameter(py);
30  double particle_pz = Particle::parameter(pz);
31  double particle_m = Particle::parameter(m);
32  if(i==E) return sqrt(particle_px*particle_px + particle_py*particle_py + particle_pz*particle_pz + particle_m*particle_m);
33  if(i==p) return sqrt(particle_px*particle_px + particle_py*particle_py + particle_pz*particle_pz);
34  if(i==pt) return sqrt(particle_px*particle_px + particle_py*particle_py);
35  return Particle::parameter(i);
36  }
T sqrt(T t)
Definition: SSEVec.h:18
virtual const TVectorT< double > & parameter() const
Definition: Particle.h:32
TVector3 tauImpactParameter::LorentzVectorParticle::vertex ( ) const
inline
TMatrixTSym<double> tauImpactParameter::LorentzVectorParticle::vertexCov ( ) const
inline

Definition at line 40 of file LorentzVectorParticle.h.

References tauImpactParameter::Particle::covariance(), and NVertex.

Referenced by tauImpactParameter::MultiProngTauSolver::estimateNu(), and tauImpactParameter::ParticleBuilder::getVertex().

40  {
41  TMatrixTSym<double> vcov(NVertex);
42  for(int i=0;i<NVertex;i++){
43  for(int j=0;j<NVertex;j++){vcov(i,j)=covariance(i,j);}
44  }
45  return vcov;
46  }
virtual const TMatrixTSym< double > & covariance() const
Definition: Particle.h:33