25 #include "CLHEP/Random/RandGauss.h" 83 unsigned int nComp = comp.size();
88 for (
unsigned int i = 0;
i < nComp; ++
i){
92 int subdetlevel =
id.subdetId();
100 double value0 = CLHEP::RandGauss::shoot(0,value[0]);
101 double value1 = CLHEP::RandGauss::shoot(0,value[1]);
102 double value2 = CLHEP::RandGauss::shoot(0,value[2]);
103 double value3 = CLHEP::RandGauss::shoot(0,value[3]);
104 double value4 = CLHEP::RandGauss::shoot(0,value[4]);
105 double value5 = CLHEP::RandGauss::shoot(0,value[5]);
126 double value0 = CLHEP::RandGauss::shoot(0, constMis);
127 double value1 = CLHEP::RandGauss::shoot(0, constMis);
128 double value2 = CLHEP::RandGauss::shoot(0, constMis);
129 double value3 = CLHEP::RandGauss::shoot(0, dAngle);
130 double value4 = CLHEP::RandGauss::shoot(0, dAngle);
131 double value5 = CLHEP::RandGauss::shoot(0, dAngle);
149 unsigned int nComp = comp.size();
152 for (
unsigned int i = 0;
i < nComp; ++
i){
157 int subdetlevel =
id.subdetId();
162 double error0 = error[0];
163 double error1 = error[1];
164 double error2 = error[2];
165 double error3 = error[3];
166 double error4 = error[4];
167 double error5 = error[5];
172 if ((level <= 2)&&(subdetlevel == 3)){
173 error0 = 0.01; error5 = 0.001;
174 if ((level==2)&&(nComp == 2)){
179 if ((level <= 2)&&(subdetlevel == 4)){
180 error0=0.01; error1=0.01; error2=0.01; error3=0.001; error4=0.001; error5=0.001;
186 if ((level == 23)&&(subdetlevel == 4)){
187 error0=0.02; error1=0.02; error2=0.03; error3=0.0002; error4=0.0002; error5=0.0002;
189 if ((level == 22)&&(subdetlevel == 4)){
190 error0=0.01; error1=0.01; error2=0.01; error3=0.0002; error4=0.0002; error5=0.0002;
193 if ((level <= 2)&&(subdetlevel == 5)){
195 error0 = 0.015; error1 = 0.003; error2 = 0.003; error3 = 0.0002; error4 = 0.0002; error5 = 0.001;
196 if ((level == 2)&&(nComp == 2)){
200 if ((level == 27)&&(subdetlevel == 5)){
201 error0=0.02; error1=0.02; error2=0.03; error3=0.001; error4=0.001; error5=0.001;
204 if ((level <= 2)&&(subdetlevel == 6)){
205 error0 = 0.02; error5 = 0.0005;
206 if ((level==2)&&(nComp == 2)){
210 if ((level == 34)&&(subdetlevel == 6)){
211 error0=0.01; error1=0.01; error2=0.02; error3=0.00005; error4=0.00005; error5=0.00005;
213 if ((level == 33)&&(subdetlevel == 6)){
214 error0=0.01; error1=0.01; error2=0.02; error3=0.0001; error4=0.0001; error5=0.0001;
216 if ((level == 32)&&(subdetlevel == 6)){
217 error0=0.007; error1=0.007; error2=0.015; error3=0.00015; error4=0.00015; error5=0.00015;
223 double * errorData = error_Matrix.Array();
224 errorData[0] = error0*error0; errorData[2] = error1*error1; errorData[5] = error2*error2;
225 errorData[9] = error3*error3; errorData[14] = error4*error4; errorData[20] = error5*error5;
227 errorData[3] = 0.0; errorData[4] = 0.0;
228 errorData[6] = 0.0; errorData[7] = 0.0; errorData[8] = 0.0;
229 errorData[10] = 0.0; errorData[11] = 0.0; errorData[12] = 0.0; errorData[13] = 0.0;
230 errorData[15] = 0.0; errorData[16] = 0.0; errorData[17] = 0.0; errorData[18] = 0.0; errorData[19] = 0.0;
243 deltaRW(1)=0.0; deltaRW(2)=0.0; deltaRW(3)=0.0; deltaRW(4)=0.0; deltaRW(5)=0.0; deltaRW(6)=0.0;
245 if ((level == 37)&&(subdetlevel == 1)){
246 deltaRW(1)=0.3; deltaRW(2)=0.3; deltaRW(3)=0.3; deltaRW(4)=0.0017; deltaRW(5)=0.0017; deltaRW(6)=0.0017;
249 if ((level == 38)&&(subdetlevel == 3)){
250 deltaRW(1)=0.3; deltaRW(2)=0.3; deltaRW(3)=0.3; deltaRW(4)=0.0004; deltaRW(5)=0.0004; deltaRW(6)=0.0004;
253 if ((level == 39)&&(subdetlevel == 1)){
254 deltaRW(1)=0.0; deltaRW(2)=0.0; deltaRW(3)=0.0; deltaRW(4)=0.0; deltaRW(5)=0.0; deltaRW(6)=0.0;
257 if ((level == 7)&&(subdetlevel == 1)){
258 deltaRW(1)=0.2; deltaRW(2)=0.2; deltaRW(3)=0.2; deltaRW(4)=0.003; deltaRW(5)=0.003; deltaRW(6)=0.003;
260 if ((level == 6)&&(subdetlevel == 1)){
261 deltaRW(1)=0.05; deltaRW(2)=0.05; deltaRW(3)=0.05; deltaRW(4)=0.0008; deltaRW(5)=0.0008; deltaRW(6)=0.0008;
263 if ((level == 5)&&(subdetlevel == 1)){
264 deltaRW(1)=0.02; deltaRW(2)=0.02; deltaRW(3)=0.02; deltaRW(4)=0.0004; deltaRW(5)=0.0004; deltaRW(6)=0.0004;
266 if ((level == 4)&&(subdetlevel == 1)){
267 deltaRW(1)=0.01; deltaRW(2)=0.01; deltaRW(3)=0.005; deltaRW(4)=0.0002; deltaRW(5)=0.0002; deltaRW(6)=0.0002;
269 if ((level == 2)&&(subdetlevel == 1)){
270 deltaRW(1)=0.005; deltaRW(2)=0.005; deltaRW(3)=0.003; deltaRW(4)=0.001; deltaRW(5)=0.001; deltaRW(6)=0.001;
272 if ((level == 1)&&(subdetlevel == 1)){
273 deltaRW(1)=0.005; deltaRW(2)=0.005; deltaRW(3)=0.003; deltaRW(4)=0.001; deltaRW(5)=0.001; deltaRW(6)=0.001;
276 if ((level == 13)&&(subdetlevel == 2)){
277 deltaRW(1)=0.2; deltaRW(2)=0.2; deltaRW(3)=0.2; deltaRW(4)=0.0017; deltaRW(5)=0.0017; deltaRW(6)=0.0017;
279 if ((level == 12)&&(subdetlevel == 2)){
280 deltaRW(1)=0.05; deltaRW(2)=0.05; deltaRW(3)=0.05; deltaRW(4)=0.0004; deltaRW(5)=0.0004; deltaRW(6)=0.0004;
282 if ((level == 11)&&(subdetlevel == 2)){
283 deltaRW(1)=0.02; deltaRW(2)=0.02; deltaRW(3)=0.02; deltaRW(4)=0.001; deltaRW(5)=0.001; deltaRW(6)=0.001;
285 if ((level == 10)&&(subdetlevel == 2)){
286 deltaRW(1)=0.01; deltaRW(2)=0.01; deltaRW(3)=0.01; deltaRW(4)=0.001; deltaRW(5)=0.001; deltaRW(6)=0.001;
288 if ((level == 9)&&(subdetlevel == 2)){
289 deltaRW(1)=0.01; deltaRW(2)=0.01; deltaRW(3)=0.005; deltaRW(4)=0.002; deltaRW(5)=0.002; deltaRW(6)=0.002;
291 if ((level == 2)&&(subdetlevel == 2)){
292 deltaRW(1)=0.005; deltaRW(2)=0.005; deltaRW(3)=0.003; deltaRW(4)=0.001; deltaRW(5)=0.001; deltaRW(6)=0.001;
294 if ((level == 1)&&(subdetlevel == 2)){
295 deltaRW(1)=0.005; deltaRW(2)=0.005; deltaRW(3)=0.003; deltaRW(4)=0.001; deltaRW(5)=0.001; deltaRW(6)=0.001;
298 if ((level == 20)&&(subdetlevel == 3)){
299 deltaRW(1)=0.2; deltaRW(2)=0.2; deltaRW(3)=0.2; deltaRW(4)=0.0017; deltaRW(5)=0.0017; deltaRW(6)=0.0017;
301 if ((level == 19)&&(subdetlevel == 3)){
302 deltaRW(1)=0.1; deltaRW(2)=0.1; deltaRW(3)=0.1; deltaRW(4)=0.0008; deltaRW(5)=0.0008; deltaRW(6)=0.0008;
304 if ((level == 18)&&(subdetlevel == 3)){
305 deltaRW(1)=0.04; deltaRW(2)=0.04; deltaRW(3)=0.02; deltaRW(4)=0.0006; deltaRW(5)=0.0006; deltaRW(6)=0.0006;
307 if ((level == 17)&&(subdetlevel == 3)){
308 deltaRW(1)=0.03; deltaRW(2)=0.03; deltaRW(3)=0.015; deltaRW(4)=0.0004; deltaRW(5)=0.0004; deltaRW(6)=0.0004;
310 if ((level == 16)&&(subdetlevel == 3)){
311 deltaRW(1)=0.01; deltaRW(2)=0.01; deltaRW(3)=0.01; deltaRW(4)=0.0004; deltaRW(5)=0.0002; deltaRW(6)=0.0002;
313 if ((level == 15)&&(subdetlevel == 3)){
314 deltaRW(1)=0.01; deltaRW(2)=0.01; deltaRW(3)=0.01; deltaRW(4)=0.0004; deltaRW(5)=0.0002; deltaRW(6)=0.0002;
316 if ((level == 2)&&(subdetlevel == 3)){
317 deltaRW(1)=0.005; deltaRW(2)=0.005; deltaRW(3)=0.005; deltaRW(4)=0.001; deltaRW(5)=0.0005; deltaRW(6)=0.0005;
319 if ((level == 1)&&(subdetlevel == 3)){
320 deltaRW(1)=0.005; deltaRW(2)=0.005; deltaRW(3)=0.005; deltaRW(4)=0.001; deltaRW(5)=0.0005; deltaRW(6)=0.0005;
323 if ((level == 25)&&(subdetlevel == 4)){
324 deltaRW(1)=0.2; deltaRW(2)=0.2; deltaRW(3)=0.2; deltaRW(4)=0.0013; deltaRW(5)=0.0013; deltaRW(6)=0.0013;
326 if ((level == 24)&&(subdetlevel == 4)){
327 deltaRW(1)=0.05; deltaRW(2)=0.05; deltaRW(3)=0.05; deltaRW(4)=0.0004; deltaRW(5)=0.0004; deltaRW(6)=0.0004;
329 if ((level == 23)&&(subdetlevel == 4)){
330 deltaRW(1)=0.01; deltaRW(2)=0.01; deltaRW(3)=0.01; deltaRW(4)=0.0001; deltaRW(5)=0.0001; deltaRW(6)=0.0001;
332 if ((level == 22)&&(subdetlevel == 4)){
333 deltaRW(1)=0.005; deltaRW(2)=0.005; deltaRW(3)=0.005; deltaRW(4)=0.0001; deltaRW(5)=0.0001; deltaRW(6)=0.0001;
335 if ((level == 2)&&(subdetlevel == 4)){
336 deltaRW(1)=0.005; deltaRW(2)=0.005; deltaRW(3)=0.005; deltaRW(4)=0.0005; deltaRW(5)=0.0005; deltaRW(6)=0.0005;
338 if ((level == 1)&&(subdetlevel == 4)){
339 deltaRW(1)=0.005; deltaRW(2)=0.005; deltaRW(3)=0.005; deltaRW(4)=0.0005; deltaRW(5)=0.0005; deltaRW(6)=0.0005;
342 if ((level == 30)&&(subdetlevel == 5)){
343 deltaRW(1)=0.2; deltaRW(2)=0.2; deltaRW(3)=0.2; deltaRW(4)=0.0008; deltaRW(5)=0.0008; deltaRW(6)=0.0008;
345 if ((level == 29)&&(subdetlevel == 5)){
346 deltaRW(1)=0.014; deltaRW(2)=0.014; deltaRW(3)=0.05; deltaRW(4)=0.0001; deltaRW(5)=0.0001; deltaRW(6)=0.0001;
348 if ((level == 28)&&(subdetlevel == 5)){
349 deltaRW(1)=0.02; deltaRW(2)=0.02; deltaRW(3)=0.02; deltaRW(4)=0.0001; deltaRW(5)=0.0001; deltaRW(6)=0.0001;
351 if ((level == 27)&&(subdetlevel == 5)){
352 deltaRW(1)=0.01; deltaRW(2)=0.01; deltaRW(3)=0.02; deltaRW(4)=0.0001; deltaRW(5)=0.0001; deltaRW(6)=0.0001;
354 if ((level == 2)&&(subdetlevel == 5)){
355 deltaRW(1)=0.003; deltaRW(2)=0.003; deltaRW(3)=0.01; deltaRW(4)=0.0002; deltaRW(5)=0.0002; deltaRW(6)=0.0002;
357 if ((level == 1)&&(subdetlevel == 5)){
358 deltaRW(1)=0.003; deltaRW(2)=0.003; deltaRW(3)=0.01; deltaRW(4)=0.0002; deltaRW(5)=0.0002; deltaRW(6)=0.0002;
361 if ((level == 36)&&(subdetlevel == 6)){
362 deltaRW(1)=0.2; deltaRW(2)=0.2; deltaRW(3)=0.2; deltaRW(4)=0.0008; deltaRW(5)=0.0008; deltaRW(6)=0.0008;
364 if ((level == 35)&&(subdetlevel == 6)){
365 deltaRW(1)=0.05; deltaRW(2)=0.05; deltaRW(3)=0.05; deltaRW(4)=0.0003; deltaRW(5)=0.0003; deltaRW(6)=0.0003;
367 if ((level == 34)&&(subdetlevel == 6)){
368 deltaRW(1)=0.01; deltaRW(2)=0.01; deltaRW(3)=0.02; deltaRW(4)=0.00005; deltaRW(5)=0.00005; deltaRW(6)=0.00005;
370 if ((level == 33)&&(subdetlevel == 6)){
371 deltaRW(1)=0.01; deltaRW(2)=0.01; deltaRW(3)=0.02; deltaRW(4)=0.0001; deltaRW(5)=0.0001; deltaRW(6)=0.0001;
373 if ((level == 32)&&(subdetlevel == 6)){
374 deltaRW(1)=0.007; deltaRW(2)=0.007; deltaRW(3)=0.015; deltaRW(4)=0.00015; deltaRW(5)=0.00015; deltaRW(6)=0.00015;
376 if ((level == 2)&&(subdetlevel == 6)){
377 deltaRW(1)=0.002; deltaRW(2)=0.002; deltaRW(3)=0.005; deltaRW(4)=0.0001; deltaRW(5)=0.0001; deltaRW(6)=0.0001;
379 if ((level == 1)&&(subdetlevel == 6)){
380 deltaRW(1)=0.002; deltaRW(2)=0.002; deltaRW(3)=0.005; deltaRW(4)=0.0001; deltaRW(5)=0.0001; deltaRW(6)=0.0001;
391 deltaRW(1)=0.0; deltaRW(2)=0.0; deltaRW(3)=0.0; deltaRW(4)=0.0; deltaRW(5)=0.0; deltaRW(6)=0.0;
393 if ((level == 37)&&(subdetlevel == 1)){
394 deltaRW(1)=0.2; deltaRW(2)=0.2; deltaRW(3)=0.2; deltaRW(4)=0.0017; deltaRW(5)=0.0017; deltaRW(6)=0.0017;
397 if ((level == 38)&&(subdetlevel == 3)){
398 deltaRW(1)=0.2; deltaRW(2)=0.2; deltaRW(3)=0.2; deltaRW(4)=0.0004; deltaRW(5)=0.0004; deltaRW(6)=0.0004;
401 if ((level == 39)&&(subdetlevel == 1)){
402 deltaRW(1)=0.0; deltaRW(2)=0.0; deltaRW(3)=0.0; deltaRW(4)=0.0; deltaRW(5)=0.0; deltaRW(6)=0.0;
405 if ((level == 7)&&(subdetlevel == 1)){
406 deltaRW(1)=0.05; deltaRW(2)=0.05; deltaRW(3)=0.1; deltaRW(4)=0.0008; deltaRW(5)=0.0008; deltaRW(6)=0.0008;
408 if ((level == 6)&&(subdetlevel == 1)){
409 deltaRW(1)=0.015; deltaRW(2)=0.015; deltaRW(3)=0.03; deltaRW(4)=0.0003; deltaRW(5)=0.0003; deltaRW(6)=0.0003;
411 if ((level == 5)&&(subdetlevel == 1)){
412 deltaRW(1)=0.005; deltaRW(2)=0.005; deltaRW(3)=0.01; deltaRW(4)=0.0001; deltaRW(5)=0.0001; deltaRW(6)=0.0001;
414 if ((level == 4)&&(subdetlevel == 1)){
415 deltaRW(1)=0.001; deltaRW(2)=0.001; deltaRW(3)=0.002; deltaRW(4)=0.00005; deltaRW(5)=0.00005; deltaRW(6)=0.00005;
417 if ((level == 2)&&(subdetlevel == 1)){
418 deltaRW(1)=0.0005; deltaRW(2)=0.001; deltaRW(3)=0.001; deltaRW(4)=0.0001; deltaRW(5)=0.0001; deltaRW(6)=0.0001;
420 if ((level == 1)&&(subdetlevel == 1)){
421 deltaRW(1)=0.0005; deltaRW(2)=0.001; deltaRW(3)=0.001; deltaRW(4)=0.0001; deltaRW(5)=0.0001; deltaRW(6)=0.0001;
424 if ((level == 13)&&(subdetlevel == 2)){
425 deltaRW(1)=0.05; deltaRW(2)=0.05; deltaRW(3)=0.1; deltaRW(4)=0.0004; deltaRW(5)=0.0004; deltaRW(6)=0.0004;
427 if ((level == 12)&&(subdetlevel == 2)){
428 deltaRW(1)=0.015; deltaRW(2)=0.015; deltaRW(3)=0.03; deltaRW(4)=0.00015; deltaRW(5)=0.00015; deltaRW(6)=0.00015;
430 if ((level == 11)&&(subdetlevel == 2)){
431 deltaRW(1)=0.005; deltaRW(2)=0.005; deltaRW(3)=0.01; deltaRW(4)=0.0001; deltaRW(5)=0.0001; deltaRW(6)=0.0001;
433 if ((level == 10)&&(subdetlevel == 2)){
434 deltaRW(1)=0.001; deltaRW(2)=0.001; deltaRW(3)=0.002; deltaRW(4)=0.0001; deltaRW(5)=0.0001; deltaRW(6)=0.0001;
436 if ((level == 9)&&(subdetlevel == 2)){
437 deltaRW(1)=0.001; deltaRW(2)=0.0008; deltaRW(3)=0.0006; deltaRW(4)=0.0002; deltaRW(5)=0.0002; deltaRW(6)=0.0002;
439 if ((level == 2)&&(subdetlevel == 2)){
440 deltaRW(1)=0.0005; deltaRW(2)=0.0004; deltaRW(3)=0.0006; deltaRW(4)=0.0001; deltaRW(5)=0.0003; deltaRW(6)=0.0001;
442 if ((level == 1)&&(subdetlevel == 2)){
443 deltaRW(1)=0.0005; deltaRW(2)=0.0004; deltaRW(3)=0.0006; deltaRW(4)=0.0001; deltaRW(5)=0.0003; deltaRW(6)=0.0001;
446 if ((level == 20)&&(subdetlevel == 3)){
447 deltaRW(1)=0.08; deltaRW(2)=0.08; deltaRW(3)=0.04; deltaRW(4)=0.0017; deltaRW(5)=0.0017; deltaRW(6)=0.0017;
449 if ((level == 19)&&(subdetlevel == 3)){
450 deltaRW(1)=0.04; deltaRW(2)=0.04; deltaRW(3)=0.02; deltaRW(4)=0.0003; deltaRW(5)=0.0003; deltaRW(6)=0.0003;
452 if ((level == 18)&&(subdetlevel == 3)){
453 deltaRW(1)=0.02; deltaRW(2)=0.02; deltaRW(3)=0.01; deltaRW(4)=0.0006; deltaRW(5)=0.0006; deltaRW(6)=0.0006;
455 if ((level == 17)&&(subdetlevel == 3)){
456 deltaRW(1)=0.01; deltaRW(2)=0.01; deltaRW(3)=0.005; deltaRW(4)=0.0002; deltaRW(5)=0.0002; deltaRW(6)=0.0002;
458 if ((level == 16)&&(subdetlevel == 3)){
459 deltaRW(1)=0.004; deltaRW(2)=0.004; deltaRW(3)=0.008; deltaRW(4)=0.0002; deltaRW(5)=0.0001; deltaRW(6)=0.0001;
461 if ((level == 15)&&(subdetlevel == 3)){
462 deltaRW(1)=0.004; deltaRW(2)=0.004; deltaRW(3)=0.008; deltaRW(4)=0.0002; deltaRW(5)=0.0001; deltaRW(6)=0.0001;
464 if ((level == 2)&&(subdetlevel == 3)){
465 deltaRW(1)=0.002; deltaRW(2)=0.002; deltaRW(3)=0.004; deltaRW(4)=0.0004; deltaRW(5)=0.0002; deltaRW(6)=0.0002;
467 if ((level == 1)&&(subdetlevel == 3)){
468 deltaRW(1)=0.002; deltaRW(2)=0.002; deltaRW(3)=0.004; deltaRW(4)=0.0004; deltaRW(5)=0.0002; deltaRW(6)=0.0002;
471 if ((level == 25)&&(subdetlevel == 4)){
472 deltaRW(1)=0.05; deltaRW(2)=0.05; deltaRW(3)=0.1; deltaRW(4)=0.0003; deltaRW(5)=0.0003; deltaRW(6)=0.0003;
474 if ((level == 24)&&(subdetlevel == 4)){
475 deltaRW(1)=0.01; deltaRW(2)=0.01; deltaRW(3)=0.02; deltaRW(4)=0.0001; deltaRW(5)=0.0001; deltaRW(6)=0.0001;
477 if ((level == 23)&&(subdetlevel == 4)){
478 deltaRW(1)=0.004; deltaRW(2)=0.004; deltaRW(3)=0.005; deltaRW(4)=0.00004; deltaRW(5)=0.00004; deltaRW(6)=0.00004;
480 if ((level == 22)&&(subdetlevel == 4)){
481 deltaRW(1)=0.002; deltaRW(2)=0.002; deltaRW(3)=0.002; deltaRW(4)=0.00004; deltaRW(5)=0.00004; deltaRW(6)=0.00004;
483 if ((level == 2)&&(subdetlevel == 4)){
484 deltaRW(1)=0.002; deltaRW(2)=0.002; deltaRW(3)=0.002; deltaRW(4)=0.0002; deltaRW(5)=0.0002; deltaRW(6)=0.0002;
486 if ((level == 1)&&(subdetlevel == 4)){
487 deltaRW(1)=0.002; deltaRW(2)=0.002; deltaRW(3)=0.002; deltaRW(4)=0.0002; deltaRW(5)=0.0002; deltaRW(6)=0.0002;
490 if ((level == 30)&&(subdetlevel == 5)){
491 deltaRW(1)=0.06; deltaRW(2)=0.06; deltaRW(3)=0.06; deltaRW(4)=0.00025; deltaRW(5)=0.00025; deltaRW(6)=0.00025;
493 if ((level == 29)&&(subdetlevel == 5)){
494 deltaRW(1)=0.014; deltaRW(2)=0.014; deltaRW(3)=0.05; deltaRW(4)=0.0001; deltaRW(5)=0.0001; deltaRW(6)=0.0001;
496 if ((level == 28)&&(subdetlevel == 5)){
497 deltaRW(1)=0.02; deltaRW(2)=0.02; deltaRW(3)=0.02; deltaRW(4)=0.0001; deltaRW(5)=0.0001; deltaRW(6)=0.0001;
499 if ((level == 27)&&(subdetlevel == 5)){
500 deltaRW(1)=0.01; deltaRW(2)=0.01; deltaRW(3)=0.02; deltaRW(4)=0.0001; deltaRW(5)=0.0001; deltaRW(6)=0.0001;
502 if ((level == 2)&&(subdetlevel == 5)){
503 deltaRW(1)=0.003; deltaRW(2)=0.003; deltaRW(3)=0.01; deltaRW(4)=0.0002; deltaRW(5)=0.0002; deltaRW(6)=0.0002;
505 if ((level == 1)&&(subdetlevel == 5)){
506 deltaRW(1)=0.003; deltaRW(2)=0.003; deltaRW(3)=0.01; deltaRW(4)=0.0002; deltaRW(5)=0.0002; deltaRW(6)=0.0002;
509 if ((level == 36)&&(subdetlevel == 6)){
510 deltaRW(1)=0.06; deltaRW(2)=0.06; deltaRW(3)=0.1; deltaRW(4)=0.0003; deltaRW(5)=0.0003; deltaRW(6)=0.0003;
512 if ((level == 35)&&(subdetlevel == 6)){
513 deltaRW(1)=0.015; deltaRW(2)=0.015; deltaRW(3)=0.03; deltaRW(4)=0.0001; deltaRW(5)=0.0001; deltaRW(6)=0.0001;
515 if ((level == 34)&&(subdetlevel == 6)){
516 deltaRW(1)=0.01; deltaRW(2)=0.01; deltaRW(3)=0.02; deltaRW(4)=0.00005; deltaRW(5)=0.00005; deltaRW(6)=0.00005;
518 if ((level == 33)&&(subdetlevel == 6)){
519 deltaRW(1)=0.01; deltaRW(2)=0.01; deltaRW(3)=0.02; deltaRW(4)=0.0001; deltaRW(5)=0.0001; deltaRW(6)=0.0001;
521 if ((level == 32)&&(subdetlevel == 6)){
522 deltaRW(1)=0.007; deltaRW(2)=0.007; deltaRW(3)=0.015; deltaRW(4)=0.00015; deltaRW(5)=0.00015; deltaRW(6)=0.00015;
524 if ((level == 2)&&(subdetlevel == 6)){
525 deltaRW(1)=0.002; deltaRW(2)=0.002; deltaRW(3)=0.005; deltaRW(4)=0.0001; deltaRW(5)=0.0001; deltaRW(6)=0.0001;
527 if ((level == 1)&&(subdetlevel == 6)){
528 deltaRW(1)=0.002; deltaRW(2)=0.002; deltaRW(3)=0.005; deltaRW(4)=0.0001; deltaRW(5)=0.0001; deltaRW(6)=0.0001;
void setSurveyErrors(Alignable *)
module which creates/inserts the survey errors
void analyze(const edm::Event &, const edm::EventSetup &) override
Do nothing for each event.
align::ID id() const
Return the ID of Alignable, i.e. DetId of 'first' component GeomDet(Unit).
T getUntrackedParameter(std::string const &, T const &) const
virtual void rotateAroundLocalZ(Scalar radians)
Rotation around local z-axis.
Class to update a given geometry with a set of alignments.
#define DEFINE_FWK_MODULE(type)
def setup(process, global_tag, zero_tesla=False)
GlobalVector diffR(const GlobalVectors ¤t, const GlobalVectors &nominal)
TrackerGeometry * build(const GeometricDet *gd, const PTrackerParameters &ptp, const TrackerTopology *tTopo)
virtual void move(const GlobalVector &displacement)=0
Movement with respect to the global reference frame.
edm::ESHandle< Alignments > alignments
void setGeometry(Alignable *)
module which modifies the geometry
virtual StructureType alignableObjectId() const =0
Return the alignable type identifier.
virtual Alignables components() const =0
Return vector of all direct components.
AlgebraicVector getStructureErrors(int, int)
default values for survey uncertainty
const AlignableSurface & surface() const
Return the Surface (global position and orientation) of the object.
void applyAlignments(C *geometry, const Alignments *alignments, const AlignmentErrorsExtended *alignmentErrors, const AlignTransform &globalCoordinates)
CLHEP::HepVector AlgebraicVector
align::Scalar length() const
void setSurvey(const SurveyDet *)
Set survey info.
virtual void rotateAroundLocalY(Scalar radians)
Rotation around local y-axis.
std::vector< Alignable * > Alignables
CreateSurveyRcds(const edm::ParameterSet &)
virtual void rotateAroundLocalX(Scalar radians)
Rotation around local x-axis.
align::GlobalPoints toGlobal(const align::LocalPoints &) const
Return in global coord given a set of local points.
math::Error< 6 >::type ErrorMatrix
AlgebraicVector getStructurePlacements(int, int)
default values for assembly precision
T const * product() const
Alignable * mother() const
Return pointer to container alignable (if any)