00001
00009 #include "Alignment/LaserAlignment/interface/LaserAlignmentNegTEC.h"
00010 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00011
00012 LaserAlignmentNegTEC::LaserAlignmentNegTEC()
00013 {
00014 }
00015
00016 LaserAlignmentNegTEC::~LaserAlignmentNegTEC()
00017 {
00018 }
00019
00020 void LaserAlignmentNegTEC::alignment(edm::ParameterSet const & theConf,
00021 AlignableTracker * theAlignableTracker,
00022 int theNumberOfIterations,
00023 int theAlignmentIteration,
00024 std::vector<double>& theLaserPhi,
00025 std::vector<double>& theLaserPhiError)
00026 {
00027 edm::LogInfo("LaserAlignmentNegTEC") << " ***************************************************** "
00028 << "\n * Alignment of TEC- * "
00029 << "\n ***************************************************** ";
00030
00031 int theMaxIteration = theNumberOfIterations - 1;
00032
00033
00034 theLaserAlignmentTrackerNegTEC = new LaserAlignmentAlgorithmNegTEC(theConf, theAlignmentIteration);
00035
00036
00037 for (int theIteration = 0; theIteration < theNumberOfIterations; theIteration++)
00038 {
00039
00040
00041
00042 LogDebug("LaserAlignmentNegTEC") << " AC1CMS: Total number of Iterations = " << theMaxIteration
00043 << "\n AC1CMS: Current Iteration = " << theIteration
00044 << "\n AC1CMS: Current Alignment Iteration = " << theAlignmentIteration;
00045
00046
00047
00048 std::map<std::string, std::vector<double> > theBeamPosition;
00049
00050
00051
00052
00053
00054
00055 std::vector<double> Beam0R4NegTEC;
00056 std::vector<double> Beam1R4NegTEC;
00057 std::vector<double> Beam2R4NegTEC;
00058 std::vector<double> Beam3R4NegTEC;
00059 std::vector<double> Beam4R4NegTEC;
00060 std::vector<double> Beam5R4NegTEC;
00061 std::vector<double> Beam6R4NegTEC;
00062 std::vector<double> Beam7R4NegTEC;
00063
00064 std::vector<double> Beam0R6NegTEC;
00065 std::vector<double> Beam1R6NegTEC;
00066 std::vector<double> Beam2R6NegTEC;
00067 std::vector<double> Beam3R6NegTEC;
00068 std::vector<double> Beam4R6NegTEC;
00069 std::vector<double> Beam5R6NegTEC;
00070 std::vector<double> Beam6R6NegTEC;
00071 std::vector<double> Beam7R6NegTEC;
00072
00073
00074 Beam0R4NegTEC.push_back(theLaserPhi.at(169 + theIteration * 434));
00075 Beam0R4NegTEC.push_back(theLaserPhiError.at(169 + theIteration * 434));
00076 Beam0R4NegTEC.push_back(theLaserPhi.at(170 + theIteration * 434));
00077 Beam0R4NegTEC.push_back(theLaserPhiError.at(170 + theIteration * 434));
00078 Beam0R4NegTEC.push_back(theLaserPhi.at(171 + theIteration * 434));
00079 Beam0R4NegTEC.push_back(theLaserPhiError.at(171 + theIteration * 434));
00080 Beam0R4NegTEC.push_back(theLaserPhi.at(172 + theIteration * 434));
00081 Beam0R4NegTEC.push_back(theLaserPhiError.at(172 + theIteration * 434));
00082 Beam0R4NegTEC.push_back(theLaserPhi.at(173 + theIteration * 434));
00083 Beam0R4NegTEC.push_back(theLaserPhiError.at(173 + theIteration * 434));
00084 Beam0R4NegTEC.push_back(theLaserPhi.at(174 + theIteration * 434));
00085 Beam0R4NegTEC.push_back(theLaserPhiError.at(174 + theIteration * 434));
00086 Beam0R4NegTEC.push_back(theLaserPhi.at(175 + theIteration * 434));
00087 Beam0R4NegTEC.push_back(theLaserPhiError.at(175 + theIteration * 434));
00088 Beam0R4NegTEC.push_back(theLaserPhi.at(176 + theIteration * 434));
00089 Beam0R4NegTEC.push_back(theLaserPhiError.at(176 + theIteration * 434));
00090 Beam0R4NegTEC.push_back(theLaserPhi.at(177 + theIteration * 434));
00091 Beam0R4NegTEC.push_back(theLaserPhiError.at(177 + theIteration * 434));
00092
00093 Beam1R4NegTEC.push_back(theLaserPhi.at(178 + theIteration * 434));
00094 Beam1R4NegTEC.push_back(theLaserPhiError.at(178 + theIteration * 434));
00095 Beam1R4NegTEC.push_back(theLaserPhi.at(179 + theIteration * 434));
00096 Beam1R4NegTEC.push_back(theLaserPhiError.at(179 + theIteration * 434));
00097 Beam1R4NegTEC.push_back(theLaserPhi.at(180 + theIteration * 434));
00098 Beam1R4NegTEC.push_back(theLaserPhiError.at(180 + theIteration * 434));
00099 Beam1R4NegTEC.push_back(theLaserPhi.at(181 + theIteration * 434));
00100 Beam1R4NegTEC.push_back(theLaserPhiError.at(181 + theIteration * 434));
00101 Beam1R4NegTEC.push_back(theLaserPhi.at(182 + theIteration * 434));
00102 Beam1R4NegTEC.push_back(theLaserPhiError.at(182 + theIteration * 434));
00103 Beam1R4NegTEC.push_back(theLaserPhi.at(183 + theIteration * 434));
00104 Beam1R4NegTEC.push_back(theLaserPhiError.at(183 + theIteration * 434));
00105 Beam1R4NegTEC.push_back(theLaserPhi.at(184 + theIteration * 434));
00106 Beam1R4NegTEC.push_back(theLaserPhiError.at(184 + theIteration * 434));
00107 Beam1R4NegTEC.push_back(theLaserPhi.at(185 + theIteration * 434));
00108 Beam1R4NegTEC.push_back(theLaserPhiError.at(185 + theIteration * 434));
00109 Beam1R4NegTEC.push_back(theLaserPhi.at(186 + theIteration * 434));
00110 Beam1R4NegTEC.push_back(theLaserPhiError.at(186 + theIteration * 434));
00111
00112
00113 Beam2R4NegTEC.push_back(theLaserPhi.at(192 + theIteration * 434));
00114 Beam2R4NegTEC.push_back(theLaserPhiError.at(192 + theIteration * 434));
00115 Beam2R4NegTEC.push_back(theLaserPhi.at(193 + theIteration * 434));
00116 Beam2R4NegTEC.push_back(theLaserPhiError.at(193 + theIteration * 434));
00117 Beam2R4NegTEC.push_back(theLaserPhi.at(194 + theIteration * 434));
00118 Beam2R4NegTEC.push_back(theLaserPhiError.at(194 + theIteration * 434));
00119 Beam2R4NegTEC.push_back(theLaserPhi.at(195 + theIteration * 434));
00120 Beam2R4NegTEC.push_back(theLaserPhiError.at(195 + theIteration * 434));
00121 Beam2R4NegTEC.push_back(theLaserPhi.at(196 + theIteration * 434));
00122 Beam2R4NegTEC.push_back(theLaserPhiError.at(196 + theIteration * 434));
00123 Beam2R4NegTEC.push_back(theLaserPhi.at(197 + theIteration * 434));
00124 Beam2R4NegTEC.push_back(theLaserPhiError.at(197 + theIteration * 434));
00125 Beam2R4NegTEC.push_back(theLaserPhi.at(198 + theIteration * 434));
00126 Beam2R4NegTEC.push_back(theLaserPhiError.at(198 + theIteration * 434));
00127 Beam2R4NegTEC.push_back(theLaserPhi.at(199 + theIteration * 434));
00128 Beam2R4NegTEC.push_back(theLaserPhiError.at(199 + theIteration * 434));
00129 Beam2R4NegTEC.push_back(theLaserPhi.at(200 + theIteration * 434));
00130 Beam2R4NegTEC.push_back(theLaserPhiError.at(200 + theIteration * 434));
00131
00132
00133 Beam3R4NegTEC.push_back(theLaserPhi.at(206 + theIteration * 434));
00134 Beam3R4NegTEC.push_back(theLaserPhiError.at(206 + theIteration * 434));
00135 Beam3R4NegTEC.push_back(theLaserPhi.at(207 + theIteration * 434));
00136 Beam3R4NegTEC.push_back(theLaserPhiError.at(207 + theIteration * 434));
00137 Beam3R4NegTEC.push_back(theLaserPhi.at(208 + theIteration * 434));
00138 Beam3R4NegTEC.push_back(theLaserPhiError.at(208 + theIteration * 434));
00139 Beam3R4NegTEC.push_back(theLaserPhi.at(209 + theIteration * 434));
00140 Beam3R4NegTEC.push_back(theLaserPhiError.at(209 + theIteration * 434));
00141 Beam3R4NegTEC.push_back(theLaserPhi.at(210 + theIteration * 434));
00142 Beam3R4NegTEC.push_back(theLaserPhiError.at(210 + theIteration * 434));
00143 Beam3R4NegTEC.push_back(theLaserPhi.at(211 + theIteration * 434));
00144 Beam3R4NegTEC.push_back(theLaserPhiError.at(211 + theIteration * 434));
00145 Beam3R4NegTEC.push_back(theLaserPhi.at(212 + theIteration * 434));
00146 Beam3R4NegTEC.push_back(theLaserPhiError.at(212 + theIteration * 434));
00147 Beam3R4NegTEC.push_back(theLaserPhi.at(213 + theIteration * 434));
00148 Beam3R4NegTEC.push_back(theLaserPhiError.at(213 + theIteration * 434));
00149 Beam3R4NegTEC.push_back(theLaserPhi.at(214 + theIteration * 434));
00150 Beam3R4NegTEC.push_back(theLaserPhiError.at(214 + theIteration * 434));
00151
00152 Beam4R4NegTEC.push_back(theLaserPhi.at(215 + theIteration * 434));
00153 Beam4R4NegTEC.push_back(theLaserPhiError.at(215 + theIteration * 434));
00154 Beam4R4NegTEC.push_back(theLaserPhi.at(216 + theIteration * 434));
00155 Beam4R4NegTEC.push_back(theLaserPhiError.at(216 + theIteration * 434));
00156 Beam4R4NegTEC.push_back(theLaserPhi.at(217 + theIteration * 434));
00157 Beam4R4NegTEC.push_back(theLaserPhiError.at(217 + theIteration * 434));
00158 Beam4R4NegTEC.push_back(theLaserPhi.at(218 + theIteration * 434));
00159 Beam4R4NegTEC.push_back(theLaserPhiError.at(218 + theIteration * 434));
00160 Beam4R4NegTEC.push_back(theLaserPhi.at(219 + theIteration * 434));
00161 Beam4R4NegTEC.push_back(theLaserPhiError.at(219 + theIteration * 434));
00162 Beam4R4NegTEC.push_back(theLaserPhi.at(220 + theIteration * 434));
00163 Beam4R4NegTEC.push_back(theLaserPhiError.at(220 + theIteration * 434));
00164 Beam4R4NegTEC.push_back(theLaserPhi.at(221 + theIteration * 434));
00165 Beam4R4NegTEC.push_back(theLaserPhiError.at(221 + theIteration * 434));
00166 Beam4R4NegTEC.push_back(theLaserPhi.at(222 + theIteration * 434));
00167 Beam4R4NegTEC.push_back(theLaserPhiError.at(222 + theIteration * 434));
00168 Beam4R4NegTEC.push_back(theLaserPhi.at(223 + theIteration * 434));
00169 Beam4R4NegTEC.push_back(theLaserPhiError.at(223 + theIteration * 434));
00170
00171
00172 Beam5R4NegTEC.push_back(theLaserPhi.at(229 + theIteration * 434));
00173 Beam5R4NegTEC.push_back(theLaserPhiError.at(229 + theIteration * 434));
00174 Beam5R4NegTEC.push_back(theLaserPhi.at(230 + theIteration * 434));
00175 Beam5R4NegTEC.push_back(theLaserPhiError.at(230 + theIteration * 434));
00176 Beam5R4NegTEC.push_back(theLaserPhi.at(231 + theIteration * 434));
00177 Beam5R4NegTEC.push_back(theLaserPhiError.at(231 + theIteration * 434));
00178 Beam5R4NegTEC.push_back(theLaserPhi.at(232 + theIteration * 434));
00179 Beam5R4NegTEC.push_back(theLaserPhiError.at(232 + theIteration * 434));
00180 Beam5R4NegTEC.push_back(theLaserPhi.at(233 + theIteration * 434));
00181 Beam5R4NegTEC.push_back(theLaserPhiError.at(233 + theIteration * 434));
00182 Beam5R4NegTEC.push_back(theLaserPhi.at(234 + theIteration * 434));
00183 Beam5R4NegTEC.push_back(theLaserPhiError.at(234 + theIteration * 434));
00184 Beam5R4NegTEC.push_back(theLaserPhi.at(235 + theIteration * 434));
00185 Beam5R4NegTEC.push_back(theLaserPhiError.at(235 + theIteration * 434));
00186 Beam5R4NegTEC.push_back(theLaserPhi.at(236 + theIteration * 434));
00187 Beam5R4NegTEC.push_back(theLaserPhiError.at(236 + theIteration * 434));
00188 Beam5R4NegTEC.push_back(theLaserPhi.at(237 + theIteration * 434));
00189 Beam5R4NegTEC.push_back(theLaserPhiError.at(237 + theIteration * 434));
00190
00191 Beam6R4NegTEC.push_back(theLaserPhi.at(238 + theIteration * 434));
00192 Beam6R4NegTEC.push_back(theLaserPhiError.at(238 + theIteration * 434));
00193 Beam6R4NegTEC.push_back(theLaserPhi.at(239 + theIteration * 434));
00194 Beam6R4NegTEC.push_back(theLaserPhiError.at(239 + theIteration * 434));
00195 Beam6R4NegTEC.push_back(theLaserPhi.at(240 + theIteration * 434));
00196 Beam6R4NegTEC.push_back(theLaserPhiError.at(240 + theIteration * 434));
00197 Beam6R4NegTEC.push_back(theLaserPhi.at(241 + theIteration * 434));
00198 Beam6R4NegTEC.push_back(theLaserPhiError.at(241 + theIteration * 434));
00199 Beam6R4NegTEC.push_back(theLaserPhi.at(242 + theIteration * 434));
00200 Beam6R4NegTEC.push_back(theLaserPhiError.at(242 + theIteration * 434));
00201 Beam6R4NegTEC.push_back(theLaserPhi.at(243 + theIteration * 434));
00202 Beam6R4NegTEC.push_back(theLaserPhiError.at(243 + theIteration * 434));
00203 Beam6R4NegTEC.push_back(theLaserPhi.at(244 + theIteration * 434));
00204 Beam6R4NegTEC.push_back(theLaserPhiError.at(244 + theIteration * 434));
00205 Beam6R4NegTEC.push_back(theLaserPhi.at(245 + theIteration * 434));
00206 Beam6R4NegTEC.push_back(theLaserPhiError.at(245 + theIteration * 434));
00207 Beam6R4NegTEC.push_back(theLaserPhi.at(246 + theIteration * 434));
00208 Beam6R4NegTEC.push_back(theLaserPhiError.at(246 + theIteration * 434));
00209
00210
00211 Beam7R4NegTEC.push_back(theLaserPhi.at(252 + theIteration * 434));
00212 Beam7R4NegTEC.push_back(theLaserPhiError.at(252 + theIteration * 434));
00213 Beam7R4NegTEC.push_back(theLaserPhi.at(253 + theIteration * 434));
00214 Beam7R4NegTEC.push_back(theLaserPhiError.at(253 + theIteration * 434));
00215 Beam7R4NegTEC.push_back(theLaserPhi.at(254 + theIteration * 434));
00216 Beam7R4NegTEC.push_back(theLaserPhiError.at(254 + theIteration * 434));
00217 Beam7R4NegTEC.push_back(theLaserPhi.at(255 + theIteration * 434));
00218 Beam7R4NegTEC.push_back(theLaserPhiError.at(255 + theIteration * 434));
00219 Beam7R4NegTEC.push_back(theLaserPhi.at(256 + theIteration * 434));
00220 Beam7R4NegTEC.push_back(theLaserPhiError.at(256 + theIteration * 434));
00221 Beam7R4NegTEC.push_back(theLaserPhi.at(257 + theIteration * 434));
00222 Beam7R4NegTEC.push_back(theLaserPhiError.at(257 + theIteration * 434));
00223 Beam7R4NegTEC.push_back(theLaserPhi.at(258 + theIteration * 434));
00224 Beam7R4NegTEC.push_back(theLaserPhiError.at(258 + theIteration * 434));
00225 Beam7R4NegTEC.push_back(theLaserPhi.at(259 + theIteration * 434));
00226 Beam7R4NegTEC.push_back(theLaserPhiError.at(259 + theIteration * 434));
00227 Beam7R4NegTEC.push_back(theLaserPhi.at(260 + theIteration * 434));
00228 Beam7R4NegTEC.push_back(theLaserPhiError.at(260 + theIteration * 434));
00229
00230
00231 Beam0R6NegTEC.push_back(theLaserPhi.at(266 + theIteration * 434));
00232 Beam0R6NegTEC.push_back(theLaserPhiError.at(266 + theIteration * 434));
00233 Beam0R6NegTEC.push_back(theLaserPhi.at(267 + theIteration * 434));
00234 Beam0R6NegTEC.push_back(theLaserPhiError.at(267 + theIteration * 434));
00235 Beam0R6NegTEC.push_back(theLaserPhi.at(268 + theIteration * 434));
00236 Beam0R6NegTEC.push_back(theLaserPhiError.at(268 + theIteration * 434));
00237 Beam0R6NegTEC.push_back(theLaserPhi.at(269 + theIteration * 434));
00238 Beam0R6NegTEC.push_back(theLaserPhiError.at(269 + theIteration * 434));
00239 Beam0R6NegTEC.push_back(theLaserPhi.at(270 + theIteration * 434));
00240 Beam0R6NegTEC.push_back(theLaserPhiError.at(270 + theIteration * 434));
00241 Beam0R6NegTEC.push_back(theLaserPhi.at(271 + theIteration * 434));
00242 Beam0R6NegTEC.push_back(theLaserPhiError.at(271 + theIteration * 434));
00243 Beam0R6NegTEC.push_back(theLaserPhi.at(272 + theIteration * 434));
00244 Beam0R6NegTEC.push_back(theLaserPhiError.at(272 + theIteration * 434));
00245 Beam0R6NegTEC.push_back(theLaserPhi.at(273 + theIteration * 434));
00246 Beam0R6NegTEC.push_back(theLaserPhiError.at(273 + theIteration * 434));
00247 Beam0R6NegTEC.push_back(theLaserPhi.at(274 + theIteration * 434));
00248 Beam0R6NegTEC.push_back(theLaserPhiError.at(274 + theIteration * 434));
00249
00250 Beam1R6NegTEC.push_back(theLaserPhi.at(275 + theIteration * 434));
00251 Beam1R6NegTEC.push_back(theLaserPhiError.at(275 + theIteration * 434));
00252 Beam1R6NegTEC.push_back(theLaserPhi.at(276 + theIteration * 434));
00253 Beam1R6NegTEC.push_back(theLaserPhiError.at(276 + theIteration * 434));
00254 Beam1R6NegTEC.push_back(theLaserPhi.at(277 + theIteration * 434));
00255 Beam1R6NegTEC.push_back(theLaserPhiError.at(277 + theIteration * 434));
00256 Beam1R6NegTEC.push_back(theLaserPhi.at(278 + theIteration * 434));
00257 Beam1R6NegTEC.push_back(theLaserPhiError.at(278 + theIteration * 434));
00258 Beam1R6NegTEC.push_back(theLaserPhi.at(279 + theIteration * 434));
00259 Beam1R6NegTEC.push_back(theLaserPhiError.at(279 + theIteration * 434));
00260 Beam1R6NegTEC.push_back(theLaserPhi.at(280 + theIteration * 434));
00261 Beam1R6NegTEC.push_back(theLaserPhiError.at(280 + theIteration * 434));
00262 Beam1R6NegTEC.push_back(theLaserPhi.at(281 + theIteration * 434));
00263 Beam1R6NegTEC.push_back(theLaserPhiError.at(281 + theIteration * 434));
00264 Beam1R6NegTEC.push_back(theLaserPhi.at(282 + theIteration * 434));
00265 Beam1R6NegTEC.push_back(theLaserPhiError.at(282 + theIteration * 434));
00266 Beam1R6NegTEC.push_back(theLaserPhi.at(283 + theIteration * 434));
00267 Beam1R6NegTEC.push_back(theLaserPhiError.at(283 + theIteration * 434));
00268
00269 Beam2R6NegTEC.push_back(theLaserPhi.at(284 + theIteration * 434));
00270 Beam2R6NegTEC.push_back(theLaserPhiError.at(284 + theIteration * 434));
00271 Beam2R6NegTEC.push_back(theLaserPhi.at(285 + theIteration * 434));
00272 Beam2R6NegTEC.push_back(theLaserPhiError.at(285 + theIteration * 434));
00273 Beam2R6NegTEC.push_back(theLaserPhi.at(286 + theIteration * 434));
00274 Beam2R6NegTEC.push_back(theLaserPhiError.at(286 + theIteration * 434));
00275 Beam2R6NegTEC.push_back(theLaserPhi.at(287 + theIteration * 434));
00276 Beam2R6NegTEC.push_back(theLaserPhiError.at(287 + theIteration * 434));
00277 Beam2R6NegTEC.push_back(theLaserPhi.at(288 + theIteration * 434));
00278 Beam2R6NegTEC.push_back(theLaserPhiError.at(288 + theIteration * 434));
00279 Beam2R6NegTEC.push_back(theLaserPhi.at(289 + theIteration * 434));
00280 Beam2R6NegTEC.push_back(theLaserPhiError.at(289 + theIteration * 434));
00281 Beam2R6NegTEC.push_back(theLaserPhi.at(290 + theIteration * 434));
00282 Beam2R6NegTEC.push_back(theLaserPhiError.at(290 + theIteration * 434));
00283 Beam2R6NegTEC.push_back(theLaserPhi.at(291 + theIteration * 434));
00284 Beam2R6NegTEC.push_back(theLaserPhiError.at(291 + theIteration * 434));
00285 Beam2R6NegTEC.push_back(theLaserPhi.at(292 + theIteration * 434));
00286 Beam2R6NegTEC.push_back(theLaserPhiError.at(292 + theIteration * 434));
00287
00288 Beam3R6NegTEC.push_back(theLaserPhi.at(293 + theIteration * 434));
00289 Beam3R6NegTEC.push_back(theLaserPhiError.at(293 + theIteration * 434));
00290 Beam3R6NegTEC.push_back(theLaserPhi.at(294 + theIteration * 434));
00291 Beam3R6NegTEC.push_back(theLaserPhiError.at(294 + theIteration * 434));
00292 Beam3R6NegTEC.push_back(theLaserPhi.at(295 + theIteration * 434));
00293 Beam3R6NegTEC.push_back(theLaserPhiError.at(295 + theIteration * 434));
00294 Beam3R6NegTEC.push_back(theLaserPhi.at(296 + theIteration * 434));
00295 Beam3R6NegTEC.push_back(theLaserPhiError.at(296 + theIteration * 434));
00296 Beam3R6NegTEC.push_back(theLaserPhi.at(297 + theIteration * 434));
00297 Beam3R6NegTEC.push_back(theLaserPhiError.at(297 + theIteration * 434));
00298 Beam3R6NegTEC.push_back(theLaserPhi.at(298 + theIteration * 434));
00299 Beam3R6NegTEC.push_back(theLaserPhiError.at(298 + theIteration * 434));
00300 Beam3R6NegTEC.push_back(theLaserPhi.at(299 + theIteration * 434));
00301 Beam3R6NegTEC.push_back(theLaserPhiError.at(299 + theIteration * 434));
00302 Beam3R6NegTEC.push_back(theLaserPhi.at(300 + theIteration * 434));
00303 Beam3R6NegTEC.push_back(theLaserPhiError.at(300 + theIteration * 434));
00304 Beam3R6NegTEC.push_back(theLaserPhi.at(301 + theIteration * 434));
00305 Beam3R6NegTEC.push_back(theLaserPhiError.at(301 + theIteration * 434));
00306
00307 Beam4R6NegTEC.push_back(theLaserPhi.at(302 + theIteration * 434));
00308 Beam4R6NegTEC.push_back(theLaserPhiError.at(302 + theIteration * 434));
00309 Beam4R6NegTEC.push_back(theLaserPhi.at(303 + theIteration * 434));
00310 Beam4R6NegTEC.push_back(theLaserPhiError.at(303 + theIteration * 434));
00311 Beam4R6NegTEC.push_back(theLaserPhi.at(304 + theIteration * 434));
00312 Beam4R6NegTEC.push_back(theLaserPhiError.at(304 + theIteration * 434));
00313 Beam4R6NegTEC.push_back(theLaserPhi.at(305 + theIteration * 434));
00314 Beam4R6NegTEC.push_back(theLaserPhiError.at(305 + theIteration * 434));
00315 Beam4R6NegTEC.push_back(theLaserPhi.at(306 + theIteration * 434));
00316 Beam4R6NegTEC.push_back(theLaserPhiError.at(306 + theIteration * 434));
00317 Beam4R6NegTEC.push_back(theLaserPhi.at(307 + theIteration * 434));
00318 Beam4R6NegTEC.push_back(theLaserPhiError.at(307 + theIteration * 434));
00319 Beam4R6NegTEC.push_back(theLaserPhi.at(308 + theIteration * 434));
00320 Beam4R6NegTEC.push_back(theLaserPhiError.at(308 + theIteration * 434));
00321 Beam4R6NegTEC.push_back(theLaserPhi.at(309 + theIteration * 434));
00322 Beam4R6NegTEC.push_back(theLaserPhiError.at(309 + theIteration * 434));
00323 Beam4R6NegTEC.push_back(theLaserPhi.at(310 + theIteration * 434));
00324 Beam4R6NegTEC.push_back(theLaserPhiError.at(310 + theIteration * 434));
00325
00326 Beam5R6NegTEC.push_back(theLaserPhi.at(311 + theIteration * 434));
00327 Beam5R6NegTEC.push_back(theLaserPhiError.at(311 + theIteration * 434));
00328 Beam5R6NegTEC.push_back(theLaserPhi.at(312 + theIteration * 434));
00329 Beam5R6NegTEC.push_back(theLaserPhiError.at(312 + theIteration * 434));
00330 Beam5R6NegTEC.push_back(theLaserPhi.at(313 + theIteration * 434));
00331 Beam5R6NegTEC.push_back(theLaserPhiError.at(313 + theIteration * 434));
00332 Beam5R6NegTEC.push_back(theLaserPhi.at(314 + theIteration * 434));
00333 Beam5R6NegTEC.push_back(theLaserPhiError.at(314 + theIteration * 434));
00334 Beam5R6NegTEC.push_back(theLaserPhi.at(315 + theIteration * 434));
00335 Beam5R6NegTEC.push_back(theLaserPhiError.at(315 + theIteration * 434));
00336 Beam5R6NegTEC.push_back(theLaserPhi.at(316 + theIteration * 434));
00337 Beam5R6NegTEC.push_back(theLaserPhiError.at(316 + theIteration * 434));
00338 Beam5R6NegTEC.push_back(theLaserPhi.at(317 + theIteration * 434));
00339 Beam5R6NegTEC.push_back(theLaserPhiError.at(317 + theIteration * 434));
00340 Beam5R6NegTEC.push_back(theLaserPhi.at(318 + theIteration * 434));
00341 Beam5R6NegTEC.push_back(theLaserPhiError.at(318 + theIteration * 434));
00342 Beam5R6NegTEC.push_back(theLaserPhi.at(319 + theIteration * 434));
00343 Beam5R6NegTEC.push_back(theLaserPhiError.at(319 + theIteration * 434));
00344
00345 Beam6R6NegTEC.push_back(theLaserPhi.at(320 + theIteration * 434));
00346 Beam6R6NegTEC.push_back(theLaserPhiError.at(320 + theIteration * 434));
00347 Beam6R6NegTEC.push_back(theLaserPhi.at(321 + theIteration * 434));
00348 Beam6R6NegTEC.push_back(theLaserPhiError.at(321 + theIteration * 434));
00349 Beam6R6NegTEC.push_back(theLaserPhi.at(322 + theIteration * 434));
00350 Beam6R6NegTEC.push_back(theLaserPhiError.at(322 + theIteration * 434));
00351 Beam6R6NegTEC.push_back(theLaserPhi.at(323 + theIteration * 434));
00352 Beam6R6NegTEC.push_back(theLaserPhiError.at(323 + theIteration * 434));
00353 Beam6R6NegTEC.push_back(theLaserPhi.at(324 + theIteration * 434));
00354 Beam6R6NegTEC.push_back(theLaserPhiError.at(324 + theIteration * 434));
00355 Beam6R6NegTEC.push_back(theLaserPhi.at(325 + theIteration * 434));
00356 Beam6R6NegTEC.push_back(theLaserPhiError.at(325 + theIteration * 434));
00357 Beam6R6NegTEC.push_back(theLaserPhi.at(326 + theIteration * 434));
00358 Beam6R6NegTEC.push_back(theLaserPhiError.at(326 + theIteration * 434));
00359 Beam6R6NegTEC.push_back(theLaserPhi.at(327 + theIteration * 434));
00360 Beam6R6NegTEC.push_back(theLaserPhiError.at(327 + theIteration * 434));
00361 Beam6R6NegTEC.push_back(theLaserPhi.at(328 + theIteration * 434));
00362 Beam6R6NegTEC.push_back(theLaserPhiError.at(328 + theIteration * 434));
00363
00364 Beam7R6NegTEC.push_back(theLaserPhi.at(329 + theIteration * 434));
00365 Beam7R6NegTEC.push_back(theLaserPhiError.at(329 + theIteration * 434));
00366 Beam7R6NegTEC.push_back(theLaserPhi.at(330 + theIteration * 434));
00367 Beam7R6NegTEC.push_back(theLaserPhiError.at(330 + theIteration * 434));
00368 Beam7R6NegTEC.push_back(theLaserPhi.at(331 + theIteration * 434));
00369 Beam7R6NegTEC.push_back(theLaserPhiError.at(331 + theIteration * 434));
00370 Beam7R6NegTEC.push_back(theLaserPhi.at(332 + theIteration * 434));
00371 Beam7R6NegTEC.push_back(theLaserPhiError.at(332 + theIteration * 434));
00372 Beam7R6NegTEC.push_back(theLaserPhi.at(333 + theIteration * 434));
00373 Beam7R6NegTEC.push_back(theLaserPhiError.at(333 + theIteration * 434));
00374 Beam7R6NegTEC.push_back(theLaserPhi.at(334 + theIteration * 434));
00375 Beam7R6NegTEC.push_back(theLaserPhiError.at(334 + theIteration * 434));
00376 Beam7R6NegTEC.push_back(theLaserPhi.at(335 + theIteration * 434));
00377 Beam7R6NegTEC.push_back(theLaserPhiError.at(335 + theIteration * 434));
00378 Beam7R6NegTEC.push_back(theLaserPhi.at(336 + theIteration * 434));
00379 Beam7R6NegTEC.push_back(theLaserPhiError.at(336 + theIteration * 434));
00380 Beam7R6NegTEC.push_back(theLaserPhi.at(337 + theIteration * 434));
00381 Beam7R6NegTEC.push_back(theLaserPhiError.at(337 + theIteration * 434));
00382
00383
00384
00385
00386 theBeamPosition["Beam 0 in Ring 4 in TEC-"] = Beam0R4NegTEC;
00387
00388 theBeamPosition["Beam 1 in Ring 4 in TEC-"] = Beam1R4NegTEC;
00389
00390 theBeamPosition["Beam 2 in Ring 4 in TEC-"] = Beam2R4NegTEC;
00391
00392 theBeamPosition["Beam 3 in Ring 4 in TEC-"] = Beam3R4NegTEC;
00393
00394 theBeamPosition["Beam 4 in Ring 4 in TEC-"] = Beam4R4NegTEC;
00395
00396 theBeamPosition["Beam 5 in Ring 4 in TEC-"] = Beam5R4NegTEC;
00397
00398 theBeamPosition["Beam 6 in Ring 4 in TEC-"] = Beam6R4NegTEC;
00399
00400 theBeamPosition["Beam 7 in Ring 4 in TEC-"] = Beam7R4NegTEC;
00401
00402
00403 theBeamPosition["Beam 0 in Ring 6 in TEC-"] = Beam0R6NegTEC;
00404
00405 theBeamPosition["Beam 1 in Ring 6 in TEC-"] = Beam1R6NegTEC;
00406
00407 theBeamPosition["Beam 2 in Ring 6 in TEC-"] = Beam2R6NegTEC;
00408
00409 theBeamPosition["Beam 3 in Ring 6 in TEC-"] = Beam3R6NegTEC;
00410
00411 theBeamPosition["Beam 4 in Ring 6 in TEC-"] = Beam4R6NegTEC;
00412
00413 theBeamPosition["Beam 5 in Ring 6 in TEC-"] = Beam5R6NegTEC;
00414
00415 theBeamPosition["Beam 6 in Ring 6 in TEC-"] = Beam6R6NegTEC;
00416
00417 theBeamPosition["Beam 7 in Ring 6 in TEC-"] = Beam7R6NegTEC;
00418
00419
00420
00421
00422 theLaserAlignmentTrackerNegTEC->addLaserBeam(theBeamPosition["Beam 0 in Ring 4 in TEC-"], 0, 4);
00423 theLaserAlignmentTrackerNegTEC->addLaserBeam(theBeamPosition["Beam 1 in Ring 4 in TEC-"], 1, 4);
00424 theLaserAlignmentTrackerNegTEC->addLaserBeam(theBeamPosition["Beam 2 in Ring 4 in TEC-"], 2, 4);
00425 theLaserAlignmentTrackerNegTEC->addLaserBeam(theBeamPosition["Beam 3 in Ring 4 in TEC-"], 3, 4);
00426 theLaserAlignmentTrackerNegTEC->addLaserBeam(theBeamPosition["Beam 4 in Ring 4 in TEC-"], 4, 4);
00427 theLaserAlignmentTrackerNegTEC->addLaserBeam(theBeamPosition["Beam 5 in Ring 4 in TEC-"], 5, 4);
00428 theLaserAlignmentTrackerNegTEC->addLaserBeam(theBeamPosition["Beam 6 in Ring 4 in TEC-"], 6, 4);
00429 theLaserAlignmentTrackerNegTEC->addLaserBeam(theBeamPosition["Beam 7 in Ring 4 in TEC-"], 7, 4);
00430
00431 theLaserAlignmentTrackerNegTEC->addLaserBeam(theBeamPosition["Beam 0 in Ring 6 in TEC-"], 0, 6);
00432 theLaserAlignmentTrackerNegTEC->addLaserBeam(theBeamPosition["Beam 1 in Ring 6 in TEC-"], 1, 6);
00433 theLaserAlignmentTrackerNegTEC->addLaserBeam(theBeamPosition["Beam 2 in Ring 6 in TEC-"], 2, 6);
00434 theLaserAlignmentTrackerNegTEC->addLaserBeam(theBeamPosition["Beam 3 in Ring 6 in TEC-"], 3, 6);
00435 theLaserAlignmentTrackerNegTEC->addLaserBeam(theBeamPosition["Beam 4 in Ring 6 in TEC-"], 4, 6);
00436 theLaserAlignmentTrackerNegTEC->addLaserBeam(theBeamPosition["Beam 5 in Ring 6 in TEC-"], 5, 6);
00437 theLaserAlignmentTrackerNegTEC->addLaserBeam(theBeamPosition["Beam 6 in Ring 6 in TEC-"], 6, 6);
00438 theLaserAlignmentTrackerNegTEC->addLaserBeam(theBeamPosition["Beam 7 in Ring 6 in TEC-"], 7, 6);
00439 }
00440
00441
00442 edm::LogInfo("LaserAlignmentNegTEC") << "<LaserAlignmentNegTEC::alignment()>:doing the global fit ... ";
00443
00444 theLaserAlignmentTrackerNegTEC->doGlobalFit(theAlignableTracker);
00445
00446
00447
00448 if (theLaserAlignmentTrackerNegTEC != 0) { delete theLaserAlignmentTrackerNegTEC; }
00449 }
00450