CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
tauImpactParameter::TrackParticle Class Reference

#include <TrackParticle.h>

Inheritance diagram for tauImpactParameter::TrackParticle:
tauImpactParameter::Particle

Public Types

enum  {
  kappa = 0, lambda, phi, dxy,
  dz, NHelixPar
}
 

Public Member Functions

double mass () const override
 
int nParameters () const override
 
 TrackParticle (const TVectorT< double > &par, const TMatrixTSym< double > &cov, int pdgid, double mass, double charge, double b)
 
 ~TrackParticle () override
 
- 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 double parameter (int i) 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)
 

Private Attributes

double mass_
 

Detailed Description

Definition at line 15 of file TrackParticle.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Constructor & Destructor Documentation

◆ TrackParticle()

TrackParticle::TrackParticle ( const TVectorT< double > &  par,
const TMatrixTSym< double > &  cov,
int  pdgid,
double  mass,
double  charge,
double  b 
)

Definition at line 10 of file TrackParticle.cc.

12  : Particle(par, cov, pdgid, charge, b), mass_(mass) {}
double mass() const override
Definition: TrackParticle.h:25
double b
Definition: hdecay.h:118
virtual double charge() const
Definition: Particle.h:32
Particle(const TVectorT< double > &par, const TMatrixTSym< double > &cov, int pdgid, double charge, double b)
Definition: Particle.h:15

◆ ~TrackParticle()

tauImpactParameter::TrackParticle::~TrackParticle ( )
inlineoverride

Definition at line 21 of file TrackParticle.h.

21 {};

Member Function Documentation

◆ mass()

double tauImpactParameter::TrackParticle::mass ( ) const
inlineoverridevirtual

Implements tauImpactParameter::Particle.

Definition at line 25 of file TrackParticle.h.

References mass_.

Referenced by Particle.Particle::__str__(), and DiObject.DiMuon::__str__().

25 { return mass_; }

◆ name()

TString TrackParticle::name ( int  i)
static

Definition at line 14 of file TrackParticle.cc.

References dxy, dz, mps_fire::i, kappa, lambda, and phi.

Referenced by config.CFG::__str__(), and validation.Sample::digest().

14  {
15  if (i == kappa)
16  return "kappa";
17  if (i == lambda)
18  return "lambda";
19  if (i == phi)
20  return "phi";
21  if (i == dz)
22  return "dz";
23  if (i == dxy)
24  return "dxy";
25  return "invalid";
26 }

◆ nParameters()

int tauImpactParameter::TrackParticle::nParameters ( ) const
inlineoverridevirtual

Implements tauImpactParameter::Particle.

Definition at line 24 of file TrackParticle.h.

References NHelixPar.

Member Data Documentation

◆ mass_

double tauImpactParameter::TrackParticle::mass_
private

Definition at line 28 of file TrackParticle.h.

Referenced by mass().