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 (const AlgebraicVector &param)
 
 TwoBodyDecayParameters (const AlgebraicVector &param, const AlgebraicSymMatrix &cov)
 
 TwoBodyDecayParameters (const TwoBodyDecayParameters &other)
 
 TwoBodyDecayParameters (void)
 
 ~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.

19 { dimension = 9 };

◆ ParameterName

Define order of parameters.

Enumerator
px 
py 
pz 
theta 
phi 
mass 

Definition at line 17 of file TwoBodyDecayParameters.h.

17 { x = 0, y = 1, z = 2, px = 3, py = 4, pz = 5, theta = 6, phi = 7, mass = 8 };

Constructor & Destructor Documentation

◆ TwoBodyDecayParameters() [1/4]

TwoBodyDecayParameters::TwoBodyDecayParameters ( void  )
inline

◆ 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) {}

◆ TwoBodyDecayParameters() [3/4]

TwoBodyDecayParameters::TwoBodyDecayParameters ( const AlgebraicVector param)
inline

Definition at line 26 of file TwoBodyDecayParameters.h.

◆ TwoBodyDecayParameters() [4/4]

TwoBodyDecayParameters::TwoBodyDecayParameters ( const TwoBodyDecayParameters other)
inline

Definition at line 28 of file TwoBodyDecayParameters.h.

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

◆ ~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.

37 { return theCovariance; }

References theCovariance.

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

◆ hasError()

bool TwoBodyDecayParameters::hasError ( void  ) const
inline

Definition at line 50 of file TwoBodyDecayParameters.h.

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

References theCovariance.

Referenced by TwoBodyDecay::hasError().

◆ operator()()

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

Get specified decay parameter.

Definition at line 43 of file TwoBodyDecayParameters.h.

43 { return theParameters[name]; }

References Skims_PA_cff::name, and theParameters.

◆ operator[]()

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

Get specified decay parameter.

Definition at line 40 of file TwoBodyDecayParameters.h.

40 { return theParameters[name]; }

References Skims_PA_cff::name, and theParameters.

◆ 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.

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

References dqmdumpme::first, dqmdumpme::last, and theParameters.

Referenced by TwoBodyDecayEstimator::constructMatrices().

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().

TwoBodyDecayParameters::phi
Definition: TwoBodyDecayParameters.h:17
TwoBodyDecayParameters::dimension
Definition: TwoBodyDecayParameters.h:19
TwoBodyDecayParameters::mass
Definition: TwoBodyDecayParameters.h:17
dqmdumpme.first
first
Definition: dqmdumpme.py:55
TwoBodyDecayParameters::pz
Definition: TwoBodyDecayParameters.h:17
dqmdumpme.last
last
Definition: dqmdumpme.py:56
AlgebraicVector
CLHEP::HepVector AlgebraicVector
Definition: AlgebraicObjects.h:13
trackingPlots.other
other
Definition: trackingPlots.py:1465
TwoBodyDecayParameters::theta
Definition: TwoBodyDecayParameters.h:17
TwoBodyDecayParameters::theCovariance
AlgebraicSymMatrix theCovariance
Definition: TwoBodyDecayParameters.h:54
TwoBodyDecayParameters::z
Definition: TwoBodyDecayParameters.h:17
AlgebraicSymMatrix
CLHEP::HepSymMatrix AlgebraicSymMatrix
Definition: AlgebraicObjects.h:15
TwoBodyDecayParameters::y
Definition: TwoBodyDecayParameters.h:17
TwoBodyDecayParameters::x
Definition: TwoBodyDecayParameters.h:17
TwoBodyDecayParameters::py
Definition: TwoBodyDecayParameters.h:17
TwoBodyDecayParameters::px
Definition: TwoBodyDecayParameters.h:17
TwoBodyDecayParameters::theParameters
AlgebraicVector theParameters
Definition: TwoBodyDecayParameters.h:53
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17