CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
TwoBodyDecayParameters Class Reference

#include <TwoBodyDecayParameters.h>

Public Types

enum  { dimension = 9 }
 
enum  ParameterName {
  x = 0, y = 1, z = 2, px = 3,
  py = 4, pz = 5, theta = 6, phi = 7,
  mass = 8
}
 Define order of parameters. More...
 

Public Member Functions

const AlgebraicSymMatrixcovariance (void) const
 Get error matrix. More...
 
bool hasError (void) const
 
double operator() (ParameterName name) const
 Get specified decay parameter. More...
 
double operator[] (ParameterName name) const
 Get specified decay parameter. More...
 
const AlgebraicVectorparameters (void) const
 Get decay parameters. More...
 
const AlgebraicVector sub (ParameterName first, ParameterName last) const
 Get specified range of decay parameters. More...
 
 TwoBodyDecayParameters (void)
 
 TwoBodyDecayParameters (const AlgebraicVector &param, const AlgebraicSymMatrix &cov)
 
 TwoBodyDecayParameters (const AlgebraicVector &param)
 
 TwoBodyDecayParameters (const TwoBodyDecayParameters &other)
 
 ~TwoBodyDecayParameters (void)
 

Private Attributes

AlgebraicSymMatrix theCovariance
 
AlgebraicVector theParameters
 

Detailed Description

/class TwoBodyDecayParameters

This class provides the definition and a container for the parameters describing a two-body decay.

/author Edmund Widl

Definition at line 14 of file TwoBodyDecayParameters.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
dimension 

Definition at line 19 of file TwoBodyDecayParameters.h.

◆ ParameterName

Constructor & Destructor Documentation

◆ TwoBodyDecayParameters() [1/4]

TwoBodyDecayParameters::TwoBodyDecayParameters ( void  )
inline

Definition at line 21 of file TwoBodyDecayParameters.h.

AlgebraicSymMatrix theCovariance
CLHEP::HepVector AlgebraicVector
CLHEP::HepSymMatrix AlgebraicSymMatrix

◆ TwoBodyDecayParameters() [2/4]

TwoBodyDecayParameters::TwoBodyDecayParameters ( const AlgebraicVector param,
const AlgebraicSymMatrix cov 
)
inline

Definition at line 23 of file TwoBodyDecayParameters.h.

24  : theParameters(param), theCovariance(cov) {}
AlgebraicSymMatrix theCovariance

◆ TwoBodyDecayParameters() [3/4]

TwoBodyDecayParameters::TwoBodyDecayParameters ( const AlgebraicVector param)
inline

Definition at line 26 of file TwoBodyDecayParameters.h.

AlgebraicSymMatrix theCovariance
CLHEP::HepSymMatrix AlgebraicSymMatrix

◆ TwoBodyDecayParameters() [4/4]

TwoBodyDecayParameters::TwoBodyDecayParameters ( const TwoBodyDecayParameters other)
inline

Definition at line 28 of file TwoBodyDecayParameters.h.

29  : theParameters(other.parameters()), theCovariance(other.covariance()) {}
AlgebraicSymMatrix theCovariance

◆ ~TwoBodyDecayParameters()

TwoBodyDecayParameters::~TwoBodyDecayParameters ( void  )
inline

Definition at line 31 of file TwoBodyDecayParameters.h.

31 {}

Member Function Documentation

◆ covariance()

const AlgebraicSymMatrix& TwoBodyDecayParameters::covariance ( void  ) const
inline

Get error matrix.

Definition at line 37 of file TwoBodyDecayParameters.h.

References theCovariance.

Referenced by TwoBodyDecay::covariance(), and TwoBodyDecayTrajectoryState::setError().

37 { return theCovariance; }
AlgebraicSymMatrix theCovariance

◆ hasError()

bool TwoBodyDecayParameters::hasError ( void  ) const
inline

Definition at line 50 of file TwoBodyDecayParameters.h.

References theCovariance.

Referenced by TwoBodyDecay::hasError().

50 { return (theCovariance.num_row() != 0); }
AlgebraicSymMatrix theCovariance

◆ operator()()

double TwoBodyDecayParameters::operator() ( ParameterName  name) const
inline

Get specified decay parameter.

Definition at line 43 of file TwoBodyDecayParameters.h.

References Skims_PA_cff::name, and theParameters.

43 { return theParameters[name]; }

◆ operator[]()

double TwoBodyDecayParameters::operator[] ( ParameterName  name) const
inline

Get specified decay parameter.

Definition at line 40 of file TwoBodyDecayParameters.h.

References Skims_PA_cff::name, and theParameters.

40 { return theParameters[name]; }

◆ parameters()

const AlgebraicVector& TwoBodyDecayParameters::parameters ( void  ) const
inline

◆ sub()

const AlgebraicVector TwoBodyDecayParameters::sub ( ParameterName  first,
ParameterName  last 
) const
inline

Get specified range of decay parameters.

Definition at line 46 of file TwoBodyDecayParameters.h.

References first, dqmdumpme::last, and theParameters.

Referenced by TwoBodyDecayEstimator::constructMatrices().

46  {
47  return theParameters.sub(first + 1, last + 1);
48  }

Member Data Documentation

◆ theCovariance

AlgebraicSymMatrix TwoBodyDecayParameters::theCovariance
private

Definition at line 54 of file TwoBodyDecayParameters.h.

Referenced by covariance(), and hasError().

◆ theParameters

AlgebraicVector TwoBodyDecayParameters::theParameters
private

Definition at line 53 of file TwoBodyDecayParameters.h.

Referenced by operator()(), operator[](), parameters(), and sub().