Public Member Functions | |
def | __init__ |
def | correct |
def | correctAll |
Public Attributes | |
JetCorrector | |
JetUncertainty | |
L1JetPar | |
L2JetPar | |
L3JetPar | |
ResJetPar | |
vPar | |
Definition at line 6 of file JetReCalibrator.py.
def JetReCalibrator.JetReCalibrator.__init__ | ( | self, | |
globalTag, | |||
jetFlavour, | |||
doResidualJECs, | |||
jecPath, | |||
upToLevel = 3 |
|||
) |
Create a corrector object that reads the payloads from the text dumps of a global tag under CMGTools/RootTools/data/jec (see the getJec.py there to make the dumps). It will apply the L1,L2,L3 and possibly the residual corrections to the jets.
Definition at line 7 of file JetReCalibrator.py.
def JetReCalibrator.JetReCalibrator.correct | ( | self, | |
jet, | |||
rho, | |||
delta = 0 , |
|||
metShift = [0 |
|||
) |
Corrects a jet energy (optionally shifting it also by delta times the JEC uncertainty) If a two-component list is passes as 'metShift', it will be modified adding to the first and second component the change to the MET along x and y due to the JEC, defined as the negative difference between the new and old jet 4-vectors, for jets with corrected pt > 10.
Definition at line 41 of file JetReCalibrator.py.
References JetReCalibrator.JetReCalibrator.JetUncertainty, and bookConverter.max.
Referenced by JetReCalibrator.JetReCalibrator.correctAll().
def JetReCalibrator.JetReCalibrator.correctAll | ( | self, | |
jets, | |||
rho, | |||
delta = 0 , |
|||
metShift = [0 |
|||
) |
Applies 'correct' to all the jets, discard the ones that have bad corrections (corrected pt <= 0)
Definition at line 31 of file JetReCalibrator.py.
References ElectronCalibrator.EmbeddedElectronCalibrator.correct(), FFTJetCorrector< Jet, Adjustable >.correct(), JetReCalibrator.JetReCalibrator.correct(), FFTJetCorrectorSequence< Jet, InitialConverter, FinalConverter >.correct(), and MomentumScaleCorrector.correct().
JetReCalibrator.JetReCalibrator.JetCorrector |
Definition at line 25 of file JetReCalibrator.py.
JetReCalibrator.JetReCalibrator.JetUncertainty |
Definition at line 27 of file JetReCalibrator.py.
Referenced by JetReCalibrator.JetReCalibrator.correct().
JetReCalibrator.JetReCalibrator.L1JetPar |
Definition at line 13 of file JetReCalibrator.py.
JetReCalibrator.JetReCalibrator.L2JetPar |
Definition at line 14 of file JetReCalibrator.py.
JetReCalibrator.JetReCalibrator.L3JetPar |
Definition at line 15 of file JetReCalibrator.py.
JetReCalibrator.JetReCalibrator.ResJetPar |
Definition at line 22 of file JetReCalibrator.py.
JetReCalibrator.JetReCalibrator.vPar |
Definition at line 16 of file JetReCalibrator.py.