CMS 3D CMS Logo

TkFittedLasBeam.h
Go to the documentation of this file.
1 #ifndef DataFormats_Alignment_TkFittedLasBeam_h
2 #define DataFormats_Alignment_TkFittedLasBeam_h
3 
13 
16 #include <vector>
17 
18 class TkFittedLasBeam : public TkLasBeam {
19 public:
20  typedef float Scalar; // scalar type used in this class
21 
23  TkFittedLasBeam(const TkLasBeam &lasBeam);
24  ~TkFittedLasBeam() override {} // anyway virtual since inherited...
25 
27  unsigned int parametrisation() const { return parametrisation_; }
29  const std::vector<Scalar> &parameters() const { return parameters_; }
33  const AlgebraicMatrix &derivatives() const { return derivatives_; }
36  unsigned int firstFixedParameter() const { return firstFixedParameter_; }
37 
43  void setParameters(unsigned int parametrisation,
44  const std::vector<Scalar> &params,
45  const AlgebraicSymMatrix &paramCovariance,
47  unsigned int firstFixedParam,
48  float chi2);
49 
50 private:
51  unsigned int parametrisation_;
52  std::vector<Scalar> parameters_;
55  unsigned int firstFixedParameter_;
56  float chi2_;
57 };
58 
59 // To get the typedef for the collection:
61 
62 #endif
const AlgebraicSymMatrix & parametersCov() const
covariance of first n=firstFixedParameter() parameters()
unsigned int parametrisation() const
the parametrisation type used (0 means undefined...)
unsigned int parametrisation_
CLHEP::HepMatrix AlgebraicMatrix
const AlgebraicMatrix & derivatives() const
matrix of local derivatives: columns are parameters, rows are hits
~TkFittedLasBeam() override
AlgebraicSymMatrix paramCovariance_
beam parameters (depend on parameterisation_)
unsigned int firstFixedParameter() const
unsigned int firstFixedParameter_
derivatives with respect to parameters_
CLHEP::HepSymMatrix AlgebraicSymMatrix
const std::vector< Scalar > & parameters() const
parallel to derivatives()
std::vector< Scalar > parameters_
type of parameterisation (0 means undefined)
float chi2_
first non-free parameter in (local) fit
AlgebraicMatrix derivatives_
cov. matrix of &#39;free&#39; params. (dim=firstFixedParameter_)
void setParameters(unsigned int parametrisation, const std::vector< Scalar > &params, const AlgebraicSymMatrix &paramCovariance, const AlgebraicMatrix &derivatives, unsigned int firstFixedParam, float chi2)