/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Alignment/TwoBodyDecay/interface/TwoBodyDecay.h
60 строк
2 KB
Cms Build
Clang-Format
08 май 2019, 15:16
08 май 2019, 15:16
7614b05
Код
Авторство
О чём код?
#ifndef Alignment_TwoBodyDecay_TwoBodyDecay_h #define Alignment_TwoBodyDecay_TwoBodyDecay_h #include "Alignment/TwoBodyDecay/interface/TwoBodyDecayParameters.h" #include "Alignment/TwoBodyDecay/interface/TwoBodyDecayVirtualMeasurement.h" /** /class TwoBodyDecay * * Container-class for all information associated with a two-body decay * (estimated parameters, chi2 of the fit, validity-flag). * * /author Edmund Widl */ class TwoBodyDecay { public: typedef TwoBodyDecayParameters::ParameterName ParameterName; TwoBodyDecay(void) : theDecayParameters(), theChi2(0.), theValidityFlag(false), thePrimaryMass(0.), thePrimaryWidth(0.) {} TwoBodyDecay(const TwoBodyDecayParameters ¶m, double chi2, bool valid, const TwoBodyDecayVirtualMeasurement &vm) : theDecayParameters(param), theChi2(chi2), theValidityFlag(valid), thePrimaryMass(vm.primaryMass()), thePrimaryWidth(vm.primaryWidth()) {} ~TwoBodyDecay(void) {} inline const TwoBodyDecayParameters &decayParameters(void) const { return theDecayParameters; } inline const AlgebraicVector ¶meters(void) const { return theDecayParameters.parameters(); } inline const AlgebraicSymMatrix &covariance(void) const { return theDecayParameters.covariance(); } /// Get specified decay parameter. inline double operator[](ParameterName name) const { return theDecayParameters[name]; } /// Get specified decay parameter. inline double operator()(ParameterName name) const { return theDecayParameters(name); } inline bool hasError(void) const { return theDecayParameters.hasError(); } inline double chi2(void) const { return theChi2; } inline bool isValid(void) const { return theValidityFlag; } inline void setInvalid(void) { theValidityFlag = false; } inline double primaryMass(void) const { return thePrimaryMass; } inline double primaryWidth(void) const { return thePrimaryWidth; } private: TwoBodyDecayParameters theDecayParameters; double theChi2; bool theValidityFlag; double thePrimaryMass; double thePrimaryWidth; }; #endif