CMS 3D CMS Logo

LaserAlignmentAlignmentAlgorithm.cc

Go to the documentation of this file.
00001 
00009 #include "Alignment/LaserAlignment/plugins/LaserAlignment.h" 
00010 
00011 void LaserAlignment::alignmentAlgorithm(edm::ParameterSet const& theAlgorithmConf,
00012                                         AlignableTracker * theAlignableTracker)
00013 {
00014   // we have to submit theAlgorithmConf to the AlignmentAlgorithms!!!!
00015   // also submit the number of iterations and the vector with
00016   // fitted beampositions by reference
00017   // ... and the AlignableTracker
00018 
00019 
00020   if (theAlignPosTEC)
00021     {
00022       // Alignment of TEC+
00023       theLASAlignPosTEC->alignment(theAlgorithmConf, theAlignableTracker,
00024                                    theNumberOfIterations,
00025                                    theNumberOfAlignmentIterations, theLaserPhi,
00026                                    theLaserPhiError);
00027     }
00028 
00029   if (theAlignNegTEC)
00030     {
00031       // Alignment of TEC-
00032       theLASAlignNegTEC->alignment(theAlgorithmConf, theAlignableTracker, 
00033                                    theNumberOfIterations, 
00034                                    theNumberOfAlignmentIterations, 
00035                                    theLaserPhi, theLaserPhiError);
00036     }
00037 
00038   if (theAlignTEC2TEC)
00039     {
00040       // Alignment of TEC-TIB-TOB-TEC
00041       theLASAlignTEC2TEC->alignment(theAlgorithmConf, theAlignableTracker,
00042                                     theNumberOfIterations, 
00043                                     theNumberOfAlignmentIterations, theLaserPhi,
00044                                     theLaserPhiError);
00045     }
00046 
00047   // clear the stored values of the positions and errors
00048   theLaserPhi.clear();
00049   theLaserPhiError.clear();
00050   
00051   // increase the number of Alignment Iterations
00052   theNumberOfAlignmentIterations++;
00053 }
00054 
00055 

Generated on Tue Jun 9 17:24:04 2009 for CMSSW by  doxygen 1.5.4