#include <METTriggerAugmentationTool.h>
◆ METTriggerAugmentationTool()
DerivationFramework::METTriggerAugmentationTool::METTriggerAugmentationTool |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ addBranches()
StatusCode DerivationFramework::METTriggerAugmentationTool::addBranches |
( |
| ) |
const |
|
virtual |
Definition at line 61 of file METTriggerAugmentationTool.cxx.
66 if (evtStore()->contains<xAOD::EnergySumRoI>(
m_outputName) )
return StatusCode::SUCCESS;
86 float KFMETx = l1_kf->
exMiss();
87 float KFMETy = l1_kf->
eyMiss();
88 float KFSumEt = l1_kf->
energyT();
90 for (
const auto jet : *l1Jets) {
92 int ptBin =
m_LUT->GetYaxis()->FindBin( log2(
jet->et8x8() / 1000.) );
93 if (ptBin==0) ptBin=1;
94 float KFweight =
m_LUT->GetBinContent(
etaBin, ptBin);
95 float jetContribution =
jet->et8x8() * KFweight;
97 KFMETx -= jetContribution *
cos(
jet->phi() );
98 KFMETy -= jetContribution *
sin(
jet->phi() );
99 KFSumEt += jetContribution;
108 return StatusCode::SUCCESS;
◆ finalize()
StatusCode DerivationFramework::METTriggerAugmentationTool::finalize |
( |
| ) |
|
|
virtual |
◆ initialize()
StatusCode DerivationFramework::METTriggerAugmentationTool::initialize |
( |
| ) |
|
|
virtual |
Definition at line 29 of file METTriggerAugmentationTool.cxx.
33 if (fullLUTFileName.empty() ) {
35 return StatusCode::FAILURE;
38 TFile* lutFile = TFile::Open(fullLUTFileName.c_str() );
39 if (lutFile->IsZombie() )
return StatusCode::FAILURE;
42 lutFile->GetObject(
"LUT", lutFromFile);
45 return StatusCode::FAILURE;
48 m_LUT.reset(
dynamic_cast<TH2*
>(lutFromFile->Clone() ) );
49 m_LUT->SetDirectory(0);
51 return StatusCode::SUCCESS;
◆ m_L1JetName
std::string DerivationFramework::METTriggerAugmentationTool::m_L1JetName |
|
private |
◆ m_L1METName
std::string DerivationFramework::METTriggerAugmentationTool::m_L1METName |
|
private |
◆ m_LUT
std::unique_ptr<TH2> DerivationFramework::METTriggerAugmentationTool::m_LUT |
|
private |
◆ m_LUTFileName
std::string DerivationFramework::METTriggerAugmentationTool::m_LUTFileName |
|
private |
◆ m_outputName
std::string DerivationFramework::METTriggerAugmentationTool::m_outputName |
|
private |
The documentation for this class was generated from the following files: