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
|
#ifndef Alignment_CommonAlignment_AlignableDet_h
#define Alignment_CommonAlignment_AlignableDet_h
#include "Alignment/CommonAlignment/interface/AlignableComposite.h"
/// An AlignableComposite corresponding to a composite GeomDet
/// direct components are AlignableDetUnits or AlignableDets.
class AlignableDet : public AlignableComposite {
public:
/// Constructor: If addComponents = true, creates components for
/// geomDet's components, assuming they are GeomDetUnits
AlignableDet(const GeomDet* geomDet, bool addComponents = true);
/// Destructor
~AlignableDet() override;
/// Updater from GeomDet
/// The given GeomDet id has to match the current id.
void update(const GeomDet* geomDet, bool updateComponents = true);
/// Set the AlignmentPositionError and, if (propagateDown), to all components
void setAlignmentPositionError(const AlignmentPositionError& ape, bool propagateDown) override;
/// Add (or set if it does not exist yet) the AlignmentPositionError,
/// if (propagateDown), add also to all components
void addAlignmentPositionError(const AlignmentPositionError& ape, bool propagateDown) override;
/// Add (or set if it does not exist yet) the AlignmentPositionError
/// resulting from a rotation in the global reference frame,
/// if (propagateDown), add also to all components
void addAlignmentPositionErrorFromRotation(const RotationType& rot, bool propagateDown) override;
// No need to overwrite, version from AlignableComposite is just fine:
// virtual void addAlignmentPositionErrorFromLocalRotation(const RotationType &rot,
// bool propagateDown);
/// Return vector of alignment data
Alignments* alignments() const override;
/// Return vector of alignment errors
AlignmentErrorsExtended* alignmentErrors() const override;
/// alignment position error - for checking only, otherwise use alignmentErrors() above!
const AlignmentPositionError* alignmentPositionError() const { return theAlignmentPositionError; }
private:
AlignmentPositionError* theAlignmentPositionError;
};
#endif // ALIGNABLE_DET_H
|