1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
#ifndef Alignment_CommonAlignment_BowedSurfaceAlignmentParameters_h
#define Alignment_CommonAlignment_BowedSurfaceAlignmentParameters_h
#include "Alignment/CommonAlignment/interface/AlignmentParameters.h"
#include "CondFormats/Alignment/interface/Definitions.h"
#include "DataFormats/CLHEP/interface/AlgebraicObjects.h"
#include "Alignment/CommonAlignmentParametrization/interface/BowedSurfaceAlignmentDerivatives.h"
/// \class BowedSurfaceAlignmentParameters
///
/// Concrete class for alignment parameters and associated quantities
/// [derived from AlignmentParameters].
/// The number of parameters N_PARAM is 9
/// - 3 translations
/// - 3 rotations/slopes
/// - 3 bows/sagittas (u, v and mixed term)
///
/// $Date: 2008/09/02 15:08:12 $
/// $Revision: 1.13 $
/// (last update by $Author: flucke $)
class Alignable;
class AlignableDetOrUnitPtr;
class TrajectoryStateOnSurface;
class BowedSurfaceAlignmentParameters : public AlignmentParameters {
public:
/// Give parameters a name
typedef BowedSurfaceAlignmentDerivatives BowedDerivs;
enum AlignmentParameterName {
dx = BowedDerivs::dx,
dy = BowedDerivs::dy,
dz = BowedDerivs::dz,
dslopeX = BowedDerivs::dslopeX, // NOTE: slope(u) -> k*tan(beta),
dslopeY = BowedDerivs::dslopeY, // slope(v) -> l*tan(alpha)
drotZ = BowedDerivs::drotZ, // rot(w) -> m*gamma
dsagittaX = BowedDerivs::dsagittaX,
dsagittaXY = BowedDerivs::dsagittaXY,
dsagittaY = BowedDerivs::dsagittaY,
N_PARAM = BowedDerivs::N_PARAM
};
/// Constructor with empty parameters/covariance
BowedSurfaceAlignmentParameters(Alignable *alignable);
/// Constructor for full set of parameters
BowedSurfaceAlignmentParameters(Alignable *alignable,
const AlgebraicVector ¶meters,
const AlgebraicSymMatrix &covMatrix);
/// Constructor for selection
BowedSurfaceAlignmentParameters(Alignable *alignable,
const AlgebraicVector ¶meters,
const AlgebraicSymMatrix &covMatrix,
const std::vector<bool> &selection);
/// Destructor
~BowedSurfaceAlignmentParameters() override {}
void apply() override;
int type() const override;
/// Clone all parameters (for update of parameters)
BowedSurfaceAlignmentParameters *clone(const AlgebraicVector ¶meters,
const AlgebraicSymMatrix &covMatrix) const override;
/// Clone selected parameters (for update of parameters)
BowedSurfaceAlignmentParameters *cloneFromSelected(const AlgebraicVector ¶meters,
const AlgebraicSymMatrix &covMatrix) const override;
/// Get all derivatives
AlgebraicMatrix derivatives(const TrajectoryStateOnSurface &tsos, const AlignableDetOrUnitPtr &aliDet) const override;
/// Get translation parameters in double precision
align::LocalVector translation() const;
/// Get rotation parameters
align::EulerAngles rotation() const;
/// print parameters to screen
void print() const;
};
#endif
|