Newer
Older
STPerformancePaper / config.py
@Andrea Mauri Andrea Mauri on 25 Oct 2017 5 KB Start: put necessary file to run TupToHist
  1. """
  2. Here you may configure behaviour of the package.
  3. """
  4. #########
  5. #General#
  6. #########
  7. from binnings.NoBinning_2017 import binning #Choose a time binning
  8. from binnings.NoBinning_2017 import bin_name #Choose a time binning
  9. from binnings.NoBinning_2017 import bin_vector #Choose a time binning
  10. #from binnings.NoBinning_2016 import binning #Choose a time binning
  11. #from binnings.NoBinning_2016 import bin_name #Choose a time binning
  12. #from binnings.NoBinning_2016 import bin_vector #Choose a time binning
  13. #from binnings.NoBinning_2015 import binning #Choose a time binning
  14. #from binnings.NoBinning_2015 import bin_name #Choose a time binning
  15. #from binnings.NoBinning_2015 import bin_vector #Choose a time binning
  16. #from binnings.NoBinning_2012 import binning #Choose a time binning
  17. #from binnings.NoBinning_2012 import bin_name #Choose a time binning
  18. #from binnings.NoBinning_2012 import bin_vector #Choose a time binning
  19.  
  20. #from binnings.BinByMonth_2012 import binning #Choose a time binning
  21. #from binnings.BinByMonth_2012 import bin_name #Choose a time binning
  22. #from binnings.BinByMonth_2012 import bin_vector #Choose a time binning
  23. #from binnings.BinByMonth_2015 import binning #Choose a time binning
  24. #from binnings.BinByMonth_2015 import bin_name #Choose a time binning
  25. #from binnings.BinByMonth_2015 import bin_vector #Choose a time binning
  26.  
  27. #from binnings.BinByPt_2012 import binning #Choose a pT binning
  28. #from binnings.BinByPt_2012 import bin_name #Choose a pT binning
  29. #from binnings.BinByPt_2012 import bin_vector #Choose a pT binning
  30. #from binnings.BinByPt_2015 import binning #Choose a pT binning
  31. #from binnings.BinByPt_2015 import bin_name #Choose a pT binning
  32. #from binnings.BinByPt_2015 import bin_vector #Choose a pT binning
  33.  
  34. #from binnings.BinByStrip_2017 import binning #Choose a Strip binning
  35. #from binnings.BinByStrip_2017 import bin_name #Choose a Strip binning
  36. #from binnings.BinByStrip_2017 import bin_vector #Choose a Strip binning
  37.  
  38. #from binnings.BinByY_2017 import binning #Choose a Y binning
  39. #from binnings.BinByY_2017 import bin_name #Choose a Y binning
  40. #from binnings.BinByY_2017 import bin_vector #Choose a Y binning
  41. #from binnings.BinByY_2015 import binning #Choose a Y binning
  42. #from binnings.BinByY_2015 import bin_name #Choose a Y binning
  43. #from binnings.BinByY_2015 import bin_vector #Choose a Y binning
  44. #from binnings.BinByY_2012 import binning #Choose a Y binning
  45. #from binnings.BinByY_2012 import bin_name #Choose a Y binning
  46. #from binnings.BinByY_2012 import bin_vector #Choose a Y binning
  47.  
  48. #from binnings.BinByRunNumber import binning #Choose a pT binning
  49. #from binnings.BinByRunNumber import bin_name #Choose a pT binning
  50. #from binnings.BinByRunNumber import bin_vector #Choose a pT binning
  51.  
  52. #from binnings.BinByAlignmentVersions_2015 import binning #Choose a time binning
  53. #from binnings.BinByAlignmentVersions_2015 import bin_name #Choose a time binning
  54.  
  55.  
  56. Number_Of_Events = 1000 #-1 #Choose a number of tracks to proceed from Tuple. Negative values == all tracks
  57. pkl_address ="Pkls/" #Address of dumping .pkl with dictionaries
  58. histogram_address = "Histos/" #Address for storing histograms
  59. plot_address = "Plots/" #Adress for storing plots
  60. residual_limit = 0.5 #limit of residual histograms, in mm.
  61. residual_nBins = 100 #number of bins in residual histograms
  62. SNratio_limit = 250 #limit of S/N ratio histograms
  63. SNratio_nBins = 250 #number of bins in S/N ratio histograms
  64. dead_sectors = ['IT1BottomX2Sector7', 'IT3TopX1Sector7']
  65.  
  66. ##################
  67. #Histogram ranges#
  68. ##################
  69. UsePredefinedRanges = True
  70. ITMeanRange = [-0.06, 0.06]
  71. ITWidthRange = [0.044, 0.058]
  72. #ITEffRange = [0.995, 1.0]
  73. ITEffRange = [0.95, 1.0]
  74.  
  75. #TTMeanRange = [-0.06, 0.06]
  76. TTMeanRange = [-0.14, 0.14]
  77. #TTMeanRange = [-0.04, 0.04]
  78. #TTWidthRange = [0.02, 0.12]
  79. TTWidthRange = [0.03, 0.10]
  80. #TTEffRange = [0.98, 1.0]
  81. TTEffRange = [0.97, 1.0]
  82.  
  83. TTclusterSizeRange = [1., 2.]
  84. TTSNratioRange = [5.,20.]
  85. TTnoiseFractionRange = [0.,0.004] # [0.,0.02]
  86. #TTnoiseFractionRange = [0.,0.005]
  87. TToccupancyRange = [0.,250000.]
  88.  
  89.  
  90. ##################
  91. #Histogram Titles#
  92. ##################
  93. UsePredefinedTitles = True
  94. IncudeMissingSectorsToSummary = False
  95. nBins_in_summary = 30
  96.  
  97. ITMeanTitle = "Residual bias distribution [mm], 2017"
  98. ITWidthTitle = "Residual width distribution [mm], 2017"
  99. ITEffTitle = "Hit detection efficiency distribution, 2017"
  100.  
  101. TTMeanTitle = "Residual bias distribution [mm], 2017"
  102. TTWidthTitle = "Residual width distribution [mm], 2017"
  103. TTEffTitle = "Hit detection efficiency distribution, 2017"
  104.  
  105. TTclusterSizeTitle = "Cluster size, 2017"
  106. TTSNratioTitle = "S/N ratio, 2017"
  107. TTnoiseFractionTitle = "noise fraction, 2017"
  108. TToccupancyTitle = "Occupancy, 2017"
  109.  
  110.  
  111. ###################################################
  112. #Dependence of efficiency from search window study#
  113. ###################################################
  114. perform_window_eff_study = True
  115. #efficiency_windows = [0.01, 0.025, 0.05, 0.075, 0.1, 0.2, 0.3, 0.4]
  116. efficiency_windows = [0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09, 0.1, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.2, 0.21, 0.22, 0.23, 0.24, 0.25, 0.26, 0.27, 0.28, 0.29, 0.3, 0.31, 0.32, 0.33, 0.34, 0.35, 0.36, 0.37, 0.38, 0.39, 0.4 ]
  117.  
  118. final_eff_window = 0.24 # # this window is used to calculat the efficiency for the final 2D plots od the detector
  119.  
  120. extra_name = "_194066" #"_166903"(2015) #"_180318"(2016) #"_194066"(2017) # _197925 #_194248