Browse Source

Adds histograms for fake seed residuals

Caleb Fangmeier 6 years ago
parent
commit
b8fe6f13da
4 changed files with 153 additions and 501 deletions
  1. 59 457
      looper/analysis/config.yaml
  2. 0 6
      looper/analysis/publish
  3. 93 37
      looper/analysis/tracking_eff.cpp
  4. 1 1
      looper/filval

+ 59 - 457
looper/analysis/config.yaml

@@ -1,470 +1,32 @@
 #max-events: 50000
 debug: false
 
-output-file: ../hists/narrow-window.root
-source-file-key: narrow-window
-
-#output-file: ../hists/wide-window.root
-#source-file-key: wide-window
-
-#output-file: ../hists/extra-wide-window.root
-#source-file-key: extra-wide-window
+output-file: ../hists/extra-wide-window.root
+source-file-key: extra-wide-window
 
 extra-narrow-window:
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_1.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_2.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_3.root
-#    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_4.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_5.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_6.root
-#    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_7.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_8.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_9.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_10.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_11.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_12.root
-#    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_13.root
-#    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_14.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_15.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_16.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_17.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_18.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_19.root
-#    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_20.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_21.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_22.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_23.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_24.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_25.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_26.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_27.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_28.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_29.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_30.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_31.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_32.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_33.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_34.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_35.root
-#    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_36.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_37.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_38.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_39.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_40.root
-#    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_41.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_42.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_43.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_44.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_45.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_46.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_47.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_48.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_49.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_50.root
-#    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_51.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_52.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_53.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_54.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_55.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_56.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_57.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_58.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_59.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_60.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_61.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_62.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_63.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_64.root
-#    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_65.root
-#    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_66.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_67.root
-#    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_68.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_69.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_70.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_71.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_72.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_73.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_74.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_75.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_76.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_77.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_78.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_79.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_80.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_81.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_82.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_83.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_84.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_85.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_86.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_87.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_88.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_89.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_90.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_91.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_92.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_93.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_94.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_95.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_96.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_97.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_98.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_99.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_100.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_101.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_102.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_103.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_104.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_105.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_106.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_107.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_108.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_109.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_110.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_111.root
-    - filename: ../data/new_trees_extra_narrow_windows/trackingNtuple_112.root
+    files: ../data/new_trees_extra_narrow_windows/trackingNtuple_*.root
 
 narrow-window:
-    - filename: ../data/new_trees/trackingNtuple_1.root
-    - filename: ../data/new_trees/trackingNtuple_2.root
-    - filename: ../data/new_trees/trackingNtuple_3.root
-    - filename: ../data/new_trees/trackingNtuple_4.root
-    - filename: ../data/new_trees/trackingNtuple_5.root
-    - filename: ../data/new_trees/trackingNtuple_6.root
-    - filename: ../data/new_trees/trackingNtuple_7.root
-    - filename: ../data/new_trees/trackingNtuple_8.root
-    - filename: ../data/new_trees/trackingNtuple_9.root
-    - filename: ../data/new_trees/trackingNtuple_10.root
-    - filename: ../data/new_trees/trackingNtuple_11.root
-    - filename: ../data/new_trees/trackingNtuple_12.root
-    - filename: ../data/new_trees/trackingNtuple_13.root
-    - filename: ../data/new_trees/trackingNtuple_14.root
-    - filename: ../data/new_trees/trackingNtuple_15.root
-    - filename: ../data/new_trees/trackingNtuple_16.root
-    - filename: ../data/new_trees/trackingNtuple_17.root
-    - filename: ../data/new_trees/trackingNtuple_18.root
-    - filename: ../data/new_trees/trackingNtuple_19.root
-    - filename: ../data/new_trees/trackingNtuple_20.root
-    - filename: ../data/new_trees/trackingNtuple_21.root
-    - filename: ../data/new_trees/trackingNtuple_22.root
-    - filename: ../data/new_trees/trackingNtuple_23.root
-    - filename: ../data/new_trees/trackingNtuple_24.root
-    - filename: ../data/new_trees/trackingNtuple_25.root
-    - filename: ../data/new_trees/trackingNtuple_26.root
-    - filename: ../data/new_trees/trackingNtuple_27.root
-    - filename: ../data/new_trees/trackingNtuple_28.root
-    - filename: ../data/new_trees/trackingNtuple_29.root
-    - filename: ../data/new_trees/trackingNtuple_30.root
-    - filename: ../data/new_trees/trackingNtuple_31.root
-    - filename: ../data/new_trees/trackingNtuple_32.root
-    - filename: ../data/new_trees/trackingNtuple_33.root
-    - filename: ../data/new_trees/trackingNtuple_34.root
-    - filename: ../data/new_trees/trackingNtuple_35.root
-    - filename: ../data/new_trees/trackingNtuple_36.root
-    - filename: ../data/new_trees/trackingNtuple_37.root
-    - filename: ../data/new_trees/trackingNtuple_38.root
-    - filename: ../data/new_trees/trackingNtuple_39.root
-    - filename: ../data/new_trees/trackingNtuple_40.root
-    - filename: ../data/new_trees/trackingNtuple_41.root
-    - filename: ../data/new_trees/trackingNtuple_42.root
-    - filename: ../data/new_trees/trackingNtuple_43.root
-    - filename: ../data/new_trees/trackingNtuple_44.root
-    - filename: ../data/new_trees/trackingNtuple_45.root
-    - filename: ../data/new_trees/trackingNtuple_46.root
-    - filename: ../data/new_trees/trackingNtuple_47.root
-    - filename: ../data/new_trees/trackingNtuple_48.root
-    - filename: ../data/new_trees/trackingNtuple_49.root
-    - filename: ../data/new_trees/trackingNtuple_50.root
-    - filename: ../data/new_trees/trackingNtuple_51.root
-    - filename: ../data/new_trees/trackingNtuple_52.root
-    - filename: ../data/new_trees/trackingNtuple_53.root
-    - filename: ../data/new_trees/trackingNtuple_54.root
-    - filename: ../data/new_trees/trackingNtuple_55.root
-    - filename: ../data/new_trees/trackingNtuple_56.root
-    - filename: ../data/new_trees/trackingNtuple_57.root
-    - filename: ../data/new_trees/trackingNtuple_58.root
-    - filename: ../data/new_trees/trackingNtuple_59.root
-    - filename: ../data/new_trees/trackingNtuple_60.root
-    - filename: ../data/new_trees/trackingNtuple_61.root
-    - filename: ../data/new_trees/trackingNtuple_62.root
-    - filename: ../data/new_trees/trackingNtuple_63.root
-    - filename: ../data/new_trees/trackingNtuple_64.root
-    - filename: ../data/new_trees/trackingNtuple_65.root
-    - filename: ../data/new_trees/trackingNtuple_66.root
-    - filename: ../data/new_trees/trackingNtuple_67.root
-    - filename: ../data/new_trees/trackingNtuple_68.root
-    - filename: ../data/new_trees/trackingNtuple_69.root
-    - filename: ../data/new_trees/trackingNtuple_70.root
-    - filename: ../data/new_trees/trackingNtuple_71.root
-    - filename: ../data/new_trees/trackingNtuple_72.root
-    - filename: ../data/new_trees/trackingNtuple_73.root
-    - filename: ../data/new_trees/trackingNtuple_74.root
-    - filename: ../data/new_trees/trackingNtuple_75.root
-    - filename: ../data/new_trees/trackingNtuple_76.root
-    - filename: ../data/new_trees/trackingNtuple_77.root
-    - filename: ../data/new_trees/trackingNtuple_78.root
-    - filename: ../data/new_trees/trackingNtuple_79.root
-    - filename: ../data/new_trees/trackingNtuple_80.root
-    - filename: ../data/new_trees/trackingNtuple_81.root
-    - filename: ../data/new_trees/trackingNtuple_82.root
-    - filename: ../data/new_trees/trackingNtuple_83.root
-    - filename: ../data/new_trees/trackingNtuple_84.root
-    - filename: ../data/new_trees/trackingNtuple_85.root
-    - filename: ../data/new_trees/trackingNtuple_86.root
-    - filename: ../data/new_trees/trackingNtuple_87.root
-    - filename: ../data/new_trees/trackingNtuple_88.root
-    - filename: ../data/new_trees/trackingNtuple_89.root
-    - filename: ../data/new_trees/trackingNtuple_90.root
-    - filename: ../data/new_trees/trackingNtuple_91.root
-    - filename: ../data/new_trees/trackingNtuple_92.root
-    - filename: ../data/new_trees/trackingNtuple_93.root
-    - filename: ../data/new_trees/trackingNtuple_94.root
-    - filename: ../data/new_trees/trackingNtuple_95.root
-    - filename: ../data/new_trees/trackingNtuple_96.root
-    - filename: ../data/new_trees/trackingNtuple_97.root
-    - filename: ../data/new_trees/trackingNtuple_98.root
-    - filename: ../data/new_trees/trackingNtuple_99.root
-    - filename: ../data/new_trees/trackingNtuple_100.root
-    - filename: ../data/new_trees/trackingNtuple_101.root
-    - filename: ../data/new_trees/trackingNtuple_102.root
-    - filename: ../data/new_trees/trackingNtuple_103.root
-    - filename: ../data/new_trees/trackingNtuple_104.root
-    - filename: ../data/new_trees/trackingNtuple_105.root
-    - filename: ../data/new_trees/trackingNtuple_106.root
-    - filename: ../data/new_trees/trackingNtuple_107.root
-    - filename: ../data/new_trees/trackingNtuple_108.root
-    - filename: ../data/new_trees/trackingNtuple_109.root
-    - filename: ../data/new_trees/trackingNtuple_110.root
-    - filename: ../data/new_trees/trackingNtuple_111.root
-    - filename: ../data/new_trees/trackingNtuple_112.root
+    files: ../data/new_trees_narrow_windows/trackingNtuple_*.root
 
 wide-window:
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_1.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_2.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_3.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_4.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_5.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_6.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_7.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_8.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_9.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_10.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_11.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_12.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_13.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_14.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_15.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_16.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_17.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_18.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_19.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_20.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_21.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_22.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_23.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_24.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_25.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_26.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_27.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_28.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_29.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_30.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_31.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_32.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_33.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_34.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_35.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_36.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_37.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_38.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_39.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_40.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_41.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_42.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_43.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_44.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_45.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_46.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_47.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_48.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_49.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_50.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_51.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_52.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_53.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_54.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_55.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_56.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_57.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_58.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_59.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_60.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_61.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_62.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_63.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_64.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_65.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_66.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_67.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_68.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_69.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_70.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_71.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_72.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_73.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_74.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_75.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_76.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_77.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_78.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_79.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_80.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_81.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_82.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_83.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_84.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_85.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_86.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_87.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_88.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_89.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_90.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_91.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_92.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_93.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_94.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_95.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_96.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_97.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_98.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_99.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_100.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_101.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_102.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_103.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_104.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_105.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_106.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_107.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_108.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_109.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_110.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_111.root
-    - filename: ../data/new_trees_wide_windows/trackingNtuple_112.root
+    files: ../data/new_trees_wide_windows/trackingNtuple_*.root
 
 extra-wide-window:
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_1.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_2.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_3.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_4.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_5.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_6.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_7.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_8.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_9.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_10.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_11.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_12.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_13.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_14.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_15.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_16.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_17.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_18.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_19.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_20.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_21.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_22.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_23.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_24.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_25.root
-#    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_26.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_27.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_28.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_29.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_30.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_31.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_32.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_33.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_34.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_35.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_36.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_37.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_38.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_39.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_40.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_41.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_42.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_43.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_44.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_45.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_46.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_47.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_48.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_49.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_50.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_51.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_52.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_53.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_54.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_55.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_56.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_57.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_58.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_59.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_60.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_61.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_62.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_63.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_64.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_65.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_66.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_67.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_68.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_69.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_70.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_71.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_72.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_73.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_74.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_75.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_76.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_77.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_78.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_79.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_80.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_81.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_82.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_83.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_84.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_85.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_86.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_87.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_88.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_89.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_90.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_91.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_92.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_93.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_94.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_95.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_96.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_97.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_98.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_99.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_100.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_101.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_102.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_103.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_104.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_105.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_106.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_107.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_108.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_109.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_110.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_111.root
-    - filename: ../data/new_trees_extra_wide_windows/trackingNtuple_112.root
+    files: ../data/new_trees_extra_wide_windows/trackingNtuple_*.root
+
+nwp-tight-window:
+    files: ../data/new_trees_nwp_tight_windows/trackingNtuple_*.root
+
+nwp-window:
+    files: ../data/new_trees_nwp_windows/trackingNtuple_*.root
+
+old-seeding:
+    files: ../data/new_trees_old_seeding/trackingNtuple_*.root
+
+nwp-eta-breakdown:
+    files: ../data/new_trees_nwp_eta_breakdown/trackingNtuple_*.root
 
 hist-params:
 
@@ -492,7 +54,7 @@ hist-params:
         label_x: "dRz (cm)"
         nbins_x: 60
         low_x: 0
-        high_x: 0.20
+        high_x: 0.25
         label_y: "$E_T$"
         nbins_y: 30
         low_y: 0
@@ -508,6 +70,46 @@ hist-params:
         low_y: 0
         high_y: 100
 
+    dRz_v_eta:
+        label_x: "dRz (cm)"
+        nbins_x: 60
+        low_x: 0
+        high_x: 10
+        label_y: "$\eta$"
+        nbins_y: 30
+        low_y: 0
+        high_y: 3.0
+
+    dPhi_v_eta:
+        label_x: "dPhi (rad)"
+        nbins_x: 60
+        low_x: 0
+        high_x: 0.2
+        label_y: "$\eta$"
+        nbins_y: 30
+        low_y: 0
+        high_y: 3.0
+
+    dRz_v_eta_outer_hits:
+        label_x: "dRz (cm)"
+        nbins_x: 60
+        low_x: 0
+        high_x: 0.25
+        label_y: "$\eta$"
+        nbins_y: 30
+        low_y: 0
+        high_y: 3.0
+
+    dPhi_v_eta_outer_hits:
+        label_x: "dPhi (rad)"
+        nbins_x: 60
+        low_x: 0
+        high_x: 0.012
+        label_y: "$\eta$"
+        nbins_y: 30
+        low_y: 0
+        high_y: 3.0
+
     eff_v_pt:
         label_x: "eff_v_pt"
         nbins_x: 30

+ 0 - 6
looper/analysis/publish

@@ -1,6 +0,0 @@
-#!/usr/bin/env bash
-set -e
-echo "Will copy content of the 'output' directory to the 'public' directory on t3.unl.edu"
-scp -r output cfangmeier@t3.unl.edu:public
-echo "done"
-echo "files available at t3.unl.edu:8000/output/ (provided that the local server is running)"

+ 93 - 37
looper/analysis/tracking_eff.cpp

@@ -63,6 +63,13 @@ void run(bool silent){
     TrackingDataSet tds(output_filename, file_list, "trackingNtuple/tree");
     register_objects(tds);
 
+    int x = 12;
+    int y = 13;
+
+    for (auto z : vector<pair<int,int>>{{x, x}, {y, y}}) {
+        cout << z.first << endl;
+    }
+
     bs = {
         tds.track_branch<float>("bsp_x"),
         tds.track_branch<float>("bsp_y"),
@@ -72,33 +79,83 @@ void run(bool silent){
         tds.track_branch<float>("bsp_sigmaz")
     };
 
-    std::map<std::pair<int, int>, ContainerTH2<float>*> BPIX_residuals_dRz;
-    std::map<std::pair<int, int>, ContainerTH2<float>*> BPIX_residuals_dPhi;
-    std::map<std::pair<int, int>, ContainerTH2<float>*> FPIX_residuals_dRz;
-    std::map<std::pair<int, int>, ContainerTH2<float>*> FPIX_residuals_dPhi;
+    std::map<std::tuple<int, int, bool>, ContainerTH2<float>*> BPIX_residuals_dRz;
+    std::map<std::tuple<int, int, bool>, ContainerTH2<float>*> BPIX_residuals_dPhi;
+    std::map<std::tuple<int, int, bool>, ContainerTH2<float>*> FPIX_residuals_dRz;
+    std::map<std::tuple<int, int, bool>, ContainerTH2<float>*> FPIX_residuals_dPhi;
+
+    int layer, hit, isFake;
     stringstream name;
+    auto set_name = [&name, &layer, &hit, &isFake](const std::string& var, const std::string& region) {
+        name.str("");
+        name << var << "_" << region << "_L" << layer << "_H" << hit << "_v_Et";
+        if (isFake)
+            name << "_fake";
+
+    };
+
     THParams hist_params;
-    for (int layer=1; layer<=4; layer++) {
-        for (int hit=1; hit<=3; hit++) {
+    for (layer=1; layer<=4; layer++) {
+        for (hit=1; hit<=3; hit++) {
+            for (isFake=0; isFake<=1; isFake++) {
+                hist_params = (hit == 1) ? THParams::lookup("dRz_v_Et") : THParams::lookup("dRz_v_Et_outer_hits");
+                set_name("dRz", "BPIX");
+                BPIX_residuals_dRz[{layer, hit, isFake}] = tds.register_container<ContainerTH2<float>>(name.str(), hist_params);
+                set_name("dRz", "FPIX");
+                FPIX_residuals_dRz[{layer, hit, isFake}] = tds.register_container<ContainerTH2<float>>(name.str(), hist_params);
+
+                hist_params = (hit == 1) ? THParams::lookup("dPhi_v_Et") : THParams::lookup("dPhi_v_Et_outer_hits");
+                set_name("dPhi", "BPIX");
+                BPIX_residuals_dPhi[{layer, hit, isFake}] = tds.register_container<ContainerTH2<float>>(name.str(), hist_params);
+                set_name("dPhi", "FPIX");
+                FPIX_residuals_dPhi[{layer, hit, isFake}] = tds.register_container<ContainerTH2<float>>(name.str(), hist_params);
+            }
+        }
+    }
+
+    std::map<int,vector<float>> eta_regions = {{1, {0.0, 1.1, 1.8, 3.0}},
+                                               {2, {0.0, 1.4, 2.3, 3.0}},
+                                               {3, {0.0, 1.0, 2.0, 3.0}}};
+
+    auto get_region = [&eta_regions](int hit, float eta) {
+        auto regions = eta_regions[hit];
+        if (regions.size() <= 1) return 1;
+        float abseta = abs(eta);
+        for (int r_idx=1; r_idx < regions.size(); r_idx++) {
+            if (abseta > regions[r_idx-1] and abseta < regions[r_idx]) {
+                return r_idx;
+            }
+        }
+        return static_cast<int>(regions.size());
+    };
+    std::map<int, ContainerTH2<float>*> dPhi_residuals_v_eta;
+    std::map<int, ContainerTH2<float>*> dRz_residuals_v_eta;
+
+    std::map<std::pair<int, int>, ContainerTH2<float>*> dPhi_residuals_v_region;
+    std::map<std::pair<int, int>, ContainerTH2<float>*> dRz_residuals_v_region;
+    for (int hit=1; hit<=3; hit++) {
+        name.str("");
+        name << "dPhi_residuals_v_eta_H" << hit;
+        hist_params = (hit==1) ? THParams::lookup("dPhi_v_eta") : THParams::lookup("dPhi_v_eta_outer_hits");
+        dPhi_residuals_v_eta[hit] = tds.register_container<ContainerTH2<float>>(name.str(), hist_params);
+
+        name.str("");
+        name << "dRz_residuals_v_eta_H" << hit;
+        hist_params = (hit==1) ? THParams::lookup("dRz_v_eta") : THParams::lookup("dRz_v_eta_outer_hits");
+        dRz_residuals_v_eta[hit] = tds.register_container<ContainerTH2<float>>(name.str(), hist_params);
+        for (int region=1; region<=eta_regions[hit].size()-1; region++){
             hist_params = (hit==1) ? THParams::lookup("dRz_v_Et") : THParams::lookup("dRz_v_Et_outer_hits");
             name.str("");
-            name << "dRz_BPIX_L" << layer << "_H" << hit << "_v_Et";
-            BPIX_residuals_dRz[{layer,hit}] = tds.register_container<ContainerTH2<float>>(name.str(), hist_params);
-            name.str("");
-            name << "dRz_FPIX_L" << layer << "_H" << hit << "_v_Et";
-            FPIX_residuals_dRz[{layer,hit}] = tds.register_container<ContainerTH2<float>>(name.str(), hist_params);
+            name << "dRz_residuals_H"  << hit << "_R" << region;
+            dRz_residuals_v_region[{hit, region}] = tds.register_container<ContainerTH2<float>>(name.str(), hist_params);
 
             hist_params = (hit==1) ? THParams::lookup("dPhi_v_Et") : THParams::lookup("dPhi_v_Et_outer_hits");
             name.str("");
-            name << "dPhi_BPIX_L" << layer << "_H" << hit << "_v_Et";
-            BPIX_residuals_dPhi[{layer,hit}] = tds.register_container<ContainerTH2<float>>(name.str(), hist_params);
-            name.str("");
-            name << "dPhi_FPIX_L" << layer << "_H" << hit << "_v_Et";
-            FPIX_residuals_dPhi[{layer,hit}] = tds.register_container<ContainerTH2<float>>(name.str(), hist_params);
+            name << "dPhi_residuals_H"  << hit << "_R" << region;
+            dPhi_residuals_v_region[{hit, region}] = tds.register_container<ContainerTH2<float>>(name.str(), hist_params);
         }
     }
 
-
     auto& seed_eff_v_pt  = *tds.register_container<EfficiencyContainer<float>>("seed_eff_v_pt",  THParams::lookup("eff_v_pt"));
     auto& seed_eff_v_eta = *tds.register_container<EfficiencyContainer<float>>("seed_eff_v_eta", THParams::lookup("eff_v_eta"));
     auto& seed_eff_v_phi = *tds.register_container<EfficiencyContainer<float>>("seed_eff_v_phi", THParams::lookup("eff_v_phi"));
@@ -137,25 +194,12 @@ void run(bool silent){
 
     while (tds.next(!silent)) {
 
-//        for (const auto& gsf_track : gsf_tracks) {
-//            cout << "GSF Track " << gsf_track.idx << endl;
-//            long n_matched_sim = gsf_track.simTrkIdx().size();
-//            for (int idx=0; idx<n_matched_sim; idx++) {
-//                int sim_trk_idx = gsf_track.simTrkIdx()[idx];
-//                int sim_trk_share = gsf_track.shareFrac()[idx];
-//                cout << "  " <<
-//                cout << "  " << sim_tracks[sim_trk_idx].
-//            }
-//        }
-
-//        ecal_energy_resolution.fill(0.0);
         for (const auto& sim_track : sim_tracks) {
             if (!is_good_sim(sim_track)) continue;
             if (seeds.size() == 0) continue;
             for (const auto &seed_idx : sim_track.seedIdx()) {
                 const Seed& seed = seeds[seed_idx];
                 if (not seed.isECALDriven()) continue;
-//                cout << "trk_idx: " << sim_track.idx << " seed_idx: " << seed_idx << " err: " << reco_energy_rel_err(sim_track, seed) << endl;
                 ecal_energy_resolution.fill(reco_energy_rel_err(sim_track, seed));
             }
         }
@@ -283,7 +327,6 @@ void run(bool silent){
 //                              << " (" << seed.simTrkIdx().size() << ")" << std::endl;
                 }
             }
-            if (!is_sim_matched) continue;
             const auto the_track = gsf_tracks[seed.trkIdx()];
             vector<int>   hits_valid;
             vector<float> hits_dRz;
@@ -307,19 +350,32 @@ void run(bool silent){
                 int layerOrDiskNr = hits_layerOrDiskNr[hit_idx];
                 float dRz = abs(hits_dRz[hit_idx]);
                 float dPhi = abs(hits_dPhi[hit_idx]);
+                int eta_region = get_region(static_cast<int>(hit_idx + 1), seed.eta());
 
 
-                if (isBarrel) {
-                    BPIX_residuals_dRz[{layerOrDiskNr, hit_idx+1}]->fill(dRz, seed.Et());
-                    BPIX_residuals_dPhi[{layerOrDiskNr, hit_idx+1}]->fill(dPhi, seed.Et());
-                } else {
-                    FPIX_residuals_dRz[{layerOrDiskNr, hit_idx+1}]->fill(dRz, seed.Et());
-                    FPIX_residuals_dPhi[{layerOrDiskNr, hit_idx+1}]->fill(dPhi, seed.Et());
+                if (is_sim_matched) {
+                    dRz_residuals_v_eta[hit_idx + 1]->fill(dRz, abs(seed.eta()));
+                    dPhi_residuals_v_eta[hit_idx + 1]->fill(dPhi, abs(seed.eta()));
+
+                    dRz_residuals_v_region[{hit_idx + 1, eta_region}]->fill(dRz, seed.Et());
+                    dPhi_residuals_v_region[{hit_idx + 1, eta_region}]->fill(dPhi, seed.Et());
+
                 }
+
+                if (layerOrDiskNr == -1) continue;  // subDet is not set w/ old seeding
+
                 if (isBarrel)
                     hit_vs_layer_barrel.fill(layerOrDiskNr, static_cast<const int &>(hit_idx + 1));
                 else
                     hit_vs_layer_forward.fill(layerOrDiskNr, static_cast<const int &>(hit_idx + 1));
+
+                if (isBarrel) {
+                    BPIX_residuals_dRz[{layerOrDiskNr, hit_idx+1, !is_sim_matched}]->fill(dRz, seed.Et());
+                    BPIX_residuals_dPhi[{layerOrDiskNr, hit_idx+1, !is_sim_matched}]->fill(dPhi, seed.Et());
+                } else {
+                    FPIX_residuals_dRz[{layerOrDiskNr, hit_idx+1, !is_sim_matched}]->fill(dRz, seed.Et());
+                    FPIX_residuals_dPhi[{layerOrDiskNr, hit_idx+1, !is_sim_matched}]->fill(dPhi, seed.Et());
+                }
             }
         }
     }

+ 1 - 1
looper/filval

@@ -1 +1 @@
-Subproject commit 26472a33ce97110b2daafc667a5f04da92eaa05a
+Subproject commit 7b00cbe8bccc850cd5bab242fdff223fd41c6f36