CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
tauImpactParameter::Particle Class Referenceabstract

#include <Particle.h>

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

Public Member Functions

virtual double bField () const
 
virtual double charge () const
 
virtual const TMatrixTSym< double > & covariance () const
 
virtual double covariance (int i, int j) const
 
virtual double mass () const =0
 
virtual int nParameters () const =0
 
virtual const TVectorT< double > & parameter () const
 
virtual double parameter (int i) 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 ()
 

Private Attributes

double b_
 
double charge_
 
TMatrixTSym< double > cov_
 
TVectorT< double > par_
 
int pdgid_
 

Detailed Description

Definition at line 13 of file Particle.h.

Constructor & Destructor Documentation

◆ Particle()

tauImpactParameter::Particle::Particle ( const TVectorT< double > &  par,
const TMatrixTSym< double > &  cov,
int  pdgid,
double  charge,
double  b 
)
inline

Definition at line 15 of file Particle.h.

16  : par_(par), cov_(cov), b_(b), charge_(charge), pdgid_(pdgid) {}

◆ ~Particle()

virtual tauImpactParameter::Particle::~Particle ( )
inlinevirtual

Definition at line 17 of file Particle.h.

17 {};

Member Function Documentation

◆ bField()

virtual double tauImpactParameter::Particle::bField ( ) const
inlinevirtual

◆ charge()

virtual double tauImpactParameter::Particle::charge ( void  ) const
inlinevirtual

Definition at line 32 of file Particle.h.

32 { return charge_; }

References charge_.

◆ covariance() [1/2]

virtual const TMatrixTSym<double>& tauImpactParameter::Particle::covariance ( void  ) const
inlinevirtual

Definition at line 36 of file Particle.h.

36 { return cov_; }

References cov_.

Referenced by tauImpactParameter::LorentzVectorParticle::vertexCov().

◆ covariance() [2/2]

virtual double tauImpactParameter::Particle::covariance ( int  i,
int  j 
) const
inlinevirtual

Definition at line 24 of file Particle.h.

24  {
25  if (0 <= i && i < cov_.GetNrows() && 0 <= j && j < cov_.GetNrows())
26  return cov_(i, j);
27  return 0;
28  }

References cov_, mps_fire::i, and dqmiolumiharvest::j.

Referenced by tauImpactParameter::TauA1NuConstrainedFitter::TauA1NuConstrainedFitter().

◆ mass()

virtual double tauImpactParameter::Particle::mass ( ) const
pure virtual

◆ nParameters()

virtual int tauImpactParameter::Particle::nParameters ( ) const
pure virtual

◆ parameter() [1/2]

virtual const TVectorT<double>& tauImpactParameter::Particle::parameter ( ) const
inlinevirtual

◆ parameter() [2/2]

virtual double tauImpactParameter::Particle::parameter ( int  i) const
inlinevirtual

Reimplemented in tauImpactParameter::LorentzVectorParticle.

Definition at line 19 of file Particle.h.

19  {
20  if (0 <= i && i < par_.GetNrows())
21  return par_(i);
22  return 0;
23  }

References mps_fire::i, and par_.

◆ pdgId()

virtual int tauImpactParameter::Particle::pdgId ( ) const
inlinevirtual

Definition at line 31 of file Particle.h.

31 { return pdgid_; }

References pdgid_.

Referenced by Particle.Particle::__str__().

◆ qB()

virtual double tauImpactParameter::Particle::qB ( ) const
inlinevirtual

Definition at line 33 of file Particle.h.

33 { return b_ * charge_; }

References b_, and charge_.

Member Data Documentation

◆ b_

double tauImpactParameter::Particle::b_
private

Definition at line 41 of file Particle.h.

Referenced by bField(), and qB().

◆ charge_

double tauImpactParameter::Particle::charge_
private

Definition at line 42 of file Particle.h.

Referenced by charge(), and qB().

◆ cov_

TMatrixTSym<double> tauImpactParameter::Particle::cov_
private

Definition at line 40 of file Particle.h.

Referenced by covariance().

◆ par_

TVectorT<double> tauImpactParameter::Particle::par_
private

Definition at line 39 of file Particle.h.

Referenced by parameter().

◆ pdgid_

int tauImpactParameter::Particle::pdgid_
private

Definition at line 43 of file Particle.h.

Referenced by pdgId().

mps_fire.i
i
Definition: mps_fire.py:355
tauImpactParameter::Particle::cov_
TMatrixTSym< double > cov_
Definition: Particle.h:40
tauImpactParameter::Particle::pdgid_
int pdgid_
Definition: Particle.h:43
b
double b
Definition: hdecay.h:118
tauImpactParameter::Particle::charge
virtual double charge() const
Definition: Particle.h:32
tauImpactParameter::Particle::charge_
double charge_
Definition: Particle.h:42
tauImpactParameter::Particle::b_
double b_
Definition: Particle.h:41
tauImpactParameter::Particle::par_
TVectorT< double > par_
Definition: Particle.h:39
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
EgammaValidation_cff.pdgid
pdgid
Definition: EgammaValidation_cff.py:30