CMS 3D CMS Logo

SurveyResidual.h
Go to the documentation of this file.
1 #ifndef Alignment_CommonAlignment_SurveyResidual_h
2 #define Alignment_CommonAlignment_SurveyResidual_h
3 
18 
19 class Alignable;
20 class AlignableSurface;
21 
23 public:
29  align::StructureType, // level at which residuals are found
30  bool bias = false // true for biased residuals
31  );
32 
36  inline bool valid() const;
37 
41 
45 
48 
49 private:
52  void findSisters(const Alignable*, bool bias);
53 
55  void calculate(const Alignable&);
56 
57  // Cache some values for calculation
58 
59  const Alignable* theMother; // mother that matches the structure type
60  // given in constructor
61 
62  const AlignableSurface& theSurface; // current surface
63 
64  const std::vector<bool>& theSelector; // flags for selected parameters
65 
66  std::vector<const Alignable*> theSisters; // list of final daughters for
67  // finding mother's position
68 
69  align::GlobalVectors theNominalVs; // nominal points from mother's pos
70  align::GlobalVectors theCurrentVs; // current points rotated to nominal surf
71 
73 };
74 
75 bool SurveyResidual::valid() const { return theMother != nullptr; }
76 
77 #endif
StructureType.h
Alignable
Definition: Alignable.h:27
SurveyResidual::sensorResidual
AlgebraicVector sensorResidual() const
Definition: SurveyResidual.cc:44
align::ErrorMatrix
math::Error< 6 >::type ErrorMatrix
Definition: Definitions.h:37
align::LocalVectors
std::vector< LocalVector > LocalVectors
Definition: Utilities.h:30
SurveyResidual::theCovariance
align::ErrorMatrix theCovariance
Definition: SurveyResidual.h:72
SurveyResidual::theSisters
std::vector< const Alignable * > theSisters
Definition: SurveyResidual.h:66
AlgebraicVector
CLHEP::HepVector AlgebraicVector
Definition: AlgebraicObjects.h:13
SurveyResidual::findSisters
void findSisters(const Alignable *, bool bias)
Definition: SurveyResidual.cc:135
SurveyResidual::theSurface
const AlignableSurface & theSurface
Definition: SurveyResidual.h:62
align::StructureType
StructureType
Definition: StructureType.h:16
SurveyResidual::inverseCovariance
AlgebraicSymMatrix inverseCovariance() const
Get inverse of survey covariance wrt given structure type in constructor.
Definition: SurveyResidual.cc:106
SurveyResidual::theCurrentVs
align::GlobalVectors theCurrentVs
Definition: SurveyResidual.h:70
Utilities.h
AlgebraicSymMatrix
CLHEP::HepSymMatrix AlgebraicSymMatrix
Definition: AlgebraicObjects.h:15
SurveyResidual::pointsResidual
align::LocalVectors pointsResidual() const
Definition: SurveyResidual.cc:92
align::GlobalVectors
std::vector< GlobalVector > GlobalVectors
Definition: Utilities.h:28
SurveyResidual::theMother
const Alignable * theMother
Definition: SurveyResidual.h:59
SurveyResidual::calculate
void calculate(const Alignable &)
Find the nominal and current vectors.
Definition: SurveyResidual.cc:152
SurveyResidual
Definition: SurveyResidual.h:22
AlignableSurface
Definition: AlignableSurface.h:20
SurveyResidual::theNominalVs
align::GlobalVectors theNominalVs
Definition: SurveyResidual.h:69
SurveyResidual::theSelector
const std::vector< bool > & theSelector
Definition: SurveyResidual.h:64
SurveyResidual::SurveyResidual
SurveyResidual(const Alignable &, align::StructureType, bool bias=false)
Definition: SurveyResidual.cc:11
SurveyResidual::valid
bool valid() const
Definition: SurveyResidual.h:75