CMS 3D CMS Logo

SurveyAlignment.h
Go to the documentation of this file.
1 #ifndef Alignment_SurveyAnalysis_SurveyAlignment_h
2 #define Alignment_SurveyAnalysis_SurveyAlignment_h
3 
15 
17 {
18  protected:
19 
20  public:
21 
24  const align::Alignables& sensors,
25  const std::vector<align::StructureType>& levels
26  );
27 
28  virtual ~SurveyAlignment() {}
29 
31  void iterate(
32  unsigned int nIteration, // number of iterations
33  const std::string& fileName, // name of output file
34  bool bias = false // true for biased residuals
35  );
36 
37  protected:
38 
40  virtual void findAlignPars(
41  bool bias = false // true for biased residuals
42  ) = 0;
43 
45  virtual void shiftSensors();
46 
48  const std::vector<align::StructureType>& theLevels;
49 };
50 
51 #endif
void iterate(unsigned int nIteration, const std::string &fileName, bool bias=false)
Run the iteration: find residuals, write to output, shift sensors.
const align::Alignables & theSensors
virtual void findAlignPars(bool bias=false)=0
Find the alignment parameters for all sensors.
const std::vector< align::StructureType > & theLevels
virtual void shiftSensors()
Apply the alignment parameters to all sensors.
SurveyAlignment(const align::Alignables &sensors, const std::vector< align::StructureType > &levels)
Constructor to set the sensors and residual levels.
virtual ~SurveyAlignment()
std::vector< Alignable * > Alignables
Definition: Utilities.h:31