141 from CaloClusterCorrection.CaloComputeSWcellWeights \
142 import make_CaloComputeSWcellWeights
143 from CaloClusterCorrection.CaloSwLayers
import make_CaloSwLayers
144 from CaloClusterCorrection.CaloSwRfac
import make_CaloSwRfac
145 from CaloClusterCorrection.CaloSwEtaoff
import make_CaloSwEtaoff
146 from CaloClusterCorrection.CaloSwPhioff
import make_CaloSwPhioff
147 from CaloClusterCorrection.CaloSwEtamod
import make_CaloSwEtamod
148 from CaloClusterCorrection.CaloSwPhimod
import make_CaloSwPhimod
149 from CaloClusterCorrection.CaloSwClusterUpdate \
150 import make_CaloSwClusterUpdate
151 from CaloClusterCorrection.CaloSwGap
import make_CaloSwGap
152 from CaloClusterCorrection.CaloSwLongWeights
import make_CaloSwLongWeights
153 from CaloClusterCorrection.CaloSwCalibHitsCalibration
import make_CaloSwCalibHitsCalibration
154 from CaloClusterCorrection.CaloSwDeadOTX_ps
import make_CaloSwDeadOTX_ps
155 from CaloClusterCorrection.CaloSwDeadOTX_back
import make_CaloSwDeadOTX_back
156 from CaloClusterCorrection.CaloSwTransitionRegionsCorr
import make_CaloSwTransitionRegionsCorr
157 from CaloClusterCorrection.CaloClusterListBadChannel
import make_CaloClusterListBadChannel
158 from CaloClusterCorrection.CaloSwClcon
import make_CaloSwClcon
159 from CaloClusterCorrection.CaloSwTime
import make_CaloSwTime
160 from CaloClusterCorrection.constants
import \
161 CALOCORR_SW, EMB1, EME1, EMB2, EME2
162 from CaloClusterCorrection.common
import CaloClusterCorrSetup
164 from CaloClusterCorrection.CaloClusterRemoveDuplicates
import make_CaloClusterRemoveDuplicates
165 from CaloClusterCorrection.CaloClusterRemoveBad
import make_CaloClusterRemoveBad
176 def layers (flags, cells_name, *args, **kw):
177 return make_CaloSwLayers (flags,
None, *args, cells_name=cells_name, **kw)
179 def weight (flags, cells_name, *args, **kw):
180 return make_CaloComputeSWcellWeights (flags,
None, *args, **kw)
182 def rfac (flags, cells_name, *args, **kw):
183 return make_CaloSwRfac (flags,
None, *args, **kw)
186 return make_CaloSwEtaoff (flags, EMB1,
None, *args, **kw)
189 return make_CaloSwEtaoff (flags, EMB2,
None, *args, **kw)
192 return make_CaloSwEtaoff (flags, EME1,
None, *args, **kw)
195 return make_CaloSwEtaoff (flags, EME2,
None, *args, **kw)
198 return make_CaloSwPhioff (flags, EMB2,
None, *args, **kw)
201 return make_CaloSwPhioff (flags, EME2,
None, *args, **kw)
203 def phimod (flags, cells_name, *args, **kw):
204 return make_CaloSwPhimod (flags,
None, *args, **kw)
206 def etamod (flags, cells_name, *args, **kw):
207 return make_CaloSwEtamod (flags,
None, *args, **kw)
209 def update (flags, cells_name, *args, **kw):
210 return make_CaloSwClusterUpdate (flags,
None, *args, **kw)
212 def gap (flags, cells_name, *args, **kw):
213 return make_CaloSwGap (flags,
None, *args, cells_name=cells_name, **kw)
215 def lwc (flags, cells_name, *args, **kw):
216 return make_CaloSwLongWeights (flags,
None, *args, **kw)
219 return make_CaloSwCalibHitsCalibration (flags,
None, *args, **kw)
221 def trcorr (flags, cells_name, *args, **kw):
222 return make_CaloSwTransitionRegionsCorr (flags,
None, *args, **kw)
225 return make_CaloSwDeadOTX_ps (flags,
None, *args, **kw )
228 return make_CaloSwDeadOTX_back (flags,
None, *args, **kw )
230 def clcon (flags, cells_name, *args, **kw):
231 return make_CaloSwClcon (flags,
None, *args, **kw)
234 return make_CaloClusterRemoveDuplicates (flags,
None, *args, **kw)
237 return make_CaloClusterRemoveBad (flags,
None, *args, **kw)
240 return make_CaloClusterListBadChannel (flags, CALOCORR_SW,
None, *args, **kw)
242 def time (flags, cells_name, *args, **kw):
243 return make_CaloSwTime (flags,
None, *args, **kw)
251 pat =
'(_' + fragment +
')(_|$)'
252 m = re.search (pat, version)
256 version = version[:m.start(1)] + version[m.end(1):]
257 return (ret, version)
262 name =
"EM sliding-window"
263 version_override_flag_name =
'caloSwWhichCorrection'
264 correction_generation_flag_name =
'caloSwGeneration'
267 correction_generation_default =
"00-02-12"
275 'none' : [[layers, 100],
281 'g3' : [[layers, 100],
282 [etaoff_b2,
'g3', 201],
283 [etaoff_e2,
'g3', 202],
284 [phioff_b2,
'g3', 203],
285 [phioff_e2,
'g3', 204],
286 [etaoff_b1,
'g3', 205],
287 [etaoff_e1,
'g3', 206],
290 [update,
'dont_update_e', 300],
304 'DC2' : [[layers, 100],
305 [etaoff_b2,
'v2', 201],
306 [etaoff_e2,
'v2', 202],
307 [phioff_b2,
'v2', 203],
308 [phioff_e2,
'v2', 204],
309 [etaoff_b1,
'v2', 205],
310 [etaoff_e1,
'v2', 206],
313 [update,
'dont_update_e', 300],
327 'DC2new' : [[layers, 100],
328 [etaoff_b2,
'v2', 201],
329 [etaoff_e2,
'v2', 202],
330 [phioff_b2,
'v2', 203],
331 [phioff_e2,
'v2', 204],
332 [etaoff_b1,
'v2', 205],
333 [etaoff_e1,
'v2', 206],
336 [update,
'dont_update_e', 300],
339 [clcon,
'dc2new', 480],
348 'Rome' : [[layers, 100],
349 [etaoff_b2,
'v2', 201],
350 [etaoff_e2,
'v2', 202],
351 [phioff_b2,
'v2', 203],
352 [phioff_e2,
'v2', 204],
353 [etaoff_b1,
'v2', 205],
354 [etaoff_e1,
'v2', 206],
357 [update,
'dont_update_e', 300],
359 [lwc,
'904gap', 450],
364 'DC3-02' : [[layers, 100],
365 [etaoff_b2,
'v2', 201],
366 [etaoff_e2,
'v2', 202],
367 [phioff_b2,
'v2', 203],
368 [phioff_e2,
'v2', 204],
369 [etaoff_b1,
'v2', 205],
370 [etaoff_e1,
'v2', 206],
373 [update,
'dont_update_e', 300],
384 'DC3-02-V3' : [[layers, 100],
386 [etaoff_b1,
'v3', 201],
387 [etaoff_e1,
'v3', 202],
388 [etaoff_b2,
'v3', 203],
389 [etaoff_e2,
'v3', 204],
390 [phioff_b2,
'v3', 205],
391 [phioff_e2,
'v3', 206],
403 'v4' : [[layers, 100],
405 [etaoff_b1,
'v4', 201],
406 [etaoff_e1,
'v4', 202],
407 [etaoff_b2,
'v4', 203],
408 [etaoff_e2,
'v4', 204],
409 [phioff_b2,
'v4', 205],
410 [phioff_e2,
'v4', 206],
417 [listBadChannel, 820]],
422 'v4_1' : [[layers, 100],
424 [etaoff_b1,
'v4_1', 201],
425 [etaoff_e1,
'v4_1', 202],
426 [etaoff_b2,
'v4_1', 203],
427 [etaoff_e2,
'v4_1', 204],
428 [phioff_b2,
'v4', 205],
429 [phioff_e2,
'v4', 206],
436 [listBadChannel, 820]],
440 'v4_calh' : [[layers, 100],
442 [etaoff_b1,
'v4', 201],
443 [etaoff_e1,
'v4', 202],
444 [etaoff_b2,
'v4', 203],
445 [etaoff_e2,
'v4', 204],
446 [phioff_b2,
'v4', 205],
447 [phioff_e2,
'v4', 206],
450 [calhits,
'v1', 450],
454 [listBadChannel, 820]],
458 'v4_1_calh' : [[layers, 100],
460 [etaoff_b1,
'v4_1', 201],
461 [etaoff_e1,
'v4_1', 202],
462 [etaoff_b2,
'v4_1', 203],
463 [etaoff_e2,
'v4_1', 204],
464 [phioff_b2,
'v4', 205],
465 [phioff_e2,
'v4', 206],
468 [calhits,
'v2', 450],
473 [listBadChannel, 820]],
477 'v5_lwc' : [[layers, 100],
479 [etaoff_b1,
'v4_1', 201],
480 [etaoff_e1,
'v4_1', 202],
481 [etaoff_b2,
'v4_1', 203],
482 [etaoff_e2,
'v4_1', 204],
483 [phioff_b2,
'v4', 205],
484 [phioff_e2,
'v4', 206],
491 [listBadChannel, 820]],
495 'v6_lwc' : [[layers, 100],
497 [etaoff_b1,
'v4_1', 201],
498 [etaoff_e1,
'v4_1', 202],
499 [etaoff_b2,
'v4_1', 203],
500 [etaoff_e2,
'v4_1', 204],
501 [phioff_b2,
'v4', 205],
502 [phioff_e2,
'v4', 206],
509 [listBadChannel, 820]],
515 'v5_calh' : [[layers, 100],
517 [etaoff_b1,
'v4_1', 201],
518 [etaoff_e1,
'v4_1', 202],
519 [etaoff_b2,
'v4_1', 203],
520 [etaoff_e2,
'v4_1', 204],
521 [phioff_b2,
'v4', 205],
522 [phioff_e2,
'v4', 206],
525 [calhits,
'v5', 450],
530 [listBadChannel, 820]],
533 'v5_1_calh' : [[layers, 100],
535 [etaoff_b1,
'v4_1', 201],
536 [etaoff_e1,
'v4_1', 202],
537 [etaoff_b2,
'v4_1', 203],
538 [etaoff_e2,
'v4_1', 204],
539 [phioff_b2,
'v4', 205],
540 [phioff_e2,
'v4', 206],
543 [calhits,
'v5_1', 450],
544 [trcorr,
'v5_1', 451],
548 [listBadChannel, 820]],
555 'v6_calh' : [[layers, 100],
557 [etaoff_b1,
'v4_1', 201],
558 [etaoff_e1,
'v4_1', 202],
559 [etaoff_b2,
'v4_1', 203],
560 [etaoff_e2,
'v4_1', 204],
561 [phioff_b2,
'v4', 205],
562 [phioff_e2,
'v4', 206],
565 [calhits,
'v6', 450],
566 [trcorr,
'v5_1', 451],
570 [listBadChannel, 820]],
576 'v6data_calh' : [[layers, 100],
578 [etaoff_b1,
'v4_1', 201],
579 [etaoff_e1,
'v4_1', 202],
580 [etaoff_b2,
'v4_1', 203],
581 [etaoff_e2,
'v4_1', 204],
582 [phioff_b2,
'v4data', 205],
583 [phioff_e2,
'v4data', 206],
586 [calhits,
'v6', 450],
587 [trcorr,
'v5_1', 451],
588 [phimod,
'v4data', 501],
591 [listBadChannel, 820]],
599 'v6dataleak_calh' : [[layers, 100],
601 [etaoff_b1,
'v4_1', 201],
602 [etaoff_e1,
'v4_1', 202],
603 [etaoff_b2,
'v4_1', 203],
604 [etaoff_e2,
'v4_1', 204],
605 [phioff_b2,
'v4data', 205],
606 [phioff_e2,
'v4data', 206],
609 [calhits,
'v6leakdata', 450],
610 [trcorr,
'v5_1', 451],
611 [phimod,
'v4data', 501],
614 [listBadChannel, 820]],
620 'v7_calh' : [[layers, 100],
622 [etaoff_b1,
'v4_1', 201],
623 [etaoff_e1,
'v4_1', 202],
624 [etaoff_b2,
'v4_1', 203],
625 [etaoff_e2,
'v4_1', 204],
626 [phioff_b2,
'v4', 205],
627 [phioff_e2,
'v4', 206],
630 [calhits,
'v6', 450],
631 [trcorr,
'v5_1', 451],
632 [deadOTXps,
'v1' , 460],
633 [deadOTXback,
'v1' , 461],
637 [listBadChannel, 820]],
643 'v7data_calh' : [[layers, 100],
645 [etaoff_b1,
'v4_1', 201],
646 [etaoff_e1,
'v4_1', 202],
647 [etaoff_b2,
'v4_1', 203],
648 [etaoff_e2,
'v4_1', 204],
649 [phioff_b2,
'v4data', 205],
650 [phioff_e2,
'v4data', 206],
653 [calhits,
'v6', 450],
654 [trcorr,
'v5_1', 451],
655 [deadOTXps,
'v1' , 460],
656 [deadOTXback,
'v1' , 461],
657 [phimod,
'v4data', 501],
660 [listBadChannel, 820]],
668 'v7dataleak_calh' : [[layers, 100],
670 [etaoff_b1,
'v4_1', 201],
671 [etaoff_e1,
'v4_1', 202],
672 [etaoff_b2,
'v4_1', 203],
673 [etaoff_e2,
'v4_1', 204],
674 [phioff_b2,
'v4data', 205],
675 [phioff_e2,
'v4data', 206],
678 [calhits,
'v6leakdata', 450],
679 [trcorr,
'v5_1', 451],
680 [deadOTXps,
'v1' , 460],
681 [deadOTXback,
'v1' , 461],
682 [phimod,
'v4data', 501],
685 [listBadChannel, 820]],
688 'v8_calh' : [[layers, 100],
690 [etaoff_b1,
'v4_1', 201],
691 [etaoff_e1,
'v4_1', 202],
692 [etaoff_b2,
'v4_1', 203],
693 [etaoff_e2,
'v4_1', 204],
694 [phioff_b2,
'v4', 205],
695 [phioff_e2,
'v4', 206],
698 [calhits,
'v8', 450],
699 [trcorr,
'v5_1', 451],
700 [deadOTXps,
'v1' , 460],
701 [deadOTXback,
'v1' , 461],
702 [phimod,
'v4' , 501],
705 [listBadChannel, 820]],
709 'v8dataleak_calh' : [[layers, 100],
711 [etaoff_b1,
'v4_1', 201],
712 [etaoff_e1,
'v4_1', 202],
713 [etaoff_b2,
'v4_1', 203],
714 [etaoff_e2,
'v4_1', 204],
715 [phioff_b2,
'v4data', 205],
716 [phioff_e2,
'v4data', 206],
719 [calhits,
'v8leakdata', 450],
720 [trcorr,
'v5_1', 451],
721 [deadOTXps,
'v1' , 460],
722 [deadOTXback,
'v1' , 461],
723 [phimod,
'v4data', 501],
726 [listBadChannel, 820]],
729 'v9_calh' : [[layers, 100],
731 [etaoff_b1,
'v4_1', 201],
732 [etaoff_e1,
'v4_1', 202],
733 [etaoff_b2,
'v4_1', 203],
734 [etaoff_e2,
'v4_1', 204],
735 [phioff_b2,
'v4', 205],
736 [phioff_e2,
'v4', 206],
739 [calhits,
'v9', 450],
740 [trcorr,
'v5_1', 451],
741 [deadOTXps,
'v1' , 460],
742 [deadOTXback,
'v1' , 461],
743 [phimod,
'v4' , 501],
746 [listBadChannel, 820]],
751 'v9dataleak_calh' : [[layers, 100],
753 [etaoff_b1,
'v4_1', 201],
754 [etaoff_e1,
'v4_1', 202],
755 [etaoff_b2,
'v4_1', 203],
756 [etaoff_e2,
'v4_1', 204],
757 [phioff_b2,
'v4data', 205],
758 [phioff_e2,
'v4data', 206],
761 [calhits,
'v9leakdata', 450],
762 [trcorr,
'v5_1', 451],
763 [deadOTXps,
'v1' , 460],
764 [deadOTXback,
'v1' , 461],
765 [phimod,
'v4data', 501],
768 [listBadChannel, 820]],
771 'v10_calh' : [[layers, 100],
773 [etaoff_b1,
'v4_1', 201],
774 [etaoff_e1,
'v4_1', 202],
775 [etaoff_b2,
'v4_1', 203],
776 [etaoff_e2,
'v4_1', 204],
777 [phioff_b2,
'v4', 205],
778 [phioff_e2,
'v4', 206],
781 [calhits,
'v9', 450],
782 [trcorr,
'v5_1', 451],
783 [deadOTXps,
'v1' , 460],
784 [deadOTXback,
'v1' , 461],
785 [phimod,
'v4' , 501],
788 [listBadChannel, 820]],
791 'v10dataleak_calh' : [[layers, 100],
793 [etaoff_b1,
'v4_1', 201],
794 [etaoff_e1,
'v4_1', 202],
795 [etaoff_b2,
'v4_1', 203],
796 [etaoff_e2,
'v4_1', 204],
797 [phioff_b2,
'v4data', 205],
798 [phioff_e2,
'v4data', 206],
801 [calhits,
'v9leakdata', 450],
802 [trcorr,
'v5_1', 451],
803 [deadOTXps,
'v1' , 460],
804 [deadOTXback,
'v1' , 461],
805 [phimod,
'v4data', 501],
808 [listBadChannel, 820]],
811 'v11_calh' : [[layers, 100],
813 [etaoff_b1,
'v4_1', 201],
814 [etaoff_e1,
'v4_1', 202],
815 [etaoff_b2,
'v4_1', 203],
816 [etaoff_e2,
'v4_1', 204],
817 [phioff_b2,
'v4', 205],
818 [phioff_e2,
'v4', 206],
821 [calhits,
'v9', 450],
822 [trcorr,
'v5_1', 451],
823 [deadOTXps,
'v1' , 460],
824 [deadOTXback,
'v1' , 461],
825 [phimod,
'v4' , 501],
828 [listBadChannel, 820]],
831 'v11dataleak_calh' : [[layers, 100],
833 [etaoff_b1,
'v4_1', 201],
834 [etaoff_e1,
'v4_1', 202],
835 [etaoff_b2,
'v4_1', 203],
836 [etaoff_e2,
'v4_1', 204],
837 [phioff_b2,
'v4data', 205],
838 [phioff_e2,
'v4data', 206],
841 [calhits,
'v9leakdata', 450],
842 [trcorr,
'v5_1', 451],
843 [deadOTXps,
'v1' , 460],
844 [deadOTXback,
'v1' , 461],
845 [phimod,
'v4data', 501],
848 [listBadChannel, 820]],
852 'v11_noecorr' : [[layers, 100],
854 [etaoff_b1,
'v4_1', 201],
855 [etaoff_e1,
'v4_1', 202],
856 [etaoff_b2,
'v4_1', 203],
857 [etaoff_e2,
'v4_1', 204],
858 [phioff_b2,
'v4', 205],
859 [phioff_e2,
'v4', 206],
863 [listBadChannel, 820]],
867 'v11phiflip_noecorr' : [[layers, 100],
869 [etaoff_b1,
'v4_1', 201],
870 [etaoff_e1,
'v4_1', 202],
871 [etaoff_b2,
'v4_1', 203],
872 [etaoff_e2,
'v4_1', 204],
873 [phioff_b2,
'v4data', 205],
874 [phioff_e2,
'v4data', 206],
878 [listBadChannel, 820]],
884 'v12_calh' : [[layers, 100],
886 [etaoff_b1,
'v5', 201],
887 [etaoff_e1,
'v5', 202],
888 [etaoff_b2,
'v5', 203],
889 [etaoff_e2,
'v5', 204],
890 [phioff_b2,
'v5', 205],
891 [phioff_e2,
'v5', 206],
894 [calhits,
'v9', 450],
895 [trcorr,
'v5_1', 451],
896 [deadOTXps,
'v1' , 460],
897 [deadOTXback,
'v1' , 461],
898 [phimod,
'v4' , 501],
901 [listBadChannel, 820]],
905 'v12phiflip_calh' : [
908 [etaoff_b1,
'v5', 201],
909 [etaoff_e1,
'v5', 202],
910 [etaoff_b2,
'v5', 203],
911 [etaoff_e2,
'v5', 204],
912 [phioff_b2,
'v5data', 205],
913 [phioff_e2,
'v5data', 206],
916 [calhits,
'v9', 450],
917 [trcorr,
'v5_1', 451],
918 [deadOTXps,
'v1' , 460],
919 [deadOTXback,
'v1' , 461],
920 [phimod,
'v4' , 501],
923 [listBadChannel, 820]],
929 'v12dataleak_calh' : [
932 [etaoff_b1,
'v5', 201],
933 [etaoff_e1,
'v5', 202],
934 [etaoff_b2,
'v5', 203],
935 [etaoff_e2,
'v5', 204],
936 [phioff_b2,
'v5data', 205],
937 [phioff_e2,
'v5data', 206],
940 [calhits,
'v9leakdata', 450],
941 [trcorr,
'v5_1', 451],
942 [deadOTXps,
'v1' , 460],
943 [deadOTXback,
'v1' , 461],
944 [phimod,
'v4' , 501],
947 [listBadChannel, 820]],
954 'v12_noecorr' : [[layers, 100],
956 [etaoff_b1,
'v5', 201],
957 [etaoff_e1,
'v5', 202],
958 [etaoff_b2,
'v5', 203],
959 [etaoff_e2,
'v5', 204],
960 [phioff_b2,
'v5', 205],
961 [phioff_e2,
'v5', 206],
965 [listBadChannel, 820]],
971 'v12phiflip_noecorr' : [
974 [etaoff_b1,
'v5', 201],
975 [etaoff_e1,
'v5', 202],
976 [etaoff_b2,
'v5', 203],
977 [etaoff_e2,
'v5', 204],
978 [phioff_b2,
'v5data', 205],
979 [phioff_e2,
'v5data', 206],
983 [listBadChannel, 820]],
986 'v12phiflip_noecorrnogap' : [
989 [etaoff_b1,
'v5', 201],
990 [etaoff_e1,
'v5', 202],
991 [etaoff_b2,
'v5', 203],
992 [etaoff_e2,
'v5', 204],
993 [phioff_b2,
'v5data', 205],
994 [phioff_e2,
'v5data', 206],
997 [listBadChannel, 820]],
1001 'v12phiflip_supercluster' : [
1003 [etaoff_b1,
'v5', 201],
1004 [etaoff_e1,
'v5', 202],
1005 [etaoff_b2,
'v5', 203],
1006 [etaoff_e2,
'v5', 204],
1007 [phioff_b2,
'v5data', 205],
1008 [phioff_e2,
'v5data', 206],
1011 [listBadChannel, 820]],
1015 'v1_atlfast' : [[layers, 100],
1017 [etaoff_b1,
'v4_1', 201],
1018 [etaoff_e1,
'v4_1', 202],
1019 [etaoff_b2,
'v4_1', 203],
1020 [etaoff_e2,
'v4_1', 204],
1021 [phioff_b2,
'v4', 205],
1022 [phioff_e2,
'v4', 206],
1024 [lwc,
'atlfast_v1', 450],
1025 [phimod,
'v4', 501],
1026 [etamod,
'v4', 502],
1028 [listBadChannel, 820]],
1031 'pi0_v1_lwc' : [[layers, 100],
1033 [lwc,
'pi0_v1', 450],
1035 [listBadChannel, 820]],
1037 'pi0_v2_noc' : [[layers, 100],
1040 [listBadChannel, 820]],
1052 '@' : [[layers, 100],
1071 [listBadChannel, 820],
1076 newest_version =
'@GLOBAL'
1093 [
'data-*' ,
'@GLOBAL'],
1095 [
'DC1*' ,
'DC2new'],
1096 [
'DC2*' ,
'DC2new'],
1097 [
'ATLAS-00*' ,
'DC2new'],
1098 [
'ATLAS-DC2*' ,
'DC2new'],
1099 [
'ATLAS-01*' ,
'Rome'],
1101 [
'ATLAS-Rome*' ,
'Rome'],
1102 [
'DC3*' ,
'DC3-02-V3'],
1103 [
'ATLAS-DC3*' ,
'DC3-02-V3'],
1104 [
'CSC*' ,
'v4_1_calh'],
1105 [
'ATLAS-CSC-00*' ,
'v4_1_calh'],
1106 [
'ATLAS-CSC-01*' ,
'v4_1_calh'],
1107 [
'ATLAS-CSC-02*' ,
'v4_1_calh'],
1108 [
'ATLAS-CSC-03*' ,
'v4_1_calh'],
1109 [
'ATLAS-CSC-04*' ,
'v4_1_calh'],
1110 [
'ATLAS-CSC-05*' ,
'v6_calh'],
1112 [
'ATLAS-GEO-*' , newest_version],
1114 [
'ATLAS-GEONF-*' ,
'@GLOBAL'],
1115 [
'ATLAS-GEONSF-*' ,
'@GLOBAL'],
1116 [
'ATLAS-Comm-*' , newest_version],
1117 [
'ATLAS-CommNF-*' , newest_version],
1118 [
'ATLAS-Commissioning-*' , newest_version],
1126 kw = flags.Calo.ClusterCorrection.caloSwCorrectionArgs
1129 for kk
in [
'weighting',
'remdup',
'rembad']:
1131 setattr (self, kk, kw[kk])
1134 return CaloClusterCorrSetup.make_corrections (self, flags, **kw)
1140 (self.
weighting, version) = _version_match (version,
'wt')
1144 (self.
remdup, version) = _version_match (version,
'remdup')
1148 (self.
rembad, version) = _version_match (version,
'rembad')
1151 (vcorrlist, version) = CaloClusterCorrSetup.lookup_version (self,
1157 if flags.Calo.ClusterCorrection.doSlidingWindowCellWeights:
1159 if flags.Calo.ClusterCorrection.doSlidingWindowRemoveDuplicates:
1161 if flags.Calo.ClusterCorrection.doSlidingWindowRemoveBad:
1168 for (i, c)
in enumerate (vcorrlist):
1172 if ilayers
is not None:
1173 vcorrlist = vcorrlist[:]
1175 vcorrlist.insert (ilayers + 1, [removebad, 121])
1177 vcorrlist.insert (ilayers + 1, [layers,
'wt', 102])
1178 vcorrlist.insert (ilayers + 1, [weight, 101])
1183 vcorrlist = vcorrlist[:]
1184 vcorrlist.append ([removeduplicates, 901])
1186 return (vcorrlist, version)
1233 return CaloSwCorrections.make_corrections (flags,
1234 corrclass = CALOCORR_SW,
1238 corrlist = corrlist,
1239 cells_name = cells_name,
1241 weighting = weighting,