Difference: SWGuideHeavyIonCentrality (1 vs. 140)

Revision 1402019-08-16 - YeonjuGo

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 64 to 64
 }
  • These numbers and systematic errors will be discussed in the analysis note: CMS AN-2015/080
Added:
>
>

Number of minimum bias (Nmb)

PbPb Data 2018

  • Final : 11536000857 +- 136669812

  • Final numbers are obtained by taking the average of Nmb counted from each MB PDs. Below table is Nmb for each MB PD.
  • Minimumbias PD # MB1 MB2 MB3 MB4 MB5 Average
    Nmb in 0-90 % 11565968247 11642603188 11644648920 11311946989 11514836939 11536000857


 

Event selection

PbPb Data 2018

  • Event selection in forest : pprimaryVertexFilter && phfCoincFilter2Th4 && pclusterCompatibilityFilter
Line: 86 to 92
 and put the below three lines at the very last of the config.
from HLTrigger.Configuration.CustomConfigs import MassReplaceInputTag
process = MassReplaceInputTag(process,"offlinePrimaryVertices","offlinePrimaryVerticesRecovery")
process.offlinePrimaryVerticesRecovery.oldVertexLabel = "offlinePrimaryVertices"
  • Event Selection Efficiency+Contamination = 97.5 % (+1.0 % -0.5 %)
Deleted:
<
<
  • nMB
    • For 0-100%
      • nominal : 1.06391e+10
      • sys up : 1.06940e+10
      • sys down : 1.05311e+10
    • For 0-90 %
      • nominal : 9.57519e+09
      • sys up : 9.62460e+09
      • sys down : 9.47799e+09
 

XeXe Data

  • FINAL event selection: HLT_HIL1MinimumBiasHF_OR_SinglePixelTrack_part* && pPAprimaryVertexFilter && pBeamScrapingFilter && phfCoincFilter3

Revision 1392019-07-11 - YeonjuGo

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 104 to 103
 

Instructions for 10_X_Y

PbPb Data (103X)

Changed:
<
<
>
>
 

Centrality tables

Nominal
Line: 1197 to 1151
 

Responsible: AnnaJuliaZsigmond

Added:
>
>
META FILEATTACHMENT attachment="hiBin_2018PbPb_periHYDJET.png" attr="" comment="" date="1562857517" name="hiBin_2018PbPb_periHYDJET.png" path="hiBin_2018PbPb_periHYDJET.png" size="122211" user="ygo" version="1"

Revision 1382019-07-11 - YeonjuGo

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 19 to 19
 
Added:
>
>
 

Documents

Line: 26 to 27
 
  • PbPb 5.02 TeV : AN-15-080
  • pPb 8.12 TeV : AN-16-416
  • XeXe 5.44 TeV : AN-17-305
Added:
>
>
  • PbPb 5.02 TeV taken in 2018 : AN-18-287
 

Ncoll/Npart 5TeV

  • Link to the numbers, on S3: pdf
  • Find Ncoll in a hiBin ([0,199]), ( example: .x findNcoll.C(1) ):
Line: 82 to 84
 process.pAna = cms.EndPath(process.skimanalysis)

and put the below three lines at the very last of the config.

Changed:
<
<
from HLTrigger.Configuration.CustomConfigs import MassReplaceInputTag
process = MassReplaceInputTag(process,"offlinePrimaryVertices","offlinePrimaryVerticesRecovery")
process.offlinePrimaryVerticesRecovery.oldVertexLabel = "offlinePrimaryVertices"
 
 

XeXe Data

>
>
from HLTrigger.Configuration.CustomConfigs import MassReplaceInputTag
process = MassReplaceInputTag(process,"offlinePrimaryVertices","offlinePrimaryVerticesRecovery")
process.offlinePrimaryVerticesRecovery.oldVertexLabel = "offlinePrimaryVertices"
  • Event Selection Efficiency+Contamination = 97.5 % (+1.0 % -0.5 %)
  • nMB
    • For 0-100%
      • nominal : 1.06391e+10
      • sys up : 1.06940e+10
      • sys down : 1.05311e+10
    • For 0-90 %
      • nominal : 9.57519e+09
      • sys up : 9.62460e+09
      • sys down : 9.47799e+09

XeXe Data

 
  • FINAL event selection: HLT_HIL1MinimumBiasHF_OR_SinglePixelTrack_part* && pPAprimaryVertexFilter && pBeamScrapingFilter && phfCoincFilter3

pPb Data

Line: 95 to 107
 

Centrality tables

Nominal
Changed:
<
<
hiHF bin edges: {0, 10.5072, 11.2099, 11.8364, 12.478, 13.1194, 13.7623, 14.4081, 15.0709, 15.7532, 16.4673, 17.1881, 17.923, 18.673, 19.4865, 20.3033, 21.1536, 22.0086, 22.9046, 23.8196, 24.7924, 25.8082, 26.8714, 27.9481, 29.0828, 30.2757, 31.5043, 32.8044, 34.1572, 35.6142, 37.1211, 38.6798, 40.3116, 42.0398, 43.8572, 45.6977, 47.6312, 49.6899, 51.815, 54.028, 56.3037, 58.7091, 61.2024, 63.8353, 66.5926, 69.3617, 72.2068, 75.2459, 78.3873, 81.5916, 84.9419, 88.498, 92.1789, 95.9582, 99.8431, 103.739, 107.78, 111.97, 116.312, 120.806, 125.46, 130.269, 135.247, 140.389, 145.713, 151.212, 156.871, 162.729, 168.762, 174.998, 181.424, 188.063, 194.907, 201.942, 209.19, 216.683, 224.37, 232.291, 240.43, 248.807, 257.416, 266.256, 275.348, 284.668, 294.216, 304.053, 314.142, 324.488, 335.101, 345.974, 357.116, 368.547, 380.283, 392.29, 404.564, 417.122, 429.968, 443.116, 456.577, 470.357, 484.422, 498.78, 513.473, 528.479, 543.813, 559.445, 575.411, 591.724, 608.352, 625.344, 642.686, 660.361, 678.371, 696.749, 715.485, 734.608, 754.068, 773.846, 794.046, 814.649, 835.608, 856.972, 878.719, 900.887, 923.409, 946.374, 969.674, 993.435, 1017.62, 1042.21, 1067.28, 1092.72, 1118.64, 1144.96, 1171.71, 1198.98, 1226.67, 1254.82, 1283.46, 1312.65, 1342.21, 1372.27, 1402.85, 1433.93, 1465.49, 1497.62, 1530.29, 1563.49, 1597.22, 1631.49, 1666.37, 1701.8, 1737.75, 1774.35, 1811.51, 1849.29, 1887.75, 1926.79, 1966.6, 2006.97, 2047.99, 2089.71, 2132.1, 2175.23, 2219.17, 2263.72, 2309.2, 2355.43, 2402.47, 2450.33, 2499.05, 2548.66, 2599.16, 2650.59, 2703.03, 2756.32, 2810.75, 2866.27, 2922.91, 2980.54, 3039.47, 3099.53, 3160.98, 3223.66, 3287.71, 3353.18, 3420.34, 3489.13, 3559.72, 3632.06, 3706.18, 3782.42, 3860.78, 3941.42, 4024.52, 4110.27, 4199.4, 4292.8, 4394.49, 4519.52, 5199.95}
>
>
hiHF bin edges: {0, 10.5072, 11.2099, 11.8364, 12.478, 13.1194, 13.7623, 14.4081, 15.0709, 15.7532, 16.4673, 17.1881, 17.923, 18.673, 19.4865, 20.3033, 21.1536, 22.0086, 22.9046, 23.8196, 24.7924, 25.8082, 26.8714, 27.9481, 29.0828, 30.2757, 31.5043, 32.8044, 34.1572, 35.6142, 37.1211, 38.6798, 40.3116, 42.0398, 43.8572, 45.6977, 47.6312, 49.6899, 51.815, 54.028, 56.3037, 58.7091, 61.2024, 63.8353, 66.5926, 69.3617, 72.2068, 75.2459, 78.3873, 81.5916, 84.9419, 88.498, 92.1789, 95.9582, 99.8431, 103.739, 107.78, 111.97, 116.312, 120.806, 125.46, 130.269, 135.247, 140.389, 145.713, 151.212, 156.871, 162.729, 168.762, 174.998, 181.424, 188.063, 194.907, 201.942, 209.19, 216.683, 224.37, 232.291, 240.43, 248.807, 257.416, 266.256, 275.348, 284.668, 294.216, 304.053, 314.142, 324.488, 335.101, 345.974, 357.116, 368.547, 380.283, 392.29, 404.564, 417.122, 429.968, 443.116, 456.577, 470.357, 484.422, 498.78, 513.473, 528.479, 543.813, 559.445, 575.411, 591.724, 608.352, 625.344, 642.686, 660.361, 678.371, 696.749, 715.485, 734.608, 754.068, 773.846, 794.046, 814.649, 835.608, 856.972, 878.719, 900.887, 923.409, 946.374, 969.674, 993.435, 1017.62, 1042.21, 1067.28, 1092.72, 1118.64, 1144.96, 1171.71, 1198.98, 1226.67, 1254.82, 1283.46, 1312.65, 1342.21, 1372.27, 1402.85, 1433.93, 1465.49, 1497.62, 1530.29, 1563.49, 1597.22, 1631.49, 1666.37, 1701.8, 1737.75, 1774.35, 1811.51, 1849.29, 1887.75, 1926.79, 1966.6, 2006.97, 2047.99, 2089.71, 2132.1, 2175.23, 2219.17, 2263.72, 2309.2, 2355.43, 2402.47, 2450.33, 2499.05, 2548.66, 2599.16, 2650.59, 2703.03, 2756.32, 2810.75, 2866.27, 2922.91, 2980.54, 3039.47, 3099.53, 3160.98, 3223.66, 3287.71, 3353.18, 3420.34, 3489.13, 3559.72, 3632.06, 3706.18, 3782.42, 3860.78, 3941.42, 4024.52, 4110.27, 4199.4, 4292.8, 4394.49, 4519.52, 5199.95}
 
Systematics (Down)
Changed:
<
<
hiHF bin edges for sysDown: {0, 10.5071, 11.2094, 11.8357, 12.4763, 13.117, 13.7597, 14.4049, 15.0671, 15.7491, 16.4622, 17.1812, 17.9144, 18.6674, 19.4797, 20.2963, 21.1435, 21.9974, 22.8928, 23.8068, 24.7805, 25.7931, 26.8556, 27.9308, 29.0638, 30.2582, 31.4795, 32.7816, 34.1349, 35.5834, 37.0941, 38.6474, 40.2782, 42.0035, 43.8112, 45.6576, 47.5758, 49.6381, 51.6667, 53.7353, 55.8903, 58.1259, 60.4528, 62.8712, 65.3859, 67.9968, 70.7065, 73.5231, 76.4519, 79.4922, 82.6461, 85.9264, 89.3269, 92.8562, 96.5212, 100.322, 104.262, 108.344, 112.585, 116.971, 121.521, 126.225, 131.09, 136.127, 141.328, 146.721, 152.284, 158.014, 163.935, 170.054, 176.372, 182.878, 189.602, 196.532, 203.653, 211.017, 218.599, 226.387, 234.418, 242.667, 251.16, 259.886, 268.852, 278.071, 287.498, 297.2, 307.184, 317.409, 327.894, 338.66, 349.686, 360.996, 372.607, 384.508, 396.669, 409.133, 421.86, 434.906, 448.258, 461.916, 475.906, 490.16, 504.74, 519.663, 534.911, 550.453, 566.322, 582.525, 599.08, 615.968, 633.211, 650.805, 668.76, 687.048, 705.707, 724.774, 744.163, 763.9, 783.999, 804.528, 825.432, 846.746, 868.429, 890.523, 913.007, 935.952, 959.211, 982.919, 1007.08, 1031.63, 1056.62, 1082.08, 1107.96, 1134.24, 1160.99, 1188.22, 1215.91, 1244.06, 1272.69, 1301.85, 1331.45, 1361.51, 1392.07, 1423.18, 1454.77, 1486.93, 1519.57, 1552.81, 1586.55, 1620.87, 1655.79, 1691.26, 1727.27, 1763.93, 1801.12, 1838.97, 1877.47, 1916.61, 1956.45, 1996.89, 2038.04, 2079.84, 2122.35, 2165.52, 2209.53, 2254.24, 2299.83, 2346.19, 2393.31, 2441.28, 2490.16, 2539.86, 2590.57, 2642.16, 2694.74, 2748.23, 2802.81, 2858.47, 2915.33, 2973.2, 3032.28, 3092.56, 3154.24, 3217.19, 3281.45, 3347.18, 3414.6, 3483.65, 3554.56, 3627.2, 3701.66, 3778.25, 3856.97, 3937.98, 4021.48, 4107.62, 4197.21, 4291.05, 4393.19, 4518.6, 5199.95}
>
>
hiHF bin edges for sysDown: {0, 10.5071, 11.2094, 11.8357, 12.4763, 13.117, 13.7597, 14.4049, 15.0671, 15.7491, 16.4622, 17.1812, 17.9144, 18.6674, 19.4797, 20.2963, 21.1435, 21.9974, 22.8928, 23.8068, 24.7805, 25.7931, 26.8556, 27.9308, 29.0638, 30.2582, 31.4795, 32.7816, 34.1349, 35.5834, 37.0941, 38.6474, 40.2782, 42.0035, 43.8112, 45.6576, 47.5758, 49.6381, 51.6667, 53.7353, 55.8903, 58.1259, 60.4528, 62.8712, 65.3859, 67.9968, 70.7065, 73.5231, 76.4519, 79.4922, 82.6461, 85.9264, 89.3269, 92.8562, 96.5212, 100.322, 104.262, 108.344, 112.585, 116.971, 121.521, 126.225, 131.09, 136.127, 141.328, 146.721, 152.284, 158.014, 163.935, 170.054, 176.372, 182.878, 189.602, 196.532, 203.653, 211.017, 218.599, 226.387, 234.418, 242.667, 251.16, 259.886, 268.852, 278.071, 287.498, 297.2, 307.184, 317.409, 327.894, 338.66, 349.686, 360.996, 372.607, 384.508, 396.669, 409.133, 421.86, 434.906, 448.258, 461.916, 475.906, 490.16, 504.74, 519.663, 534.911, 550.453, 566.322, 582.525, 599.08, 615.968, 633.211, 650.805, 668.76, 687.048, 705.707, 724.774, 744.163, 763.9, 783.999, 804.528, 825.432, 846.746, 868.429, 890.523, 913.007, 935.952, 959.211, 982.919, 1007.08, 1031.63, 1056.62, 1082.08, 1107.96, 1134.24, 1160.99, 1188.22, 1215.91, 1244.06, 1272.69, 1301.85, 1331.45, 1361.51, 1392.07, 1423.18, 1454.77, 1486.93, 1519.57, 1552.81, 1586.55, 1620.87, 1655.79, 1691.26, 1727.27, 1763.93, 1801.12, 1838.97, 1877.47, 1916.61, 1956.45, 1996.89, 2038.04, 2079.84, 2122.35, 2165.52, 2209.53, 2254.24, 2299.83, 2346.19, 2393.31, 2441.28, 2490.16, 2539.86, 2590.57, 2642.16, 2694.74, 2748.23, 2802.81, 2858.47, 2915.33, 2973.2, 3032.28, 3092.56, 3154.24, 3217.19, 3281.45, 3347.18, 3414.6, 3483.65, 3554.56, 3627.2, 3701.66, 3778.25, 3856.97, 3937.98, 4021.48, 4107.62, 4197.21, 4291.05, 4393.19, 4518.6, 5199.95}
 
Systematics (Up)
Changed:
<
<
hiHF bin edges for sysUp: {0, 10.5075, 11.2107, 11.838, 12.4797, 13.1213, 13.7641, 14.4124, 15.0745, 15.7577, 16.473, 17.1939, 17.9297, 18.6812, 19.4958, 20.3143, 21.1648, 22.0218, 22.9159, 23.8328, 24.8059, 25.8204, 26.89, 27.9702, 29.1042, 30.3022, 31.528, 32.8347, 34.1896, 35.6439, 37.1542, 38.7172, 40.3518, 42.091, 43.9053, 45.7415, 47.6853, 49.7457, 51.8755, 54.0983, 56.3594, 58.7848, 61.2861, 63.9228, 66.6825, 69.4421, 72.297, 75.3547, 78.4967, 81.6977, 85.0755, 88.6211, 92.3058, 96.1071, 99.9975, 104.065, 108.272, 112.512, 116.906, 121.601, 126.465, 131.482, 136.866, 142.229, 147.786, 153.546, 159.571, 165.586, 171.902, 178.419, 185.063, 191.856, 199.055, 206.261, 213.999, 221.719, 229.671, 237.84, 246.088, 254.828, 263.883, 272.907, 282.236, 291.925, 301.519, 311.477, 321.691, 332.153, 342.892, 353.878, 365.161, 376.742, 388.577, 400.684, 413.075, 425.746, 438.711, 451.989, 465.556, 479.45, 493.608, 508.077, 522.891, 538.003, 553.415, 569.151, 585.216, 601.601, 618.354, 635.422, 652.84, 670.599, 688.699, 707.161, 726.014, 745.185, 764.687, 784.557, 804.838, 825.489, 846.537, 867.951, 889.752, 911.955, 934.588, 957.52, 980.912, 1004.73, 1028.94, 1053.57, 1078.67, 1104.17, 1130.07, 1156.39, 1183.2, 1210.47, 1238.17, 1266.38, 1295.02, 1324.16, 1353.71, 1383.77, 1414.35, 1445.41, 1477, 1509.09, 1541.74, 1574.88, 1608.59, 1642.83, 1677.66, 1713.07, 1748.98, 1785.47, 1822.63, 1860.33, 1898.72, 1937.73, 1977.42, 2017.71, 2058.62, 2100.25, 2142.57, 2185.56, 2229.38, 2273.91, 2319.2, 2365.33, 2412.22, 2459.94, 2508.52, 2557.98, 2608.35, 2659.61, 2711.86, 2765, 2819.23, 2874.58, 2930.97, 2988.46, 3047.12, 3106.95, 3168.15, 3230.6, 3294.37, 3359.58, 3426.47, 3494.95, 3565.21, 3637.21, 3711.03, 3786.91, 3864.85, 3945.11, 4027.8, 4113.06, 4201.73, 4294.72, 4395.9, 4520.5, 5199.95}
>
>
hiHF bin edges for sysUp: {0, 10.5075, 11.2107, 11.838, 12.4797, 13.1213, 13.7641, 14.4124, 15.0745, 15.7577, 16.473, 17.1939, 17.9297, 18.6812, 19.4958, 20.3143, 21.1648, 22.0218, 22.9159, 23.8328, 24.8059, 25.8204, 26.89, 27.9702, 29.1042, 30.3022, 31.528, 32.8347, 34.1896, 35.6439, 37.1542, 38.7172, 40.3518, 42.091, 43.9053, 45.7415, 47.6853, 49.7457, 51.8755, 54.0983, 56.3594, 58.7848, 61.2861, 63.9228, 66.6825, 69.4421, 72.297, 75.3547, 78.4967, 81.6977, 85.0755, 88.6211, 92.3058, 96.1071, 99.9975, 104.065, 108.272, 112.512, 116.906, 121.601, 126.465, 131.482, 136.866, 142.229, 147.786, 153.546, 159.571, 165.586, 171.902, 178.419, 185.063, 191.856, 199.055, 206.261, 213.999, 221.719, 229.671, 237.84, 246.088, 254.828, 263.883, 272.907, 282.236, 291.925, 301.519, 311.477, 321.691, 332.153, 342.892, 353.878, 365.161, 376.742, 388.577, 400.684, 413.075, 425.746, 438.711, 451.989, 465.556, 479.45, 493.608, 508.077, 522.891, 538.003, 553.415, 569.151, 585.216, 601.601, 618.354, 635.422, 652.84, 670.599, 688.699, 707.161, 726.014, 745.185, 764.687, 784.557, 804.838, 825.489, 846.537, 867.951, 889.752, 911.955, 934.588, 957.52, 980.912, 1004.73, 1028.94, 1053.57, 1078.67, 1104.17, 1130.07, 1156.39, 1183.2, 1210.47, 1238.17, 1266.38, 1295.02, 1324.16, 1353.71, 1383.77, 1414.35, 1445.41, 1477, 1509.09, 1541.74, 1574.88, 1608.59, 1642.83, 1677.66, 1713.07, 1748.98, 1785.47, 1822.63, 1860.33, 1898.72, 1937.73, 1977.42, 2017.71, 2058.62, 2100.25, 2142.57, 2185.56, 2229.38, 2273.91, 2319.2, 2365.33, 2412.22, 2459.94, 2508.52, 2557.98, 2608.35, 2659.61, 2711.86, 2765, 2819.23, 2874.58, 2930.97, 2988.46, 3047.12, 3106.95, 3168.15, 3230.6, 3294.37, 3359.58, 3426.47, 3494.95, 3565.21, 3637.21, 3711.03, 3786.91, 3864.85, 3945.11, 4027.8, 4113.06, 4201.73, 4294.72, 4395.9, 4520.5, 5199.95}
 

Instructions

In the forest
  • using an extension of the global tag:
Changed:
<
<
In config file change the global tag
"CentralityTable_HFtowers200_DataPbPb_periHYDJETshape_run2v1033p1x01_offline" for nominal,
"CentralityTable_HFtowers200_DataPbPb_periHYDJETshape_run2v1033p1x01_sysDown_offline" for sysDown,
"CentralityTable_HFtowers200_DataPbPb_periHYDJETshape_run2v1033p1x01_sysUp_offline" for sysUp
>
>
In config file change the global tag
"CentralityTable_HFtowers200_DataPbPb_periHYDJETshape_run2v1033p1x01_offline" for nominal,
"CentralityTable_HFtowers200_DataPbPb_periHYDJETshape_run2v1033p1x01_sysDown_offline" for sysDown,
"CentralityTable_HFtowers200_DataPbPb_periHYDJETshape_run2v1033p1x01_sysUp_offline" for sysUp
 
from Configuration.AlCa.GlobalTag import GlobalTag

Revision 1372019-07-10 - BatoulDiab

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 180 to 180
 process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000") process.GlobalTag.toGet.extend([ cms.PSet(record = cms.string("HeavyIonRcd"),
Changed:
<
<
tag = cms.string("CentralityTable_HFtowers200_HydjetDrum5F_v1032x01_mc"),
>
>
tag = cms.string("CentralityTable_HFtowers200_HydjetDrum5F_v1032x02_mc"),
  connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"), label = cms.untracked.string("HFtowers") ),

Revision 1352019-07-09 - BatoulDiab

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 140 to 140
 
Using the hiHF tables
In your code instead of centBin = hiBin use the three tables mentioned above in the following way
Changed:
<
<
const Int_t nBins = 201; // table of bin edges const Double_t binTable[nBins] = {0, 10.5072, 11.2099, 11.8364, 12.478, 13.1194, 13.7623, 14.4081, 15.0709, 15.7532, 16.4673, 17.1881, 17.923, 18.673, 19.4865, 20.3033, 21.1536, 22.0086, 22.9046, 23.8196, 24.7924, 25.8082, 26.8714, 27.9481, 29.0828, 30.2757, 31.5043, 32.8044, 34.1572, 35.6142, 37.1211, 38.6798, 40.3116, 42.0398, 43.8572, 45.6977, 47.6312, 49.6899, 51.815, 54.028, 56.3037, 58.7091, 61.2024, 63.8353, 66.5926, 69.3617, 72.2068, 75.2459, 78.3873, 81.5916, 84.9419, 88.498, 92.1789, 95.9582, 99.8431, 103.739, 107.78, 111.97, 116.312, 120.806, 125.46, 130.269, 135.247, 140.389, 145.713, 151.212, 156.871, 162.729, 168.762, 174.998, 181.424, 188.063, 194.907, 201.942, 209.19, 216.683, 224.37, 232.291, 240.43, 248.807, 257.416, 266.256, 275.348, 284.668, 294.216, 304.053, 314.142, 324.488, 335.101, 345.974, 357.116, 368.547, 380.283, 392.29, 404.564, 417.122, 429.968, 443.116, 456.577, 470.357, 484.422, 498.78, 513.473, 528.479, 543.813, 559.445, 575.411, 591.724, 608.352, 625.344, 642.686, 660.361, 678.371, 696.749, 715.485, 734.608, 754.068, 773.846, 794.046, 814.649, 835.608, 856.972, 878.719, 900.887, 923.409, 946.374, 969.674, 993.435, 1017.62, 1042.21, 1067.28, 1092.72, 1118.64, 1144.96, 1171.71, 1198.98, 1226.67, 1254.82, 1283.46, 1312.65, 1342.21, 1372.27, 1402.85, 1433.93, 1465.49, 1497.62, 1530.29, 1563.49, 1597.22, 1631.49, 1666.37, 1701.8, 1737.75, 1774.35, 1811.51, 1849.29, 1887.75, 1926.79, 1966.6, 2006.97, 2047.99, 2089.71, 2132.1, 2175.23, 2219.17, 2263.72, 2309.2, 2355.43, 2402.47, 2450.33, 2499.05, 2548.66, 2599.16, 2650.59, 2703.03, 2756.32, 2810.75, 2866.27, 2922.91, 2980.54, 3039.47, 3099.53, 3160.98, 3223.66, 3287.71, 3353.18, 3420.34, 3489.13, 3559.72, 3632.06, 3706.18, 3782.42, 3860.78, 3941.42, 4024.52, 4110.27, 4199.4, 4292.8, 4394.49, 4519.52, 5199.95};
>
>
const Int_t nBins = 200; // table of bin edges const Double_t binTable[nBins+1] = {0, 10.5072, 11.2099, 11.8364, 12.478, 13.1194, 13.7623, 14.4081, 15.0709, 15.7532, 16.4673, 17.1881, 17.923, 18.673, 19.4865, 20.3033, 21.1536, 22.0086, 22.9046, 23.8196, 24.7924, 25.8082, 26.8714, 27.9481, 29.0828, 30.2757, 31.5043, 32.8044, 34.1572, 35.6142, 37.1211, 38.6798, 40.3116, 42.0398, 43.8572, 45.6977, 47.6312, 49.6899, 51.815, 54.028, 56.3037, 58.7091, 61.2024, 63.8353, 66.5926, 69.3617, 72.2068, 75.2459, 78.3873, 81.5916, 84.9419, 88.498, 92.1789, 95.9582, 99.8431, 103.739, 107.78, 111.97, 116.312, 120.806, 125.46, 130.269, 135.247, 140.389, 145.713, 151.212, 156.871, 162.729, 168.762, 174.998, 181.424, 188.063, 194.907, 201.942, 209.19, 216.683, 224.37, 232.291, 240.43, 248.807, 257.416, 266.256, 275.348, 284.668, 294.216, 304.053, 314.142, 324.488, 335.101, 345.974, 357.116, 368.547, 380.283, 392.29, 404.564, 417.122, 429.968, 443.116, 456.577, 470.357, 484.422, 498.78, 513.473, 528.479, 543.813, 559.445, 575.411, 591.724, 608.352, 625.344, 642.686, 660.361, 678.371, 696.749, 715.485, 734.608, 754.068, 773.846, 794.046, 814.649, 835.608, 856.972, 878.719, 900.887, 923.409, 946.374, 969.674, 993.435, 1017.62, 1042.21, 1067.28, 1092.72, 1118.64, 1144.96, 1171.71, 1198.98, 1226.67, 1254.82, 1283.46, 1312.65, 1342.21, 1372.27, 1402.85, 1433.93, 1465.49, 1497.62, 1530.29, 1563.49, 1597.22, 1631.49, 1666.37, 1701.8, 1737.75, 1774.35, 1811.51, 1849.29, 1887.75, 1926.79, 1966.6, 2006.97, 2047.99, 2089.71, 2132.1, 2175.23, 2219.17, 2263.72, 2309.2, 2355.43, 2402.47, 2450.33, 2499.05, 2548.66, 2599.16, 2650.59, 2703.03, 2756.32, 2810.75, 2866.27, 2922.91, 2980.54, 3039.47, 3099.53, 3160.98, 3223.66, 3287.71, 3353.18, 3420.34, 3489.13, 3559.72, 3632.06, 3706.18, 3782.42, 3860.78, 3941.42, 4024.52, 4110.27, 4199.4, 4292.8, 4394.49, 4519.52, 5199.95};
  Int_t getHiBinFromhiHF(const Double_t hiHF) {

Revision 1342019-07-09 - BatoulDiab

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 95 to 95
 

Centrality tables

Nominal
Changed:
<
<
hiHFECut bin edges: {0, 3.20743, 3.86326, 4.48319, 5.12687, 5.7663, 6.42279, 7.08053, 7.75242, 8.4379, 9.14816, 9.86551, 10.6081, 11.3871, 12.1881, 13.0123, 13.8753, 14.7326, 15.6419, 16.5711, 17.5518, 18.5813, 19.6493, 20.7523, 21.9014, 23.0839, 24.3493, 25.683, 27.0391, 28.493, 30.0389, 31.6197, 33.2686, 35.0225, 36.865, 38.7072, 40.6637, 42.7806, 44.9535, 47.1631, 49.4902, 51.9304, 54.4739, 57.1265, 59.9463, 62.7513, 65.66, 68.7739, 71.9423, 75.2088, 78.6131, 82.2135, 85.9763, 89.8242, 93.8027, 97.9295, 102.113, 106.396, 110.828, 115.42, 120.167, 125.077, 130.153, 135.397, 140.826, 146.428, 152.196, 158.154, 164.301, 170.653, 177.188, 183.938, 190.895, 198.046, 205.414, 213.018, 220.826, 228.861, 237.12, 245.614, 254.341, 263.303, 272.51, 281.945, 291.608, 301.57, 311.775, 322.235, 332.962, 343.947, 355.205, 366.752, 378.595, 390.713, 403.097, 415.75, 428.71, 441.958, 455.527, 469.402, 483.569, 498.015, 512.805, 527.907, 543.337, 559.043, 575.102, 591.485, 608.204, 625.267, 642.69, 660.438, 678.523, 696.974, 715.775, 734.966, 754.479, 774.316, 794.567, 815.235, 836.248, 857.667, 879.446, 901.669, 924.238, 947.228, 970.586, 994.381, 1018.61, 1043.24, 1068.33, 1093.82, 1119.75, 1146.1, 1172.88, 1200.17, 1227.89, 1256.06, 1284.73, 1313.93, 1343.5, 1373.59, 1404.17, 1435.27, 1466.85, 1498.98, 1531.66, 1564.87, 1598.61, 1632.88, 1667.75, 1703.18, 1739.14, 1775.73, 1812.9, 1850.68, 1889.15, 1928.18, 1967.98, 2008.33, 2049.36, 2091.08, 2133.44, 2176.56, 2220.48, 2265.03, 2310.51, 2356.72, 2403.74, 2451.61, 2500.28, 2549.89, 2600.37, 2651.78, 2704.2, 2757.46, 2811.87, 2867.37, 2923.97, 2981.59, 3040.47, 3100.52, 3161.93, 3224.58, 3288.59, 3354.03, 3421.15, 3489.89, 3560.45, 3632.73, 3706.82, 3783.02, 3861.32, 3941.91, 4024.96, 4110.64, 4199.7, 4293.07, 4394.68, 4519.63, 5199.95}
>
>
hiHF bin edges: {0, 10.5072, 11.2099, 11.8364, 12.478, 13.1194, 13.7623, 14.4081, 15.0709, 15.7532, 16.4673, 17.1881, 17.923, 18.673, 19.4865, 20.3033, 21.1536, 22.0086, 22.9046, 23.8196, 24.7924, 25.8082, 26.8714, 27.9481, 29.0828, 30.2757, 31.5043, 32.8044, 34.1572, 35.6142, 37.1211, 38.6798, 40.3116, 42.0398, 43.8572, 45.6977, 47.6312, 49.6899, 51.815, 54.028, 56.3037, 58.7091, 61.2024, 63.8353, 66.5926, 69.3617, 72.2068, 75.2459, 78.3873, 81.5916, 84.9419, 88.498, 92.1789, 95.9582, 99.8431, 103.739, 107.78, 111.97, 116.312, 120.806, 125.46, 130.269, 135.247, 140.389, 145.713, 151.212, 156.871, 162.729, 168.762, 174.998, 181.424, 188.063, 194.907, 201.942, 209.19, 216.683, 224.37, 232.291, 240.43, 248.807, 257.416, 266.256, 275.348, 284.668, 294.216, 304.053, 314.142, 324.488, 335.101, 345.974, 357.116, 368.547, 380.283, 392.29, 404.564, 417.122, 429.968, 443.116, 456.577, 470.357, 484.422, 498.78, 513.473, 528.479, 543.813, 559.445, 575.411, 591.724, 608.352, 625.344, 642.686, 660.361, 678.371, 696.749, 715.485, 734.608, 754.068, 773.846, 794.046, 814.649, 835.608, 856.972, 878.719, 900.887, 923.409, 946.374, 969.674, 993.435, 1017.62, 1042.21, 1067.28, 1092.72, 1118.64, 1144.96, 1171.71, 1198.98, 1226.67, 1254.82, 1283.46, 1312.65, 1342.21, 1372.27, 1402.85, 1433.93, 1465.49, 1497.62, 1530.29, 1563.49, 1597.22, 1631.49, 1666.37, 1701.8, 1737.75, 1774.35, 1811.51, 1849.29, 1887.75, 1926.79, 1966.6, 2006.97, 2047.99, 2089.71, 2132.1, 2175.23, 2219.17, 2263.72, 2309.2, 2355.43, 2402.47, 2450.33, 2499.05, 2548.66, 2599.16, 2650.59, 2703.03, 2756.32, 2810.75, 2866.27, 2922.91, 2980.54, 3039.47, 3099.53, 3160.98, 3223.66, 3287.71, 3353.18, 3420.34, 3489.13, 3559.72, 3632.06, 3706.18, 3782.42, 3860.78, 3941.42, 4024.52, 4110.27, 4199.4, 4292.8, 4394.49, 4519.52, 5199.95}
 
Systematics (Down)
Changed:
<
<
hiHFECut bin edges for sysDown: {0, 3.20727, 3.86243, 4.48248, 5.12539, 5.76476, 6.42071, 7.07812, 7.74943, 8.43448, 9.14387, 9.86021, 10.6034, 11.38, 12.1802, 13.0073, 13.8675, 14.7243, 15.6328, 16.5623, 17.5417, 18.5706, 19.6376, 20.7355, 21.8857, 23.0666, 24.3285, 25.6653, 27.0155, 28.4682, 30.0121, 31.5948, 33.2396, 34.9892, 36.8318, 38.6737, 40.6284, 42.7334, 44.9011, 47.1188, 49.4352, 51.7799, 54.1801, 56.6735, 59.2724, 61.9639, 64.7614, 67.6667, 70.6837, 73.8136, 77.0638, 80.4425, 83.9438, 87.5763, 91.3465, 95.2507, 99.303, 103.498, 107.856, 112.356, 117.027, 121.846, 126.838, 132.001, 137.334, 142.855, 148.543, 154.408, 160.461, 166.722, 173.167, 179.819, 186.683, 193.75, 201.015, 208.522, 216.246, 224.184, 232.359, 240.751, 249.388, 258.261, 267.376, 276.731, 286.303, 296.156, 306.278, 316.65, 327.278, 338.18, 349.342, 360.793, 372.549, 384.582, 396.884, 409.468, 422.335, 435.502, 448.986, 462.761, 476.878, 491.256, 505.946, 520.996, 536.338, 551.99, 567.968, 584.284, 600.92, 617.936, 635.269, 652.956, 670.99, 689.372, 708.116, 727.26, 746.726, 766.531, 786.727, 807.324, 828.287, 849.669, 871.415, 893.582, 916.096, 939.103, 962.391, 986.178, 1010.39, 1034.97, 1060.02, 1085.49, 1111.41, 1137.76, 1164.52, 1191.77, 1219.48, 1247.68, 1276.31, 1305.51, 1335.09, 1365.19, 1395.78, 1426.89, 1458.48, 1490.65, 1523.29, 1556.55, 1590.29, 1624.6, 1659.52, 1694.97, 1730.97, 1767.63, 1804.81, 1842.63, 1881.13, 1920.22, 1960.07, 2000.48, 2041.59, 2083.37, 2125.84, 2169.01, 2212.97, 2257.63, 2303.19, 2349.53, 2396.61, 2444.55, 2493.35, 2543.04, 2593.68, 2645.2, 2697.74, 2751.17, 2805.71, 2861.29, 2918.07, 2975.88, 3034.88, 3095.08, 3156.69, 3219.54, 3283.72, 3349.36, 3416.67, 3485.64, 3556.43, 3628.96, 3703.29, 3779.78, 3858.35, 3939.22, 4022.59, 4108.59, 4198.01, 4291.69, 4393.66, 4518.93, 5199.95}
>
>
hiHF bin edges for sysDown: {0, 10.5071, 11.2094, 11.8357, 12.4763, 13.117, 13.7597, 14.4049, 15.0671, 15.7491, 16.4622, 17.1812, 17.9144, 18.6674, 19.4797, 20.2963, 21.1435, 21.9974, 22.8928, 23.8068, 24.7805, 25.7931, 26.8556, 27.9308, 29.0638, 30.2582, 31.4795, 32.7816, 34.1349, 35.5834, 37.0941, 38.6474, 40.2782, 42.0035, 43.8112, 45.6576, 47.5758, 49.6381, 51.6667, 53.7353, 55.8903, 58.1259, 60.4528, 62.8712, 65.3859, 67.9968, 70.7065, 73.5231, 76.4519, 79.4922, 82.6461, 85.9264, 89.3269, 92.8562, 96.5212, 100.322, 104.262, 108.344, 112.585, 116.971, 121.521, 126.225, 131.09, 136.127, 141.328, 146.721, 152.284, 158.014, 163.935, 170.054, 176.372, 182.878, 189.602, 196.532, 203.653, 211.017, 218.599, 226.387, 234.418, 242.667, 251.16, 259.886, 268.852, 278.071, 287.498, 297.2, 307.184, 317.409, 327.894, 338.66, 349.686, 360.996, 372.607, 384.508, 396.669, 409.133, 421.86, 434.906, 448.258, 461.916, 475.906, 490.16, 504.74, 519.663, 534.911, 550.453, 566.322, 582.525, 599.08, 615.968, 633.211, 650.805, 668.76, 687.048, 705.707, 724.774, 744.163, 763.9, 783.999, 804.528, 825.432, 846.746, 868.429, 890.523, 913.007, 935.952, 959.211, 982.919, 1007.08, 1031.63, 1056.62, 1082.08, 1107.96, 1134.24, 1160.99, 1188.22, 1215.91, 1244.06, 1272.69, 1301.85, 1331.45, 1361.51, 1392.07, 1423.18, 1454.77, 1486.93, 1519.57, 1552.81, 1586.55, 1620.87, 1655.79, 1691.26, 1727.27, 1763.93, 1801.12, 1838.97, 1877.47, 1916.61, 1956.45, 1996.89, 2038.04, 2079.84, 2122.35, 2165.52, 2209.53, 2254.24, 2299.83, 2346.19, 2393.31, 2441.28, 2490.16, 2539.86, 2590.57, 2642.16, 2694.74, 2748.23, 2802.81, 2858.47, 2915.33, 2973.2, 3032.28, 3092.56, 3154.24, 3217.19, 3281.45, 3347.18, 3414.6, 3483.65, 3554.56, 3627.2, 3701.66, 3778.25, 3856.97, 3937.98, 4021.48, 4107.62, 4197.21, 4291.05, 4393.19, 4518.6, 5199.95}
 
Systematics (Up)
Changed:
<
<
hiHFECut bin edges for sysUp: {0, 3.20754, 3.86393, 4.48393, 5.12817, 5.7681, 6.42536, 7.08389, 7.75635, 8.44145, 9.15322, 9.87055, 10.6149, 11.3951, 12.1965, 13.022, 13.8841, 14.7412, 15.6543, 16.5824, 17.5656, 18.5956, 19.6665, 20.7694, 21.9214, 23.106, 24.3726, 25.7071, 27.0682, 28.5237, 30.0727, 31.6545, 33.3032, 35.0637, 36.9045, 38.7503, 40.7185, 42.8363, 45.0144, 47.2229, 49.5569, 52.0119, 54.5426, 57.2299, 60.0334, 62.8398, 65.753, 68.87, 72.0407, 75.3173, 78.7277, 82.3483, 86.1184, 89.9651, 93.9508, 98.0737, 102.316, 106.672, 111.164, 115.935, 120.898, 125.979, 131.445, 136.926, 142.588, 148.465, 154.595, 160.714, 167.081, 173.771, 180.486, 187.392, 194.705, 201.999, 209.891, 217.738, 225.789, 234.073, 242.422, 251.235, 260.437, 269.543, 279.016, 288.821, 298.521, 308.603, 318.929, 329.5, 340.345, 351.436, 362.819, 374.505, 386.445, 398.654, 411.144, 423.912, 436.971, 450.347, 464.01, 477.991, 492.238, 506.794, 521.696, 536.882, 552.38, 568.196, 584.339, 600.8, 617.624, 634.765, 652.249, 670.077, 688.247, 706.77, 725.677, 744.908, 764.466, 784.391, 804.722, 825.423, 846.523, 867.975, 889.829, 912.067, 934.745, 957.717, 981.145, 1005.01, 1029.24, 1053.9, 1079.04, 1104.55, 1130.48, 1156.83, 1183.67, 1210.97, 1238.68, 1266.91, 1295.57, 1324.74, 1354.29, 1384.37, 1414.96, 1446.04, 1477.64, 1509.73, 1542.39, 1575.55, 1609.26, 1643.5, 1678.34, 1713.76, 1749.67, 1786.17, 1823.33, 1861.03, 1899.42, 1938.43, 1978.12, 2018.41, 2059.32, 2100.95, 2143.26, 2186.26, 2230.07, 2274.6, 2319.89, 2366, 2412.89, 2460.6, 2509.17, 2558.61, 2608.98, 2660.23, 2712.48, 2765.61, 2819.82, 2875.16, 2931.53, 2989.01, 3047.65, 3107.46, 3168.66, 3231.08, 3294.84, 3360.03, 3426.9, 3495.36, 3565.59, 3637.57, 3711.37, 3787.22, 3865.14, 3945.37, 4028.02, 4113.26, 4201.89, 4294.85, 4396, 4520.58, 5199.95}
>
>
hiHF bin edges for sysUp: {0, 10.5075, 11.2107, 11.838, 12.4797, 13.1213, 13.7641, 14.4124, 15.0745, 15.7577, 16.473, 17.1939, 17.9297, 18.6812, 19.4958, 20.3143, 21.1648, 22.0218, 22.9159, 23.8328, 24.8059, 25.8204, 26.89, 27.9702, 29.1042, 30.3022, 31.528, 32.8347, 34.1896, 35.6439, 37.1542, 38.7172, 40.3518, 42.091, 43.9053, 45.7415, 47.6853, 49.7457, 51.8755, 54.0983, 56.3594, 58.7848, 61.2861, 63.9228, 66.6825, 69.4421, 72.297, 75.3547, 78.4967, 81.6977, 85.0755, 88.6211, 92.3058, 96.1071, 99.9975, 104.065, 108.272, 112.512, 116.906, 121.601, 126.465, 131.482, 136.866, 142.229, 147.786, 153.546, 159.571, 165.586, 171.902, 178.419, 185.063, 191.856, 199.055, 206.261, 213.999, 221.719, 229.671, 237.84, 246.088, 254.828, 263.883, 272.907, 282.236, 291.925, 301.519, 311.477, 321.691, 332.153, 342.892, 353.878, 365.161, 376.742, 388.577, 400.684, 413.075, 425.746, 438.711, 451.989, 465.556, 479.45, 493.608, 508.077, 522.891, 538.003, 553.415, 569.151, 585.216, 601.601, 618.354, 635.422, 652.84, 670.599, 688.699, 707.161, 726.014, 745.185, 764.687, 784.557, 804.838, 825.489, 846.537, 867.951, 889.752, 911.955, 934.588, 957.52, 980.912, 1004.73, 1028.94, 1053.57, 1078.67, 1104.17, 1130.07, 1156.39, 1183.2, 1210.47, 1238.17, 1266.38, 1295.02, 1324.16, 1353.71, 1383.77, 1414.35, 1445.41, 1477, 1509.09, 1541.74, 1574.88, 1608.59, 1642.83, 1677.66, 1713.07, 1748.98, 1785.47, 1822.63, 1860.33, 1898.72, 1937.73, 1977.42, 2017.71, 2058.62, 2100.25, 2142.57, 2185.56, 2229.38, 2273.91, 2319.2, 2365.33, 2412.22, 2459.94, 2508.52, 2557.98, 2608.35, 2659.61, 2711.86, 2765, 2819.23, 2874.58, 2930.97, 2988.46, 3047.12, 3106.95, 3168.15, 3230.6, 3294.37, 3359.58, 3426.47, 3494.95, 3565.21, 3637.21, 3711.03, 3786.91, 3864.85, 3945.11, 4027.8, 4113.06, 4201.73, 4294.72, 4395.9, 4520.5, 5199.95}
 

Instructions

In the forest
  • using an extension of the global tag:
In config file change the global tag
Changed:
<
<
"CentralityTable_HFECutTowers200_DataPbPb_periHYDJETshape_run2v1033p1x01_offline" for nominal,
"CentralityTable_HFECutTowers200_DataPbPb_periHYDJETshape_run2v1033p1x01_sysDown_offline" for sysDown,
"CentralityTable_HFECutTowers200_DataPbPb_periHYDJETshape_run2v1033p1x01_sysUp_offline" for sysUp
>
>
"CentralityTable_HFtowers200_DataPbPb_periHYDJETshape_run2v1033p1x01_offline" for nominal,
"CentralityTable_HFtowers200_DataPbPb_periHYDJETshape_run2v1033p1x01_sysDown_offline" for sysDown,
"CentralityTable_HFtowers200_DataPbPb_periHYDJETshape_run2v1033p1x01_sysUp_offline" for sysUp
 
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, '103X_dataRun2_Prompt_v2', '')
process.HiForest.GlobalTagLabel = process.GlobalTag.globaltag
Changed:
<
<
print('\n\033[31m~*~ USING CENTRALITY TABLE FOR PbPb 2018 ~*~\033[0m\n')
>
>
print('\n\033[31m~*~ USING CENTRALITY TABLE FOR PbPb 2018 DATA ~*~\033[0m\n')
 process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000") process.GlobalTag.toGet.extend([ cms.PSet(record = cms.string("HeavyIonRcd"),
Changed:
<
<
tag = cms.string("CentralityTable_HFECutTowers200_DataPbPb_periHYDJETshape_run2v1033p1x01_offline"),
>
>
tag = cms.string("CentralityTable_HFtowers200_DataPbPb_periHYDJETshape_run2v1033p1x01_offline"),
  connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
Changed:
<
<
label = cms.untracked.string("HFECutTowers")
>
>
label = cms.untracked.string("HFtowers")
  ), ])
Added:
>
>
from CommonFunctions_cff import overrideJEC_PbPb5020 process = overrideJEC_PbPb5020(process)

process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi") process.centralityBin.Centrality = cms.InputTag("hiCentrality") process.centralityBin.centralityVariable = cms.string("HFtowers")

 
Changed:
<
<
Using the HFECut tables
>
>
Using the hiHF tables
 In your code instead of centBin = hiBin use the three tables mentioned above in the following way
const Int_t nBins = 201; // table of bin edges
Changed:
<
<
const Double_t binTable[nBins] = {0, 3.20743, 3.86326, 4.48319, 5.12687, 5.7663, 6.42279, 7.08053, 7.75242, 8.4379, 9.14816, 9.86551, 10.6081, 11.3871, 12.1881, 13.0123, 13.8753, 14.7326, 15.6419, 16.5711, 17.5518, 18.5813, 19.6493, 20.7523, 21.9014, 23.0839, 24.3493, 25.683, 27.0391, 28.493, 30.0389, 31.6197, 33.2686, 35.0225, 36.865, 38.7072, 40.6637, 42.7806, 44.9535, 47.1631, 49.4902, 51.9304, 54.4739, 57.1265, 59.9463, 62.7513, 65.66, 68.7739, 71.9423, 75.2088, 78.6131, 82.2135, 85.9763, 89.8242, 93.8027, 97.9295, 102.113, 106.396, 110.828, 115.42, 120.167, 125.077, 130.153, 135.397, 140.826, 146.428, 152.196, 158.154, 164.301, 170.653, 177.188, 183.938, 190.895, 198.046, 205.414, 213.018, 220.826, 228.861, 237.12, 245.614, 254.341, 263.303, 272.51, 281.945, 291.608, 301.57, 311.775, 322.235, 332.962, 343.947, 355.205, 366.752, 378.595, 390.713, 403.097, 415.75, 428.71, 441.958, 455.527, 469.402, 483.569, 498.015, 512.805, 527.907, 543.337, 559.043, 575.102, 591.485, 608.204, 625.267, 642.69, 660.438, 678.523, 696.974, 715.775, 734.966, 754.479, 774.316, 794.567, 815.235, 836.248, 857.667, 879.446, 901.669, 924.238, 947.228, 970.586, 994.381, 1018.61, 1043.24, 1068.33, 1093.82, 1119.75, 1146.1, 1172.88, 1200.17, 1227.89, 1256.06, 1284.73, 1313.93, 1343.5, 1373.59, 1404.17, 1435.27, 1466.85, 1498.98, 1531.66, 1564.87, 1598.61, 1632.88, 1667.75, 1703.18, 1739.14, 1775.73, 1812.9, 1850.68, 1889.15, 1928.18, 1967.98, 2008.33, 2049.36, 2091.08, 2133.44, 2176.56, 2220.48, 2265.03, 2310.51, 2356.72, 2403.74, 2451.61, 2500.28, 2549.89, 2600.37, 2651.78, 2704.2, 2757.46, 2811.87, 2867.37, 2923.97, 2981.59, 3040.47, 3100.52, 3161.93, 3224.58, 3288.59, 3354.03, 3421.15, 3489.89, 3560.45, 3632.73, 3706.82, 3783.02, 3861.32, 3941.91, 4024.96, 4110.64, 4199.7, 4293.07, 4394.68, 4519.63, 5199.95};
>
>
const Double_t binTable[nBins] = {0, 10.5072, 11.2099, 11.8364, 12.478, 13.1194, 13.7623, 14.4081, 15.0709, 15.7532, 16.4673, 17.1881, 17.923, 18.673, 19.4865, 20.3033, 21.1536, 22.0086, 22.9046, 23.8196, 24.7924, 25.8082, 26.8714, 27.9481, 29.0828, 30.2757, 31.5043, 32.8044, 34.1572, 35.6142, 37.1211, 38.6798, 40.3116, 42.0398, 43.8572, 45.6977, 47.6312, 49.6899, 51.815, 54.028, 56.3037, 58.7091, 61.2024, 63.8353, 66.5926, 69.3617, 72.2068, 75.2459, 78.3873, 81.5916, 84.9419, 88.498, 92.1789, 95.9582, 99.8431, 103.739, 107.78, 111.97, 116.312, 120.806, 125.46, 130.269, 135.247, 140.389, 145.713, 151.212, 156.871, 162.729, 168.762, 174.998, 181.424, 188.063, 194.907, 201.942, 209.19, 216.683, 224.37, 232.291, 240.43, 248.807, 257.416, 266.256, 275.348, 284.668, 294.216, 304.053, 314.142, 324.488, 335.101, 345.974, 357.116, 368.547, 380.283, 392.29, 404.564, 417.122, 429.968, 443.116, 456.577, 470.357, 484.422, 498.78, 513.473, 528.479, 543.813, 559.445, 575.411, 591.724, 608.352, 625.344, 642.686, 660.361, 678.371, 696.749, 715.485, 734.608, 754.068, 773.846, 794.046, 814.649, 835.608, 856.972, 878.719, 900.887, 923.409, 946.374, 969.674, 993.435, 1017.62, 1042.21, 1067.28, 1092.72, 1118.64, 1144.96, 1171.71, 1198.98, 1226.67, 1254.82, 1283.46, 1312.65, 1342.21, 1372.27, 1402.85, 1433.93, 1465.49, 1497.62, 1530.29, 1563.49, 1597.22, 1631.49, 1666.37, 1701.8, 1737.75, 1774.35, 1811.51, 1849.29, 1887.75, 1926.79, 1966.6, 2006.97, 2047.99, 2089.71, 2132.1, 2175.23, 2219.17, 2263.72, 2309.2, 2355.43, 2402.47, 2450.33, 2499.05, 2548.66, 2599.16, 2650.59, 2703.03, 2756.32, 2810.75, 2866.27, 2922.91, 2980.54, 3039.47, 3099.53, 3160.98, 3223.66, 3287.71, 3353.18, 3420.34, 3489.13, 3559.72, 3632.06, 3706.18, 3782.42, 3860.78, 3941.42, 4024.52, 4110.27, 4199.4, 4292.8, 4394.49, 4519.52, 5199.95};
 
Changed:
<
<
Int_t getHiBinFromHiHFECut(const Double_t hiHFECut)
>
>
Int_t getHiBinFromhiHF(const Double_t hiHF)
 { Int_t binPos = -1; for(int i = 0; i < nBins; ++i){
Changed:
<
<
if(hiHFECut >= binTable[i] && hiHFECut < binTable[i+1]){
>
>
if(hiHF >= binTable[i] && hiHF < binTable[i+1]){
  binPos = i; break; }
Line: 153 to 160
  ..... .....
Changed:
<
<
centBin = getHiBinFromHiHFECut(hiHFECut)
>
>
centBin = getHiBinFromhiHF(hiHF)
 

Revision 1322019-07-03 - BatoulDiab

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 96 to 96
 

Centrality tables

Nominal
hiHFECut bin edges:
Changed:
<
<
{}
>
>
{0, 3.20743, 3.86326, 4.48319, 5.12687, 5.7663, 6.42279, 7.08053, 7.75242, 8.4379, 9.14816, 9.86551, 10.6081, 11.3871, 12.1881, 13.0123, 13.8753, 14.7326, 15.6419, 16.5711, 17.5518, 18.5813, 19.6493, 20.7523, 21.9014, 23.0839, 24.3493, 25.683, 27.0391, 28.493, 30.0389, 31.6197, 33.2686, 35.0225, 36.865, 38.7072, 40.6637, 42.7806, 44.9535, 47.1631, 49.4902, 51.9304, 54.4739, 57.1265, 59.9463, 62.7513, 65.66, 68.7739, 71.9423, 75.2088, 78.6131, 82.2135, 85.9763, 89.8242, 93.8027, 97.9295, 102.113, 106.396, 110.828, 115.42, 120.167, 125.077, 130.153, 135.397, 140.826, 146.428, 152.196, 158.154, 164.301, 170.653, 177.188, 183.938, 190.895, 198.046, 205.414, 213.018, 220.826, 228.861, 237.12, 245.614, 254.341, 263.303, 272.51, 281.945, 291.608, 301.57, 311.775, 322.235, 332.962, 343.947, 355.205, 366.752, 378.595, 390.713, 403.097, 415.75, 428.71, 441.958, 455.527, 469.402, 483.569, 498.015, 512.805, 527.907, 543.337, 559.043, 575.102, 591.485, 608.204, 625.267, 642.69, 660.438, 678.523, 696.974, 715.775, 734.966, 754.479, 774.316, 794.567, 815.235, 836.248, 857.667, 879.446, 901.669, 924.238, 947.228, 970.586, 994.381, 1018.61, 1043.24, 1068.33, 1093.82, 1119.75, 1146.1, 1172.88, 1200.17, 1227.89, 1256.06, 1284.73, 1313.93, 1343.5, 1373.59, 1404.17, 1435.27, 1466.85, 1498.98, 1531.66, 1564.87, 1598.61, 1632.88, 1667.75, 1703.18, 1739.14, 1775.73, 1812.9, 1850.68, 1889.15, 1928.18, 1967.98, 2008.33, 2049.36, 2091.08, 2133.44, 2176.56, 2220.48, 2265.03, 2310.51, 2356.72, 2403.74, 2451.61, 2500.28, 2549.89, 2600.37, 2651.78, 2704.2, 2757.46, 2811.87, 2867.37, 2923.97, 2981.59, 3040.47, 3100.52, 3161.93, 3224.58, 3288.59, 3354.03, 3421.15, 3489.89, 3560.45, 3632.73, 3706.82, 3783.02, 3861.32, 3941.91, 4024.96, 4110.64, 4199.7, 4293.07, 4394.68, 4519.63, 5199.95}
 
Changed:
<
<
Systematics
>
>
Systematics (Down)
 hiHFECut bin edges for sysDown:
Changed:
<
<
{}
>
>
{0, 3.20727, 3.86243, 4.48248, 5.12539, 5.76476, 6.42071, 7.07812, 7.74943, 8.43448, 9.14387, 9.86021, 10.6034, 11.38, 12.1802, 13.0073, 13.8675, 14.7243, 15.6328, 16.5623, 17.5417, 18.5706, 19.6376, 20.7355, 21.8857, 23.0666, 24.3285, 25.6653, 27.0155, 28.4682, 30.0121, 31.5948, 33.2396, 34.9892, 36.8318, 38.6737, 40.6284, 42.7334, 44.9011, 47.1188, 49.4352, 51.7799, 54.1801, 56.6735, 59.2724, 61.9639, 64.7614, 67.6667, 70.6837, 73.8136, 77.0638, 80.4425, 83.9438, 87.5763, 91.3465, 95.2507, 99.303, 103.498, 107.856, 112.356, 117.027, 121.846, 126.838, 132.001, 137.334, 142.855, 148.543, 154.408, 160.461, 166.722, 173.167, 179.819, 186.683, 193.75, 201.015, 208.522, 216.246, 224.184, 232.359, 240.751, 249.388, 258.261, 267.376, 276.731, 286.303, 296.156, 306.278, 316.65, 327.278, 338.18, 349.342, 360.793, 372.549, 384.582, 396.884, 409.468, 422.335, 435.502, 448.986, 462.761, 476.878, 491.256, 505.946, 520.996, 536.338, 551.99, 567.968, 584.284, 600.92, 617.936, 635.269, 652.956, 670.99, 689.372, 708.116, 727.26, 746.726, 766.531, 786.727, 807.324, 828.287, 849.669, 871.415, 893.582, 916.096, 939.103, 962.391, 986.178, 1010.39, 1034.97, 1060.02, 1085.49, 1111.41, 1137.76, 1164.52, 1191.77, 1219.48, 1247.68, 1276.31, 1305.51, 1335.09, 1365.19, 1395.78, 1426.89, 1458.48, 1490.65, 1523.29, 1556.55, 1590.29, 1624.6, 1659.52, 1694.97, 1730.97, 1767.63, 1804.81, 1842.63, 1881.13, 1920.22, 1960.07, 2000.48, 2041.59, 2083.37, 2125.84, 2169.01, 2212.97, 2257.63, 2303.19, 2349.53, 2396.61, 2444.55, 2493.35, 2543.04, 2593.68, 2645.2, 2697.74, 2751.17, 2805.71, 2861.29, 2918.07, 2975.88, 3034.88, 3095.08, 3156.69, 3219.54, 3283.72, 3349.36, 3416.67, 3485.64, 3556.43, 3628.96, 3703.29, 3779.78, 3858.35, 3939.22, 4022.59, 4108.59, 4198.01, 4291.69, 4393.66, 4518.93, 5199.95}
 
Changed:
<
<
hiHFECut bin edges for are: {}
>
>
Systematics (Up)
hiHFECut bin edges for sysUp: {0, 3.20754, 3.86393, 4.48393, 5.12817, 5.7681, 6.42536, 7.08389, 7.75635, 8.44145, 9.15322, 9.87055, 10.6149, 11.3951, 12.1965, 13.022, 13.8841, 14.7412, 15.6543, 16.5824, 17.5656, 18.5956, 19.6665, 20.7694, 21.9214, 23.106, 24.3726, 25.7071, 27.0682, 28.5237, 30.0727, 31.6545, 33.3032, 35.0637, 36.9045, 38.7503, 40.7185, 42.8363, 45.0144, 47.2229, 49.5569, 52.0119, 54.5426, 57.2299, 60.0334, 62.8398, 65.753, 68.87, 72.0407, 75.3173, 78.7277, 82.3483, 86.1184, 89.9651, 93.9508, 98.0737, 102.316, 106.672, 111.164, 115.935, 120.898, 125.979, 131.445, 136.926, 142.588, 148.465, 154.595, 160.714, 167.081, 173.771, 180.486, 187.392, 194.705, 201.999, 209.891, 217.738, 225.789, 234.073, 242.422, 251.235, 260.437, 269.543, 279.016, 288.821, 298.521, 308.603, 318.929, 329.5, 340.345, 351.436, 362.819, 374.505, 386.445, 398.654, 411.144, 423.912, 436.971, 450.347, 464.01, 477.991, 492.238, 506.794, 521.696, 536.882, 552.38, 568.196, 584.339, 600.8, 617.624, 634.765, 652.249, 670.077, 688.247, 706.77, 725.677, 744.908, 764.466, 784.391, 804.722, 825.423, 846.523, 867.975, 889.829, 912.067, 934.745, 957.717, 981.145, 1005.01, 1029.24, 1053.9, 1079.04, 1104.55, 1130.48, 1156.83, 1183.67, 1210.97, 1238.68, 1266.91, 1295.57, 1324.74, 1354.29, 1384.37, 1414.96, 1446.04, 1477.64, 1509.73, 1542.39, 1575.55, 1609.26, 1643.5, 1678.34, 1713.76, 1749.67, 1786.17, 1823.33, 1861.03, 1899.42, 1938.43, 1978.12, 2018.41, 2059.32, 2100.95, 2143.26, 2186.26, 2230.07, 2274.6, 2319.89, 2366, 2412.89, 2460.6, 2509.17, 2558.61, 2608.98, 2660.23, 2712.48, 2765.61, 2819.82, 2875.16, 2931.53, 2989.01, 3047.65, 3107.46, 3168.66, 3231.08, 3294.84, 3360.03, 3426.9, 3495.36, 3565.59, 3637.57, 3711.37, 3787.22, 3865.14, 3945.37, 4028.02, 4113.26, 4201.89, 4294.85, 4396, 4520.58, 5199.95}
 

Instructions

In the forest
Line: 132 to 133
 
Using the HFECut tables
In your code instead of centBin = hiBin use the three tables mentioned above in the following way
Changed:
<
<
const Int_t nBins = 201; const Double_t binTable[nBins] = {};
>
>
const Int_t nBins = 201; // table of bin edges const Double_t binTable[nBins] = {0, 3.20743, 3.86326, 4.48319, 5.12687, 5.7663, 6.42279, 7.08053, 7.75242, 8.4379, 9.14816, 9.86551, 10.6081, 11.3871, 12.1881, 13.0123, 13.8753, 14.7326, 15.6419, 16.5711, 17.5518, 18.5813, 19.6493, 20.7523, 21.9014, 23.0839, 24.3493, 25.683, 27.0391, 28.493, 30.0389, 31.6197, 33.2686, 35.0225, 36.865, 38.7072, 40.6637, 42.7806, 44.9535, 47.1631, 49.4902, 51.9304, 54.4739, 57.1265, 59.9463, 62.7513, 65.66, 68.7739, 71.9423, 75.2088, 78.6131, 82.2135, 85.9763, 89.8242, 93.8027, 97.9295, 102.113, 106.396, 110.828, 115.42, 120.167, 125.077, 130.153, 135.397, 140.826, 146.428, 152.196, 158.154, 164.301, 170.653, 177.188, 183.938, 190.895, 198.046, 205.414, 213.018, 220.826, 228.861, 237.12, 245.614, 254.341, 263.303, 272.51, 281.945, 291.608, 301.57, 311.775, 322.235, 332.962, 343.947, 355.205, 366.752, 378.595, 390.713, 403.097, 415.75, 428.71, 441.958, 455.527, 469.402, 483.569, 498.015, 512.805, 527.907, 543.337, 559.043, 575.102, 591.485, 608.204, 625.267, 642.69, 660.438, 678.523, 696.974, 715.775, 734.966, 754.479, 774.316, 794.567, 815.235, 836.248, 857.667, 879.446, 901.669, 924.238, 947.228, 970.586, 994.381, 1018.61, 1043.24, 1068.33, 1093.82, 1119.75, 1146.1, 1172.88, 1200.17, 1227.89, 1256.06, 1284.73, 1313.93, 1343.5, 1373.59, 1404.17, 1435.27, 1466.85, 1498.98, 1531.66, 1564.87, 1598.61, 1632.88, 1667.75, 1703.18, 1739.14, 1775.73, 1812.9, 1850.68, 1889.15, 1928.18, 1967.98, 2008.33, 2049.36, 2091.08, 2133.44, 2176.56, 2220.48, 2265.03, 2310.51, 2356.72, 2403.74, 2451.61, 2500.28, 2549.89, 2600.37, 2651.78, 2704.2, 2757.46, 2811.87, 2867.37, 2923.97, 2981.59, 3040.47, 3100.52, 3161.93, 3224.58, 3288.59, 3354.03, 3421.15, 3489.89, 3560.45, 3632.73, 3706.82, 3783.02, 3861.32, 3941.91, 4024.96, 4110.64, 4199.7, 4293.07, 4394.68, 4519.63, 5199.95};
  Int_t getHiBinFromHiHFECut(const Double_t hiHFECut) {

Revision 1312019-07-03 - BatoulDiab

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 95 to 95
 

Centrality tables

Nominal
Added:
>
>
hiHFECut bin edges: {}
 
Systematics
Added:
>
>
hiHFECut bin edges for sysDown: {}

hiHFECut bin edges for are: {}

 

Instructions

In the forest
  • using an extension of the global tag:
Changed:
<
<
In config file change the global tag use "" for nominal and "" and "" for systematics
>
>
In config file change the global tag
"CentralityTable_HFECutTowers200_DataPbPb_periHYDJETshape_run2v1033p1x01_offline" for nominal,
"CentralityTable_HFECutTowers200_DataPbPb_periHYDJETshape_run2v1033p1x01_sysDown_offline" for sysDown,
"CentralityTable_HFECutTowers200_DataPbPb_periHYDJETshape_run2v1033p1x01_sysUp_offline" for sysUp
 
from Configuration.AlCa.GlobalTag import GlobalTag
Line: 111 to 122
 process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000") process.GlobalTag.toGet.extend([ cms.PSet(record = cms.string("HeavyIonRcd"),
Changed:
<
<
tag = cms.string("CentralityTable_HFtowers200_DataPbPb_periHYDJETshape_run2v1031x02_offline"),
>
>
tag = cms.string("CentralityTable_HFECutTowers200_DataPbPb_periHYDJETshape_run2v1033p1x01_offline"),
  connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"), label = cms.untracked.string("HFtowers") ), ])

Changed:
<
<
Using the HF energy tables
use the three tables mentioned above
>
>
Using the HFECut tables
In your code instead of centBin = hiBin use the three tables mentioned above in the following way
const Int_t nBins = 201; 
const Double_t binTable[nBins] = {};

Int_t getHiBinFromHiHFECut(const Double_t hiHFECut)
{
  Int_t binPos = -1;
  for(int i = 0; i < nBins; ++i){
    if(hiHFECut >= binTable[i] && hiHFECut < binTable[i+1]){
      binPos = i;
      break;
    }
  }

  binPos = nBins - 1 - binPos;

  return (Int_t)(200*((Double_t)binPos)/((Double_t)nBin));
}

.....
.....
centBin = getHiBinFromHiHFECut(hiHFECut)

 

PbPb Hydjet MC

  • not yet in GT, follow instructions below:

Revision 1302019-07-02 - BatoulDiab

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 92 to 92
 

Instructions for 10_X_Y

PbPb Data (103X)

Changed:
<
<
  • not yet in GT, follow instructions below:
In config file
>
>

Centrality tables

Nominal
Systematics

Instructions

In the forest
  • using an extension of the global tag:
In config file change the global tag use "" for nominal and "" and "" for systematics
 
from Configuration.AlCa.GlobalTag import GlobalTag
Line: 111 to 118
  ])

Added:
>
>
Using the HF energy tables
use the three tables mentioned above
 

PbPb Hydjet MC

  • not yet in GT, follow instructions below:

Revision 1292019-04-02 - BatoulDiab

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 115 to 115
 

PbPb Hydjet MC

  • not yet in GT, follow instructions below:
Added:
>
>

Drum5F Tune

In config file

process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff')

from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2018_realistic_hi', '') 
process.HiForest.GlobalTagLabel = process.GlobalTag.globaltag
process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000")
process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
      tag = cms.string("CentralityTable_HFtowers200_HydjetDrum5F_v1032x01_mc"),
      connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
      label = cms.untracked.string("HFtowers")
   ),
])

 

Phase II MC (CP5 Tune)

In config file

Revision 1282019-01-25 - BatoulDiab

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 96 to 96
 In config file
Deleted:
<
<
process.load('Configuration.StandardSequences.Services_cff') process.load('Configuration.Geometry.GeometryDB_cff') process.load('Configuration.StandardSequences.MagneticField_38T_cff') process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') process.load('FWCore.MessageService.MessageLogger_cfi')
 from GlobalTag import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, '103X_dataRun2_Prompt_v2', '') process.HiForest.GlobalTagLabel = process.GlobalTag.globaltag
Line: 121 to 115
 

PbPb Hydjet MC

  • not yet in GT, follow instructions below:
Added:
>
>

Phase II MC (CP5 Tune)

In config file

process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff')

from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2018_realistic', '') 
process.HiForest.GlobalTagLabel = process.GlobalTag.globaltag
process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000")
process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
      tag = cms.string("CentralityTable_HFtowers200_HydjetTuneCP5MTD_v1040mtd4x1_mc"),
      connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
      label = cms.untracked.string("HFtowers")
   ),
])


 

Cymbal5Ev8 Tune

In config file

Revision 1272018-11-26 - YeonjuGo

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 65 to 65
 

Event selection

PbPb Data 2018

  • Event selection in forest : pprimaryVertexFilter && phfCoincFilter2Th4 && pclusterCompatibilityFilter
Changed:
<
<
  • The instruction is below
    - Please refer to here for the detailed instruction about the new primary vertex filter

    In config file

>
>
  • The instruction is below
    - Please refer to here for the detailed instruction about the new primary vertex filter

    Setup

    cmsrel CMSSW_10_3_1_patch2
    cd CMSSW_10_3_1_patch2/src
    cmsenv
    git cms-merge-topic -u CmsHI:forest_CMSSW_10_3_1
    scram b -j4


    In config file

 
process.load("RecoVertex.PrimaryVertexProducer.OfflinePrimaryVerticesRecovery_cfi")

process.ana_step = cms.Path(
process.offlinePrimaryVerticesRecovery +
process.HiForest + ...

process.load('HeavyIonsAnalysis.EventAnalysis.skimanalysis_cfi')

Revision 1262018-11-26 - YeonjuGo

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 64 to 64
 

Event selection

PbPb Data 2018

Changed:
<
<
  • Event selection: HLT_HIL1MinimumBiasHF1AND_v1_part* && pprimaryVertexFilter && phfCoincFilter2Th4 && pclusterCompatibilityFilter
>
>
  • Event selection in forest : pprimaryVertexFilter && phfCoincFilter2Th4 && pclusterCompatibilityFilter
  • The instruction is below
    - Please refer to here for the detailed instruction about the new primary vertex filter

    In config file

process.load("RecoVertex.PrimaryVertexProducer.OfflinePrimaryVerticesRecovery_cfi")

process.ana_step = cms.Path(
process.offlinePrimaryVerticesRecovery +
process.HiForest + ...

process.load('HeavyIonsAnalysis.EventAnalysis.skimanalysis_cfi')
process.load('HeavyIonsAnalysis.Configuration.collisionEventSelection_cff')
process.pclusterCompatibilityFilter = cms.Path(process.clusterCompatibilityFilter)
process.pprimaryVertexFilter = cms.Path(process.primaryVertexFilter)
process.collisionEventSelectionAOD = cms.Path(process.collisionEventSelectionAOD)
process.collisionEventSelectionAODv2 = cms.Path(process.collisionEventSelectionAODv2)
 
process.load('HeavyIonsAnalysis.Configuration.hfCoincFilter_cff')
process.phfCoincFilter3Th3 = cms.Path(process.hfCoincFilter3Th3)
process.phfCoincFilter2Th4 = cms.Path(process.hfCoincFilter2Th4)
 
process.pAna = cms.EndPath(process.skimanalysis)

and put the below three lines at the very last of the config.

from HLTrigger.Configuration.CustomConfigs import MassReplaceInputTag
process = MassReplaceInputTag(process,"offlinePrimaryVertices","offlinePrimaryVerticesRecovery")
process.offlinePrimaryVerticesRecovery.oldVertexLabel = "offlinePrimaryVertices"
 
 
 

XeXe Data

  • FINAL event selection: HLT_HIL1MinimumBiasHF_OR_SinglePixelTrack_part* && pPAprimaryVertexFilter && pBeamScrapingFilter && phfCoincFilter3

Revision 1252018-11-21 - BatoulDiab

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 92 to 92
 process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000") process.GlobalTag.toGet.extend([ cms.PSet(record = cms.string("HeavyIonRcd"),
Changed:
<
<
tag = cms.string("CentralityTable_HFtowers200_DataPbPb_periHYDJETshape_run2v1031x01_offline"),
>
>
tag = cms.string("CentralityTable_HFtowers200_DataPbPb_periHYDJETshape_run2v1031x02_offline"),
  connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"), label = cms.untracked.string("HFtowers") ),

Revision 1242018-11-21 - YeonjuGo

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 63 to 63
 
  • These numbers and systematic errors will be discussed in the analysis note: CMS AN-2015/080

Event selection

Changed:
<
<
>
>

PbPb Data 2018

  • Event selection: HLT_HIL1MinimumBiasHF1AND_v1_part* && pprimaryVertexFilter && phfCoincFilter2Th4 && pclusterCompatibilityFilter
 

XeXe Data

  • FINAL event selection: HLT_HIL1MinimumBiasHF_OR_SinglePixelTrack_part* && pPAprimaryVertexFilter && pBeamScrapingFilter && phfCoincFilter3

Revision 1232018-11-16 - BatoulDiab

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 71 to 71
 

Instructions for 10_X_Y

Added:
>
>

PbPb Data (103X)

  • not yet in GT, follow instructions below:
In config file
process.load('Configuration.StandardSequences.Services_cff')
process.load('Configuration.Geometry.GeometryDB_cff')
process.load('Configuration.StandardSequences.MagneticField_38T_cff')
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
process.load('FWCore.MessageService.MessageLogger_cfi')

from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, '103X_dataRun2_Prompt_v2', '')
process.HiForest.GlobalTagLabel = process.GlobalTag.globaltag

print('\n\033[31m~*~ USING CENTRALITY TABLE FOR PbPb 2018 ~*~\033[0m\n')
process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000")
process.GlobalTag.toGet.extend([
    cms.PSet(record = cms.string("HeavyIonRcd"),
        tag = cms.string("CentralityTable_HFtowers200_DataPbPb_periHYDJETshape_run2v1031x01_offline"),
        connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
        label = cms.untracked.string("HFtowers")
        ),
    ])

 

PbPb Hydjet MC

  • not yet in GT, follow instructions below:

Revision 1222018-10-29 - BatoulDiab

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 90 to 90
  connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"), label = cms.untracked.string("HFtowers") ),
Added:
>
>
])

Drum5Ev8 Tune

In config file

process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff')

from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2018_realistic', '') 
process.HiForest.GlobalTagLabel = process.GlobalTag.globaltag
process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000")
process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
      tag = cms.string("CentralityTable_HFtowers200_HydjetDrum5Ev8_v1030pre5x02_mc"),
      connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
      label = cms.untracked.string("HFtowers")
   ),
 ])

Revision 1212018-10-26 - BatoulDiab

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 95 to 95
 
Deleted:
<
<

Drum5Ev8 Tune

In config file

process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff')

from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2018_realistic', '') 
process.HiForest.GlobalTagLabel = process.GlobalTag.globaltag
process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000")
process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
      tag = cms.string("CentralityTable_HFtowers200_HydjetDrum5Ev8_v1030pre5x01_mc"),
      connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
      label = cms.untracked.string("HFtowers")
   ),
])

 

Cymbal5F Tune

Revision 1202018-10-25 - BatoulDiab

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 74 to 74
 

PbPb Hydjet MC

  • not yet in GT, follow instructions below:
Added:
>
>

Cymbal5Ev8 Tune

In config file

process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff')

from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2018_realistic', '') 
process.HiForest.GlobalTagLabel = process.GlobalTag.globaltag
process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000")
process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
      tag = cms.string("CentralityTable_HFtowers200_HydjetCymbal5Ev8_v1020x01_mc"),
      connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
      label = cms.untracked.string("HFtowers")
   ),
])


Drum5Ev8 Tune

In config file

process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff')

from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2018_realistic', '') 
process.HiForest.GlobalTagLabel = process.GlobalTag.globaltag
process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000")
process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
      tag = cms.string("CentralityTable_HFtowers200_HydjetDrum5Ev8_v1030pre5x01_mc"),
      connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
      label = cms.untracked.string("HFtowers")
   ),
])

 

Cymbal5F Tune

In config file

Revision 1182018-10-04 - YeonjuGo

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Changed:
<
<
>
>
 

Reconstructing and binning centrality in heavy-ion events

Line: 9 to 8
  On this page the instructions for using the centrality object are summarized.
Changed:
<
<
For questions please connect to the centrality meetings on Tuesday 2 pm (Geneva time): HiCentrality2016
>
>
For questions please connect to the centrality meetings on Wednesday 2 pm (Geneva time): GlobalObservables2018
  For experts and developers: SWGuideHeavyIonCentralityExpert
Added:
>
>

Links

Twiki

Documents

  • pPb 5.02 TeV : AN-13-060
  • PbPb 5.02 TeV : AN-15-080
  • pPb 8 TeV : AN-16-416
  • XeXe 5.44 TeV : AN-17-305
 

Ncoll/Npart 5TeV

Changed:
<
<
  • Link to the numbers, on S3: pdf
>
>
  • Link to the numbers, on S3: pdf
 
  • Find Ncoll in a hiBin ([0,199]), ( example: .x findNcoll.C(1) ):
float findNcoll(int hiBin) {
   const int nbins = 200;
   const float Ncoll[nbins] = {1976.95, 1944.02, 1927.29, 1891.9, 1845.3, 1807.2, 1760.45, 1729.18, 1674.8, 1630.3, 1590.52, 1561.72, 1516.1, 1486.5, 1444.68, 1410.88, 1376.4, 1347.32, 1309.71, 1279.98, 1255.31, 1219.89, 1195.13, 1165.96, 1138.92, 1113.37, 1082.26, 1062.42, 1030.6, 1009.96, 980.229, 955.443, 936.501, 915.97, 892.063, 871.289, 847.364, 825.127, 806.584, 789.163, 765.42, 751.187, 733.001, 708.31, 690.972, 677.711, 660.682, 640.431, 623.839, 607.456, 593.307, 576.364, 560.967, 548.909, 530.475, 519.575, 505.105, 490.027, 478.133, 462.372, 451.115, 442.642, 425.76, 416.364, 405.154, 392.688, 380.565, 371.167, 360.28, 348.239, 340.587, 328.746, 320.268, 311.752, 300.742, 292.172, 281.361, 274.249, 267.025, 258.625, 249.931, 240.497, 235.423, 228.63, 219.854, 214.004, 205.425, 199.114, 193.618, 185.644, 180.923, 174.289, 169.641, 161.016, 157.398, 152.151, 147.425, 140.933, 135.924, 132.365, 127.017, 122.127, 117.817, 113.076, 109.055, 105.16, 101.323, 98.098, 95.0548, 90.729, 87.6495, 84.0899, 80.2237, 77.2201, 74.8848, 71.3554, 68.7745, 65.9911, 63.4136, 61.3859, 58.1903, 56.4155, 53.8486, 52.0196, 49.2921, 47.0735, 45.4345, 43.8434, 41.7181, 39.8988, 38.2262, 36.4435, 34.8984, 33.4664, 31.8056, 30.351, 29.2074, 27.6924, 26.7754, 25.4965, 24.2802, 22.9651, 22.0059, 21.0915, 19.9129, 19.1041, 18.1487, 17.3218, 16.5957, 15.5323, 14.8035, 14.2514, 13.3782, 12.8667, 12.2891, 11.61, 11.0026, 10.3747, 9.90294, 9.42648, 8.85324, 8.50121, 7.89834, 7.65197, 7.22768, 6.7755, 6.34855, 5.98336, 5.76555, 5.38056, 5.11024, 4.7748, 4.59117, 4.23247, 4.00814, 3.79607, 3.68702, 3.3767, 3.16309, 2.98282, 2.8095, 2.65875, 2.50561, 2.32516, 2.16357, 2.03235, 1.84061, 1.72628, 1.62305, 1.48916, 1.38784, 1.28366, 1.24693, 1.18552, 1.16085, 1.12596, 1.09298, 1.07402, 1.06105, 1.02954};
   return Ncoll[hiBin];
Changed:
<
<
}
>
>
}
 
  • Find Npart in a hiBin ([0,199]), ( example: .x findNpart.C(1) ):
float findNpart(int hiBin) {
   const int nbins = 200;
   const float Npart[nbins] = {401.99, 398.783, 396.936, 392.71, 387.901, 383.593, 377.914, 374.546, 367.507, 361.252, 356.05, 352.43, 345.701, 341.584, 335.148, 330.581, 325.135, 320.777, 315.074, 310.679, 306.687, 301.189, 296.769, 291.795, 287.516, 283.163, 277.818, 274.293, 269.29, 265.911, 260.574, 256.586, 252.732, 249.194, 245.011, 241.292, 236.715, 232.55, 229.322, 225.328, 221.263, 218.604, 214.728, 210.554, 206.878, 203.924, 200.84, 196.572, 193.288, 189.969, 186.894, 183.232, 180.24, 177.36, 174.008, 171.222, 168.296, 165.319, 162.013, 158.495, 156.05, 154.218, 150.559, 148.455, 145.471, 142.496, 139.715, 137.395, 134.469, 131.926, 129.817, 127.045, 124.467, 122.427, 119.698, 117.607, 114.543, 112.662, 110.696, 108.294, 105.777, 103.544, 101.736, 99.943, 97.4951, 95.4291, 93.2148, 91.2133, 89.5108, 87.2103, 85.7498, 83.5134, 81.9687, 79.7456, 78.1684, 76.4873, 74.7635, 72.761, 71.0948, 69.6102, 67.7806, 66.2215, 64.5813, 63.0269, 61.4325, 59.8065, 58.2423, 57.2432, 55.8296, 54.2171, 52.8809, 51.3254, 49.9902, 48.6927, 47.5565, 46.136, 44.8382, 43.6345, 42.3964, 41.4211, 39.9681, 39.178, 37.9341, 36.9268, 35.5626, 34.5382, 33.6912, 32.8156, 31.6695, 30.6552, 29.7015, 28.8655, 27.9609, 27.0857, 26.105, 25.3163, 24.4872, 23.6394, 23.0484, 22.2774, 21.4877, 20.5556, 19.9736, 19.3296, 18.5628, 17.916, 17.2928, 16.6546, 16.1131, 15.4013, 14.8264, 14.3973, 13.7262, 13.2853, 12.8253, 12.2874, 11.7558, 11.2723, 10.8829, 10.4652, 9.96477, 9.6368, 9.09316, 8.84175, 8.48084, 8.05694, 7.64559, 7.29709, 7.07981, 6.70294, 6.45736, 6.10284, 5.91788, 5.5441, 5.33311, 5.06641, 4.96415, 4.6286, 4.38214, 4.2076, 4.01099, 3.81054, 3.63854, 3.43403, 3.23244, 3.08666, 2.86953, 2.74334, 2.62787, 2.48354, 2.38115, 2.26822, 2.23137, 2.1665, 2.14264, 2.10636, 2.07358, 2.05422, 2.04126, 2.00954};
   return Npart[hiBin];
Changed:
<
<
}
>
>
}
 
  • Find average Ncoll in a range of hiBin([0,199]), ( example: .x findNcollAverage.C(0, 10) will give the <Ncoll> in 0-5%) :
float findNcollAverage(int hiBinLow, int hiBinHigh) {
Line: 38 to 50
  const float Ncoll[nbins] = {1976.95, 1944.02, 1927.29, 1891.9, 1845.3, 1807.2, 1760.45, 1729.18, 1674.8, 1630.3, 1590.52, 1561.72, 1516.1, 1486.5, 1444.68, 1410.88, 1376.4, 1347.32, 1309.71, 1279.98, 1255.31, 1219.89, 1195.13, 1165.96, 1138.92, 1113.37, 1082.26, 1062.42, 1030.6, 1009.96, 980.229, 955.443, 936.501, 915.97, 892.063, 871.289, 847.364, 825.127, 806.584, 789.163, 765.42, 751.187, 733.001, 708.31, 690.972, 677.711, 660.682, 640.431, 623.839, 607.456, 593.307, 576.364, 560.967, 548.909, 530.475, 519.575, 505.105, 490.027, 478.133, 462.372, 451.115, 442.642, 425.76, 416.364, 405.154, 392.688, 380.565, 371.167, 360.28, 348.239, 340.587, 328.746, 320.268, 311.752, 300.742, 292.172, 281.361, 274.249, 267.025, 258.625, 249.931, 240.497, 235.423, 228.63, 219.854, 214.004, 205.425, 199.114, 193.618, 185.644, 180.923, 174.289, 169.641, 161.016, 157.398, 152.151, 147.425, 140.933, 135.924, 132.365, 127.017, 122.127, 117.817, 113.076, 109.055, 105.16, 101.323, 98.098, 95.0548, 90.729, 87.6495, 84.0899, 80.2237, 77.2201, 74.8848, 71.3554, 68.7745, 65.9911, 63.4136, 61.3859, 58.1903, 56.4155, 53.8486, 52.0196, 49.2921, 47.0735, 45.4345, 43.8434, 41.7181, 39.8988, 38.2262, 36.4435, 34.8984, 33.4664, 31.8056, 30.351, 29.2074, 27.6924, 26.7754, 25.4965, 24.2802, 22.9651, 22.0059, 21.0915, 19.9129, 19.1041, 18.1487, 17.3218, 16.5957, 15.5323, 14.8035, 14.2514, 13.3782, 12.8667, 12.2891, 11.61, 11.0026, 10.3747, 9.90294, 9.42648, 8.85324, 8.50121, 7.89834, 7.65197, 7.22768, 6.7755, 6.34855, 5.98336, 5.76555, 5.38056, 5.11024, 4.7748, 4.59117, 4.23247, 4.00814, 3.79607, 3.68702, 3.3767, 3.16309, 2.98282, 2.8095, 2.65875, 2.50561, 2.32516, 2.16357, 2.03235, 1.84061, 1.72628, 1.62305, 1.48916, 1.38784, 1.28366, 1.24693, 1.18552, 1.16085, 1.12596, 1.09298, 1.07402, 1.06105, 1.02954}; for(int i=hiBinLow; i<hiBinHigh; i++) w+=Ncoll[i]/(hiBinHigh-hiBinLow); return w;
Changed:
<
<
}
>
>
}
 
  • Find average Npart in a range of hiBin([0,199]), ( example: .x findNpartAverage.C(0, 10) will give the <Npart> in 0-5% ) :
float findNpartAverage(int hiBinLow, int hiBinHigh) {
Line: 48 to 59
  const float Npart[nbins] = {401.99, 398.783, 396.936, 392.71, 387.901, 383.593, 377.914, 374.546, 367.507, 361.252, 356.05, 352.43, 345.701, 341.584, 335.148, 330.581, 325.135, 320.777, 315.074, 310.679, 306.687, 301.189, 296.769, 291.795, 287.516, 283.163, 277.818, 274.293, 269.29, 265.911, 260.574, 256.586, 252.732, 249.194, 245.011, 241.292, 236.715, 232.55, 229.322, 225.328, 221.263, 218.604, 214.728, 210.554, 206.878, 203.924, 200.84, 196.572, 193.288, 189.969, 186.894, 183.232, 180.24, 177.36, 174.008, 171.222, 168.296, 165.319, 162.013, 158.495, 156.05, 154.218, 150.559, 148.455, 145.471, 142.496, 139.715, 137.395, 134.469, 131.926, 129.817, 127.045, 124.467, 122.427, 119.698, 117.607, 114.543, 112.662, 110.696, 108.294, 105.777, 103.544, 101.736, 99.943, 97.4951, 95.4291, 93.2148, 91.2133, 89.5108, 87.2103, 85.7498, 83.5134, 81.9687, 79.7456, 78.1684, 76.4873, 74.7635, 72.761, 71.0948, 69.6102, 67.7806, 66.2215, 64.5813, 63.0269, 61.4325, 59.8065, 58.2423, 57.2432, 55.8296, 54.2171, 52.8809, 51.3254, 49.9902, 48.6927, 47.5565, 46.136, 44.8382, 43.6345, 42.3964, 41.4211, 39.9681, 39.178, 37.9341, 36.9268, 35.5626, 34.5382, 33.6912, 32.8156, 31.6695, 30.6552, 29.7015, 28.8655, 27.9609, 27.0857, 26.105, 25.3163, 24.4872, 23.6394, 23.0484, 22.2774, 21.4877, 20.5556, 19.9736, 19.3296, 18.5628, 17.916, 17.2928, 16.6546, 16.1131, 15.4013, 14.8264, 14.3973, 13.7262, 13.2853, 12.8253, 12.2874, 11.7558, 11.2723, 10.8829, 10.4652, 9.96477, 9.6368, 9.09316, 8.84175, 8.48084, 8.05694, 7.64559, 7.29709, 7.07981, 6.70294, 6.45736, 6.10284, 5.91788, 5.5441, 5.33311, 5.06641, 4.96415, 4.6286, 4.38214, 4.2076, 4.01099, 3.81054, 3.63854, 3.43403, 3.23244, 3.08666, 2.86953, 2.74334, 2.62787, 2.48354, 2.38115, 2.26822, 2.23137, 2.1665, 2.14264, 2.10636, 2.07358, 2.05422, 2.04126, 2.00954}; for(int i=hiBinLow; i<hiBinHigh; i++) w+=Npart[i]/(hiBinHigh-hiBinLow); return w;
Changed:
<
<
}
>
>
}
 
  • These numbers and systematic errors will be discussed in the analysis note: CMS AN-2015/080

Event selection

Line: 496 to 511
  Notes:
  • conddb v2 is default in 7_5_X
Changed:
<
<
>
>
 
  • please remove overrideCentrality function from your config
Changed:
<
<
7_5_X global tags with centrality calibration for HFtowers with 200 bins
>
>
7_5_X global tags with centrality calibration for HFtowers with 200 bins
 
Line: 515 to 531
  centralitySrc = cms.InputTag("hiCentrality"), centralityBinSrc = cms.InputTag("centralityBin","HFtowers"), ...
Changed:
<
<
process.p= cms.Path(process.centralityBin * ...)
>
>
process.p= cms.Path(process.centralityBin * ...)
  In analyzer to access the centrality object, the following lines are needed
Added:
>
>
 
#include "DataFormats/HeavyIonEvent/interface/Centrality.h"
...
Line: 535 to 551
 hiBin_ = *cbin; hiNtracks_ = centrality->Ntracks(); hiHF_ = centrality->EtHFtowerSum();
Changed:
<
<
...
>
>
...
  Example analyzer https://github.com/CmsHI/cmssw/blob/forest_CMSSW_7_5_8/HeavyIonsAnalysis/EventAnalysis/src/HiEvtAnalyzer.cc
Line: 544 to 559
  In 7_4_X the centrality bin access is changing
  • CentralityProvider is removed and the bin can be produced as an integer with CentralityBinProducer
Changed:
<
<
  • pull-request https://github.com/cms-sw/cmssw/pull/7346
>
>
  No need to checkout any RecoHI package for your analysis, tested for CMSSW_7_4_0_pre6. Example analyzer here with cfi and cfg files.
Changed:
<
<
In the config file you have to add process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi") This loads the default parameters see here.
>
>
In the config file you have to add process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi") This loads the default parameters see here.

The parameters to be set in the config file

 
Deleted:
<
<
The parameters to be set in the config file
 
process.centralityBin.Centrality = cms.InputTag("hiCentrality")
process.centralityBin.centralityVariable = cms.string("HFtowers")
process.centralityBin.nonDefaultGlauberModel = cms.string("HydjetDrum5")
Changed:
<
<
The centrality table for testing can be accessed by
>
>
The centrality table for testing can be accessed by
 
process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
Line: 566 to 583
  ), ])
Changed:
<
<
In the path you have to produce the bin integer process.p = cms.Path(process.centralityBin * ...)
>
>
In the path you have to produce the bin integer process.p = cms.Path(process.centralityBin * ...)

For the analyzer you have to provide the centrality bin label in the config centralityBinLabel = cms.InputTag("centralityBin","HFtowers")

 
Changed:
<
<
For the analyzer you have to provide the centrality bin label in the config centralityBinLabel = cms.InputTag("centralityBin","HFtowers")
>
>
In the analyzer you read this label and then with getByToken you get the integer value for the bin In the class member data you declare
 
Deleted:
<
<
In the analyzer you read this label and then with getByToken you get the integer value for the bin In the class member data you declare
 
edm::Handle<int> cbin_;
edm::EDGetTokenT<int> tag_;
Changed:
<
<
In the constructor you read the config file
>
>
In the constructor you read the config file
 
tag_ = consumes<int>(iConfig.getParameter<edm::InputTag>("centralityBinLabel"));
Changed:
<
<
In the analyze part you read the bin
>
>
In the analyze part you read the bin
 
iEvent.getByToken(tag_,cbin_);
int bin = *cbin_;
Changed:
<
<

NEW Note that it is possible for the new software to access binning for different centrality variables by producing and reading multiple centralityBin objects. As of now there is only calibration available for HFtowers with 200 bins.
>
>

NEW Note that it is possible for the new software to access binning for different centrality variables by producing and reading multiple centralityBin objects. As of now there is only calibration available for HFtowers with 200 bins.
 

Instructions for 5_3_20

Line: 589 to 609
  The centrality object with label hiCentrality is available in the reconstructed data.
Changed:
<
<
The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_20. The centrality object is produced by RecoHI/HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI/HiCentralityAlgos/python/HiCentrality_cfi.py
>
>
The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_20. The centrality object is produced by RecoHI/HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI/HiCentralityAlgos/python/HiCentrality_cfi.py
  The centrality table with 200 bins using HFtowers is available in the GlobalTag FT_R_53_LV9. For usage, please see (*) below the alternative setup.
Changed:
<
<
Alternatively, to get the right configurations for event selection and centrality binning calibration (200 bins) you can check out some packages setup in the forest branch on github: here with
>
>
Alternatively, to get the right configurations for event selection and centrality binning calibration (200 bins) you can check out some packages setup in the forest branch on github: here with
 
cmsrel CMSSW_5_3_20
cd CMSSW_5_3_20/src
cmsenv
git cms-merge-topic -u CmsHI:forest_CMSSW_5_3_20
Changed:
<
<
scram b
>
>
scram b
  No extra code is needed from the reconstruction packages because everything is in the release.
Line: 617 to 638
 const reco::Centrality* centrality = centProvider->raw(); hiBin = centProvider->getBin();
Changed:
<
<
In the config file you need
>
>
In the config file you need
 
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
process.GlobalTag.globaltag = 'GR_R_53_LV6::All'
Line: 633 to 655
  centralitySrc = cms.InputTag("hiCentrality") )
Changed:
<
<
process.p = cms.Path(process.hltMinBiasHFOrBSC * process.collisionEventSelection * ...)
>
>
process.p = cms.Path(process.hltMinBiasHFOrBSC * process.collisionEventSelection * ...)
  For MC config file the only difference is in the following parameters
Added:
>
>
 
process.GlobalTag.globaltag = '???::All'
Line: 646 to 668
  The centrality object is NOT produced in the pp reconstruction so it has to be produced on the fly.
Changed:
<
<
The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_20. The centrality object can be produced by RecoHI/HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI/HiCentralityAlgos/python/pACentrality_cfi.py
>
>
The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_20. The centrality object can be produced by RecoHI/HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI/HiCentralityAlgos/python/pACentrality_cfi.py
  To get the right configurations for event selection and centrality binning calibration (100 bins) you need to check out some packages setup in the centrality branch on github: here with
Added:
>
>
 
cmsrel CMSSW_5_3_20
cd CMSSW_5_3_20/src
Line: 655 to 678
 cmsenv git cms-addpkg RecoHI/HiCentralityAlgos git cms-merge-topic -u CmsHI:forest_CMSSW_5_3_20
Changed:
<
<
scram b
>
>
scram b
  With this the HeavyIonsAnalysis/EventAnalyzer package is also checked out with an example config to test. More details needed to use the centrality object are given below.
Line: 669 to 692
 if (centProvider) centProvider = new CentralityProvider(iSetup); centProvider->newEvent(iEvent,iSetup); const reco::Centrality* centrality = centProvider->raw();
Changed:
<
<
hiBin = centProvider->getBin();
>
>
hiBin = centProvider->getBin();
  In the config file you need
Added:
>
>
 
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
process.GlobalTag.globaltag = 'GR_P_V43D::All'
Line: 702 to 726
  nonDefaultGlauberModel = cms.string("Hijing"), centralitySrc = cms.InputTag("pACentrality"), pPbRunFlip = cms.untracked.uint32(99999999) # change to pPbRunFlip = cms.untracked.uint32(1) for Pbp MC sample
Changed:
<
<
)
>
>
)
 

Old instructions

Changed:
<
<
<!--/twistyPlugin twikiMakeVisibleInline-->
>
>

<!--/twistyPlugin twikiMakeVisibleInline-->
 

Specific instructions for pPb 2013 data and MC

Line: 750 to 773
 

Specific instructions for analysis of 2010 data

Changed:
<
<
Due to continuous changes in centrality tables, we have a common python configuration that loads the latest tables from the database. The way to use it is:
>
>
Due to continuous changes in centrality tables, we have a common python configuration that loads the latest tables from the database. The way to use it is:
 
from CmsHi.Analysis2010.CommonFunctions_cff import *
overrideCentrality(process)
Line: 759 to 783
 

Specific instructions for analysis of 2011 data

Changed:
<
<
For the 2011 data analysis there is no need anymore for these two lines in your config file:
>
>
For the 2011 data analysis there is no need anymore for these two lines in your config file:
 
from CmsHi.Analysis2010.CommonFunctions_cff import *
overrideCentrality(process)
Changed:
<
<
The HeavyIonGlobalParameters settings are
>
>
The HeavyIonGlobalParameters settings are
 
process.HeavyIonGlobalParameters = cms.PSet(
  centralityVariable = cms.string("HFtowers"),
  nonDefaultGlauberModel = cms.string(""),

Line: 780 to 806
 

HYDJET 1.6 (Bass tune)

Changed:
<
<
If you are using the global tag =STARTHI44_V7::All=
>
>
If you are using the global tag STARTHI44_V7::All
 
from CmsHi.Analysis2010.CommonFunctions_cff import *
overrideCentrality(process)
process.HeavyIonGlobalParameters = cms.PSet(

Line: 790 to 817
  )
Changed:
<
<
If you are using the global tag =STARTHI44_V12::All=
>
>
If you are using the global tag STARTHI44_V12::All
 
process.HeavyIonGlobalParameters = cms.PSet(
 centralitySrc = cms.InputTag("hiCentrality"),
 centralityVariable = cms.string("HFtowers"),

Line: 800 to 828
 

HYDJET 1.8 (Drum tune)

Changed:
<
<
If you are using the global tag STARTHI44_V7::All or =STARTHI44_V12::All=
>
>
If you are using the global tag STARTHI44_V7::All or STARTHI44_V12::All
 
from CmsHi.Analysis2010.CommonFunctions_cff import *
overrideCentrality(process)
process.HeavyIonGlobalParameters = cms.PSet(

Line: 822 to 851
 
  • Add in your analyzer:
Changed:
<
<
1) add
>
>
1) add
 
#include "DataFormats/HeavyIonEvent/interface/CentralityProvider.h"
Changed:
<
<
2) declare
>
>
2) declare
 
CentralityProvider * centrality_;
Changed:
<
<
3) in the analyze() function
>
>
3) in the analyze() function
 
if(!centrality_) centrality_ = new CentralityProvider(iSetup);

   centrality_->newEvent(iEvent,iSetup); // make sure you do this first in every event

Line: 851 to 883
  )
Changed:
<
<
(*) To see which table you are supposed to use with a specific release, please consult the page: https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions
>
>
(*) To see which table you are supposed to use with a specific release, please consult the page: https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions
 

CentralityBinProducer

Changed:
<
<
This module determines the bin of the event, corresponding to a given table. See the instructions for specifying centrality table below.
>
>
This module determines the bin of the event, corresponding to a given table. See the instructions for specifying centrality table below.
 
process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi")
...
process.p = cms.Path(process.centralityBin)

Line: 866 to 899
 
  • Output
Changed:
<
<
The output is an integer, corresponding to the bin number.
>
>
The output is an integer, corresponding to the bin number.
 
int_centralityBin__SKIM
Line: 881 to 915
 

Filtering on binned centrality in cmsRun

Changed:
<
<
Please check out the head of the RecoHI /HiCentralityAlgos. Include the following in your cfg file:
>
>
Please check out the head of the RecoHI /HiCentralityAlgos. Include the following in your cfg file:
 

process.load("RecoHI.HiCentralityAlgos.CentralityFilter_cfi")
Line: 898 to 933
 
Changed:
<
<
and add the filter in your path:
>
>
and add the filter in your path:
 

process.mypath = cms.Path(process.centralityFilter * .....)

Changed:
<
<
By default the filter selects only the most central events of whatever tag (binning you've used). One can change which bins to be selected by doing:
>
>
By default the filter selects only the most central events of whatever tag (binning you've used). One can change which bins to be selected by doing:
 
process.centralityFilter.selectedBins = [2,3,4]
Line: 915 to 952
  If you're using EDAnalyzers in full framework, please use the CentralityProvider described above to take care of the bins for you. It internally uses a CentralityBins object, and details for experts can be found in the expert page.
Changed:
<
<
1- One has to import the table from the main database, and save in a root file. Simply run the cfg: http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/tools/makeTFileFromDB.py?hideattic=0&view=markup
>
>
1- One has to import the table from the main database, and save in a root file. Simply run the cfg: http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/tools/makeTFileFromDB.py?hideattic=0&view=markup

or, you can just add the part:

 
Deleted:
<
<
or, you can just add the part:
 
process.makeCentralityTableTFile = cms.EDAnalyzer('CentralityTableProducer',
                                                  isMC = cms.untracked.bool(True),
                                                  makeDBFromTFile = cms.untracked.bool(False),

Line: 927 to 965
  to any cfg, like the one you're running your other analyzers. This will put the tables for all the runs into the output of the TFileService. Please note that, if there is a new global tag, for which you have to re-run your reconstruction and analysis, you will have to re-run to import the table as well.
Changed:
<
<
2-In your root macro (whether it's FWLite of just root) add:
>
>
2-In your root macro (whether it's FWLite of just root) add:
 
#include "DataFormats/HeavyIonEvent/interface/CentralityBins.h"
TFile* inf = new TFile("centralityfile.root");
CentralityBins::RunMap cmap = getCentralityFromFile(inf, "makeCentralityTableTFile", "HFhitsAMPT_2760GeV", 149500, 155000);

Line: 940 to 979
 double npartSigma = cmap[run]->NpartSigma(hf);
Changed:
<
<
However, even if you want to run in bare root, you need the following in your rootlogon:
>
>
However, even if you want to run in bare root, you need the following in your rootlogon:
 
{
  gSystem->Load("libDataFormatsHeavyIonEvent");
  gSystem->AddIncludePath("-I$CMSSW_BASE/src/");

Line: 948 to 988
 }
Changed:
<
<
You can find example macros in ./macros/: http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/macros/testCentralityFWLite.C?hideattic=0&view=markup http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/macros/testCentralityBareRoot.C?hideattic=0&view=markup
>
>
You can find example macros in ./macros/: http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/macros/testCentralityFWLite.C?hideattic=0&view=markup http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/macros/testCentralityBareRoot.C?hideattic=0&view=markup
 
  • You need to compile your macro in order to run successfully.
Line: 957 to 997
 
Changed:
<
<
  • https://twiki.cern.ch/twiki/bin/view/Main/LHCGlauberBaseline
>
>
 
<!--/twistyPlugin-->

Contact

Changed:
<
<
>
>
 
Changed:
<
<
Responsible: AnnaJuliaZsigmond
>
>
Responsible: AnnaJuliaZsigmond

Revision 1172018-09-21 - BatoulDiab

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 60 to 60
 

pPb Data

Added:
>
>

Instructions for 10_X_Y

PbPb Hydjet MC

  • not yet in GT, follow instructions below:

Cymbal5F Tune

In config file

process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff')

from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2018_realistic', '') 
process.HiForest.GlobalTagLabel = process.GlobalTag.globaltag
process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000")
process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
      tag = cms.string("CentralityTable_HFtowers200_HydjetCymbal5F_v1020x01_mc"),
      connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
      label = cms.untracked.string("HFtowers")
   ),
])


Drum5F Tune

In config file

process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff')

from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2018_realistic', '') 
process.HiForest.GlobalTagLabel = process.GlobalTag.globaltag
process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000")
process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
      tag = cms.string("CentralityTable_HFtowers200_HydjetDrum5F_v1020x01_mc"),
      connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
      label = cms.untracked.string("HFtowers")
   ),
])

 

Instructions for 9_X_Y

The centrality binning is done for 200 bins. Bin 0 means most central 0-0.5% events and increasing goes to more peripheral.

Revision 1152018-02-14 - JavierMartinBlanco

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 95 to 95
 process.hiCentrality.producePixelhits = False process.hiCentrality.produceTracks = False process.hiCentrality.producePixelTracks = False
Changed:
<
<
process.hiCentrality.reUseCentrality = False
>
>
process.hiCentrality.reUseCentrality = True
 process.hiCentrality.srcReUse = cms.InputTag("hiCentrality","","RECO") process.hiCentrality.srcTracks = cms.InputTag("generalTracks") process.hiCentrality.srcVertex = cms.InputTag("offlinePrimaryVertices")

Revision 1132018-02-13 - JavierMartinBlanco

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 65 to 65
 The centrality binning is done for 200 bins. Bin 0 means most central 0-0.5% events and increasing goes to more peripheral.
Changed:
<
<

CMSSW_9_2_13 Work in progress, under construction

XeXe Data (94X)

>
>

XeXe Data (94X) (NOT READY YET)

 
  • Table not yet in GT, follow instructions below:

In config file

Line: 122 to 119
 
Changed:
<
<

XeXe Data (92X)

>
>

XeXe Data (92X)

 
  • Table not yet in GT, follow instructions below:

In config file

Line: 175 to 172
 
Changed:
<
<

XeXe Hydjet MC (92X)

>
>

XeXe Hydjet MC (92X)

 
  • (5.44 TeV Hydjet Cymbal5Ev8 tune) not yet in GT, follow instructions below:

In config file

Line: 219 to 216
 
Changed:
<
<

XeXe Hydjet MC (94X)

>
>

XeXe Hydjet MC (94X)

 
  • (5.44 TeV Hydjet Cymbal5Ev8 tune) not yet in GT, follow instructions below:

In config file

Line: 277 to 274
 
Changed:
<
<

XeXe EPOSLHC MC (94X)

>
>

XeXe EPOSLHC MC (94X)

 
  • (5.44 TeV Hydjet Cymbal5Ev8 tune) not yet in GT, follow instructions below:

Revision 1122018-02-12 - JavierMartinBlanco

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 55 to 55
 

Event selection

XeXe Data

Changed:
<
<
  • Preliminary selection: HLT_HIL1MinimumBiasHF_OR_SinglePixelTrack_part* && pPAprimaryVertexFilter && pBeamScrapingFilter && phfCoincFilter2
>
>
  • FINAL event selection: HLT_HIL1MinimumBiasHF_OR_SinglePixelTrack_part* && pPAprimaryVertexFilter && pBeamScrapingFilter && phfCoincFilter3
 

pPb Data

Line: 68 to 68
 

CMSSW_9_2_13 Work in progress, under construction

Added:
>
>

XeXe Data (94X)

  • Table not yet in GT, follow instructions below:

In config file

process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff')

from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, '94X_dataRun2_ReReco_EOY17_v2', '')
process.HiForest.GlobalTagLabel = process.GlobalTag.globaltag
process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000")
process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
      tag = cms.string("CentralityTable_HFtowers200_DataXeXe_eff95_run2v941x02_offline"),
      connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
      label = cms.untracked.string("HFtowersEPOSLHC")
   ),
])

...

process.load('RecoHI.HiCentralityAlgos.HiCentrality_cfi')
process.hiCentrality.produceHFhits = False
process.hiCentrality.produceHFtowers = False
process.hiCentrality.produceEcalhits = False
process.hiCentrality.produceZDChits = False
process.hiCentrality.produceETmidRapidity = False
process.hiCentrality.producePixelhits = False
process.hiCentrality.produceTracks = False
process.hiCentrality.producePixelTracks = False
process.hiCentrality.reUseCentrality = False
process.hiCentrality.srcReUse = cms.InputTag("hiCentrality","","RECO")
process.hiCentrality.srcTracks = cms.InputTag("generalTracks")
process.hiCentrality.srcVertex = cms.InputTag("offlinePrimaryVertices")

process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi")
process.centralityBin.Centrality = cms.InputTag("hiCentrality")
process.centralityBin.centralityVariable = cms.string("HFtowers")
process.centralityBin.nonDefaultGlauberModel = cms.string("EPOSLHC")

...
process.hiEvtAnalyzer.doCentrality = cms.bool(True)

...

process.ana_step = cms.Path(
...
                            process.hiCentrality *
                            process.centralityBin *
                            process.hiEvtAnalyzer *
...)

 

XeXe Data (92X)

  • Table not yet in GT, follow instructions below:

Revision 1112018-01-30 - JavierMartinBlanco

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 173 to 173
 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff')

from GlobalTag_condDBv2 import GlobalTag

Changed:
<
<
process.GlobalTag = GlobalTag(process.GlobalTag, '91X_mcRun2_HeavyIon_v3', '') #for now track GT manually, since centrality tables updated ex post facto
>
>
process.GlobalTag = GlobalTag(process.GlobalTag, '94X_mc2017_realistic_ForXeXe_v7', '') #for now track GT manually, since centrality tables updated ex post facto
 process.HiForest.GlobalTagLabel = process.GlobalTag.globaltag process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000") process.GlobalTag.toGet.extend([
Line: 232 to 232
 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff')

from GlobalTag_condDBv2 import GlobalTag

Changed:
<
<
process.GlobalTag = GlobalTag(process.GlobalTag, '91X_mcRun2_HeavyIon_v3', '') #for now track GT manually, since centrality tables updated ex post facto
>
>
process.GlobalTag = GlobalTag(process.GlobalTag, '94X_mc2017_realistic_ForXeXe_v7', '') #for now track GT manually, since centrality tables updated ex post facto
 process.HiForest.GlobalTagLabel = process.GlobalTag.globaltag process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000") process.GlobalTag.toGet.extend([

Revision 1102018-01-29 - JavierMartinBlanco

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 68 to 68
 

CMSSW_9_2_13 Work in progress, under construction

Changed:
<
<

XeXe Data

>
>

XeXe Data (92X)

 
  • Table not yet in GT, follow instructions below:

In config file

Line: 121 to 121
 
Changed:
<
<

XeXe Hydjet MC

>
>

XeXe Hydjet MC (92X)

 
  • (5.44 TeV Hydjet Cymbal5Ev8 tune) not yet in GT, follow instructions below:

In config file

Line: 158 to 158
  process.ana_step = cms.Path( ...
Added:
>
>
process.hiCentrality * process.centralityBin * process.hiEvtAnalyzer* ...)

XeXe Hydjet MC (94X)

  • (5.44 TeV Hydjet Cymbal5Ev8 tune) not yet in GT, follow instructions below:

In config file

process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff')

from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, '91X_mcRun2_HeavyIon_v3', '') #for now track GT manually, since centrality tables updated ex post facto
process.HiForest.GlobalTagLabel = process.GlobalTag.globaltag
process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000")
process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
      tag = cms.string("CentralityTable_HFtowers200_XeXe5p44TeVHYDJET_v941x01_mc"),
      connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
      label = cms.untracked.string("HFtowersHYDJET")
   ),
])

...

process.load('RecoHI.HiCentralityAlgos.HiCentrality_cfi')
process.hiCentrality.produceHFhits = False
process.hiCentrality.produceHFtowers = False
process.hiCentrality.produceEcalhits = False
process.hiCentrality.produceZDChits = False
process.hiCentrality.produceETmidRapidity = False
process.hiCentrality.producePixelhits = False
process.hiCentrality.produceTracks = False
process.hiCentrality.producePixelTracks = False
process.hiCentrality.reUseCentrality = True
process.hiCentrality.srcReUse = cms.InputTag("hiCentrality","","RECO")

...

process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi")
process.centralityBin.Centrality = cms.InputTag("hiCentrality")
process.centralityBin.centralityVariable = cms.string("HFtowers")
process.centralityBin.nonDefaultGlauberModel = cms.string("HYDJET")

...

process.load('HeavyIonsAnalysis.EventAnalysis.hievtanalyzer_mc_cfi')
process.hiEvtAnalyzer.doCentrality = cms.bool(True)
process.hiEvtAnalyzer.CentralitySrc = cms.InputTag("hiCentrality")
process.hiEvtAnalyzer.CentralityBinSrc = cms.InputTag("centralityBin","HFtowers")

...

process.ana_step = cms.Path(
...    
                            process.hiCentrality *
                            process.centralityBin *
                            process.hiEvtAnalyzer*
...)

XeXe EPOSLHC MC (94X)

  • (5.44 TeV Hydjet Cymbal5Ev8 tune) not yet in GT, follow instructions below:

In config file

process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff')

from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, '91X_mcRun2_HeavyIon_v3', '') #for now track GT manually, since centrality tables updated ex post facto
process.HiForest.GlobalTagLabel = process.GlobalTag.globaltag
process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000")
process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
      tag = cms.string("CentralityTable_HFtowers200_XeXe5p44TeVEPOSLHC_v941x01_mc"),
      connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
      label = cms.untracked.string("HFtowersEPOSLHC")
   ),
])

...

process.load('RecoHI.HiCentralityAlgos.HiCentrality_cfi')
process.hiCentrality.produceHFhits = False
process.hiCentrality.produceHFtowers = False
process.hiCentrality.produceEcalhits = False
process.hiCentrality.produceZDChits = False
process.hiCentrality.produceETmidRapidity = False
process.hiCentrality.producePixelhits = False
process.hiCentrality.produceTracks = False
process.hiCentrality.producePixelTracks = False
process.hiCentrality.reUseCentrality = True
process.hiCentrality.srcReUse = cms.InputTag("hiCentrality","","RECO")

...

process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi")
process.centralityBin.Centrality = cms.InputTag("hiCentrality")
process.centralityBin.centralityVariable = cms.string("HFtowers")
process.centralityBin.nonDefaultGlauberModel = cms.string("EPOSLHC")

...

process.load('HeavyIonsAnalysis.EventAnalysis.hievtanalyzer_mc_cfi')
process.hiEvtAnalyzer.doCentrality = cms.bool(True)
process.hiEvtAnalyzer.CentralitySrc = cms.InputTag("hiCentrality")
process.hiEvtAnalyzer.CentralityBinSrc = cms.InputTag("centralityBin","HFtowers")

...

process.ana_step = cms.Path(
...    
                            process.hiCentrality *
  process.centralityBin * process.hiEvtAnalyzer* ...)

Revision 1092017-12-08 - JavierMartinBlanco

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 185 to 185
 

CMSSW_7_5_X Work in progress, under construction

Changed:
<
<

MC

>
>

EPOS LHC MC

  • Not yet in GT, follow instructions below:

In config file

process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff')

from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, '75X_mcRun2_HeavyIon_v14', '') #for now track GT manually, since centrality tables updated ex post facto
process.HiForest.GlobalTagLabel = process.GlobalTag.globaltag
process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000")
process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
      tag = cms.string("CentralityTable_HFtowers200_EPOSLHC_v758x01_mc"),
      connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
      label = cms.untracked.string("HFtowersEPOSLHC")
   ),
])

...

process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi")
process.centralityBin.Centrality = cms.InputTag("hiCentrality")
process.centralityBin.centralityVariable = cms.string("HFtowers")
process.centralityBin.nonDefaultGlauberModel = cms.string("EPOSLHC")

...

process.load('HeavyIonsAnalysis.EventAnalysis.hievtanalyzer_mc_cfi')
process.hiEvtAnalyzer.doCentrality = cms.bool(True)
process.hiEvtAnalyzer.CentralitySrc = cms.InputTag("hiCentrality")
process.hiEvtAnalyzer.CentralityBinSrc = cms.InputTag("centralityBin","HFtowers")

...

process.ana_step = cms.Path(
...
                            process.centralityBin *
                            process.hiEvtAnalyzer*
...)

Hydjet MC

 

Revision 1082017-11-06 - JavierMartinBlanco

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 81 to 81
 process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000") process.GlobalTag.toGet.extend([ cms.PSet(record = cms.string("HeavyIonRcd"),
Changed:
<
<
tag = cms.string("CentralityTable_HFtowers200_DataXeXe_eff942_run2v9313x01_offline"),
>
>
tag = cms.string("CentralityTable_HFtowers200_DataXeXe_eff942_run2v9313x02_offline"),
  connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"), label = cms.untracked.string("HFtowersCymbal5Ev8") ),

Revision 1062017-10-20 - JavierMartinBlanco

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 64 to 64
 

CMSSW_9_2_13 Work in progress, under construction

Added:
>
>

XeXe Data

  • Table not yet in GT, follow instructions below:

In config file

process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff')

from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, '92X_dataRun2_Prompt_Candidate_forXeXe_v1', '')
process.HiForest.GlobalTagLabel = process.GlobalTag.globaltag
process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000")
process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
      tag = cms.string("CentralityTable_HFtowers200_DataXeXe_eff942_run2v9313x01_offline"),
      connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
      label = cms.untracked.string("HFtowersCymbal5Ev8")
   ),
])

...

process.load('RecoHI.HiCentralityAlgos.HiCentrality_cfi')
process.hiCentrality.produceHFhits = False
process.hiCentrality.produceHFtowers = True
process.hiCentrality.produceEcalhits = False
process.hiCentrality.produceZDChits = False
process.hiCentrality.produceETmidRapidity = True
process.hiCentrality.producePixelhits = False
process.hiCentrality.produceTracks = True
process.hiCentrality.producePixelTracks = False
process.hiCentrality.reUseCentrality = False
process.hiCentrality.srcTracks = cms.InputTag("generalTracks")
process.hiCentrality.srcVertex = cms.InputTag("offlinePrimaryVertices")

process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi")
process.centralityBin.Centrality = cms.InputTag("hiCentrality")
process.centralityBin.centralityVariable = cms.string("HFtowers")
process.centralityBin.nonDefaultGlauberModel = cms.string("Cymbal5Ev8")

...
process.hiEvtAnalyzer.doCentrality = cms.bool(True)

...

process.ana_step = cms.Path(
...
                            process.hiCentrality *
                            process.centralityBin *
                            process.hiEvtAnalyzer *
...)

 

XeXe Hydjet MC

  • (5.44 TeV Hydjet Cymbal5Ev8 tune) not yet in GT, follow instructions below:

Revision 1052017-10-16 - JavierMartinBlanco

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 56 to 56
  Recommendation for 2015 data (not final) https://hypernews.cern.ch/HyperNews/CMS/get/hi-general/2697.html
Added:
>
>

Instructions for 9_X_Y

The centrality binning is done for 200 bins. Bin 0 means most central 0-0.5% events and increasing goes to more peripheral.

CMSSW_9_2_13 Work in progress, under construction

XeXe Hydjet MC

  • (5.44 TeV Hydjet Cymbal5Ev8 tune) not yet in GT, follow instructions below:

In config file

process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff')

from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, '91X_mcRun2_HeavyIon_v3', '') #for now track GT manually, since centrality tables updated ex post facto
process.HiForest.GlobalTagLabel = process.GlobalTag.globaltag
process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000")
process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
      tag = cms.string("CentralityTable_HFtowers200_XeXeHydjetCymbalEv8_v9213x01_mc"),
      connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
      label = cms.untracked.string("HFtowersCymbal5Ev8")
   ),
])

...

process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi")
process.centralityBin.Centrality = cms.InputTag("hiCentrality")
process.centralityBin.centralityVariable = cms.string("HFtowers")
process.centralityBin.nonDefaultGlauberModel = cms.string("Cymbal5Ev8")

...

process.load('HeavyIonsAnalysis.EventAnalysis.hievtanalyzer_mc_cfi')
process.hiEvtAnalyzer.doCentrality = cms.bool(True)
process.hiEvtAnalyzer.CentralitySrc = cms.InputTag("hiCentrality")
process.hiEvtAnalyzer.CentralityBinSrc = cms.InputTag("centralityBin","HFtowers")

...

process.ana_step = cms.Path(
...
                            process.centralityBin *
                            process.hiEvtAnalyzer*
...)

 

Instructions for 8_0_X

The 2016 pPb trigger and event selection studies are not finished yet, therefore we don't have a good calibration and centrality table yet.

Revision 1042017-09-13 - JavierMartinBlanco

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 73 to 73
  The centrality binning is done for 200 bins. Bin 0 means most central 0-0.5% events and increasing goes to more peripheral.
Added:
>
>
 

CMSSW_7_5_X Work in progress, under construction

Added:
>
>

MC

In config file

process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff')

from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, '75X_mcRun2_HeavyIon_v14', '') #for now track GT manually, since centrality tables updated ex post facto
process.HiForest.GlobalTagLabel = process.GlobalTag.globaltag
process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000")
process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
      tag = cms.string("CentralityTable_HFtowers200_HydjetCymbal5Ev8_v758x03_mc"),
      connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
      label = cms.untracked.string("HFtowersCymbal5Ev8")
   ),
])

...

process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi")
process.centralityBin.Centrality = cms.InputTag("hiCentrality")
process.centralityBin.centralityVariable = cms.string("HFtowers")
process.centralityBin.nonDefaultGlauberModel = cms.string("Cymbal5Ev8")

...

process.load('HeavyIonsAnalysis.EventAnalysis.hievtanalyzer_mc_cfi')
process.hiEvtAnalyzer.doCentrality = cms.bool(True)
process.hiEvtAnalyzer.CentralitySrc = cms.InputTag("hiCentrality")
process.hiEvtAnalyzer.CentralityBinSrc = cms.InputTag("centralityBin","HFtowers")

...

process.ana_step = cms.Path(
...
                            process.centralityBin *
                            process.hiEvtAnalyzer*
...)

DATA

 Notes:
  • conddb v2 is default in 7_5_X
  • centrality tables are included in the global tag but instructions on how to test new tags are available here: SWGuideHeavyIonCentralityExpert
Line: 82 to 131
  7_5_X global tags with centrality calibration for HFtowers with 200 bins
Deleted:
<
<
 
Deleted:
<
<
 
  • Later versions also working

In config file

Revision 1002016-03-02 - ShengquanTuo

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 22 to 22
  return Ncoll[hiBin]; }
Changed:
<
<
  • Find average Ncoll in a range of hiBin([0,199]), ( example: .x findNcollAverage.C(0, 10) ) :
>
>
  • Find Npart in a hiBin ([0,199]), ( example: .x findNpart.C(1) ):
float findNpart(int hiBin) {
   const int nbins = 200;
   const float Npart[nbins] = {401.99, 398.783, 396.936, 392.71, 387.901, 383.593, 377.914, 374.546, 367.507, 361.252, 356.05, 352.43, 345.701, 341.584, 335.148, 330.581, 325.135, 320.777, 315.074, 310.679, 306.687, 301.189, 296.769, 291.795, 287.516, 283.163, 277.818, 274.293, 269.29, 265.911, 260.574, 256.586, 252.732, 249.194, 245.011, 241.292, 236.715, 232.55, 229.322, 225.328, 221.263, 218.604, 214.728, 210.554, 206.878, 203.924, 200.84, 196.572, 193.288, 189.969, 186.894, 183.232, 180.24, 177.36, 174.008, 171.222, 168.296, 165.319, 162.013, 158.495, 156.05, 154.218, 150.559, 148.455, 145.471, 142.496, 139.715, 137.395, 134.469, 131.926, 129.817, 127.045, 124.467, 122.427, 119.698, 117.607, 114.543, 112.662, 110.696, 108.294, 105.777, 103.544, 101.736, 99.943, 97.4951, 95.4291, 93.2148, 91.2133, 89.5108, 87.2103, 85.7498, 83.5134, 81.9687, 79.7456, 78.1684, 76.4873, 74.7635, 72.761, 71.0948, 69.6102, 67.7806, 66.2215, 64.5813, 63.0269, 61.4325, 59.8065, 58.2423, 57.2432, 55.8296, 54.2171, 52.8809, 51.3254, 49.9902, 48.6927, 47.5565, 46.136, 44.8382, 43.6345, 42.3964, 41.4211, 39.9681, 39.178, 37.9341, 36.9268, 35.5626, 34.5382, 33.6912, 32.8156, 31.6695, 30.6552, 29.7015, 28.8655, 27.9609, 27.0857, 26.105, 25.3163, 24.4872, 23.6394, 23.0484, 22.2774, 21.4877, 20.5556, 19.9736, 19.3296, 18.5628, 17.916, 17.2928, 16.6546, 16.1131, 15.4013, 14.8264, 14.3973, 13.7262, 13.2853, 12.8253, 12.2874, 11.7558, 11.2723, 10.8829, 10.4652, 9.96477, 9.6368, 9.09316, 8.84175, 8.48084, 8.05694, 7.64559, 7.29709, 7.07981, 6.70294, 6.45736, 6.10284, 5.91788, 5.5441, 5.33311, 5.06641, 4.96415, 4.6286, 4.38214, 4.2076, 4.01099, 3.81054, 3.63854, 3.43403, 3.23244, 3.08666, 2.86953, 2.74334, 2.62787, 2.48354, 2.38115, 2.26822, 2.23137, 2.1665, 2.14264, 2.10636, 2.07358, 2.05422, 2.04126, 2.00954};
   return Npart[hiBin];
}
  • Find average Ncoll in a range of hiBin([0,199]), ( example: .x findNcollAverage.C(0, 10) will give the <Ncoll> in 0-5%) :
 
float findNcollAverage(int hiBinLow, int hiBinHigh) {
   float w=0;
Line: 32 to 40
  return w; }
Added:
>
>
  • Find average Npart in a range of hiBin([0,199]), ( example: .x findNpartAverage.C(0, 10) will give the <Npart> in 0-5% ) :
float findNpartAverage(int hiBinLow, int hiBinHigh) {
   float w=0;
   const int nbins = 200;
   const float Npart[nbins] = {401.99, 398.783, 396.936, 392.71, 387.901, 383.593, 377.914, 374.546, 367.507, 361.252, 356.05, 352.43, 345.701, 341.584, 335.148, 330.581, 325.135, 320.777, 315.074, 310.679, 306.687, 301.189, 296.769, 291.795, 287.516, 283.163, 277.818, 274.293, 269.29, 265.911, 260.574, 256.586, 252.732, 249.194, 245.011, 241.292, 236.715, 232.55, 229.322, 225.328, 221.263, 218.604, 214.728, 210.554, 206.878, 203.924, 200.84, 196.572, 193.288, 189.969, 186.894, 183.232, 180.24, 177.36, 174.008, 171.222, 168.296, 165.319, 162.013, 158.495, 156.05, 154.218, 150.559, 148.455, 145.471, 142.496, 139.715, 137.395, 134.469, 131.926, 129.817, 127.045, 124.467, 122.427, 119.698, 117.607, 114.543, 112.662, 110.696, 108.294, 105.777, 103.544, 101.736, 99.943, 97.4951, 95.4291, 93.2148, 91.2133, 89.5108, 87.2103, 85.7498, 83.5134, 81.9687, 79.7456, 78.1684, 76.4873, 74.7635, 72.761, 71.0948, 69.6102, 67.7806, 66.2215, 64.5813, 63.0269, 61.4325, 59.8065, 58.2423, 57.2432, 55.8296, 54.2171, 52.8809, 51.3254, 49.9902, 48.6927, 47.5565, 46.136, 44.8382, 43.6345, 42.3964, 41.4211, 39.9681, 39.178, 37.9341, 36.9268, 35.5626, 34.5382, 33.6912, 32.8156, 31.6695, 30.6552, 29.7015, 28.8655, 27.9609, 27.0857, 26.105, 25.3163, 24.4872, 23.6394, 23.0484, 22.2774, 21.4877, 20.5556, 19.9736, 19.3296, 18.5628, 17.916, 17.2928, 16.6546, 16.1131, 15.4013, 14.8264, 14.3973, 13.7262, 13.2853, 12.8253, 12.2874, 11.7558, 11.2723, 10.8829, 10.4652, 9.96477, 9.6368, 9.09316, 8.84175, 8.48084, 8.05694, 7.64559, 7.29709, 7.07981, 6.70294, 6.45736, 6.10284, 5.91788, 5.5441, 5.33311, 5.06641, 4.96415, 4.6286, 4.38214, 4.2076, 4.01099, 3.81054, 3.63854, 3.43403, 3.23244, 3.08666, 2.86953, 2.74334, 2.62787, 2.48354, 2.38115, 2.26822, 2.23137, 2.1665, 2.14264, 2.10636, 2.07358, 2.05422, 2.04126, 2.00954};
   for(int i=hiBinLow; i<hiBinHigh; i++)  w+=Npart[i]/(hiBinHigh-hiBinLow);
   return w;
}
 
  • These numbers and systematic errors will be discussed in the analysis note: CMS AN-2015/080

Event selection

Revision 992016-03-01 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 145 to 145
  The centrality table with 200 bins using HFtowers is available in the GlobalTag FT_R_53_LV9. For usage, please see (*) below the alternative setup.
Changed:
<
<
Alternatively, to get the right configurations for event selection and centrality binning calibration (200 bins) you can check out some packages setup in the centrality branch on github: here with
>
>
Alternatively, to get the right configurations for event selection and centrality binning calibration (200 bins) you can check out some packages setup in the forest branch on github: here with
 
cmsrel CMSSW_5_3_20
cd CMSSW_5_3_20/src
cmsenv
Changed:
<
<
git cms-merge-topic -u CmsHI:centrality_5_3_20
>
>
git cms-merge-topic -u CmsHI:forest_CMSSW_5_3_20
 scram b
Line: 200 to 200
  The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_20. The centrality object can be produced by RecoHI/HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI/HiCentralityAlgos/python/pACentrality_cfi.py
Changed:
<
<
To get the right configurations for event selection and centrality binning calibration (100 bins) you need to check out some packages setup in the centrality branch on github: here with
>
>
To get the right configurations for event selection and centrality binning calibration (100 bins) you need to check out some packages setup in the centrality branch on github: here with
 
cmsrel CMSSW_5_3_20
cd CMSSW_5_3_20/src
cmsenv
git cms-addpkg RecoHI/HiCentralityAlgos
Changed:
<
<
git cms-merge-topic -u CmsHI:centrality_5_3_20
>
>
git cms-merge-topic -u CmsHI:forest_CMSSW_5_3_20
 scram b

Revision 962016-01-20 - ShengquanTuo

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 13 to 13
  For experts and developers: SWGuideHeavyIonCentralityExpert

Ncoll/Npart 5TeV

Changed:
<
<
  • link to the numbers, on S3: pdf
>
>
  • Link to the numbers, on S3: pdf
  • Find Ncoll in a hiBin ([0,199]), ( example: .x findNcoll.C(1) ):
float findNcoll(int hiBin) {
   const int nbins = 200;
   const float Ncoll[nbins] = {1976.95, 1944.02, 1927.29, 1891.9, 1845.3, 1807.2, 1760.45, 1729.18, 1674.8, 1630.3, 1590.52, 1561.72, 1516.1, 1486.5, 1444.68, 1410.88, 1376.4, 1347.32, 1309.71, 1279.98, 1255.31, 1219.89, 1195.13, 1165.96, 1138.92, 1113.37, 1082.26, 1062.42, 1030.6, 1009.96, 980.229, 955.443, 936.501, 915.97, 892.063, 871.289, 847.364, 825.127, 806.584, 789.163, 765.42, 751.187, 733.001, 708.31, 690.972, 677.711, 660.682, 640.431, 623.839, 607.456, 593.307, 576.364, 560.967, 548.909, 530.475, 519.575, 505.105, 490.027, 478.133, 462.372, 451.115, 442.642, 425.76, 416.364, 405.154, 392.688, 380.565, 371.167, 360.28, 348.239, 340.587, 328.746, 320.268, 311.752, 300.742, 292.172, 281.361, 274.249, 267.025, 258.625, 249.931, 240.497, 235.423, 228.63, 219.854, 214.004, 205.425, 199.114, 193.618, 185.644, 180.923, 174.289, 169.641, 161.016, 157.398, 152.151, 147.425, 140.933, 135.924, 132.365, 127.017, 122.127, 117.817, 113.076, 109.055, 105.16, 101.323, 98.098, 95.0548, 90.729, 87.6495, 84.0899, 80.2237, 77.2201, 74.8848, 71.3554, 68.7745, 65.9911, 63.4136, 61.3859, 58.1903, 56.4155, 53.8486, 52.0196, 49.2921, 47.0735, 45.4345, 43.8434, 41.7181, 39.8988, 38.2262, 36.4435, 34.8984, 33.4664, 31.8056, 30.351, 29.2074, 27.6924, 26.7754, 25.4965, 24.2802, 22.9651, 22.0059, 21.0915, 19.9129, 19.1041, 18.1487, 17.3218, 16.5957, 15.5323, 14.8035, 14.2514, 13.3782, 12.8667, 12.2891, 11.61, 11.0026, 10.3747, 9.90294, 9.42648, 8.85324, 8.50121, 7.89834, 7.65197, 7.22768, 6.7755, 6.34855, 5.98336, 5.76555, 5.38056, 5.11024, 4.7748, 4.59117, 4.23247, 4.00814, 3.79607, 3.68702, 3.3767, 3.16309, 2.98282, 2.8095, 2.65875, 2.50561, 2.32516, 2.16357, 2.03235, 1.84061, 1.72628, 1.62305, 1.48916, 1.38784, 1.28366, 1.24693, 1.18552, 1.16085, 1.12596, 1.09298, 1.07402, 1.06105, 1.02954};
   return Ncoll[hiBin];
}
  • Find average Ncoll in a range of hiBin([0,199]), ( example: .x findNcollAverage.C(0, 10) ) :
float findNcollAverage(int hiBinLow, int hiBinHigh) {
   float w=0;
   const int nbins = 200;
   const float Ncoll[nbins] = {1976.95, 1944.02, 1927.29, 1891.9, 1845.3, 1807.2, 1760.45, 1729.18, 1674.8, 1630.3, 1590.52, 1561.72, 1516.1, 1486.5, 1444.68, 1410.88, 1376.4, 1347.32, 1309.71, 1279.98, 1255.31, 1219.89, 1195.13, 1165.96, 1138.92, 1113.37, 1082.26, 1062.42, 1030.6, 1009.96, 980.229, 955.443, 936.501, 915.97, 892.063, 871.289, 847.364, 825.127, 806.584, 789.163, 765.42, 751.187, 733.001, 708.31, 690.972, 677.711, 660.682, 640.431, 623.839, 607.456, 593.307, 576.364, 560.967, 548.909, 530.475, 519.575, 505.105, 490.027, 478.133, 462.372, 451.115, 442.642, 425.76, 416.364, 405.154, 392.688, 380.565, 371.167, 360.28, 348.239, 340.587, 328.746, 320.268, 311.752, 300.742, 292.172, 281.361, 274.249, 267.025, 258.625, 249.931, 240.497, 235.423, 228.63, 219.854, 214.004, 205.425, 199.114, 193.618, 185.644, 180.923, 174.289, 169.641, 161.016, 157.398, 152.151, 147.425, 140.933, 135.924, 132.365, 127.017, 122.127, 117.817, 113.076, 109.055, 105.16, 101.323, 98.098, 95.0548, 90.729, 87.6495, 84.0899, 80.2237, 77.2201, 74.8848, 71.3554, 68.7745, 65.9911, 63.4136, 61.3859, 58.1903, 56.4155, 53.8486, 52.0196, 49.2921, 47.0735, 45.4345, 43.8434, 41.7181, 39.8988, 38.2262, 36.4435, 34.8984, 33.4664, 31.8056, 30.351, 29.2074, 27.6924, 26.7754, 25.4965, 24.2802, 22.9651, 22.0059, 21.0915, 19.9129, 19.1041, 18.1487, 17.3218, 16.5957, 15.5323, 14.8035, 14.2514, 13.3782, 12.8667, 12.2891, 11.61, 11.0026, 10.3747, 9.90294, 9.42648, 8.85324, 8.50121, 7.89834, 7.65197, 7.22768, 6.7755, 6.34855, 5.98336, 5.76555, 5.38056, 5.11024, 4.7748, 4.59117, 4.23247, 4.00814, 3.79607, 3.68702, 3.3767, 3.16309, 2.98282, 2.8095, 2.65875, 2.50561, 2.32516, 2.16357, 2.03235, 1.84061, 1.72628, 1.62305, 1.48916, 1.38784, 1.28366, 1.24693, 1.18552, 1.16085, 1.12596, 1.09298, 1.07402, 1.06105, 1.02954};
   for(int i=hiBinLow; i<hiBinHigh; i++)  w+=Ncoll[i]/(hiBinHigh-hiBinLow);
   return w;
}
 
  • These numbers and systematic errors will be discussed in the analysis note: CMS AN-2015/080

Instructions for 7_X_Y

Revision 902015-12-02 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 26 to 26
  7_5_X global tags with centrality calibration for HFtowers with 200 bins
Changed:
<
<
>
>
 
Line: 37 to 37
 from GlobalTag import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc_HIon', '') ...
Added:
>
>
process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi") ...
  centralitySrc = cms.InputTag("hiCentrality"), centralityBinSrc = cms.InputTag("centralityBin","HFtowers"), ...
Added:
>
>
process.p= cms.Path(process.centralityBin * ...)
 
Deleted:
<
<
If the reco file does not have centralityBin object or you need to produce it again with a new calibration then also add to the config file
process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi")
process.newCentralityBin = process.centralityBin.clone()
...
process.p= cms.Path(process.newCentralityBin * ...)
This creates a new centrality bin object with the default HFtowers label from the global tag.
 In analyzer to access the centrality object, the following lines are needed
#include "DataFormats/HeavyIonEvent/interface/Centrality.h"

Revision 892015-11-13 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 24 to 24
 
  • centrality tables are included in the global tag but instructions on how to test new tags are available here: SWGuideHeavyIonCentralityExpert
  • please remove overrideCentrality function from your config
Added:
>
>
7_5_X global tags with centrality calibration for HFtowers with 200 bins
 In config file
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')

Revision 882015-11-13 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 19 to 19
 

CMSSW_7_5_X Work in progress, under construction

Changed:
<
<
Accessing centrality table in config file:
process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
      tag = cms.string("CentralityTable_HFtowers200_HydjetDrum5_v750x02_mc"),
      connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
      label = cms.untracked.string("HFtowers")
   ),
])
>
>
Notes:
  • conddb v2 is default in 7_5_X
  • centrality tables are included in the global tag but instructions on how to test new tags are available here: SWGuideHeavyIonCentralityExpert
  • please remove overrideCentrality function from your config
 
Changed:
<
<
Please remove overrideCentrality function only the above lines are needed.

The tag has to be changed for different data samples

  • Hydjet 2.76 TeV "CentralityTable_HFtowers200_HydjetDrum_run1v750x01_mc" included in 75X_mcRun1_HeavyIon_v5 with label HFtowersHydjetDrum
  • Hydjet 5 TeV "CentralityTable_HFtowers200_HydjetDrum5_v750x02_mc" included in 75X_mcRun2_HeavyIon_v5 with label HFtowersHydjetDrum5
  • Data 2.76 TeV "CentralityTable_HFtowers200_Glauber2010A_eff99_run1v750x01_offline" included in 75X_dataRun1_v6 with label HFtowers
  • Data Run2 placeholder "CentralityTable_HFtowers200_Glauber2015A_v750x01_offline" included in 75X_dataRun2_v6 with label HFtowers
>
>
In config file
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc_HIon', '')
...
    centralitySrc = cms.InputTag("hiCentrality"),
    centralityBinSrc = cms.InputTag("centralityBin","HFtowers"),
...
 
Changed:
<
<
The producing and access of centrality bin is found below at the 7_4_X instructions.
>
>
If the reco file does not have centralityBin object or you need to produce it again with a new calibration then also add to the config file
process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi")
process.newCentralityBin = process.centralityBin.clone()
...
process.p= cms.Path(process.newCentralityBin * ...)
This creates a new centrality bin object with the default HFtowers label from the global tag.
 
Changed:
<
<
In 7_5_X the conddb v2 became default when loading global tag.
>
>
In analyzer to access the centrality object, the following lines are needed
#include "DataFormats/HeavyIonEvent/interface/Centrality.h"
...
edm::EDGetTokenT<reco::Centrality> centralityToken_;
edm::EDGetTokenT<int> centralityBinToken_;
...
centralityToken_ = consumes<reco::Centrality>(iConfig.getParameter<edm::InputTag>("centralitySrc"));
centralityBinToken_ = consumes<int>(iConfig.getParameter<edm::InputTag>("centralityBinSrc"));
...
edm::Handle<reco::Centrality> centrality;
iEvent.getByToken(centralityToken_, centrality);
edm::Handle<int> cbin;
iEvent.getByToken(centralityBinToken_, cbin);
hiBin_ = *cbin;
hiNtracks_ = centrality->Ntracks();
hiHF_ = centrality->EtHFtowerSum();
...
 

CMSSW_7_4_X

Line: 462 to 485
 
<!--/twistyPlugin-->
Deleted:
<
<

Instructions to event selection filters in CMSSW_7_5_0

The release can be found in github: https://github.com/CmsHI/cmssw/tree/forest_CMSSW_7_5_0.

The event selection filters are given in /HeavyIonsAnalysis/Configuration/python/collisionEventSelection_cff.py

For setup in CMSSW_7_5_0 :

cmsrel CMSSW_7_5_0
cd CMSSW_7_5_0/src
cmsenv
git cms-merge-topic -u CmsHI:forest_CMSSW_7_5_0
scram build -j4

No extra code is needed from the reconstruction packages because everything is in the release.

1. if you use RECO file :

In the config file(ex. HeavyIonsAnalysis/JetAnalysis/test/runForest_PbPb_MIX_75X.py) you need :

process.load('HeavyIonsAnalysis.JetAnalysis.EventSelection_cff')
process.pcollisionEventSelection = cms.Path(process.collisionEventSelection)

process.phfCoincFilter = cms.Path(process.hfCoincFilter )
process.phfCoincFilter3 = cms.Path(process.hfCoincFilter3 )
process.pprimaryVertexFilter = cms.Path(process.primaryVertexFilter )
process.phltPixelClusterShapeFilter = cms.Path(process.siPixelRecHits*process.hltPixelClusterShapeFilter )
process.phiEcalRecHitSpikeFilter = cms.Path(process.hiEcalRecHitSpikeFilter )

2. If you use AOD file :

In the config file(ex. HeavyIonsAnalysis/JetAnalysis/test/runForest_PbPb_MIX_75X.py) you need :

process.load('HeavyIonsAnalysis.JetAnalysis.EventSelection_cff')
process.phltJetHI = cms.Path( process.hltJetHI )
process.pcollisionEventSelection = cms.Path(process.collisionEventSelectionAOD)
process.load('RecoMET.METFilters.metFilters_cff')
process.pHBHENoiseFilterResultProducer = cms.Path( process.HBHENoiseFilterResultProducer )

If you want to know further more :

 

Contact

Added:
>
>
 

Responsible: AnnaJuliaZsigmond

Revision 872015-10-01 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Line: 19 to 19
 

CMSSW_7_5_X Work in progress, under construction

Changed:
<
<
In 7_5_X the conddb v2 became default when loading global tag.

Everything is the same as in 7_4_X except the way to access the centrality table

>
>
Accessing centrality table in config file:
 
process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
      tag = cms.string("CentralityTable_HFtowers200_HydjetDrum5_v750x02_mc"),
      connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
Changed:
<
<
label = cms.untracked.string("HFtowersHydjetDrum5")
>
>
label = cms.untracked.string("HFtowers")
  ), ])
Added:
>
>
Please remove overrideCentrality function only the above lines are needed.

The tag has to be changed for different data samples

  • Hydjet 2.76 TeV "CentralityTable_HFtowers200_HydjetDrum_run1v750x01_mc" included in 75X_mcRun1_HeavyIon_v5 with label HFtowersHydjetDrum
  • Hydjet 5 TeV "CentralityTable_HFtowers200_HydjetDrum5_v750x02_mc" included in 75X_mcRun2_HeavyIon_v5 with label HFtowersHydjetDrum5
  • Data 2.76 TeV "CentralityTable_HFtowers200_Glauber2010A_eff99_run1v750x01_offline" included in 75X_dataRun1_v6 with label HFtowers
  • Data Run2 placeholder "CentralityTable_HFtowers200_Glauber2015A_v750x01_offline" included in 75X_dataRun2_v6 with label HFtowers

The producing and access of centrality bin is found below at the 7_4_X instructions.

In 7_5_X the conddb v2 became default when loading global tag.

 

CMSSW_7_4_X

In 7_4_X the centrality bin access is changing

Revision 862015-08-04 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"
Changed:
<
<

Reconstructing and Binning Centrality in Heavy Ion events at CMS

>
>
 
Changed:
<
<

>
>

Reconstructing and binning centrality in heavy-ion events

 

Introduction

Line: 14 to 15
 

Instructions for 7_X_Y

Added:
>
>
The centrality binning is done for 200 bins. Bin 0 means most central 0-0.5% events and increasing goes to more peripheral.
 

CMSSW_7_5_X Work in progress, under construction

In 7_5_X the conddb v2 became default when loading global tag.

Revision 852015-08-04 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Line: 14 to 14
 

Instructions for 7_X_Y

Changed:
<
<

CMSSW_7_5_X Work in progress, under construction

>
>

CMSSW_7_5_X Work in progress, under construction

  In 7_5_X the conddb v2 became default when loading global tag.

Revision 842015-07-29 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Line: 8 to 8
  On this page the instructions for using the centrality object are summarized.
Changed:
<
<
For questions please connect to the centrality meetings on Tuesday 4 pm (Geneva time): https://twiki.cern.ch/twiki/bin/viewauth/CMS/HiCentrality2015
>
>
For questions please connect to the centrality meetings on Tuesday 4 pm (Geneva time): HiCentrality2015
  For experts and developers: SWGuideHeavyIonCentralityExpert
Line: 71 to 71
 
NEW Note that it is possible for the new software to access binning for different centrality variables by producing and reading multiple centralityBin objects. As of now there is only calibration available for HFtowers with 200 bins.
Deleted:
<
<

CMSSW_7_3_X

The centrality object hiCentrality is produced by default heavy ion reconstruction.

Preliminary calibration for 200 bins in HFtowers variable can be loaded by

process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
      tag = cms.string("CentralityTable_HFtowers200_HydjetDrum5_v740x01_mc"),
      connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
      label = cms.untracked.string("HFtowersHydjetDrum5")
   ),
])

process.HeavyIonGlobalParameters = cms.PSet(
    centralityVariable = cms.string("HFtowers"),
    nonDefaultGlauberModel = cms.string("HydjetDrum5"),
    centralitySrc = cms.InputTag("hiCentrality")
    )

In the analyzer the CentralityProvider has to be loaded as before.

For more details please follow the forest setup for testing purposes only https://twiki.cern.ch/twiki/bin/viewauth/CMS/HiForestSetup

 

Instructions for 5_3_20

PbPb 2011 rereco in 5_3_20

The centrality object with label hiCentrality is available in the reconstructed data.

Changed:
<
<
The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_20. The centrality object is produced by RecoHI /HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI /HiCentralityAlgos/python/HiCentrality_cfi.py
>
>
The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_20. The centrality object is produced by RecoHI/HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI/HiCentralityAlgos/python/HiCentrality_cfi.py
  The centrality table with 200 bins using HFtowers is available in the GlobalTag FT_R_53_LV9. For usage, please see (*) below the alternative setup.
Changed:
<
<
Alternatively, to get the right configurations for event selection and centrality binning calibration (200 bins) you can check out some packages setup in the centrality branch on github: here with
>
>
Alternatively, to get the right configurations for event selection and centrality binning calibration (200 bins) you can check out some packages setup in the centrality branch on github: here with
 
cmsrel CMSSW_5_3_20
cd CMSSW_5_3_20/src
cmsenv
git cms-merge-topic -u CmsHI:centrality_5_3_20
Changed:
<
<
scram b
>
>
scram b
  No extra code is needed from the reconstruction packages because everything is in the release.
Changed:
<
<
With this the HeavyIonsAnalysis /EventAnalyzer package is also checked out with an example config to test. More details needed to use the centrality object are given below.
>
>
With this the HeavyIonsAnalysis/EventAnalyzer package is also checked out with an example config to test. More details needed to use the centrality object are given below.
 
Changed:
<
<
(*) In the analyzer you need
>
>
(*) In the analyzer you need
 
#include "RecoHI/HiCentralityAlgos/interface/CentralityProvider.h"
...
Line: 144 to 121
  centralitySrc = cms.InputTag("hiCentrality") )
Changed:
<
<
process.p = cms.Path(process.hltMinBiasHFOrBSC * process.collisionEventSelection * ...)
>
>
process.p = cms.Path(process.hltMinBiasHFOrBSC * process.collisionEventSelection * ...)
 
Changed:
<
<
For MC config file the only difference is in the following parameters
>
>
For MC config file the only difference is in the following parameters
 
process.GlobalTag.globaltag = '???::All'
Line: 156 to 134
  The centrality object is NOT produced in the pp reconstruction so it has to be produced on the fly.
Changed:
<
<
The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_20. The centrality object can be produced by RecoHI /HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI /HiCentralityAlgos/python/pACentrality_cfi.py
>
>
The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_20. The centrality object can be produced by RecoHI/HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI/HiCentralityAlgos/python/pACentrality_cfi.py
 
Changed:
<
<
To get the right configurations for event selection and centrality binning calibration (100 bins) you need to check out some packages setup in the centrality branch on github: here with
>
>
To get the right configurations for event selection and centrality binning calibration (100 bins) you need to check out some packages setup in the centrality branch on github: here with
 
cmsrel CMSSW_5_3_20
cd CMSSW_5_3_20/src
cmsenv
git cms-addpkg RecoHI/HiCentralityAlgos
git cms-merge-topic -u CmsHI:centrality_5_3_20
Changed:
<
<
scram b
>
>
scram b
 
Changed:
<
<
With this the HeavyIonsAnalysis /EventAnalyzer package is also checked out with an example config to test. More details needed to use the centrality object are given below.
>
>
With this the HeavyIonsAnalysis/EventAnalyzer package is also checked out with an example config to test. More details needed to use the centrality object are given below.
 
Changed:
<
<
In the analyzer you need
>
>
In the analyzer you need
 
#include "RecoHI/HiCentralityAlgos/interface/CentralityProvider.h"
...
Line: 178 to 157
 if (centProvider) centProvider = new CentralityProvider(iSetup); centProvider->newEvent(iEvent,iSetup); const reco::Centrality* centrality = centProvider->raw();
Changed:
<
<
hiBin = centProvider->getBin();
>
>
hiBin = centProvider->getBin();
 
Changed:
<
<
In the config file you need
>
>
In the config file you need
 
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
process.GlobalTag.globaltag = 'GR_P_V43D::All'
Line: 201 to 181
  process.p = cms.Path(process.hltZeroBiasSingleTrack * process.PAcollisionEventSelection * process.pileupVertexFilterCutGplus * process.siPixelRecHits * process.pACentrality * ...)
Changed:
<
<
For MC config file the only difference is in the following parameters
>
>
For MC config file the only difference is in the following parameters
 
process.GlobalTag.globaltag = 'STARTHI53_V27::All'
Line: 210 to 190
  nonDefaultGlauberModel = cms.string("Hijing"), centralitySrc = cms.InputTag("pACentrality"), pPbRunFlip = cms.untracked.uint32(99999999) # change to pPbRunFlip = cms.untracked.uint32(1) for Pbp MC sample
Changed:
<
<
)
>
>
)
 

Old instructions

Changed:
<
<

More... Close
<!--/twistyPlugin twikiMakeVisibleInline-->
>
>
<!--/twistyPlugin twikiMakeVisibleInline-->
 

Specific instructions for pPb 2013 data and MC

  • Check out the latest packages:
Line: 465 to 447
 
Changed:
<
<
<!--/twistyPlugin-->
>
>
<!--/twistyPlugin-->
 

Instructions to event selection filters in CMSSW_7_5_0

Revision 832015-07-28 - YeonjuGo

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Changed:
<
<

>
>

 

Introduction

On this page the instructions for using the centrality object are summarized.

Changed:
<
<
For questions please connect to the centrality meetings on Tuesday 4 pm (Geneva time): https://twiki.cern.ch/twiki/bin/viewauth/CMS/HiCentrality2015
>
>
For questions please connect to the centrality meetings on Tuesday 4 pm (Geneva time): https://twiki.cern.ch/twiki/bin/viewauth/CMS/HiCentrality2015
  For experts and developers: SWGuideHeavyIonCentralityExpert

Instructions for 7_X_Y

Changed:
<
<

CMSSW_7_5_X Work in progress, under construction

>
>

CMSSW_7_5_X Work in progress, under construction

  In 7_5_X the conddb v2 became default when loading global tag.
Changed:
<
<
Everything is the same as in 7_4_X except the way to access the centrality table
>
>
Everything is the same as in 7_4_X except the way to access the centrality table
 
process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
Line: 33 to 32
  In 7_4_X the centrality bin access is changing
  • CentralityProvider is removed and the bin can be produced as an integer with CentralityBinProducer
Changed:
<
<
>
>
  • pull-request https://github.com/cms-sw/cmssw/pull/7346
  No need to checkout any RecoHI package for your analysis, tested for CMSSW_7_4_0_pre6. Example analyzer here with cfi and cfg files.
Changed:
<
<
In the config file you have to add process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi") This loads the default parameters see here.

The parameters to be set in the config file

>
>
In the config file you have to add process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi") This loads the default parameters see here.
 
Added:
>
>
The parameters to be set in the config file
 
process.centralityBin.Centrality = cms.InputTag("hiCentrality")
process.centralityBin.centralityVariable = cms.string("HFtowers")
process.centralityBin.nonDefaultGlauberModel = cms.string("HydjetDrum5")
Changed:
<
<
The centrality table for testing can be accessed by
>
>
The centrality table for testing can be accessed by
 
process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
Line: 57 to 54
  ), ])
Changed:
<
<
In the path you have to produce the bin integer process.p = cms.Path(process.centralityBin * ...)
>
>
In the path you have to produce the bin integer process.p = cms.Path(process.centralityBin * ...)
 
Changed:
<
<
For the analyzer you have to provide the centrality bin label in the config centralityBinLabel = cms.InputTag("centralityBin","HFtowers")

In the analyzer you read this label and then with getByToken you get the integer value for the bin In the class member data you declare

>
>
For the analyzer you have to provide the centrality bin label in the config centralityBinLabel = cms.InputTag("centralityBin","HFtowers")
 
Added:
>
>
In the analyzer you read this label and then with getByToken you get the integer value for the bin In the class member data you declare
 
edm::Handle<int> cbin_;
edm::EDGetTokenT<int> tag_;
Changed:
<
<
In the constructor you read the config file
>
>
In the constructor you read the config file
 
tag_ = consumes<int>(iConfig.getParameter<edm::InputTag>("centralityBinLabel"));
Changed:
<
<
In the analyze part you read the bin
>
>
In the analyze part you read the bin
 
iEvent.getByToken(tag_,cbin_);
int bin = *cbin_;
Changed:
<
<

NEW Note that it is possible for the new software to access binning for different centrality variables by producing and reading multiple centralityBin objects. As of now there is only calibration available for HFtowers with 200 bins.
>
>

NEW Note that it is possible for the new software to access binning for different centrality variables by producing and reading multiple centralityBin objects. As of now there is only calibration available for HFtowers with 200 bins.
 

CMSSW_7_3_X

The centrality object hiCentrality is produced by default heavy ion reconstruction.

Changed:
<
<
Preliminary calibration for 200 bins in HFtowers variable can be loaded by
>
>
Preliminary calibration for 200 bins in HFtowers variable can be loaded by
 
process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
Line: 100 to 93
  In the analyzer the CentralityProvider has to be loaded as before.
Changed:
<
<
For more details please follow the forest setup for testing purposes only https://twiki.cern.ch/twiki/bin/viewauth/CMS/HiForestSetup
>
>
For more details please follow the forest setup for testing purposes only https://twiki.cern.ch/twiki/bin/viewauth/CMS/HiForestSetup
 

Instructions for 5_3_20

Line: 108 to 101
  The centrality object with label hiCentrality is available in the reconstructed data.
Changed:
<
<
The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_20. The centrality object is produced by RecoHI /HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI /HiCentralityAlgos/python/HiCentrality_cfi.py
>
>
The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_20. The centrality object is produced by RecoHI /HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI /HiCentralityAlgos/python/HiCentrality_cfi.py
  The centrality table with 200 bins using HFtowers is available in the GlobalTag FT_R_53_LV9. For usage, please see (*) below the alternative setup.
Changed:
<
<
Alternatively, to get the right configurations for event selection and centrality binning calibration (200 bins) you can check out some packages setup in the centrality branch on github: here with
>
>
Alternatively, to get the right configurations for event selection and centrality binning calibration (200 bins) you can check out some packages setup in the centrality branch on github: here with
 
cmsrel CMSSW_5_3_20
cd CMSSW_5_3_20/src
Line: 125 to 117
  With this the HeavyIonsAnalysis /EventAnalyzer package is also checked out with an example config to test. More details needed to use the centrality object are given below.
Changed:
<
<
(*) In the analyzer you need
>
>
(*) In the analyzer you need
 
#include "RecoHI/HiCentralityAlgos/interface/CentralityProvider.h"
...
Line: 137 to 128
 const reco::Centrality* centrality = centProvider->raw(); hiBin = centProvider->getBin();
Changed:
<
<
In the config file you need
>
>
In the config file you need
 
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
process.GlobalTag.globaltag = 'GR_R_53_LV6::All'
Line: 156 to 146
  process.p = cms.Path(process.hltMinBiasHFOrBSC * process.collisionEventSelection * ...)
Changed:
<
<
For MC config file the only difference is in the following parameters
>
>
For MC config file the only difference is in the following parameters
 
process.GlobalTag.globaltag = '???::All'
Line: 167 to 156
  The centrality object is NOT produced in the pp reconstruction so it has to be produced on the fly.
Changed:
<
<
The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_20. The centrality object can be produced by RecoHI /HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI /HiCentralityAlgos/python/pACentrality_cfi.py

To get the right configurations for event selection and centrality binning calibration (100 bins) you need to check out some packages setup in the centrality branch on github: here with

>
>
The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_20. The centrality object can be produced by RecoHI /HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI /HiCentralityAlgos/python/pACentrality_cfi.py
 
Added:
>
>
To get the right configurations for event selection and centrality binning calibration (100 bins) you need to check out some packages setup in the centrality branch on github: here with
 
cmsrel CMSSW_5_3_20
cd CMSSW_5_3_20/src
Line: 181 to 169
  With this the HeavyIonsAnalysis /EventAnalyzer package is also checked out with an example config to test. More details needed to use the centrality object are given below.
Changed:
<
<
In the analyzer you need
>
>
In the analyzer you need
 
#include "RecoHI/HiCentralityAlgos/interface/CentralityProvider.h"
...
Line: 193 to 180
 const reco::Centrality* centrality = centProvider->raw(); hiBin = centProvider->getBin();
Changed:
<
<
In the config file you need
>
>
In the config file you need
 
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
process.GlobalTag.globaltag = 'GR_P_V43D::All'
Line: 215 to 201
  process.p = cms.Path(process.hltZeroBiasSingleTrack * process.PAcollisionEventSelection * process.pileupVertexFilterCutGplus * process.siPixelRecHits * process.pACentrality * ...)
Changed:
<
<
For MC config file the only difference is in the following parameters
>
>
For MC config file the only difference is in the following parameters
 
process.GlobalTag.globaltag = 'STARTHI53_V27::All'
Line: 229 to 214
 

Old instructions

Changed:
<
<

More... Close
<!--/twistyPlugin twikiMakeVisibleInline-->
>
>

More... Close
<!--/twistyPlugin twikiMakeVisibleInline-->
 

Specific instructions for pPb 2013 data and MC

  • Check out the latest packages:
Line: 271 to 256
 

Specific instructions for analysis of 2010 data

Changed:
<
<
Due to continuous changes in centrality tables, we have a common python configuration that loads the latest tables from the database. The way to use it is:
>
>
Due to continuous changes in centrality tables, we have a common python configuration that loads the latest tables from the database. The way to use it is:
 
from CmsHi.Analysis2010.CommonFunctions_cff import *
overrideCentrality(process)
Line: 281 to 265
 

Specific instructions for analysis of 2011 data

Changed:
<
<
For the 2011 data analysis there is no need anymore for these two lines in your config file:
>
>
For the 2011 data analysis there is no need anymore for these two lines in your config file:
 
from CmsHi.Analysis2010.CommonFunctions_cff import *
overrideCentrality(process)
Changed:
<
<
The HeavyIonGlobalParameters settings are
>
>
The HeavyIonGlobalParameters settings are
 
process.HeavyIonGlobalParameters = cms.PSet(
  centralityVariable = cms.string("HFtowers"),
  nonDefaultGlauberModel = cms.string(""),

Line: 304 to 286
 

HYDJET 1.6 (Bass tune)

Changed:
<
<
If you are using the global tag STARTHI44_V7::All
>
>
If you are using the global tag =STARTHI44_V7::All=
 
from CmsHi.Analysis2010.CommonFunctions_cff import *
overrideCentrality(process)
process.HeavyIonGlobalParameters = cms.PSet(

Line: 315 to 296
  )
Changed:
<
<
If you are using the global tag STARTHI44_V12::All
>
>
If you are using the global tag =STARTHI44_V12::All=
 
process.HeavyIonGlobalParameters = cms.PSet(
 centralitySrc = cms.InputTag("hiCentrality"),
 centralityVariable = cms.string("HFtowers"),

Line: 326 to 306
 

HYDJET 1.8 (Drum tune)

Changed:
<
<
If you are using the global tag STARTHI44_V7::All or STARTHI44_V12::All
>
>
If you are using the global tag STARTHI44_V7::All or =STARTHI44_V12::All=
 
from CmsHi.Analysis2010.CommonFunctions_cff import *
overrideCentrality(process)
process.HeavyIonGlobalParameters = cms.PSet(

Line: 349 to 328
 
  • Add in your analyzer:
Changed:
<
<
1) add
>
>
1) add
 
#include "DataFormats/HeavyIonEvent/interface/CentralityProvider.h"
Changed:
<
<
2) declare
>
>
2) declare
 
CentralityProvider * centrality_;
Changed:
<
<
3) in the analyze() function
>
>
3) in the analyze() function
 
if(!centrality_) centrality_ = new CentralityProvider(iSetup);

   centrality_->newEvent(iEvent,iSetup); // make sure you do this first in every event

Line: 381 to 357
  )
Changed:
<
<
(*) To see which table you are supposed to use with a specific release, please consult the page: https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions
>
>
(*) To see which table you are supposed to use with a specific release, please consult the page: https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions
 

CentralityBinProducer

Changed:
<
<
This module determines the bin of the event, corresponding to a given table. See the instructions for specifying centrality table below.
>
>
This module determines the bin of the event, corresponding to a given table. See the instructions for specifying centrality table below.
 
process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi")
...
process.p = cms.Path(process.centralityBin)

Line: 397 to 372
 
  • Output
Changed:
<
<
The output is an integer, corresponding to the bin number.
>
>
The output is an integer, corresponding to the bin number.
 
int_centralityBin__SKIM
Line: 413 to 387
 

Filtering on binned centrality in cmsRun

Changed:
<
<
Please check out the head of the RecoHI /HiCentralityAlgos. Include the following in your cfg file:
>
>
Please check out the head of the RecoHI /HiCentralityAlgos. Include the following in your cfg file:
 

process.load("RecoHI.HiCentralityAlgos.CentralityFilter_cfi")
Line: 431 to 404
 
Changed:
<
<
and add the filter in your path:
>
>
and add the filter in your path:
 

process.mypath = cms.Path(process.centralityFilter * .....)

Changed:
<
<
By default the filter selects only the most central events of whatever tag (binning you've used). One can change which bins to be selected by doing:
>
>
By default the filter selects only the most central events of whatever tag (binning you've used). One can change which bins to be selected by doing:
 
process.centralityFilter.selectedBins = [2,3,4]
Line: 450 to 421
  If you're using EDAnalyzers in full framework, please use the CentralityProvider described above to take care of the bins for you. It internally uses a CentralityBins object, and details for experts can be found in the expert page.
Changed:
<
<
1- One has to import the table from the main database, and save in a root file. Simply run the cfg: http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/tools/makeTFileFromDB.py?hideattic=0&view=markup

or, you can just add the part:

>
>
1- One has to import the table from the main database, and save in a root file. Simply run the cfg: http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/tools/makeTFileFromDB.py?hideattic=0&view=markup
 
Added:
>
>
or, you can just add the part:
 
process.makeCentralityTableTFile = cms.EDAnalyzer('CentralityTableProducer',
                                                  isMC = cms.untracked.bool(True),
                                                  makeDBFromTFile = cms.untracked.bool(False),

Line: 463 to 433
  to any cfg, like the one you're running your other analyzers. This will put the tables for all the runs into the output of the TFileService. Please note that, if there is a new global tag, for which you have to re-run your reconstruction and analysis, you will have to re-run to import the table as well.
Changed:
<
<
2-In your root macro (whether it's FWLite of just root) add:
>
>
2-In your root macro (whether it's FWLite of just root) add:
 
#include "DataFormats/HeavyIonEvent/interface/CentralityBins.h"
TFile* inf = new TFile("centralityfile.root");
CentralityBins::RunMap cmap = getCentralityFromFile(inf, "makeCentralityTableTFile", "HFhitsAMPT_2760GeV", 149500, 155000);

Line: 477 to 446
 double npartSigma = cmap[run]->NpartSigma(hf);
Changed:
<
<
However, even if you want to run in bare root, you need the following in your rootlogon:
>
>
However, even if you want to run in bare root, you need the following in your rootlogon:
 
{
  gSystem->Load("libDataFormatsHeavyIonEvent");
  gSystem->AddIncludePath("-I$CMSSW_BASE/src/");

Line: 486 to 454
 }
Changed:
<
<
You can find example macros in ./macros/: http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/macros/testCentralityFWLite.C?hideattic=0&view=markup http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/macros/testCentralityBareRoot.C?hideattic=0&view=markup
>
>
You can find example macros in ./macros/: http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/macros/testCentralityFWLite.C?hideattic=0&view=markup http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/macros/testCentralityBareRoot.C?hideattic=0&view=markup
 
  • You need to compile your macro in order to run successfully.
Line: 495 to 463
 
Changed:
<
<
>
>
  • https://twiki.cern.ch/twiki/bin/view/Main/LHCGlauberBaseline
 
Changed:
<
<
<!--/twistyPlugin-->
>
>
<!--/twistyPlugin-->
 

Instructions to event selection filters in CMSSW_7_5_0

Changed:
<
<
The release can be found in github: https://github.com/CmsHI/cmssw/tree/forest_CMSSW_7_5_0.
>
>
The release can be found in github: https://github.com/CmsHI/cmssw/tree/forest_CMSSW_7_5_0.
 
Changed:
<
<
The event selection filters are given in /HeavyIonsAnalysis/Configuration/python/collisionEventSelection_cff.py

For setup in CMSSW_7_5_0 :

>
>
The event selection filters are given in /HeavyIonsAnalysis/Configuration/python/collisionEventSelection_cff.py
 
Added:
>
>
For setup in CMSSW_7_5_0 :
 
cmsrel CMSSW_7_5_0
cd CMSSW_7_5_0/src
cmsenv

Line: 517 to 484
  1. if you use RECO file :
Changed:
<
<
In the config file(ex. HeavyIonsAnalysis /JetAnalysis/test/runForest_PbPb_MIX_75X.py) you need :

process.load('HeavyIonsAnalysis.JetAnalysis.EventSelection_cff')
process.phltJetHI = cms.Path( process.hltJetHI )
process.pcollisionEventSelection = cms.Path(process.collisionEventSelection)
# process.pHBHENoiseFilter = cms.Path( process.HBHENoiseFilter ) #should be put back in later
#process.pHBHENoiseFilterResultProducer = cms.Path( process.HBHENoiseFilterResultProducer )
process.phfCoincFilter = cms.Path(process.hfCoincFilter )
process.phfCoincFilter3 = cms.Path(process.hfCoincFilter3 )
process.pprimaryVertexFilter = cms.Path(process.primaryVertexFilter )
process.phltPixelClusterShapeFilter = cms.Path(process.siPixelRecHits*process.hltPixelClusterShapeFilter )
process.phiEcalRecHitSpikeFilter = cms.Path(process.hiEcalRecHitSpikeFilter )
>
>
In the config file(ex. HeavyIonsAnalysis /JetAnalysis/test/runForest_PbPb_MIX_75X.py) you need :
process.load('HeavyIonsAnalysis.JetAnalysis.EventSelection_cff')
process.pcollisionEventSelection = cms.Path(process.collisionEventSelection)

process.phfCoincFilter = cms.Path(process.hfCoincFilter )
process.phfCoincFilter3 = cms.Path(process.hfCoincFilter3 )
process.pprimaryVertexFilter = cms.Path(process.primaryVertexFilter )
process.phltPixelClusterShapeFilter = cms.Path(process.siPixelRecHits*process.hltPixelClusterShapeFilter )
process.phiEcalRecHitSpikeFilter = cms.Path(process.hiEcalRecHitSpikeFilter )
 

2. If you use AOD file :

Changed:
<
<
In the config file(ex. HeavyIonsAnalysis /JetAnalysis/test/runForest_PbPb_MIX_75X.py) you need :

process.load('HeavyIonsAnalysis.JetAnalysis.EventSelection_cff')
process.phltJetHI = cms.Path( process.hltJetHI )
process.pcollisionEventSelection = cms.Path(process.collisionEventSelectionAOD)
process.load('RecoMET.METFilters.metFilters_cff')
process.pHBHENoiseFilterResultProducer = cms.Path( process.HBHENoiseFilterResultProducer )
#process.phfCoincFilter = cms.Path(process.hfCoincFilter )
#process.phfCoincFilter3 = cms.Path(process.hfCoincFilter3 )
#process.pprimaryVertexFilter = cms.Path(process.primaryVertexFilter )
>
>
In the config file(ex. HeavyIonsAnalysis /JetAnalysis/test/runForest_PbPb_MIX_75X.py) you need :
process.load('HeavyIonsAnalysis.JetAnalysis.EventSelection_cff')
process.phltJetHI = cms.Path( process.hltJetHI )
process.pcollisionEventSelection = cms.Path(process.collisionEventSelectionAOD)
process.load('RecoMET.METFilters.metFilters_cff')
process.pHBHENoiseFilterResultProducer = cms.Path( process.HBHENoiseFilterResultProducer )

 
Added:
>
>
If you want to know further more :
 

Contact

Changed:
<
<
>
>
 
Changed:
<
<
Responsible: AnnaJuliaZsigmond
>
>
Responsible: AnnaJuliaZsigmond

Revision 822015-07-28 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Line: 29 to 29
  ), ])
Changed:
<
<

CMSSW_7_4_X Work in progress, under construction

>
>

CMSSW_7_4_X

  In 7_4_X the centrality bin access is changing
Changed:
<
<
>
>
  • CentralityProvider is removed and the bin can be produced as an integer with CentralityBinProducer
 
Changed:
<
<
No need to checkout any RecoHI package for your analysis, tested for CMSSW_7_4_0_pre6. Example analyzer here with cfi and cfg files.
>
>
No need to checkout any RecoHI package for your analysis, tested for CMSSW_7_4_0_pre6. Example analyzer here with cfi and cfg files.
  In the config file you have to add process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi") This loads the default parameters see here.

Revision 812015-07-27 - YeonjuGo

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Changed:
<
<
>
>

 

Introduction

Line: 31 to 32
 

CMSSW_7_4_X Work in progress, under construction

In 7_4_X the centrality bin access is changing

Changed:
<
<
  • CentralityProvider is removed and the bin can be produced as an integer with CentralityBinProducer
>
>
 
Changed:
<
<
No need to checkout any RecoHI package for your analysis, tested for CMSSW_7_4_0_pre6. Example analyzer here with cfi and cfg files.
>
>
No need to checkout any RecoHI package for your analysis, tested for CMSSW_7_4_0_pre6. Example analyzer here with cfi and cfg files.
 
Changed:
<
<
In the config file you have to add process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi") This loads the default parameters see here.
>
>
In the config file you have to add process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi") This loads the default parameters see here.
  The parameters to be set in the config file
Added:
>
>
 
process.centralityBin.Centrality = cms.InputTag("hiCentrality")
process.centralityBin.centralityVariable = cms.string("HFtowers")
Line: 56 to 57
  ), ])
Changed:
<
<
In the path you have to produce the bin integer process.p = cms.Path(process.centralityBin * ...)
>
>
In the path you have to produce the bin integer process.p = cms.Path(process.centralityBin * ...)
 
Changed:
<
<
For the analyzer you have to provide the centrality bin label in the config centralityBinLabel = cms.InputTag("centralityBin","HFtowers")
>
>
For the analyzer you have to provide the centrality bin label in the config centralityBinLabel = cms.InputTag("centralityBin","HFtowers")

In the analyzer you read this label and then with getByToken you get the integer value for the bin In the class member data you declare

 
Deleted:
<
<
In the analyzer you read this label and then with getByToken you get the integer value for the bin In the class member data you declare
 
edm::Handle<int> cbin_;
edm::EDGetTokenT<int> tag_;
Line: 74 to 75
 
iEvent.getByToken(tag_,cbin_);
int bin = *cbin_;
Changed:
<
<
NEW Note that it is possible for the new software to access binning for different centrality variables by producing and reading multiple centralityBin objects. As of now there is only calibration available for HFtowers with 200 bins.
>
>

NEW Note that it is possible for the new software to access binning for different centrality variables by producing and reading multiple centralityBin objects. As of now there is only calibration available for HFtowers with 200 bins.
 

CMSSW_7_3_X

Changed:
<
<
The centrality object hiCentrality is produced by default heavy ion reconstruction.
>
>
The centrality object hiCentrality is produced by default heavy ion reconstruction.
  Preliminary calibration for 200 bins in HFtowers variable can be loaded by
Added:
>
>
 
process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
Line: 96 to 98
  centralitySrc = cms.InputTag("hiCentrality") )
Changed:
<
<
In the analyzer the CentralityProvider has to be loaded as before.
>
>
In the analyzer the CentralityProvider has to be loaded as before.
 
Changed:
<
<
For more details please follow the forest setup for testing purposes only https://twiki.cern.ch/twiki/bin/viewauth/CMS/HiForestSetup
>
>
For more details please follow the forest setup for testing purposes only https://twiki.cern.ch/twiki/bin/viewauth/CMS/HiForestSetup
 

Instructions for 5_3_20

PbPb 2011 rereco in 5_3_20

Changed:
<
<
The centrality object with label hiCentrality is available in the reconstructed data.
>
>
The centrality object with label hiCentrality is available in the reconstructed data.
 
Changed:
<
<
The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_20. The centrality object is produced by RecoHI/HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI/HiCentralityAlgos/python/HiCentrality_cfi.py
>
>
The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_20. The centrality object is produced by RecoHI /HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI /HiCentralityAlgos/python/HiCentrality_cfi.py
  The centrality table with 200 bins using HFtowers is available in the GlobalTag FT_R_53_LV9. For usage, please see (*) below the alternative setup.
Line: 122 to 123
  No extra code is needed from the reconstruction packages because everything is in the release.
Changed:
<
<
With this the HeavyIonsAnalysis/EventAnalyzer package is also checked out with an example config to test. More details needed to use the centrality object are given below.
>
>
With this the HeavyIonsAnalysis /EventAnalyzer package is also checked out with an example config to test. More details needed to use the centrality object are given below.
  (*) In the analyzer you need
Added:
>
>
 
#include "RecoHI/HiCentralityAlgos/interface/CentralityProvider.h"
...
Line: 163 to 167
  The centrality object is NOT produced in the pp reconstruction so it has to be produced on the fly.
Changed:
<
<
The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_20. The centrality object can be produced by RecoHI/HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI/HiCentralityAlgos/python/pACentrality_cfi.py
>
>
The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_20. The centrality object can be produced by RecoHI /HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI /HiCentralityAlgos/python/pACentrality_cfi.py
  To get the right configurations for event selection and centrality binning calibration (100 bins) you need to check out some packages setup in the centrality branch on github: here with
Line: 175 to 179
 git cms-merge-topic -u CmsHI:centrality_5_3_20 scram b
Changed:
<
<
With this the HeavyIonsAnalysis/EventAnalyzer package is also checked out with an example config to test. More details needed to use the centrality object are given below.
>
>
With this the HeavyIonsAnalysis /EventAnalyzer package is also checked out with an example config to test. More details needed to use the centrality object are given below.
  In the analyzer you need
Added:
>
>
 
#include "RecoHI/HiCentralityAlgos/interface/CentralityProvider.h"
...
Line: 222 to 229
 

Old instructions

Changed:
<
<
<!--/twistyPlugin twikiMakeVisibleInline-->
>
>

More... Close
<!--/twistyPlugin twikiMakeVisibleInline-->
 

Specific instructions for pPb 2013 data and MC

  • Check out the latest packages:
Line: 285 to 287
 overrideCentrality(process)
Changed:
<
<
The HeavyIonGlobalParameters settings are
>
>
The HeavyIonGlobalParameters settings are
 
process.HeavyIonGlobalParameters = cms.PSet(
  centralityVariable = cms.string("HFtowers"),
  nonDefaultGlauberModel = cms.string(""),

Line: 293 to 296
  )
Changed:
<
<
together with the global tag GR_R_44_V12::All (or GR_P_V27A::All?)
>
>
together with the global tag GR_R_44_V12::All (or GR_P_V27A::All?)
 

Specific instructions for analysis of 2011 MC Simulations

Changed:
<
<
Always make sure you have an updated version of CmsHi/Analysis2010/. There are currently two HYDJET tunes used which require different settings of the HeavyIonGlobalParameters
>
>
Always make sure you have an updated version of CmsHi/Analysis2010/. There are currently two HYDJET tunes used which require different settings of the HeavyIonGlobalParameters
 

HYDJET 1.6 (Bass tune)

Line: 321 to 326
 

HYDJET 1.8 (Drum tune)

Changed:
<
<
If you are using the global tag STARTHI44_V7::All or STARTHI44_V12::All
>
>
If you are using the global tag STARTHI44_V7::All or STARTHI44_V12::All
 
from CmsHi.Analysis2010.CommonFunctions_cff import *
overrideCentrality(process)
process.HeavyIonGlobalParameters = cms.PSet(

Line: 372 to 381
  )
Changed:
<
<
(*) To see which table you are supposed to use with a specific release, please consult the page: https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions
>
>
(*) To see which table you are supposed to use with a specific release, please consult the page: https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions
 

CentralityBinProducer

Line: 385 to 393
 

  • Input
Changed:
<
<
The input for binning it the centrality object, by default with the label "hiCentrality". Also, make sure the centrality table is provided.
>
>
The input for binning it the centrality object, by default with the label "hiCentrality". Also, make sure the centrality table is provided.
 
  • Output
Line: 405 to 413
 

Filtering on binned centrality in cmsRun

Changed:
<
<
Please check out the head of the RecoHI /HiCentralityAlgos. Include the following in your cfg file:
>
>
Please check out the head of the RecoHI /HiCentralityAlgos. Include the following in your cfg file:
 
Line: 443 to 450
  If you're using EDAnalyzers in full framework, please use the CentralityProvider described above to take care of the bins for you. It internally uses a CentralityBins object, and details for experts can be found in the expert page.
Changed:
<
<
1- One has to import the table from the main database, and save in a root file. Simply run the cfg: http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/tools/makeTFileFromDB.py?hideattic=0&view=markup
>
>
1- One has to import the table from the main database, and save in a root file. Simply run the cfg: http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/tools/makeTFileFromDB.py?hideattic=0&view=markup
  or, you can just add the part:
Added:
>
>
 
process.makeCentralityTableTFile = cms.EDAnalyzer('CentralityTableProducer',
                                                  isMC = cms.untracked.bool(True),
                                                  makeDBFromTFile = cms.untracked.bool(False),

Line: 454 to 461
  )
Changed:
<
<
to any cfg, like the one you're running your other analyzers. This will put the tables for all the runs into the output of the TFileService. Please note that, if there is a new global tag, for which you have to re-run your reconstruction and analysis, you will have to re-run to import the table as well.
>
>
to any cfg, like the one you're running your other analyzers. This will put the tables for all the runs into the output of the TFileService. Please note that, if there is a new global tag, for which you have to re-run your reconstruction and analysis, you will have to re-run to import the table as well.
  2-In your root macro (whether it's FWLite of just root) add:
Line: 479 to 486
 }
Changed:
<
<
You can find example macros in ./macros/: http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/macros/testCentralityFWLite.C?hideattic=0&view=markup http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/macros/testCentralityBareRoot.C?hideattic=0&view=markup
>
>
You can find example macros in ./macros/: http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/macros/testCentralityFWLite.C?hideattic=0&view=markup http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/macros/testCentralityBareRoot.C?hideattic=0&view=markup
 
  • You need to compile your macro in order to run successfully.
Line: 494 to 499
 
<!--/twistyPlugin-->
Changed:
<
<

Instructions to event selection filters in AOD format

>
>

Instructions to event selection filters in CMSSW_7_5_0

The release can be found in github: https://github.com/CmsHI/cmssw/tree/forest_CMSSW_7_5_0.

The event selection filters are given in /HeavyIonsAnalysis/Configuration/python/collisionEventSelection_cff.py

For setup in CMSSW_7_5_0 :

cmsrel CMSSW_7_5_0
cd CMSSW_7_5_0/src
cmsenv
git cms-merge-topic -u CmsHI:forest_CMSSW_7_5_0
scram build -j4

No extra code is needed from the reconstruction packages because everything is in the release.

1. if you use RECO file :

In the config file(ex. HeavyIonsAnalysis /JetAnalysis/test/runForest_PbPb_MIX_75X.py) you need :

process.load('HeavyIonsAnalysis.JetAnalysis.EventSelection_cff')
process.phltJetHI = cms.Path( process.hltJetHI )
process.pcollisionEventSelection = cms.Path(process.collisionEventSelection)
# process.pHBHENoiseFilter = cms.Path( process.HBHENoiseFilter ) #should be put back in later
#process.pHBHENoiseFilterResultProducer = cms.Path( process.HBHENoiseFilterResultProducer )
process.phfCoincFilter = cms.Path(process.hfCoincFilter )
process.phfCoincFilter3 = cms.Path(process.hfCoincFilter3 )
process.pprimaryVertexFilter = cms.Path(process.primaryVertexFilter )
process.phltPixelClusterShapeFilter = cms.Path(process.siPixelRecHits*process.hltPixelClusterShapeFilter )
process.phiEcalRecHitSpikeFilter = cms.Path(process.hiEcalRecHitSpikeFilter )

2. If you use AOD file :

In the config file(ex. HeavyIonsAnalysis /JetAnalysis/test/runForest_PbPb_MIX_75X.py) you need :

process.load('HeavyIonsAnalysis.JetAnalysis.EventSelection_cff')
process.phltJetHI = cms.Path( process.hltJetHI )
process.pcollisionEventSelection = cms.Path(process.collisionEventSelectionAOD)
process.load('RecoMET.METFilters.metFilters_cff')
process.pHBHENoiseFilterResultProducer = cms.Path( process.HBHENoiseFilterResultProducer )
#process.phfCoincFilter = cms.Path(process.hfCoincFilter )
#process.phfCoincFilter3 = cms.Path(process.hfCoincFilter3 )
#process.pprimaryVertexFilter = cms.Path(process.primaryVertexFilter )
 

Contact

Revision 802015-07-21 - YeonjuGo

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Line: 26 to 26
  connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"), label = cms.untracked.string("HFtowersHydjetDrum5") ),
Changed:
<
<
])
>
>
])
 

CMSSW_7_4_X Work in progress, under construction

Line: 38 to 36
  No need to checkout any RecoHI package for your analysis, tested for CMSSW_7_4_0_pre6. Example analyzer here with cfi and cfg files.
Changed:
<
<
In the config file you have to add
process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi")
This loads the default parameters see here.
>
>
In the config file you have to add process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi") This loads the default parameters see here.
  The parameters to be set in the config file
process.centralityBin.Centrality = cms.InputTag("hiCentrality")
process.centralityBin.centralityVariable = cms.string("HFtowers")
Changed:
<
<
process.centralityBin.nonDefaultGlauberModel = cms.string("HydjetDrum5")
>
>
process.centralityBin.nonDefaultGlauberModel = cms.string("HydjetDrum5")
  The centrality table for testing can be accessed by
Line: 57 to 54
  connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"), label = cms.untracked.string("HFtowersHydjetDrum5") ),
Changed:
<
<
])
>
>
])
 
Changed:
<
<
In the path you have to produce the bin integer
>
>
In the path you have to produce the bin integer
 process.p = cms.Path(process.centralityBin * ...)
Changed:
<
<
For the analyzer you have to provide the centrality bin label in the config
>
>
For the analyzer you have to provide the centrality bin label in the config
 centralityBinLabel = cms.InputTag("centralityBin","HFtowers")
Changed:
<
<
In the analyzer you read this label and then with getByToken you get the integer value for the bin
In the class member data you declare
>
>
In the analyzer you read this label and then with getByToken you get the integer value for the bin In the class member data you declare
 
edm::Handle<int> cbin_;
edm::EDGetTokenT<int> tag_;
Changed:
<
<
In the constructor you read the config file
>
>
In the constructor you read the config file
 
tag_ = consumes<int>(iConfig.getParameter<edm::InputTag>("centralityBinLabel"));
Changed:
<
<
In the analyze part you read the bin
>
>
In the analyze part you read the bin
 
iEvent.getByToken(tag_,cbin_);
int bin = *cbin_;
Line: 96 to 94
  centralityVariable = cms.string("HFtowers"), nonDefaultGlauberModel = cms.string("HydjetDrum5"), centralitySrc = cms.InputTag("hiCentrality")
Changed:
<
<
)
>
>
)
  In the analyzer the CentralityProvider has to be loaded as before.
Line: 121 to 118
 cd CMSSW_5_3_20/src cmsenv git cms-merge-topic -u CmsHI:centrality_5_3_20
Changed:
<
<
scram b
>
>
scram b
 No extra code is needed from the reconstruction packages because everything is in the release.

With this the HeavyIonsAnalysis/EventAnalyzer package is also checked out with an example config to test. More details needed to use the centrality object are given below.

Line: 136 to 133
 if (centProvider) centProvider = new CentralityProvider(iSetup); centProvider->newEvent(iEvent,iSetup); const reco::Centrality* centrality = centProvider->raw();
Changed:
<
<
hiBin = centProvider->getBin();
>
>
hiBin = centProvider->getBin();
  In the config file you need
Line: 155 to 151
  centralitySrc = cms.InputTag("hiCentrality") )
Changed:
<
<
process.p = cms.Path(process.hltMinBiasHFOrBSC * process.collisionEventSelection * ...)
>
>
process.p = cms.Path(process.hltMinBiasHFOrBSC * process.collisionEventSelection * ...)
  For MC config file the only difference is in the following parameters
process.GlobalTag.globaltag = '???::All'
Changed:
<
<
nonDefaultGlauberModel = cms.string("Hydjet_Drum"),
>
>
nonDefaultGlauberModel = cms.string("Hydjet_Drum"),
 

pPb 2013 in 5_3_20

Line: 179 to 173
 cmsenv git cms-addpkg RecoHI/HiCentralityAlgos git cms-merge-topic -u CmsHI:centrality_5_3_20
Changed:
<
<
scram b
>
>
scram b
  With this the HeavyIonsAnalysis/EventAnalyzer package is also checked out with an example config to test. More details needed to use the centrality object are given below.
Line: 193 to 186
 if (centProvider) centProvider = new CentralityProvider(iSetup); centProvider->newEvent(iEvent,iSetup); const reco::Centrality* centrality = centProvider->raw();
Changed:
<
<
hiBin = centProvider->getBin();
>
>
hiBin = centProvider->getBin();
  In the config file you need
Line: 215 to 207
  pPbRunFlip = cms.untracked.uint32(211313) )
Changed:
<
<
process.p = cms.Path(process.hltZeroBiasSingleTrack * process.PAcollisionEventSelection * process.pileupVertexFilterCutGplus * process.siPixelRecHits * process.pACentrality * ...)
>
>
process.p = cms.Path(process.hltZeroBiasSingleTrack * process.PAcollisionEventSelection * process.pileupVertexFilterCutGplus * process.siPixelRecHits * process.pACentrality * ...)
  For MC config file the only difference is in the following parameters
Line: 227 to 218
  nonDefaultGlauberModel = cms.string("Hijing"), centralitySrc = cms.InputTag("pACentrality"), pPbRunFlip = cms.untracked.uint32(99999999) # change to pPbRunFlip = cms.untracked.uint32(1) for Pbp MC sample
Changed:
<
<
)
>
>
)
 

Old instructions

Added:
>
>
 %TWISTY{ mode="div" showlink="Show"
Line: 241 to 232
 

Specific instructions for pPb 2013 data and MC

  • Check out the latest packages:
Changed:
<
<
cvs co -r pPbProd_v05 DataFormats/HeavyIonEvent

>
>
cvs co -r pPbProd_v05 DataFormats/HeavyIonEvent

 cvs co -r pPbProd_v10 RecoHI/HiCentralityAlgos cvs co -r pPbProd_v09 HeavyIonsAnalysis/Configuration cvs co -r HiForest_V02_03 -d Appeltel/RpPbAnalysis UserCode/Appeltel/RpPbAnalysis

  • In the config file:
Changed:
<
<
from HeavyIonsAnalysis.Configuration.CommonFunctions_cff import *

>
>
from HeavyIonsAnalysis.Configuration.CommonFunctions_cff import *

 overrideCentrality(process)

process.HeavyIonGlobalParameters = cms.PSet(

Line: 271 to 260
 
  • The analyzers don't have to be changed but if you use histograms there are 100 bins instead of 40.

  • MC config file the only difference is in the following parameters
Changed:
<
<
process.HeavyIonGlobalParameters = cms.PSet(

>
>
process.HeavyIonGlobalParameters = cms.PSet(

  centralityVariable = cms.string("HFtowersTrunc"), # or HFtowersPlusTrunc nonDefaultGlauberModel = cms.string("Hijing"), centralitySrc = cms.InputTag("pACentrality"),
Line: 284 to 272
  Due to continuous changes in centrality tables, we have a common python configuration that loads the latest tables from the database. The way to use it is:
Changed:
<
<
from CmsHi.Analysis2010.CommonFunctions_cff import *

>
>
from CmsHi.Analysis2010.CommonFunctions_cff import *

 overrideCentrality(process)
Line: 294 to 281
 

Specific instructions for analysis of 2011 data

For the 2011 data analysis there is no need anymore for these two lines in your config file:

Changed:
<
<
from CmsHi.Analysis2010.CommonFunctions_cff import *

>
>
from CmsHi.Analysis2010.CommonFunctions_cff import *

 overrideCentrality(process)
Added:
>
>
 The HeavyIonGlobalParameters settings are
Changed:
<
<
process.HeavyIonGlobalParameters = cms.PSet(

>
>
process.HeavyIonGlobalParameters = cms.PSet(

  centralityVariable = cms.string("HFtowers"), nonDefaultGlauberModel = cms.string(""), centralitySrc = cms.InputTag("hiCentrality")
Line: 313 to 300
 Always make sure you have an updated version of CmsHi/Analysis2010/. There are currently two HYDJET tunes used which require different settings of the HeavyIonGlobalParameters

HYDJET 1.6 (Bass tune)

Added:
>
>
 If you are using the global tag STARTHI44_V7::All
Changed:
<
<
from CmsHi.Analysis2010.CommonFunctions_cff import *

>
>
from CmsHi.Analysis2010.CommonFunctions_cff import *

 overrideCentrality(process) process.HeavyIonGlobalParameters = cms.PSet( centralitySrc = cms.InputTag("hiCentrality"),
Line: 325 to 312
 

If you are using the global tag STARTHI44_V12::All

Changed:
<
<
process.HeavyIonGlobalParameters = cms.PSet(

>
>
process.HeavyIonGlobalParameters = cms.PSet(

  centralitySrc = cms.InputTag("hiCentrality"), centralityVariable = cms.string("HFtowers"), nonDefaultGlauberModel = cms.string("Hydjet_Bass")
Line: 333 to 319
  )
Deleted:
<
<
 

HYDJET 1.8 (Drum tune)

Added:
>
>
 If you are using the global tag STARTHI44_V7::All or STARTHI44_V12::All
Changed:
<
<
from CmsHi.Analysis2010.CommonFunctions_cff import *

>
>
from CmsHi.Analysis2010.CommonFunctions_cff import *

 overrideCentrality(process) process.HeavyIonGlobalParameters = cms.PSet( centralitySrc = cms.InputTag("hiCentrality"),
Line: 350 to 334
 

CentralityProvider

  • Tags needed:
Changed:
<
<
cvs co CondFormats/HIObjects

>
>
cvs co CondFormats/HIObjects

 cvs co DataFormats/HeavyIonEvent cvs co RecoHI/HiCentralityAlgos cvs co -d CmsHi/Analysis2010 UserCode/CmsHi/Analysis2010
Line: 363 to 344
 
  • Add in your analyzer:

1) add

Changed:
<
<
#include "DataFormats/HeavyIonEvent/interface/CentralityProvider.h"

>
>
#include "DataFormats/HeavyIonEvent/interface/CentralityProvider.h"

 

2) declare

Changed:
<
<
CentralityProvider * centrality_;

>
>
CentralityProvider * centrality_;

 

3) in the analyze() function

Changed:
<
<
if(!centrality_) centrality_ = new CentralityProvider(iSetup);

>
>
if(!centrality_) centrality_ = new CentralityProvider(iSetup);

 
Changed:
<
<
centrality_->newEvent(iEvent,iSetup); // make sure you do this first in every event double c = centrality_->centralityValue(); int bin = centrality_->getBin();
>
>
centrality_->newEvent(iEvent,iSetup); // make sure you do this first in every event double c = centrality_->centralityValue(); int bin = centrality_->getBin();
 
Line: 386 to 363
  4) set the pointer centrality_ = 0 explicitly in the constructor

  • Add in your cfg:
Changed:
<
<
process.load('Configuration.StandardSequences.FrontierConditions_CMS.GlobalTag_cff')

>
>
process.load('Configuration.StandardSequences.FrontierConditions_CMS.GlobalTag_cff')

 process.GlobalTag.globaltag = 'MC_38Y_V13::All' # Make sure you have the right global tag (*) process.HeavyIonGlobalParameters = cms.PSet( centralityVariable = cms.string("HFhits"),
Line: 404 to 379
  This module determines the bin of the event, corresponding to a given table. See the instructions for specifying centrality table below.
Changed:
<
<
process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi")

>
>
process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi")

 ... process.p = cms.Path(process.centralityBin)
Line: 417 to 391
 
  • Output

The output is an integer, corresponding to the bin number.

Changed:
<
<
int_centralityBin__SKIM

>
>
int_centralityBin__SKIM

 

What it means in percentage depends on how many bins were used. For example, if you use 40 bins:

Line: 463 to 435
 By default the filter selects only the most central events of whatever tag (binning you've used). One can change which bins to be selected by doing:
Changed:
<
<
process.centralityFilter.selectedBins = [2,3,4]
>
>
process.centralityFilter.selectedBins = [2,3,4]
  If you're using 20 centrality bins, this would select top 10-25%.
Line: 476 to 447
 http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/tools/makeTFileFromDB.py?hideattic=0&view=markup

or, you can just add the part:

Changed:
<
<
process.makeCentralityTableTFile = cms.EDAnalyzer('CentralityTableProducer',

>
>
process.makeCentralityTableTFile = cms.EDAnalyzer('CentralityTableProducer',

  isMC = cms.untracked.bool(True), makeDBFromTFile = cms.untracked.bool(False), makeTFileFromDB = cms.untracked.bool(True)
Line: 488 to 459
  2-In your root macro (whether it's FWLite of just root) add:
Changed:
<
<
#include "DataFormats/HeavyIonEvent/interface/CentralityBins.h"

>
>
#include "DataFormats/HeavyIonEvent/interface/CentralityBins.h"

 TFile* inf = new TFile("centralityfile.root"); CentralityBins::RunMap cmap = getCentralityFromFile(inf, "makeCentralityTableTFile", "HFhitsAMPT_2760GeV", 149500, 155000); // FWLite int run = ev.id().run(); // or, if you're using any other tree: int run = myTreeVariableForRunNumber;
Changed:
<
<
int bin = cmap[run]->getBin(hf); double npartMean = cmap[run]->NpartMean(hf); double npartSigma = cmap[run]->NpartSigma(hf);
>
>
int bin = cmap[run]->getBin(hf); double npartMean = cmap[run]->NpartMean(hf); double npartSigma = cmap[run]->NpartSigma(hf);
 

However, even if you want to run in bare root, you need the following in your rootlogon:

Changed:
<
<
{
  gSystem->Load("libDataFormatsHeavyIonEvent");
  gSystem->AddIncludePath("-I$CMSSW_BASE/src/");
  gSystem->AddIncludePath("-I$CMSSW_RELEASE_BASE/src/");

>
>
{
  gSystem->Load("libDataFormatsHeavyIonEvent");
  gSystem->AddIncludePath("-I$CMSSW_BASE/src/");
  gSystem->AddIncludePath("-I$CMSSW_RELEASE_BASE/src/");

 }
Added:
>
>
 You can find example macros in ./macros/: http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/macros/testCentralityFWLite.C?hideattic=0&view=markup http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/macros/testCentralityBareRoot.C?hideattic=0&view=markup
Line: 525 to 494
 
<!--/twistyPlugin-->
Added:
>
>

Instructions to event selection filters in AOD format

 

Contact

Revision 792015-06-30 - ShengquanTuo

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Line: 18 to 18
  In 7_5_X the conddb v2 became default when loading global tag.
Added:
>
>
Everything is the same as in 7_4_X except the way to access the centrality table
process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
      tag = cms.string("CentralityTable_HFtowers200_HydjetDrum5_v750x02_mc"),
      connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
      label = cms.untracked.string("HFtowersHydjetDrum5")
   ),
])
 

CMSSW_7_4_X Work in progress, under construction

In 7_4_X the centrality bin access is changing

Revision 782015-06-02 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Line: 14 to 14
 

Instructions for 7_X_Y

Added:
>
>

CMSSW_7_5_X Work in progress, under construction

In 7_5_X the conddb v2 became default when loading global tag.

 

CMSSW_7_4_X Work in progress, under construction

In 7_4_X the centrality bin access is changing

Revision 772015-02-09 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Line: 20 to 20
 
Added:
>
>
No need to checkout any RecoHI package for your analysis, tested for CMSSW_7_4_0_pre6. Example analyzer here with cfi and cfg files.
  In the config file you have to add
process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi")
This loads the default parameters see here.

The parameters to be set in the config file

Changed:
<
<
process.centralityBin.Centrality = cms.InputTag("hiCentrality"), process.centralityBin.centralityVariable = cms.string("HFtowers"), process.centralityBin.nonDefaultGlauberModel = cms.string("HydjetDrum5"),
>
>
process.centralityBin.Centrality = cms.InputTag("hiCentrality") process.centralityBin.centralityVariable = cms.string("HFtowers") process.centralityBin.nonDefaultGlauberModel = cms.string("HydjetDrum5")
 

The centrality table for testing can be accessed by

Revision 762015-02-09 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Line: 37 to 37
  cms.PSet(record = cms.string("HeavyIonRcd"), tag = cms.string("CentralityTable_HFtowers200_HydjetDrum5_v740x01_mc"), connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
Changed:
<
<
label = cms.untracked.string("HFtowers_HydjetDrum5")
>
>
label = cms.untracked.string("HFtowersHydjetDrum5")
  ), ])
Line: 70 to 70
  cms.PSet(record = cms.string("HeavyIonRcd"), tag = cms.string("CentralityTable_HFtowers200_HydjetDrum5_v740x01_mc"), connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
Changed:
<
<
label = cms.untracked.string("HFtowers_HydjetDrum5")
>
>
label = cms.untracked.string("HFtowersHydjetDrum5")
  ), ])

Revision 752015-02-08 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Revision 742015-02-06 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Line: 20 to 20
 
Changed:
<
<
In the config file you have to add
>
>
In the config file you have to add
 process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi")
This loads the default parameters see here.
Line: 48 to 48
 For the analyzer you have to provide the centrality bin label in the config
centralityBinLabel = cms.InputTag("centralityBin","HFtowers")
Changed:
<
<
In the analyzer you read this label and then with getByToken you get the integer value for the bin
tag_ = consumes(iConfig.getParameter<edm::InputTag>("centralityBinLabel"));
iEvent.getByToken(tag_,cbin_);
int bin = *cbin_;
>
>
In the analyzer you read this label and then with getByToken you get the integer value for the bin
In the class member data you declare
edm::Handle<int> cbin_;
edm::EDGetTokenT<int> tag_;
In the constructor you read the config file
tag_ = consumes<int>(iConfig.getParameter<edm::InputTag>("centralityBinLabel"));
In the analyze part you read the bin
iEvent.getByToken(tag_,cbin_);
int bin = *cbin_;
  NEW Note that it is possible for the new software to access binning for different centrality variables by producing and reading multiple centralityBin objects. As of now there is only calibration available for HFtowers with 200 bins.

Revision 732015-02-04 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Line: 14 to 14
 

Instructions for 7_X_Y

Added:
>
>

CMSSW_7_4_X Work in progress, under construction

In 7_4_X the centrality bin access is changing

In the config file you have to add
process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi")
This loads the default parameters see here.

The parameters to be set in the config file

process.centralityBin.Centrality = cms.InputTag("hiCentrality"),
process.centralityBin.centralityVariable = cms.string("HFtowers"),
process.centralityBin.nonDefaultGlauberModel = cms.string("HydjetDrum5"),

The centrality table for testing can be accessed by

process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
      tag = cms.string("CentralityTable_HFtowers200_HydjetDrum5_v740x01_mc"),
      connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
      label = cms.untracked.string("HFtowers_HydjetDrum5")
   ),
])

In the path you have to produce the bin integer
process.p = cms.Path(process.centralityBin * ...)

For the analyzer you have to provide the centrality bin label in the config
centralityBinLabel = cms.InputTag("centralityBin","HFtowers")

In the analyzer you read this label and then with getByToken you get the integer value for the bin
tag_ = consumes(iConfig.getParameter<edm::InputTag>("centralityBinLabel"));
iEvent.getByToken(tag_,cbin_);
int bin = *cbin_;

NEW Note that it is possible for the new software to access binning for different centrality variables by producing and reading multiple centralityBin objects. As of now there is only calibration available for HFtowers with 200 bins.

 

CMSSW_7_3_X

The centrality object hiCentrality is produced by default heavy ion reconstruction.

Line: 39 to 80
  For more details please follow the forest setup for testing purposes only https://twiki.cern.ch/twiki/bin/viewauth/CMS/HiForestSetup
Deleted:
<
<

CMSSW_7_4_X Work in progress, under construction

In 7_4_X the centrality bin access is changing

In the config file you have to add
process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi")
This loads the default parameters see here.
The parameters can be changed in the config file e.g.
process.centralityBin.nonDefaultGlauberModel = cms.string("HydjetDrum5")
In the path you have to produce the bin integer
process.p = cms.Path(process.centralityBin * ...)

For the analyzer you have to provide the centrality bin label in the config
centralityBinLabel = cms.InputTag("centralityBin","HFtowers")

In the analyzer you read this label and then with getByToken you get the integer value for the bin
tag_ = consumes(iConfig.getParameter<edm::InputTag>("centralityBinLabel"));
iEvent.getByToken(tag_,cbin_);
int bin = *cbin_;

 

Instructions for 5_3_20

PbPb 2011 rereco in 5_3_20

Revision 722015-01-23 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Line: 44 to 44
  In 7_4_X the centrality bin access is changing
  • CentralityProvider is removed and the bin can be produced as an integer with CentralityBinProducer
Changed:
<
<
>
>
  In the config file you have to add
process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi")

Revision 712015-01-23 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Line: 8 to 8
  On this page the instructions for using the centrality object are summarized.
Changed:
<
<
For questions please connect to the centrality meetings on Tuesday 3 pm (Geneva time): https://twiki.cern.ch/twiki/bin/viewauth/CMS/HiCentrality2015
>
>
For questions please connect to the centrality meetings on Tuesday 4 pm (Geneva time): https://twiki.cern.ch/twiki/bin/viewauth/CMS/HiCentrality2015
  For experts and developers: SWGuideHeavyIonCentralityExpert
Changed:
<
<

Specific instructions for PbPb 2011 rereco in 5_3_20

>
>

Instructions for 7_X_Y

CMSSW_7_3_X

The centrality object hiCentrality is produced by default heavy ion reconstruction.

Preliminary calibration for 200 bins in HFtowers variable can be loaded by

process.GlobalTag.toGet.extend([
   cms.PSet(record = cms.string("HeavyIonRcd"),
      tag = cms.string("CentralityTable_HFtowers200_HydjetDrum5_v740x01_mc"),
      connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
      label = cms.untracked.string("HFtowers_HydjetDrum5")
   ),
])

process.HeavyIonGlobalParameters = cms.PSet(
    centralityVariable = cms.string("HFtowers"),
    nonDefaultGlauberModel = cms.string("HydjetDrum5"),
    centralitySrc = cms.InputTag("hiCentrality")
    )

In the analyzer the CentralityProvider has to be loaded as before.

For more details please follow the forest setup for testing purposes only https://twiki.cern.ch/twiki/bin/viewauth/CMS/HiForestSetup

CMSSW_7_4_X Work in progress, under construction

In 7_4_X the centrality bin access is changing

In the config file you have to add
process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi")
This loads the default parameters see here.
The parameters can be changed in the config file e.g.
process.centralityBin.nonDefaultGlauberModel = cms.string("HydjetDrum5")
In the path you have to produce the bin integer
process.p = cms.Path(process.centralityBin * ...)

For the analyzer you have to provide the centrality bin label in the config
centralityBinLabel = cms.InputTag("centralityBin","HFtowers")

In the analyzer you read this label and then with getByToken you get the integer value for the bin
tag_ = consumes(iConfig.getParameter<edm::InputTag>("centralityBinLabel"));
iEvent.getByToken(tag_,cbin_);
int bin = *cbin_;

Instructions for 5_3_20

PbPb 2011 rereco in 5_3_20

  The centrality object with label hiCentrality is available in the reconstructed data.
Line: 71 to 123
  nonDefaultGlauberModel = cms.string("Hydjet_Drum"),
Changed:
<
<

Specific instructions for pPb 2013 in 5_3_20

>
>

pPb 2013 in 5_3_20

  The centrality object is NOT produced in the pp reconstruction so it has to be produced on the fly.
Line: 136 to 188
  )
Changed:
<
<

Old instructions

Specific instructions for pPb 2013 data and MC

>
>

Old instructions

<!--/twistyPlugin twikiMakeVisibleInline-->

Specific instructions for pPb 2013 data and MC

 
  • Check out the latest packages:

Line: 180 to 238
  )
Changed:
<
<

Specific instructions for analysis of 2010 data

>
>

Specific instructions for analysis of 2010 data

  Due to continuous changes in centrality tables, we have a common python configuration that loads the latest tables from the database. The way to use it is:
Line: 191 to 249
  When you see the title [Centrality UP] in the hn, please go to your Analysis2010 directory and do "cvs up".
Changed:
<
<

Specific instructions for analysis of 2011 data

>
>

Specific instructions for analysis of 2011 data

  For the 2011 data analysis there is no need anymore for these two lines in your config file:

Line: 208 to 266
  together with the global tag GR_R_44_V12::All (or GR_P_V27A::All?)
Changed:
<
<

Specific instructions for analysis of 2011 MC Simulations

>
>

Specific instructions for analysis of 2011 MC Simulations

  Always make sure you have an updated version of CmsHi/Analysis2010/. There are currently two HYDJET tunes used which require different settings of the HeavyIonGlobalParameters
Changed:
<
<

HYDJET 1.6 (Bass tune)

>
>

HYDJET 1.6 (Bass tune)

 If you are using the global tag STARTHI44_V7::All
from CmsHi.Analysis2010.CommonFunctions_cff import *

Line: 234 to 292
 
Changed:
<
<

HYDJET 1.8 (Drum tune)

>
>

HYDJET 1.8 (Drum tune)

 If you are using the global tag STARTHI44_V7::All or STARTHI44_V12::All
from CmsHi.Analysis2010.CommonFunctions_cff import *

Line: 247 to 305
 
Changed:
<
<

CentralityProvider

>
>

CentralityProvider

 
  • Tags needed:
Line: 300 to 358
 (*) To see which table you are supposed to use with a specific release, please consult the page: https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions
Changed:
<
<

CentralityBinProducer

>
>

CentralityBinProducer

  This module determines the bin of the event, corresponding to a given table. See the instructions for specifying centrality table below.
Line: 331 to 389
  where 0-2.5% means the most central events (smallest impact parameter) and 97.5-100% is the most peripheral events.
Changed:
<
<

Filtering on binned centrality in cmsRun

>
>

Filtering on binned centrality in cmsRun

  Please check out the head of the RecoHI/HiCentralityAlgos. Include the following in your cfg file:
Line: 368 to 426
  If you're using 20 centrality bins, this would select top 10-25%.
Changed:
<
<

Using the CentralityBins object in FWLite / Bare ROOT:

>
>

Using the CentralityBins object in FWLite / Bare ROOT:

  If you're using EDAnalyzers in full framework, please use the CentralityProvider described above to take care of the bins for you. It internally uses a CentralityBins object, and details for experts can be found in the expert page.
Line: 416 to 474
 
  • You need to compile your macro in order to run successfully.
Changed:
<
<

Links

>
>

Links

 
Added:
>
>
<!--/twistyPlugin-->
 

Contact

Changed:
<
<
>
>
 
Changed:
<
<
Responsible: YutingBai
>
>
Responsible: AnnaJuliaZsigmond

Revision 702015-01-13 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Line: 12 to 12
  For experts and developers: SWGuideHeavyIonCentralityExpert
Changed:
<
<

Specific instructions for PbPb 2011 rereco in 5_3_20

>
>

Specific instructions for PbPb 2011 rereco in 5_3_20

  The centrality object with label hiCentrality is available in the reconstructed data.

The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_20. The centrality object is produced by RecoHI/HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI/HiCentralityAlgos/python/HiCentrality_cfi.py

Changed:
<
<
To get the right configurations for event selection and centrality binning calibration (200 bins) you need to check out some packages setup in the centrality branch on github: here with
>
>
The centrality table with 200 bins using HFtowers is available in the GlobalTag FT_R_53_LV9. For usage, please see (*) below the alternative setup.

Alternatively, to get the right configurations for event selection and centrality binning calibration (200 bins) you can check out some packages setup in the centrality branch on github: here with

 
cmsrel CMSSW_5_3_20
Line: 31 to 33
  With this the HeavyIonsAnalysis/EventAnalyzer package is also checked out with an example config to test. More details needed to use the centrality object are given below.
Changed:
<
<
In the analyzer you need
>
>
(*) In the analyzer you need
 
#include "RecoHI/HiCentralityAlgos/interface/CentralityProvider.h"
...

Revision 692015-01-12 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Line: 8 to 8
  On this page the instructions for using the centrality object are summarized.
Changed:
<
<
For questions please connect to the centrality meetings on Tuesday 3 pm (Geneva time): https://twiki.cern.ch/twiki/bin/viewauth/CMS/PPbCentrality2014
>
>
For questions please connect to the centrality meetings on Tuesday 3 pm (Geneva time): https://twiki.cern.ch/twiki/bin/viewauth/CMS/HiCentrality2015
  For experts and developers: SWGuideHeavyIonCentralityExpert

Revision 682014-10-20 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Deleted:
<
<
Complete: 1
 
Changed:
<
<

Introduction

HeavyIonCentralityAnalysis

CentralityWishList

SWGuideHeavyIonCentralityExpert

Glauber parameters: https://twiki.cern.ch/twiki/bin/view/Main/LHCGlauberBaseline

Currently we have only the tables for the HF rechit energy in the database. The tables from Hydjet at 4 TeV and 2.8 TeV, and AMPT at 2.8 TeV available.

One can inspect the content of tags in the conditions database with the web tool below:

http://cms-conddb.cern.ch/payload_inspector/?dbService=Offline+production&Account=PHYSICSTOOLS+for+31X

>
>
 
Added:
>
>

Introduction

 
Changed:
<
<
Currently, the production of centrality variables is a part of the standard reconstruction sequence for heavy ions. Therefore one has the product by default in any file with RECO or AOD content. If you need to reproduce the centrality object from RAW or RECO, please consult the expert page.
>
>
On this page the instructions for using the centrality object are summarized.
 
Added:
>
>
For questions please connect to the centrality meetings on Tuesday 3 pm (Geneva time): https://twiki.cern.ch/twiki/bin/viewauth/CMS/PPbCentrality2014
 
Changed:
<
<

Troubleshooting

Please follow this link to see possible problems.
>
>
For experts and developers: SWGuideHeavyIonCentralityExpert
 

Specific instructions for PbPb 2011 rereco in 5_3_20

Line: 151 to 134
  )
Changed:
<
<

Specific instructions for pPb 2013 data and MC

>
>

Old instructions

Specific instructions for pPb 2013 data and MC

 
  • Check out the latest packages:

Line: 193 to 178
  )
Changed:
<
<

Specific instructions for analysis of 2010 data

>
>

Specific instructions for analysis of 2010 data

  Due to continuous changes in centrality tables, we have a common python configuration that loads the latest tables from the database. The way to use it is:
Line: 204 to 189
  When you see the title [Centrality UP] in the hn, please go to your Analysis2010 directory and do "cvs up".
Changed:
<
<

Specific instructions for analysis of 2011 data

>
>

Specific instructions for analysis of 2011 data

  For the 2011 data analysis there is no need anymore for these two lines in your config file:

Line: 221 to 206
  together with the global tag GR_R_44_V12::All (or GR_P_V27A::All?)
Changed:
<
<

Specific instructions for analysis of 2011 MC Simulations

>
>

Specific instructions for analysis of 2011 MC Simulations

  Always make sure you have an updated version of CmsHi/Analysis2010/. There are currently two HYDJET tunes used which require different settings of the HeavyIonGlobalParameters
Changed:
<
<

HYDJET 1.6 (Bass tune)

>
>

HYDJET 1.6 (Bass tune)

 If you are using the global tag STARTHI44_V7::All
from CmsHi.Analysis2010.CommonFunctions_cff import *

Line: 247 to 232
 
Changed:
<
<

HYDJET 1.8 (Drum tune)

>
>

HYDJET 1.8 (Drum tune)

 If you are using the global tag STARTHI44_V7::All or STARTHI44_V12::All
from CmsHi.Analysis2010.CommonFunctions_cff import *

Line: 260 to 245
 
Changed:
<
<

CentralityProvider

>
>

CentralityProvider

 
  • Tags needed:
Line: 313 to 298
 (*) To see which table you are supposed to use with a specific release, please consult the page: https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions
Changed:
<
<

CentralityBinProducer

>
>

CentralityBinProducer

  This module determines the bin of the event, corresponding to a given table. See the instructions for specifying centrality table below.
Line: 346 to 329
  where 0-2.5% means the most central events (smallest impact parameter) and 97.5-100% is the most peripheral events.
Changed:
<
<

Filtering on binned centrality in cmsRun

>
>

Filtering on binned centrality in cmsRun

  Please check out the head of the RecoHI/HiCentralityAlgos. Include the following in your cfg file:
Line: 383 to 366
  If you're using 20 centrality bins, this would select top 10-25%.
Changed:
<
<

Using the CentralityBins object in FWLite / Bare ROOT:

>
>

Using the CentralityBins object in FWLite / Bare ROOT:

  If you're using EDAnalyzers in full framework, please use the CentralityProvider described above to take care of the bins for you. It internally uses a CentralityBins object, and details for experts can be found in the expert page.
Line: 433 to 414
 
  • You need to compile your macro in order to run successfully.
Added:
>
>

Links

 

Contact

Deleted:
<
<

Review status

Reviewer/Editor and Date Comments
PhilipAllfrey - 27 Nov 2009 minor editing and expanded some sections
YutingBai - 24 Nov 2009 created page as part of documentation review
 Responsible: YutingBai
\ No newline at end of file

Revision 672014-09-17 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 1
Line: 52 to 52
 
#include "RecoHI/HiCentralityAlgos/interface/CentralityProvider.h"
...
Changed:
<
<
CentralityProvider * centProvider;
>
>
CentralityProvider * centProvider = 0;
 ... if (centProvider) centProvider = new CentralityProvider(iSetup); centProvider->newEvent(iEvent,iSetup);
Line: 109 to 109
 
#include "RecoHI/HiCentralityAlgos/interface/CentralityProvider.h"
...
Changed:
<
<
CentralityProvider * centProvider;
>
>
CentralityProvider * centProvider = 0;
 ... if (centProvider) centProvider = new CentralityProvider(iSetup); centProvider->newEvent(iEvent,iSetup);

Revision 662014-07-28 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 1
Line: 35 to 35
  The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_20. The centrality object is produced by RecoHI/HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI/HiCentralityAlgos/python/HiCentrality_cfi.py
Changed:
<
<
To get the right configurations for event selection and centrality binning calibration you need to check out some packages setup in the centrality branch on github: here with
>
>
To get the right configurations for event selection and centrality binning calibration (200 bins) you need to check out some packages setup in the centrality branch on github: here with
 
cmsrel CMSSW_5_3_20
Line: 62 to 62
  In the config file you need
Added:
>
>
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') process.GlobalTag.globaltag = 'GR_R_53_LV6::All'

process.load('HeavyIonsAnalysis.Configuration.collisionEventSelection_cff')

 from CommonFunctions_cff import * overrideCentrality(process)
Line: 70 to 75
  nonDefaultGlauberModel = cms.string(""), centralitySrc = cms.InputTag("hiCentrality") )
Added:
>
>
process.p = cms.Path(process.hltMinBiasHFOrBSC * process.collisionEventSelection * ...)

For MC config file the only difference is in the following parameters

process.GlobalTag.globaltag = '???::All'

  nonDefaultGlauberModel = cms.string("Hydjet_Drum"),

Specific instructions for pPb 2013 in 5_3_20

The centrality object is NOT produced in the pp reconstruction so it has to be produced on the fly.

The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_20. The centrality object can be produced by RecoHI/HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI/HiCentralityAlgos/python/pACentrality_cfi.py

To get the right configurations for event selection and centrality binning calibration (100 bins) you need to check out some packages setup in the centrality branch on github: here with

cmsrel CMSSW_5_3_20
cd CMSSW_5_3_20/src
cmsenv
git cms-addpkg RecoHI/HiCentralityAlgos
git cms-merge-topic -u CmsHI:centrality_5_3_20
scram b

With this the HeavyIonsAnalysis/EventAnalyzer package is also checked out with an example config to test. More details needed to use the centrality object are given below.

In the analyzer you need

#include "RecoHI/HiCentralityAlgos/interface/CentralityProvider.h"
...
CentralityProvider * centProvider;
...
if (!centProvider) centProvider = new CentralityProvider(iSetup);
centProvider->newEvent(iEvent,iSetup);
const reco::Centrality* centrality = centProvider->raw();
hiBin = centProvider->getBin();

In the config file you need

process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
process.GlobalTag.globaltag = 'GR_P_V43D::All'

process.load('HeavyIonsAnalysis.Configuration.collisionEventSelection_cff')

process.load('HeavyIonsAnalysis.VertexAnalysis.PAPileUpVertexFilter_cff')

from HeavyIonsAnalysis.Configuration.CommonFunctions_cff import *
overrideCentrality(process)

process.HeavyIonGlobalParameters = cms.PSet(
  centralityVariable = cms.string("HFtowersTrunc"), #or HFtowersPlusTrunc
  nonDefaultGlauberModel = cms.string(""),
  centralitySrc = cms.InputTag("pACentrality"),
  pPbRunFlip = cms.untracked.uint32(211313)
  )

process.p = cms.Path(process.hltZeroBiasSingleTrack * process.PAcollisionEventSelection * process.pileupVertexFilterCutGplus * process.siPixelRecHits * process.pACentrality * ...)

For MC config file the only difference is in the following parameters

process.GlobalTag.globaltag = 'STARTHI53_V27::All'

process.HeavyIonGlobalParameters = cms.PSet(
  centralityVariable = cms.string("HFtowersTrunc"), # or HFtowersPlusTrunc
  nonDefaultGlauberModel = cms.string("Hijing"),
  centralitySrc = cms.InputTag("pACentrality"),
  pPbRunFlip = cms.untracked.uint32(99999999)    # change to pPbRunFlip = cms.untracked.uint32(1) for Pbp MC sample
  )
 

Specific instructions for pPb 2013 data and MC

Line: 98 to 177
 process.load('HeavyIonsAnalysis.Configuration.collisionEventSelection_cff') process.load('Appeltel.RpPbAnalysis.PAPileUpVertexFilter_cff')
Changed:
<
<
process.p = cms.Path(process.PAcollisionEventSelection * process.pileupVertexFilterCutGplus * process.pACentrality_step * ...)
>
>
process.p = cms.Path( * process.PAcollisionEventSelection * process.pileupVertexFilterCutGplus * process.pACentrality_step * ...)
 

  • Example config file here (creates hiEvtAnalyzer/HiTree)

Revision 652014-07-28 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 1
Changed:
<
<

Introduction

>
>

Introduction

  HeavyIonCentralityAnalysis
Line: 26 to 26
 Currently, the production of centrality variables is a part of the standard reconstruction sequence for heavy ions. Therefore one has the product by default in any file with RECO or AOD content. If you need to reproduce the centrality object from RAW or RECO, please consult the expert page.
Changed:
<
<

Troubleshooting

>
>

Troubleshooting

 Please follow this link to see possible problems.
Changed:
<
<

Specific instructions for PbPb 2011 rereco in 5_3_16

>
>

Specific instructions for PbPb 2011 rereco in 5_3_20

  The centrality object with label hiCentrality is available in the reconstructed data.
Changed:
<
<
Every information is set up in the forest branch: https://github.com/CmsHI/cmssw/tree/forest_CMSSW_5_3_19
>
>
The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_20. The centrality object is produced by RecoHI/HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI/HiCentralityAlgos/python/HiCentrality_cfi.py
 
Changed:
<
<
The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_16. The centrality object is produced by RecoHI/HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI/HiCentralityAlgos/python/HiCentrality_cfi.py
>
>
To get the right configurations for event selection and centrality binning calibration you need to check out some packages setup in the centrality branch on github: here with

cmsrel CMSSW_5_3_20
cd CMSSW_5_3_20/src
cmsenv
git cms-merge-topic -u CmsHI:centrality_5_3_20
scram b
No extra code is needed from the reconstruction packages because everything is in the release.

With this the HeavyIonsAnalysis/EventAnalyzer package is also checked out with an example config to test. More details needed to use the centrality object are given below.

  In the analyzer you need
Line: 49 to 60
 hiBin = centProvider->getBin();
Deleted:
<
<
Example analyzer: https://github.com/CmsHI/cmssw/blob/forest_53X_04/HeavyIonsAnalysis/EventAnalysis/src/HiEvtAnalyzer.cc
 In the config file you need
from HeavyIonsAnalysis.Configuration.CommonFunctions_cff import *
Line: 62 to 72
  )
Changed:
<
<

Specific instructions for pPb 2013 data and MC

>
>

Specific instructions for pPb 2013 data and MC

 
  • Check out the latest packages:

Line: 104 to 114
  )
Changed:
<
<

Specific instructions for analysis of 2010 data

>
>

Specific instructions for analysis of 2010 data

  Due to continuous changes in centrality tables, we have a common python configuration that loads the latest tables from the database. The way to use it is:
Line: 115 to 125
  When you see the title [Centrality UP] in the hn, please go to your Analysis2010 directory and do "cvs up".
Changed:
<
<

Specific instructions for analysis of 2011 data

>
>

Specific instructions for analysis of 2011 data

  For the 2011 data analysis there is no need anymore for these two lines in your config file:

Line: 132 to 142
  together with the global tag GR_R_44_V12::All (or GR_P_V27A::All?)
Changed:
<
<

Specific instructions for analysis of 2011 MC Simulations

>
>

Specific instructions for analysis of 2011 MC Simulations

  Always make sure you have an updated version of CmsHi/Analysis2010/. There are currently two HYDJET tunes used which require different settings of the HeavyIonGlobalParameters
Line: 158 to 168
 
Changed:
<
<

HYDJET 1.8 (Drum tune)

>
>

HYDJET 1.8 (Drum tune)

 If you are using the global tag STARTHI44_V7::All or STARTHI44_V12::All
from CmsHi.Analysis2010.CommonFunctions_cff import *

Line: 171 to 181
 
Changed:
<
<

CentralityProvider

>
>

CentralityProvider

 
  • Tags needed:
Line: 226 to 236
 
Changed:
<
<

CentralityBinProducer

>
>

CentralityBinProducer

  This module determines the bin of the event, corresponding to a given table. See the instructions for specifying centrality table below.
Line: 257 to 267
  where 0-2.5% means the most central events (smallest impact parameter) and 97.5-100% is the most peripheral events.
Changed:
<
<

Filtering on binned centrality in cmsRun

>
>

Filtering on binned centrality in cmsRun

  Please check out the head of the RecoHI/HiCentralityAlgos. Include the following in your cfg file:
Line: 296 to 306
 
Changed:
<
<

Using the CentralityBins object in FWLite / Bare ROOT:

>
>

Using the CentralityBins object in FWLite / Bare ROOT:

  If you're using EDAnalyzers in full framework, please use the CentralityProvider described above to take care of the bins for you. It internally uses a CentralityBins object, and details for experts can be found in the expert page.
Line: 345 to 355
 
  • You need to compile your macro in order to run successfully.
Changed:
<
<

Contact

>
>

Contact

 

Revision 642014-07-03 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 1
Line: 33 to 33
  The centrality object with label hiCentrality is available in the reconstructed data.
Changed:
<
<
Every information is set up in the forest branch: https://github.com/CmsHI/cmssw/tree/forest_53X_04
>
>
Every information is set up in the forest branch: https://github.com/CmsHI/cmssw/tree/forest_CMSSW_5_3_19
  The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_16. The centrality object is produced by RecoHI/HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI/HiCentralityAlgos/python/HiCentrality_cfi.py

Revision 632014-06-26 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 1
Line: 69 to 69
 cvs co -r pPbProd_v05 DataFormats/HeavyIonEvent cvs co -r pPbProd_v10 RecoHI/HiCentralityAlgos cvs co -r pPbProd_v09 HeavyIonsAnalysis/Configuration
Deleted:
<
<
cvs co -r HiForest_V02_02 -d Appeltel/RpPbAnalysis UserCode/Appeltel/RpPbAnalysis Warning, important To be confirmed by centrality expert, but the above tag does not compile anymore, use instead

 cvs co -r HiForest_V02_03 -d Appeltel/RpPbAnalysis UserCode/Appeltel/RpPbAnalysis

Revision 622014-06-17 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 1
Line: 29 to 29
 

Troubleshooting

Please follow this link to see possible problems.
Added:
>
>

Specific instructions for PbPb 2011 rereco in 5_3_16

The centrality object with label hiCentrality is available in the reconstructed data.

Every information is set up in the forest branch: https://github.com/CmsHI/cmssw/tree/forest_53X_04

The release can be found in github: https://github.com/cms-sw/cmssw/tree/CMSSW_5_3_16. The centrality object is produced by RecoHI/HiCentralityAlgos/plugins/CentralityProducer.cc with settings given in RecoHI/HiCentralityAlgos/python/HiCentrality_cfi.py

In the analyzer you need

#include "RecoHI/HiCentralityAlgos/interface/CentralityProvider.h"
...
CentralityProvider * centProvider;
...
if (!centProvider) centProvider = new CentralityProvider(iSetup);
centProvider->newEvent(iEvent,iSetup);
const reco::Centrality* centrality = centProvider->raw();
hiBin = centProvider->getBin();

Example analyzer: https://github.com/CmsHI/cmssw/blob/forest_53X_04/HeavyIonsAnalysis/EventAnalysis/src/HiEvtAnalyzer.cc

In the config file you need

from HeavyIonsAnalysis.Configuration.CommonFunctions_cff import *
overrideCentrality(process)
process.HeavyIonGlobalParameters = cms.PSet(
    centralityVariable = cms.string("HFtowers"),
    nonDefaultGlauberModel = cms.string(""),
    centralitySrc = cms.InputTag("hiCentrality")
    )
 

Specific instructions for pPb 2013 data and MC

Revision 602014-02-18 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 50 to 50
 overrideCentrality(process)

process.HeavyIonGlobalParameters = cms.PSet(

Changed:
<
<
centralityVariable = cms.string("HFtowersPlusTrunc"), #or HFtowersTrunc
>
>
centralityVariable = cms.string("HFtowersTrunc"), #or HFtowersPlusTrunc
  nonDefaultGlauberModel = cms.string(""), centralitySrc = cms.InputTag("pACentrality"), pPbRunFlip = cms.untracked.uint32(211313)
Line: 69 to 69
 
  • MC config file the only difference is in the following parameters
process.HeavyIonGlobalParameters = cms.PSet(

Changed:
<
<
centralityVariable = cms.string("HFtowersPlusTrunc"),
>
>
centralityVariable = cms.string("HFtowersTrunc"), # or HFtowersPlusTrunc
  nonDefaultGlauberModel = cms.string("Hijing"), centralitySrc = cms.InputTag("pACentrality"), pPbRunFlip = cms.untracked.uint32(99999999) # change to pPbRunFlip = cms.untracked.uint32(1) for Pbp MC sample

Revision 592013-10-14 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 131 to 131
 

HYDJET 1.8 (Drum tune)

Changed:
<
<
If you are using the global tag STARTHI44_V7::All
>
>
If you are using the global tag STARTHI44_V7::All or STARTHI44_V12::All
 
from CmsHi.Analysis2010.CommonFunctions_cff import *
overrideCentrality(process)

Line: 142 to 142
  )
Deleted:
<
<
If you are using the global tag STARTHI44_V12::All
process.HeavyIonGlobalParameters = cms.PSet(
 centralitySrc = cms.InputTag("hiCentrality"),
 centralityVariable = cms.string("HFtowers"),
 nonDefaultGlauberModel = cms.string("Hydjet_Drum")
 )
 

CentralityProvider

Revision 582013-07-17 - ShengquanTuo

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 72 to 72
  centralityVariable = cms.string("HFtowersPlusTrunc"), nonDefaultGlauberModel = cms.string("Hijing"), centralitySrc = cms.InputTag("pACentrality"),
Changed:
<
<
pPbRunFlip = cms.untracked.uint32(99999999)
>
>
pPbRunFlip = cms.untracked.uint32(99999999) # change to pPbRunFlip = cms.untracked.uint32(1) for Pbp MC sample
  )

Revision 572013-07-06 - TorstenDahms

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 39 to 39
 cvs co -r pPbProd_v09 HeavyIonsAnalysis/Configuration cvs co -r HiForest_V02_02 -d Appeltel/RpPbAnalysis UserCode/Appeltel/RpPbAnalysis
Added:
>
>
Warning, important To be confirmed by centrality expert, but the above tag does not compile anymore, use instead
cvs co -r HiForest_V02_03 -d Appeltel/RpPbAnalysis UserCode/Appeltel/RpPbAnalysis
 
  • In the config file:

Revision 562013-05-14 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 34 to 34
 
  • Check out the latest packages:

Changed:
<
<
cvs co -r pPbProd_v04 DataFormats/HeavyIonEvent
>
>
cvs co -r pPbProd_v05 DataFormats/HeavyIonEvent
 cvs co -r pPbProd_v10 RecoHI/HiCentralityAlgos cvs co -r pPbProd_v09 HeavyIonsAnalysis/Configuration cvs co -r HiForest_V02_02 -d Appeltel/RpPbAnalysis UserCode/Appeltel/RpPbAnalysis
Line: 46 to 46
 overrideCentrality(process)

process.HeavyIonGlobalParameters = cms.PSet(

Changed:
<
<
centralityVariable = cms.string("HFtowersPlusTrunc"),
>
>
centralityVariable = cms.string("HFtowersPlusTrunc"), #or HFtowersTrunc
  nonDefaultGlauberModel = cms.string(""), centralitySrc = cms.InputTag("pACentrality"), pPbRunFlip = cms.untracked.uint32(211313)

Revision 552013-04-12 - MichaelGardner

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 56 to 56
 process.load('HeavyIonsAnalysis.Configuration.collisionEventSelection_cff') process.load('Appeltel.RpPbAnalysis.PAPileUpVertexFilter_cff')
Changed:
<
<
process.p = cms.Path(process.PAcollisionEventSelection * pileupVertexFilterCutGplus * process.pACentrality_step * ...)
>
>
process.p = cms.Path(process.PAcollisionEventSelection * process.pileupVertexFilterCutGplus * process.pACentrality_step * ...)
 

  • Example config file here (creates hiEvtAnalyzer/HiTree)

Revision 542013-02-25 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 35 to 35
 
  • Check out the latest packages:
cvs co -r pPbProd_v04 DataFormats/HeavyIonEvent

Changed:
<
<
cvs co -r pPbProd_v06 RecoHI/HiCentralityAlgos cvs co -r pPbProd_v07 HeavyIonsAnalysis/Configuration cvs co -d Appeltel/RpPbAnalysis UserCode/Appeltel/RpPbAnalysis
>
>
cvs co -r pPbProd_v10 RecoHI/HiCentralityAlgos cvs co -r pPbProd_v09 HeavyIonsAnalysis/Configuration cvs co -r HiForest_V02_02 -d Appeltel/RpPbAnalysis UserCode/Appeltel/RpPbAnalysis
 

  • In the config file:
Line: 56 to 56
 process.load('HeavyIonsAnalysis.Configuration.collisionEventSelection_cff') process.load('Appeltel.RpPbAnalysis.PAPileUpVertexFilter_cff')
Changed:
<
<
process.p = cms.Path(process.PAcollisionEventSelection * pileupVertexFilterCutGplus * process.pACentrality * ...)
>
>
process.p = cms.Path(process.PAcollisionEventSelection * pileupVertexFilterCutGplus * process.pACentrality_step * ...)
 

  • Example config file here (creates hiEvtAnalyzer/HiTree)

Revision 532013-02-19 - TorstenDahms

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 54 to 54
  process.load('RecoHI.HiCentralityAlgos.HiCentrality_cfi') process.load('HeavyIonsAnalysis.Configuration.collisionEventSelection_cff')
Changed:
<
<
process.load('Appeltel.RpPbAnalysis/python.PAPileUpVertexFilter_cff')
>
>
process.load('Appeltel.RpPbAnalysis.PAPileUpVertexFilter_cff')
  process.p = cms.Path(process.PAcollisionEventSelection * pileupVertexFilterCutGplus * process.pACentrality * ...)

Revision 522013-02-19 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 11 to 11
  CentralityWishList
Deleted:
<
<
CentralityAN
 SWGuideHeavyIonCentralityExpert

Glauber parameters:

Revision 512013-02-18 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5

Revision 502013-02-16 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 37 to 37
 
  • Check out the latest packages:
cvs co -r pPbProd_v04 DataFormats/HeavyIonEvent

Changed:
<
<
cvs co -r pPbProd_v05 RecoHI/HiCentralityAlgos
>
>
cvs co -r pPbProd_v06 RecoHI/HiCentralityAlgos
 cvs co -r pPbProd_v07 HeavyIonsAnalysis/Configuration cvs co -d Appeltel/RpPbAnalysis UserCode/Appeltel/RpPbAnalysis

Revision 492013-02-11 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 39 to 39
 cvs co -r pPbProd_v04 DataFormats/HeavyIonEvent cvs co -r pPbProd_v05 RecoHI/HiCentralityAlgos cvs co -r pPbProd_v07 HeavyIonsAnalysis/Configuration
Added:
>
>
cvs co -d Appeltel/RpPbAnalysis UserCode/Appeltel/RpPbAnalysis
 

  • In the config file:
Line: 54 to 55
  )

process.load('RecoHI.HiCentralityAlgos.HiCentrality_cfi')

Added:
>
>
process.load('HeavyIonsAnalysis.Configuration.collisionEventSelection_cff') process.load('Appeltel.RpPbAnalysis/python.PAPileUpVertexFilter_cff')
 
Changed:
<
<
process.p = cms.Path(process.PAcollisionEventSelection * process.pACentrality * ...)
>
>
process.p = cms.Path(process.PAcollisionEventSelection * pileupVertexFilterCutGplus * process.pACentrality * ...)
 

  • Example config file here (creates hiEvtAnalyzer/HiTree)

Revision 482013-02-04 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 50 to 50
  centralityVariable = cms.string("HFtowersPlusTrunc"), nonDefaultGlauberModel = cms.string(""), centralitySrc = cms.InputTag("pACentrality"),
Changed:
<
<
pPbRunFlip = cms.untracked.uint32(99999999)
>
>
pPbRunFlip = cms.untracked.uint32(211313)
  )

process.load('RecoHI.HiCentralityAlgos.HiCentrality_cfi')

Revision 472013-01-30 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 38 to 38
 
cvs co -r pPbProd_v04 DataFormats/HeavyIonEvent
cvs co -r pPbProd_v05 RecoHI/HiCentralityAlgos

Changed:
<
<
cvs co -r pPbProd_v05 HeavyIonsAnalysis/Configuration
>
>
cvs co -r pPbProd_v07 HeavyIonsAnalysis/Configuration
 

  • In the config file:

Revision 462013-01-23 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 37 to 37
 
  • Check out the latest packages:
cvs co -r pPbProd_v04 DataFormats/HeavyIonEvent

Changed:
<
<
cvs co -r pPbProd_v04 RecoHI/HiCentralityAlgos cvs co -r pPbProd_v03 HeavyIonsAnalysis/Configuration
>
>
cvs co -r pPbProd_v05 RecoHI/HiCentralityAlgos cvs co -r pPbProd_v05 HeavyIonsAnalysis/Configuration
 

  • In the config file:

Revision 452013-01-20 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 50 to 50
  centralityVariable = cms.string("HFtowersPlusTrunc"), nonDefaultGlauberModel = cms.string(""), centralitySrc = cms.InputTag("pACentrality"),
Changed:
<
<
pPbRunFlip = cms.uint32(99999999)
>
>
pPbRunFlip = cms.untracked.uint32(99999999)
  )

process.load('RecoHI.HiCentralityAlgos.HiCentrality_cfi')

Line: 67 to 67
  centralityVariable = cms.string("HFtowersPlusTrunc"), nonDefaultGlauberModel = cms.string("Hijing"), centralitySrc = cms.InputTag("pACentrality"),
Changed:
<
<
pPbRunFlip = cms.uint32(99999999)
>
>
pPbRunFlip = cms.untracked.uint32(99999999)
  )

Revision 442013-01-19 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 32 to 32
 Please follow this link to see possible problems.
Changed:
<
<

Specific instructions for pPb 2013 data

>
>

Specific instructions for pPb 2013 data and MC

 
  • Check out the latest packages:

Changed:
<
<
cvs co -r pPbProd_v1 DataFormats/HeavyIonEvent cvs co -r pPbProd_v1 RecoHI/HiCentralityAlgos cvs co -r pPbProd_v1 HeavyIonsAnalysis/Configuration
>
>
cvs co -r pPbProd_v04 DataFormats/HeavyIonEvent cvs co -r pPbProd_v04 RecoHI/HiCentralityAlgos cvs co -r pPbProd_v03 HeavyIonsAnalysis/Configuration
 

  • In the config file:
Line: 49 to 49
 process.HeavyIonGlobalParameters = cms.PSet( centralityVariable = cms.string("HFtowersPlusTrunc"), nonDefaultGlauberModel = cms.string(""),
Changed:
<
<
centralitySrc = cms.InputTag("pACentrality")
>
>
centralitySrc = cms.InputTag("pACentrality"), pPbRunFlip = cms.uint32(99999999)
  )

process.load('RecoHI.HiCentralityAlgos.HiCentrality_cfi')

Line: 59 to 60
 
  • Example config file here (creates hiEvtAnalyzer/HiTree)
  • The analyzers don't have to be changed but if you use histograms there are 100 bins instead of 40.
Deleted:
<
<
  • There are already new tags preparing for the beam direction change
 
Added:
>
>
  • MC config file the only difference is in the following parameters
process.HeavyIonGlobalParameters = cms.PSet(
  centralityVariable = cms.string("HFtowersPlusTrunc"),
  nonDefaultGlauberModel = cms.string("Hijing"),
  centralitySrc = cms.InputTag("pACentrality"),
  pPbRunFlip = cms.uint32(99999999)
  )
 

Specific instructions for analysis of 2010 data

Revision 432013-01-16 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 59 to 59
 
  • Example config file here (creates hiEvtAnalyzer/HiTree)
  • The analyzers don't have to be changed but if you use histograms there are 100 bins instead of 40.
Added:
>
>
  • There are already new tags preparing for the beam direction change
 

Specific instructions for analysis of 2010 data

Revision 422013-01-15 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 52 to 52
  centralitySrc = cms.InputTag("pACentrality") )
Changed:
<
<
process.load('Configuration.StandardSequences.ReconstructionHeavyIons_cff')
>
>
process.load('RecoHI.HiCentralityAlgos.HiCentrality_cfi')
  process.p = cms.Path(process.PAcollisionEventSelection * process.pACentrality * ...)

Revision 412013-01-14 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 54 to 54
  process.load('Configuration.StandardSequences.ReconstructionHeavyIons_cff')
Changed:
<
<
process.p = cms.Path(PAcollisionEventSelection * process.pACentrality * ...)
>
>
process.p = cms.Path(process.PAcollisionEventSelection * process.pACentrality * ...)
 

  • Example config file here (creates hiEvtAnalyzer/HiTree)

Revision 402013-01-14 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 38 to 38
 
cvs co -r pPbProd_v1 DataFormats/HeavyIonEvent
cvs co -r pPbProd_v1 RecoHI/HiCentralityAlgos

Added:
>
>
cvs co -r pPbProd_v1 HeavyIonsAnalysis/Configuration
 

  • In the config file:

Added:
>
>
from CommonFunctions_cff import * overrideCentrality(process)
 process.HeavyIonGlobalParameters = cms.PSet( centralityVariable = cms.string("HFtowersPlusTrunc"), nonDefaultGlauberModel = cms.string(""),
Line: 50 to 54
  process.load('Configuration.StandardSequences.ReconstructionHeavyIons_cff')
Changed:
<
<
process.p = cms.Path(... * process.pACentrality * ...)
>
>
process.p = cms.Path(PAcollisionEventSelection * process.pACentrality * ...)
 
Changed:
<
<
  • Example config file here.
>
>
  • Example config file here (creates hiEvtAnalyzer/HiTree)
 
  • The analyzers don't have to be changed but if you use histograms there are 100 bins instead of 40.

Revision 392013-01-10 - AnnaJuliaZsigmond

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 34 to 32
 Please follow this link to see possible problems.
Added:
>
>

Specific instructions for pPb 2013 data

  • Check out the latest packages:
cvs co -r pPbProd_v1 DataFormats/HeavyIonEvent
cvs co -r pPbProd_v1 RecoHI/HiCentralityAlgos

  • In the config file:
process.HeavyIonGlobalParameters = cms.PSet(
  centralityVariable = cms.string("HFtowersPlusTrunc"),
  nonDefaultGlauberModel = cms.string(""),
  centralitySrc = cms.InputTag("pACentrality")
  )

process.load('Configuration.StandardSequences.ReconstructionHeavyIons_cff')

process.p = cms.Path(... * process.pACentrality * ...)

  • Example config file here.
  • The analyzers don't have to be changed but if you use histograms there are 100 bins instead of 40.
 

Specific instructions for analysis of 2010 data

Due to continuous changes in centrality tables, we have a common python configuration that loads the latest tables from the database. The way to use it is:

Revision 382012-03-30 - YetkinYilmaz

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 8 to 8
  HeavyIonCentralityAnalysis
Added:
>
>
CentralityWishList
 CentralityAN

SWGuideHeavyIonCentralityExpert

Revision 372012-02-21 - TorstenDahms

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 64 to 64
 Always make sure you have an updated version of CmsHi/Analysis2010/. There are currently two HYDJET tunes used which require different settings of the HeavyIonGlobalParameters

HYDJET 1.6 (Bass tune)

Added:
>
>
If you are using the global tag STARTHI44_V7::All
 
from CmsHi.Analysis2010.CommonFunctions_cff import *
overrideCentrality(process)

Line: 73 to 74
  nonDefaultGlauberModel = cms.string("Hydjet_Bass") )
Changed:
<
<
together with the global tag STARTHI44_V7::All
>
>
If you are using the global tag STARTHI44_V12::All
process.HeavyIonGlobalParameters = cms.PSet(
 centralitySrc = cms.InputTag("hiCentrality"),
 centralityVariable = cms.string("HFtowers"),
 nonDefaultGlauberModel = cms.string("Hydjet_Bass")
 )
 

HYDJET 1.8 (Drum tune)

Added:
>
>
If you are using the global tag STARTHI44_V7::All
 
from CmsHi.Analysis2010.CommonFunctions_cff import *
overrideCentrality(process)

Line: 85 to 96
  nonDefaultGlauberModel = cms.string("Hydjet_Drum") )
Changed:
<
<
together with the global tag STARTHI44_V7::All
>
>
If you are using the global tag STARTHI44_V12::All
process.HeavyIonGlobalParameters = cms.PSet(
 centralitySrc = cms.InputTag("hiCentrality"),
 centralityVariable = cms.string("HFtowers"),
 nonDefaultGlauberModel = cms.string("Hydjet_Drum")
 )
 

CentralityProvider

Revision 362012-02-03 - TorstenDahms

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 42 to 42
  When you see the title [Centrality UP] in the hn, please go to your Analysis2010 directory and do "cvs up".
Added:
>
>

Specific instructions for analysis of 2011 data

 
Added:
>
>
For the 2011 data analysis there is no need anymore for these two lines in your config file:
from CmsHi.Analysis2010.CommonFunctions_cff import *
overrideCentrality(process)
The HeavyIonGlobalParameters settings are
process.HeavyIonGlobalParameters = cms.PSet(
  centralityVariable = cms.string("HFtowers"),
  nonDefaultGlauberModel = cms.string(""),
  centralitySrc = cms.InputTag("hiCentrality")
  )
together with the global tag GR_R_44_V12::All (or GR_P_V27A::All?)
 
Added:
>
>

Specific instructions for analysis of 2011 MC Simulations

 
Added:
>
>
Always make sure you have an updated version of CmsHi/Analysis2010/. There are currently two HYDJET tunes used which require different settings of the HeavyIonGlobalParameters

HYDJET 1.6 (Bass tune)

from CmsHi.Analysis2010.CommonFunctions_cff import *
overrideCentrality(process)
process.HeavyIonGlobalParameters = cms.PSet(
 centralitySrc = cms.InputTag("hiCentrality"),
 centralityVariable = cms.string("HFtowers"),
 nonDefaultGlauberModel = cms.string("Hydjet_Bass")
 )
together with the global tag STARTHI44_V7::All

HYDJET 1.8 (Drum tune)

from CmsHi.Analysis2010.CommonFunctions_cff import *
overrideCentrality(process)
process.HeavyIonGlobalParameters = cms.PSet(
 centralitySrc = cms.InputTag("hiCentrality"),
 centralityVariable = cms.string("HFtowers"),
 nonDefaultGlauberModel = cms.string("Hydjet_Drum")
 )
together with the global tag STARTHI44_V7::All
 

CentralityProvider

Revision 352011-09-08 - YetkinYilmaz

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 8 to 8
  HeavyIonCentralityAnalysis
Added:
>
>
CentralityAN
 SWGuideHeavyIonCentralityExpert

Glauber parameters:

Revision 342011-03-24 - EdWenger

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 6 to 6
 

Introduction

Changed:
<
<
HeavyIonCentralityAnalysis
>
>
HeavyIonCentralityAnalysis
  SWGuideHeavyIonCentralityExpert
Line: 85 to 85
 
  • Add in your cfg:


Changed:
<
<
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
>
>
process.load('Configuration.StandardSequences.FrontierConditions_CMS.GlobalTag_cff')
 process.GlobalTag.globaltag = 'MC_38Y_V13::All' # Make sure you have the right global tag (*) process.HeavyIonGlobalParameters = cms.PSet( centralityVariable = cms.string("HFhits"),

Revision 332010-12-01 - MagdalenaMalek

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 80 to 80
 
Added:
>
>
4) set the pointer centrality_ = 0 explicitly in the constructor
 
  • Add in your cfg:


Revision 322010-11-20 - KarolisTamosiunas

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 123 to 123
 
0 0-2.5%
1 2.5-5%
... ...
Changed:
<
<
38 35-37.5%
39 37.5-40%
>
>
38 95-97.5%
39 97.5-100%
 
Changed:
<
<
where 0-2.5% means the most central events (smallest impact parameter) and 37.5-40% is the most peripheral events.
>
>
where 0-2.5% means the most central events (smallest impact parameter) and 97.5-100% is the most peripheral events.
 

Filtering on binned centrality in cmsRun

Revision 312010-11-12 - YetkinYilmaz

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Changed:
<
<

Goal of this page

The goal of this page is to document the reconstruction and binning of centrality in heavy ion events—the location of the code and the details of the implementation.

Introduction

>
>

Introduction

  HeavyIonCentralityAnalysis
Added:
>
>
SWGuideHeavyIonCentralityExpert
 Glauber parameters: https://twiki.cern.ch/twiki/bin/view/Main/LHCGlauberBaseline
Deleted:
<
<

Details of recent tables

 Currently we have only the tables for the HF rechit energy in the database. The tables from Hydjet at 4 TeV and 2.8 TeV, and AMPT at 2.8 TeV available.

One can inspect the content of tags in the conditions database with the web tool below:

Line: 26 to 20
 http://cms-conddb.cern.ch/payload_inspector/?dbService=Offline+production&Account=PHYSICSTOOLS+for+31X
Changed:
<
<

Troubleshooting

>
>
Currently, the production of centrality variables is a part of the standard reconstruction sequence for heavy ions. Therefore one has the product by default in any file with RECO or AOD content. If you need to reproduce the centrality object from RAW or RECO, please consult the expert page.
 
Added:
>
>

Troubleshooting

 Please follow this link to see possible problems.
Deleted:
<
<

Producing centrality variables in the event

 
Changed:
<
<
Currently, the production of centrality variables is a part of the standard reconstruction sequence for heavy ions. Therefore one has the product by default in any file with RECO or AOD content.
>
>

Specific instructions for analysis of 2010 data

Due to continuous changes in centrality tables, we have a common python configuration that loads the latest tables from the database. The way to use it is:

 
Added:
>
>
from CmsHi.Analysis2010.CommonFunctions_cff import *
overrideCentrality(process)
 
Added:
>
>
When you see the title [Centrality UP] in the hn, please go to your Analysis2010 directory and do "cvs up".
 
Changed:
<
<

CentralityProvider

>
>

CentralityProvider

 
  • Tags needed:


Changed:
<
<
cvs co -r V00-00-06 CondFormats/HIObjects cvs co -r V00-01-20 DataFormats/HeavyIonEvent cvs co -r V00-01-18 RecoHI/HiCentralityAlgos
>
>
cvs co CondFormats/HIObjects cvs co DataFormats/HeavyIonEvent cvs co RecoHI/HiCentralityAlgos
 cvs co -d CmsHi/Analysis2010 UserCode/CmsHi/Analysis2010 scram b
Line: 91 to 96
 https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions
Deleted:
<
<

CentralityProducer

The configuration file RecoHI/HiCentralityAlgos/python/HiCentrality_cfi.py contains the settings for the CentralityProducer module, hiCentrality which is run as part of the standard heavy-ion reconstruction sequence found in Configuration/StandardSequences/python/ReconstructionHeavyIons_cff.py So, all one has to do is to run standard reco sequence.

In the latest versions of the centrality producer, one is able to update the centrality information by reproducing some of the variables, while keeping the rest of the variables the same. For example, if the track collection that is desired to be the input to centrality is changed, one can set the flag for all the other variables to be off, and specify the label of the previous centrality object that was produced in these events:

process.hiCentrality.produceHFhits = False
process.hiCentrality.produceHFtowers = False
process.hiCentrality.produceEcalhits = False
process.hiCentrality.produceBasicClusters = False
process.hiCentrality.produceZDChits = False
process.hiCentrality.produceETmidRapidity = False
process.hiCentrality.producePixelhits = False
process.hiCentrality.produceTracks = True
process.hiCentrality.producePixelTracks = False
process.srcReUse = cms.InputTag("hiCentrality","","FIRSTRECO")

  • Input

Currently we have the following reconstruction objects to be used in centrality:

Product type Module label Description
HFRecHitCollection hfreco RecHits in the Forward Hadronic Calorimeter (HF)
BasicClusterCollection multi5x5BasicClusters:multi5x5EndcapBasicClusters Basic Clusters in Ecal Endcaps (EE)
CaloTowerCollection towerMaker CaloTowers in the Forward Hadronic Calorimeter (HF)
SiPixelRecHitCollection siPixelRecHits Total number of rechits in the pixel detector

  • Output
The CentralityProducer returns a reco::Centrality object, which collects the summed information used for the centrality determination from the different detectors mentioned above as input.
recoCentrality_hiCentrality__RECO
The output of CentralityProducer is shown below.
Product type Module label
reco::Centrality hiCentrality
 
Changed:
<
<

CentralityBinProducer

>
>

CentralityBinProducer

  This module determines the bin of the event, corresponding to a given table. See the instructions for specifying centrality table below.
Line: 161 to 128
  where 0-2.5% means the most central events (smallest impact parameter) and 37.5-40% is the most peripheral events.
Changed:
<
<

Filtering on binned centrality in cmsRun

>
>

Filtering on binned centrality in cmsRun

  Please check out the head of the RecoHI/HiCentralityAlgos. Include the following in your cfg file:
Line: 198 to 165
  If you're using 20 centrality bins, this would select top 10-25%.
Deleted:
<
<

Using centrality in analysis

 
Deleted:
<
<

Setup instructions by version

 
Changed:
<
<
  • 3_9_0_pre4 and above
Nothing needed.

  • 3_8_2 and above
cvs co RecoHI/HiCentralityAlgos
cvs co DataFormats/HeavyIonEvent
>
>

Using the CentralityBins object in FWLite / Bare ROOT:

 
Changed:
<
<
* 3_8_1
cvs co RecoHI/HiCentralityAlgos
cvs co DataFormats/HeavyIonEvent
cvs co CondFormats/HIObjects
>
>
If you're using EDAnalyzers in full framework, please use the CentralityProvider described above to take care of the bins for you. It internally uses a CentralityBins object, and details for experts can be found in the expert page.
 
Added:
>
>
1- One has to import the table from the main database, and save in a root file. Simply run the cfg: http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/tools/makeTFileFromDB.py?hideattic=0&view=markup
 
Changed:
<
<
  • Below 3_8_X
>
>
or, you can just add the part:
 

Changed:
<
<
NOT SUPPORTED

Initializing the CentralityBins object:

In framework modules

In full framework, one can read the values directly from DB.

Instructions are as follows:

  • Make and EDAnalyzer

  • Include the header for Centrality:
#include "DataFormats/HeavyIonEvent/interface/Centrality.h"

>
>
process.makeCentralityTableTFile = cms.EDAnalyzer('CentralityTableProducer', isMC = cms.untracked.bool(True), makeDBFromTFile = cms.untracked.bool(False), makeTFileFromDB = cms.untracked.bool(True) )
 
Added:
>
>
to any cfg, like the one you're running your other analyzers. This will put the tables for all the runs into the output of the TFileService. Please note that, if there is a new global tag, for which you have to re-run your reconstruction and analysis, you will have to re-run to import the table as well.
 
Changed:
<
<
  • Declare a pointer to the centrality bins object, and initialize it with the getCentralityBinsFromDB function:
>
>
2-In your root macro (whether it's FWLite of just root) add:
 

Changed:
<
<
const CentralityBins *cbins_ = 0;

...

if(cbins_) cbins_ = getCentralityBinsFromDB(iSetup);

>
>
#include "DataFormats/HeavyIonEvent/interface/CentralityBins.h" TFile* inf = new TFile("centralityfile.root"); CentralityBins::RunMap cmap = getCentralityFromFile(inf, "makeCentralityTableTFile", "HFhitsAMPT_2760GeV", 149500, 155000); // FWLite int run = ev.id().run(); // or, if you're using any other tree: int run = myTreeVariableForRunNumber; int bin = cmap[run]->getBin(hf); double npartMean = cmap[run]->NpartMean(hf); double npartSigma = cmap[run]->NpartSigma(hf);
 
Changed:
<
<
where iSetup is the EventSetup. Make sure you re-initialize for every run in case the bins are run-dependent.

  • To build the analyzer, you need the following dependencies:

<use name=DataFormats/HeavyIonEvent>
<use name=CondFormats/HIObjects>
<use name=CondFormats/DataRecord>

  • Because the centrality tables are not a part of the global tag yet, you need to load an ESSource for the EventSetup.

process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
process.GlobalTag.globaltag = 'MC_38Y_V8::All'

process.GlobalTag.toGet = cms.VPSet(
    cms.PSet(record = cms.string("HeavyIonRcd"),
             tag = cms.string("CentralityTable_HFhits40_Hydjet2760GeV_v0_mc"),
             connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_PHYSICSTOOLS")
             )
    )

In FWLite, using a root macro

It is rather difficult to access the database with root macros, therefore an alternative way of accessing centrality information is implemented. The centrality contact persons will read the database to transform the information to root file format, which can be checked out from CVS and run offline.

Due to the nature of the format, it is not the safest method in terms of being up-to-date, therefore one needs to pay attention that the root file one uses is not obsolete.

Instructions are as follows:

  • You need to include the following in your rootlogon.C
>
>
However, even if you want to run in bare root, you need the following in your rootlogon:
 

Changed:
<
<
gSystem->Load( "libFWCoreFWLite" ); gSystem->Load("libDataFormatsFWLite"); gSystem->Load("libDataFormatsCommon"); gSystem->Load("libDataFormatsCaloTowers");
>
>
{
  gSystem->Load("libDataFormatsHeavyIonEvent");
Deleted:
<
<
gSystem->Load("libSimDataFormatsHiGenData");
  gSystem->AddIncludePath("-I$CMSSW_BASE/src/"); gSystem->AddIncludePath("-I$CMSSW_RELEASE_BASE/src/");
Changed:
<
<
AutoLibraryLoader::enable();

  • You need to include the following headers in your macro, in addition to the others you already needed:


#if !defined(__CINT__) && !defined(__MAKECINT__)

#include "DataFormats/Common/interface/Handle.h"
#include "DataFormats/FWLite/interface/Event.h"
#include "DataFormats/HeavyIonEvent/interface/CentralityBins.h"
#include "DataFormats/HeavyIonEvent/interface/Centrality.h"

#endif

  • An example piece of code that reads centrality variables from event and bins the variable is here:


TFile * centFile = new TFile("../data/bins20_4TeV_CMSSW_3_5_2.root");   
CentralityBins::RunMap HFhitBinMap = getCentralityFromFile(centFile,"HFhits20_MXS0_Hydjet4TeV_MC_3XY_V21_v0",0,20);

Here the second parameter is the tag of tables, and the third and fourth parameters are the first and last run numbers to get the tables for.

  • You need to compile your macro.

Event loop

The CentralityBins object is the same in full framework and FWLite, however it is more convenient to use the RunMap directly when running in FWLite.

// event loop ... {

   edm::Handle cent;
   iEvent.getByLabel(edm::InputTag("hiCentrality"),cent);
   double hf = cent->EtHFhitSum();

   int bin = HFhitBins->getBin(hf);

   // in full framework, making sure the bins are re-initialized for each run.
   double npartMean = HFhitBins->NpartMean(hf);
   double npartSigma = HFhitBins->NpartSigma(hf);

   // in FWLite
   int runnum = iEvent.id().run();
   double npartMean = HFhitBinMap[runnum]->NpartMean(hf);
   double npartSigma = HFhitBinMap[runnum]->NpartSigma(hf);

//  ... end of event loop  }

>
>
}
 
Added:
>
>
You can find example macros in ./macros/: http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/macros/testCentralityFWLite.C?hideattic=0&view=markup http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoHI/HiCentralityAlgos/macros/testCentralityBareRoot.C?hideattic=0&view=markup
 
Changed:
<
<

Creating payloads

The supported way of creating payloads is by running centrality analysis FWLite to first create the data in root format, then converting this to sqlite and uploading in the DB via CMSSW. However, other possibilities of creating the workflow, for debugging / fast maintenance purposes, are also implemented and documented in the summary of tools section.

Summary of tools:

Inspecting db file with sqlite3

Try the following commands, starting from shell:

sqlite3 CentralityTables.db
.tables
.dump CENTRAL_M_TABLE
.quit
>
>
  • You need to compile your macro in order to run successfully.
 

Contact

Revision 302010-11-05 - YetkinYilmaz

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 39 to 39
 

CentralityProvider

Added:
>
>
  • Tags needed:

cvs co -r V00-00-06 CondFormats/HIObjects
cvs co -r V00-01-20 DataFormats/HeavyIonEvent
cvs co -r V00-01-18 RecoHI/HiCentralityAlgos
cvs co -d CmsHi/Analysis2010 UserCode/CmsHi/Analysis2010
scram b

 
  • Add in your analyzer:

1) add

Revision 292010-11-05 - AndreYoon

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 376 to 376
 sqlite3 CentralityTables.db .tables .dump CENTRAL_M_TABLE
Added:
>
>
.quit
 

Revision 282010-11-04 - YetkinYilmaz

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 12 to 12
  HeavyIonCentralityAnalysis
Added:
>
>
Glauber parameters: https://twiki.cern.ch/twiki/bin/view/Main/LHCGlauberBaseline
 
Line: 19 to 21
  Currently we have only the tables for the HF rechit energy in the database. The tables from Hydjet at 4 TeV and 2.8 TeV, and AMPT at 2.8 TeV available.
Added:
>
>
One can inspect the content of tags in the conditions database with the web tool below:

http://cms-conddb.cern.ch/payload_inspector/?dbService=Offline+production&Account=PHYSICSTOOLS+for+31X

 

Troubleshooting

Revision 272010-11-03 - YetkinYilmaz

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 50 to 50
 
if(!centrality_) centrality_ = new CentralityProvider(iSetup);

Changed:
<
<
centrality_->newEvent(iEvent,iSetup); double c = centrality_->centralityValue(iEvent); int bin = centrality_->getBin(iEvent);
>
>
centrality_->newEvent(iEvent,iSetup); // make sure you do this first in every event double c = centrality_->centralityValue(); int bin = centrality_->getBin();
 

Revision 262010-11-02 - MagdalenaMalek

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 36 to 36
 
  • Add in your analyzer:
Added:
>
>
1) add
 

Added:
>
>
#include "DataFormats/HeavyIonEvent/interface/CentralityProvider.h"
 
Added:
>
>
2) declare
CentralityProvider * centrality_;
 
Added:
>
>
3) in the analyze() function

 if(centrality_) centrality_ = new CentralityProvider(iSetup);

centrality_->newEvent(iEvent,iSetup);

Changed:
<
<
double c = centrality->centralityValue(iEvent); int bin = centrality->getBin(iEvent);
>
>
double c = centrality_->centralityValue(iEvent); int bin = centrality_->getBin(iEvent);
 

Revision 252010-10-29 - YetkinYilmaz

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 50 to 50
 
  • Add in your cfg:
Deleted:
<
<
Temporarily:
process.load('FrontierConditions_GlobalTag_Temp_cff') # Which you get from RecoHI/HiCentralityAlgos/test/
process.GlobalTag.globaltag = 'MC_38Y_V8::All' # Make sure you have the right global tag
process.HeavyIonGlobalParameters = cms.PSet(
    centralityVariable = cms.string("HFhits"),
    nonDefaultGlauberModel = cms.string("Hydjet_2760GeV"),
    centralitySrc = cms.InputTag("hiCentrality")
    )

Nominally:

 
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')

Changed:
<
<
process.GlobalTag.globaltag = 'MC_38Y_V8::All' # Make sure you have the right global tag
>
>
process.GlobalTag.globaltag = 'MC_38Y_V13::All' # Make sure you have the right global tag (*)
 process.HeavyIonGlobalParameters = cms.PSet( centralityVariable = cms.string("HFhits"), nonDefaultGlauberModel = cms.string("Hydjet_2760GeV"),
Line: 73 to 60
  )
Changed:
<
<
To see which table you are supposed to use with a specific release, please consult the page:
>
>
(*) To see which table you are supposed to use with a specific release, please consult the page:
 https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions

Revision 242010-10-25 - YetkinYilmaz

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 41 to 41
  if(centrality_) centrality_ = new CentralityProvider(iSetup);
Changed:
<
<
centrality_->refreshIOV(iEvent,iSetup);
>
>
centrality_->newEvent(iEvent,iSetup);
  double c = centrality->centralityValue(iEvent); int bin = centrality->getBin(iEvent);
Line: 50 to 50
 
  • Add in your cfg:
Added:
>
>
Temporarily:
 

Changed:
<
<
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
>
>
process.load('FrontierConditions_GlobalTag_Temp_cff') # Which you get from RecoHI/HiCentralityAlgos/test/
 process.GlobalTag.globaltag = 'MC_38Y_V8::All' # Make sure you have the right global tag process.HeavyIonGlobalParameters = cms.PSet( centralityVariable = cms.string("HFhits"),
Line: 62 to 62
 
Added:
>
>
Nominally:
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
process.GlobalTag.globaltag = 'MC_38Y_V8::All' # Make sure you have the right global tag
process.HeavyIonGlobalParameters = cms.PSet(
    centralityVariable = cms.string("HFhits"),
    nonDefaultGlauberModel = cms.string("Hydjet_2760GeV"),
    centralitySrc = cms.InputTag("hiCentrality")
    )

To see which table you are supposed to use with a specific release, please consult the page: https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions

 

CentralityProducer

Revision 232010-10-24 - YetkinYilmaz

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 34 to 34
 

CentralityProvider

Added:
>
>
  • Add in your analyzer:
 

Added:
>
>
 if(centrality_) centrality_ = new CentralityProvider(iSetup);

centrality_->refreshIOV(iEvent,iSetup);

Line: 44 to 48
 
Added:
>
>
  • Add in your cfg:

process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
process.GlobalTag.globaltag = 'MC_38Y_V8::All' # Make sure you have the right global tag
process.HeavyIonGlobalParameters = cms.PSet(
    centralityVariable = cms.string("HFhits"),
    nonDefaultGlauberModel = cms.string("Hydjet_2760GeV"),
    centralitySrc = cms.InputTag("hiCentrality")
    )

 

CentralityProducer

The configuration file RecoHI/HiCentralityAlgos/python/HiCentrality_cfi.py contains the settings for the CentralityProducer module, hiCentrality which is run as part of the standard heavy-ion reconstruction sequence found in Configuration/StandardSequences/python/ReconstructionHeavyIons_cff.py So, all one has to do is to run standard reco sequence.

Revision 222010-10-23 - YetkinYilmaz

Line: 1 to 1
 
META TOPICPARENT name="SWGuideHeavyIon"

Reconstructing and Binning Centrality in Heavy Ion events at CMS

Complete: 5
Line: 30 to 30
 Currently, the production of centrality variables is a part of the standard reconstruction sequence for heavy ions. Therefore one has the product by default in any file with RECO or AOD content.
Added:
>
>