///========================================= /// GetOffsetCorrection NPV ///========================================= double AnalysisBase::GetOffsetNPV(Double_t jetEta, Double_t mu, Int_t NPV, TString tag, Int_t NPVref, Int_t MUref, bool m_fDebug) { // Offset correction table //slope and intercept const static Double_t slope_MC10b_AKt6_topoEM[7] = { 0.554206,0.560879,0.615631,0.604061,0.643603,0.627901,0.645477}; const static Double_t intercept_MC10b_AKt6_topoEM[7] = { 0.113253,0.0988858,0.0229146,0.0216436,-0.117142,-0.251135,-0.330684}; const static Double_t slope_MC10b_AKt6_lct[7] = { 0.841648,0.856677,0.919961,0.92832,0.909487,0.913625,0.754934}; const static Double_t intercept_MC10b_AKt6_lct[7] = { 0.157548,0.130792,0.0549006,0.0753573,-0.131852,-0.373156,-0.412353}; const static Double_t slope_MC10b_AKt4_topoEM[7] = { 0.297376,0.2657,0.287447,0.316899,0.340274,0.362528,0.363839}; const static Double_t intercept_MC10b_AKt4_topoEM[7] = { 0.0262287,0.0143564,-0.0311566,-0.0125061,-0.124887,-0.185109,-0.238533}; const static Double_t slope_MC10b_AKt4_lct[7] = { 0.406266,0.375533,0.4012,0.449796,0.451956,0.508713,0.400553}; const static Double_t intercept_MC10b_AKt4_lct[7] = { 0.0241725,0.0339716,-0.0238977,-0.0173475,-0.16973,-0.300495,-0.30317}; const static Double_t slope_MC11_AKt6_topoEM[7] = { 0.55317,0.566214,0.592801,0.595636,0.642784,0.570846,0.611743}; const static Double_t intercept_MC11_AKt6_topoEM[7] = { 0.077248,0.0651614,0.05082,0.0694886,-0.104221,-0.368601,-0.365378}; const static Double_t slope_MC11_AKt6_lct[7] = { 0.87382,0.937068,0.931847,1.04197,1.04428,0.880914,0.756087}; const static Double_t intercept_MC11_AKt6_lct[7] = { 0.0583321,0.148085,0.191317,0.157699,-0.129749,-0.528437,-0.412108}; const static Double_t slope_MC11_AKt4_topoEM[7] = { 0.252522,0.285027,0.303536,0.305193,0.356775,0.338547,0.362128}; const static Double_t intercept_MC11_AKt4_topoEM[7] = { 0.153442,-0.0160134,-0.0193743,-0.0919976,-0.168367,-0.250434,-0.211702}; const static Double_t slope_MC11_AKt4_lct[7] = { 0.387692,0.439022,0.453936,0.476658,0.512217,0.500963,0.404941}; const static Double_t intercept_MC11_AKt4_lct[7] = { 0.191242,-0.0123295,-0.0152481,-0.0551463,-0.23288,-0.394158,-0.255641}; if (m_fDebug) cout << "In GetOffsetNPV()" << endl; double jet_NPV_offset = 0.0; int eta_index = -1; if(fabs(jetEta) <= 0.3) eta_index = 0; if(fabs(jetEta) > 0.3 && fabs(jetEta) <= 0.8) eta_index = 1; if(fabs(jetEta) > 0.8 && fabs(jetEta) <= 1.2) eta_index = 2; if(fabs(jetEta) > 1.2 && fabs(jetEta) <= 2.1) eta_index = 3; if(fabs(jetEta) > 2.1 && fabs(jetEta) <= 2.9) eta_index = 4; if(fabs(jetEta) > 2.9 && fabs(jetEta) <= 3.5) eta_index = 5; if(fabs(jetEta) > 3.5 && fabs(jetEta) <= 5.0) eta_index = 6; if(tag.Contains("AKt6_TopoEM_MC10b")) { jet_NPV_offset = slope_MC10b_AKt6_topoEM[eta_index] * (NPV-NPVref) + intercept_MC10b_AKt6_topoEM[eta_index] * (mu-MUref) ; } else if(tag.Contains("AKt6_LCTopo_MC10b")) { jet_NPV_offset = slope_MC10b_AKt6_lct[eta_index] * (NPV-NPVref) + intercept_MC10b_AKt6_lct[eta_index] * (mu-MUref); } else if(tag.Contains("AKt4_TopoEM_MC10b")) { jet_NPV_offset = slope_MC10b_AKt4_topoEM[eta_index] * (NPV-NPVref) + intercept_MC10b_AKt4_topoEM[eta_index] * (mu-MUref) ; } else if(tag.Contains("AKt4_LCTopo_MC10b")) { jet_NPV_offset = slope_MC10b_AKt4_lct[eta_index] * (NPV-NPVref) + intercept_MC10b_AKt4_lct[eta_index] * (mu-MUref); } else if(tag.Contains("AKt6_TopoEM_MC11")) { jet_NPV_offset = slope_MC11_AKt6_topoEM[eta_index] * (NPV-NPVref) + intercept_MC11_AKt6_topoEM[eta_index] * (mu-MUref) ; } else if(tag.Contains("AKt6_LCTopo_MC11")) { jet_NPV_offset = slope_MC11_AKt6_lct[eta_index] * (NPV-NPVref) + intercept_MC11_AKt6_lct[eta_index] * (mu-MUref); } else if(tag.Contains("AKt4_TopoEM_MC11")) { jet_NPV_offset = slope_MC11_AKt4_topoEM[eta_index] * (NPV-NPVref) + intercept_MC11_AKt4_topoEM[eta_index] * (mu-MUref) ; } else if(tag.Contains("AKt4_LCTopo_MC11")) { jet_NPV_offset = slope_MC11_AKt4_lct[eta_index] * (NPV-NPVref) + intercept_MC11_AKt4_lct[eta_index] * (mu-MUref); } else cout << "WARNING: cannot find offset correction for tag = " << tag << "; Please use a supported tag." << endl; // Some debugging if (m_fDebug) cout << "Eta = " << jetEta << " ; eta bin in graph = " << eta_index << " ; mu = " << mu << " ; NPV = " << NPV << " ; Jet NPV offset = " << jet_NPV_offset << " ; Tag = " << tag << endl; // Done return jet_NPV_offset; } |
Offset
is obtained from the GetOffsetNPV()
function defined in the code above, parametrized by the variables explained here and the tags in the list (a different implementation can be found in JetCalibTools to use within ATHENA). If for example you want to use the JES from MC10b, you should use NPVref=6, MUref=8 and the tags with "MC10b". To obtain the correction for an AntiKt6 LC jet, you would call GetOffsetNPV(jetEta, mu, NPV, "AKt6_LCTopo_MC10b", 6, 8, false)
.
Error: (3) can't find h_CaloTower_ET_vs_Eta_formatted.gif in Sandbox | Error: (3) can't find h_CaloTowerET_vs_NPV_gt1000_eta0_0p3_formatted.gif in Sandbox | Error: (3) can't find h_CaloTowerET_vs_DFE_central_formatted.gif in Sandbox |
def doEMOffset(finder, mainParam, input, **options): ... isMC=False
def doEMOffset(finder, mainParam, input, **options): ... isMC=True
from JetRec.JetGetters import make_StandardJetGetter make_StandardJetGetter('AntiKt',0.4, 'Topo', calibName ='EM:ORIGIN_OFFSET',outputCollectionName='AntiKt4TopoEMOFFSETJets')
Error: (3) can't find h_NVertices_mc10b_formatted.png in Sandbox | Error: (3) can't find h_n_trk_out_Ecut_mc10b_formatted.png in Sandbox | Error: (3) can't find h_NVtx_nTrkOut_Ecut_mc10b_formatted.png in Sandbox |
Error: (3) can't find mu_mc10b_formatted.png in Sandbox | Error: (3) can't find h_npv_vs_mu_mc10b_formatted.png in Sandbox | Error: (3) can't find h_ntrkout_vs_mu_mc10b_formatted.png in Sandbox |
Error: (3) can't find h_tower_E_NV_Eta_0_08.150ns.75ns.50ns.comp.png in Sandbox | Error: (3) can't find h_tower_E_NV_Eta_32_5.150ns.75ns.50ns.comp.png in Sandbox |
Error: (3) can't find h_tower_E_NV_Eta_0_50ns_runcomp.png in Sandbox | Error: (3) can't find h_tower_E_NV_Eta_1_50ns_runcomp.png in Sandbox | Error: (3) can't find h_tower_E_NV_Eta_2_50ns_runcomp.png in Sandbox | Error: (3) can't find h_tower_E_NV_Eta_3_50ns_runcomp.png in Sandbox |
Error: (3) can't find h_tower_E_NV_Eta_4_50ns_runcomp.png in Sandbox | Error: (3) can't find h_tower_E_NV_Eta_5_50ns_runcomp.png in Sandbox | Error: (3) can't find h_tower_E_NV_Eta_6_50ns_runcomp.png in Sandbox | Error: (3) can't find h_tower_E_NV_Eta_7_50ns_runcomp.png in Sandbox |
Data Period | Run Number![]() |
Luminosity | <mu> | RMS(mu) | Bunch Spacing | Average Bunch Train Length | Slope of tower based <Jet ET Offset> vs. NPV (GeV / Vertex) AntiKt4,AntiKt6 | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Recorded [1/pb] | L1_J15![]() |
EF_zerobias_NoAlg![]() |
0< |eta| < 0.3 | 3< |eta| < 0.8 | 0.8< |eta| < 1.2 | 1.2< |eta| < 2.1 | 2.1< |eta| < 2.8 | 2.8< |eta| < 3.2 | 3.2< |eta| < 4.5 | ||||||
B2![]() |
178044 | 4.7 | 3.5 | 3.1 | 75ns | 1727ns | 0.35, 0.65 | 0.37, 0.69 | 0.39, 0.77 | 0.37, 0.75 | 0.42, 0.89 | 0.54, 1.2 | 0.35, 0.80 | ||
B2![]() |
178109 | 6.5 | 4.8 | 4.3 | 75ns | 1727ns | |||||||||
D1![]() |
179710 | 4.3 | 4.4 | 2.1 | 5.9 | 1.4 | 50ns | 1651ns | 0.50, 0.92 | 0.51, 0.95 | 0.53, 1.0 | 0.49, 0.99 | 0.58, 1.2 | 0.71, 1.6 | 0.36, 0.86 |
D2![]() |
179804 | 7.4 | 5.4 | 3.7 | 6.4 | 1.5 | 50ns | 1701ns | 0.51, 0.94 | 0.52, 0.97 | 0.54, 1.1 | 0.51, 1.0 | 0.58, 1.2 | 0.73, 1.6 | 0.38, 0.86 |
D3![]() |
180124 | 7.6 | 5.3 | 3.8 | 5.1 | 1.2 | 50ns | 1704ns | 0.44, 0.79 | 0.46, 0.84 | 0.46, 0.91 | 0.44, 0.87 | 0.52, 1.1 | 0.64, 1.4 | 0.35, 0.86 |
D3![]() |
180139 | 7.7 | 3.4 | 3.8 | 6.1 | 1.1 | 50ns | 1704ns | 0.47, 0.84 | 0.47, 0.86 | 0.48, 0.93 | 0.45, 0.89 | 0.53, 1.1 | 0.65, 1.4 | 0.38, 0.88 |
D4![]() |
180153 | 8.8 | 6.0 | 4.4 | 5.4 | 1.2 | 50ns | 1704ns | 0.44, 0.79 | 0.46, 0.85 | 0.48, 0.91 | 0.46, 0.89 | 0.53, 1.1 | 0.65, 1.4 | 0.40, 0.87 |
D4![]() |
180164 | 19.1 | 9.8 | 9.6 | 5.8 | 1.3 | 50ns | 1704ns | 0.50, 0.91 | 0.51, 0.94 | 0.54, 1.0 | 0.49, 0.98 | 0.58, 1.2 | 0.72, 1.5 | 0.40, 0.88 |
D5![]() |
180225 | 17.1 | 10.2 | 8.5 | 5.3 | 1.1 | 50ns | 2833ns | 0.36, 0.67 | 0.38, 0.70 | 0.39, 0.75 | 0.39, 0.76 | 0.45, 0.93 | 0.57, 1.2 | 0.38, 0.84 |
D6![]() |
180309 | 9.5 | 2.9 | 4.8 | 6.7 | 0.9 | 50ns | 2833ns | 0.38, 0.71 | 0.41, 0.74 | 0.40, 0.80 | 0.40, 0.79 | 0.47, 0.97 | 0.58, 1.3 | 0.40, 0.87 |
D6![]() |
180400 | 14.5 | 2.8 | 3.5 | 6.2 | 1.0 | 50ns | 3318ns | |||||||
D7![]() |
180481 | 21.1 | 4.2 | 5.4 | 6.0 | 1.1 | 50ns | 3318ns | 0.38, 0.68 | 0.38, 0.70 | 0.39, 0.75 | 0.39, 0.76 | 0.45, 0.92 | 0.57, 1.2 | 0.35, 0.83 |
E1![]() |
180636 | 24.1 | 5.1 | 6.6 | 5.8 | 1.1 | 50ns | 3318ns | 0.35, 0.64 | 3.36, 0.66 | 0.37, 0.72 | 0.37, 0.71 | 0.43, 0.87 | 0.54, 1.1 | 0.36, 0.77 |
E1![]() |
180710 | 12.1 | 1.8 | 6.8 | 7.1 | 0.9 | 50ns | 3084ns | 0.34, 0.60 | 0.33, 0.63 | 0.35, 0.68 | 0.35, 0.69 | 0.40, 0.81 | 0.51, 1.1 | 0.35, 0.78 |
data11_7TeV.periodAllYear_DetStatus-v13-pro08-02_JetEtMiss.xml
GRL obtained from the GRL generator page hereError: (3) can't find nConst_vs_eta_akt4_ZeroBias.png in Sandbox | Error: (3) can't find nConst_vs_eta_akt6_ZeroBias.png in Sandbox |
Error: (3) can't find offset_tower_energy_et.png in Sandbox | Error: (3) can't find offset_jet_energy_et_akt4.png in Sandbox | Error: (3) can't find offset_jet_energy_et_akt6.png in Sandbox |
Error: (3) can't find h_data_jet_energy_offset_vs_NV_fit_akt4_formatted.png in Sandbox | Error: (3) can't find h_data_jet_energy_offset_vs_NV_fit_akt6_formatted.png in Sandbox |
Error: (3) can't find NVertices_fit.png in Sandbox | Error: (3) can't find h_RMS_akt4_slope_eta_formatted.png in Sandbox | Error: (3) can't find h_RMS_akt6_slope_eta_formatted.png in Sandbox |