Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
DerivationFramework::AugmentationToolLeadingJets Class Reference

#include <AugmentationToolLeadingJets.h>

Inheritance diagram for DerivationFramework::AugmentationToolLeadingJets:
Collaboration diagram for DerivationFramework::AugmentationToolLeadingJets:

Public Member Functions

 AugmentationToolLeadingJets (const std::string &t, const std::string &n, const IInterface *p)
 
virtual StatusCode initialize () override
 
virtual StatusCode addBranches () const override
 

Private Attributes

SG::ReadHandleKey< xAOD::JetContainerm_jetKey { this, "JetKey", "AntiKt4EMTopoJets", "" }
 
SG::WriteDecorHandleKey< xAOD::JetContainerm_decorationKey { this, "DecorationKey", m_jetKey, "DFDecoratorLeadingJets", "" }
 

Detailed Description

Definition at line 22 of file AugmentationToolLeadingJets.h.

Constructor & Destructor Documentation

◆ AugmentationToolLeadingJets()

DerivationFramework::AugmentationToolLeadingJets::AugmentationToolLeadingJets ( const std::string &  t,
const std::string &  n,
const IInterface *  p 
)

Definition at line 20 of file AugmentationToolLeadingJets.cxx.

22  :
23  base_class(t,n,p)
24  {
25  }

Member Function Documentation

◆ addBranches()

StatusCode DerivationFramework::AugmentationToolLeadingJets::addBranches ( ) const
overridevirtual

Definition at line 35 of file AugmentationToolLeadingJets.cxx.

36  {
37 
38  // Set up the decorators
40 
41  // CALCULATION OF THE NEW VARIABLE
42  // Get Primary vertex
44  int counter=0;
45  for ( unsigned int i =0 ; i < jets->size() ; i++){
46  auto jet = (*jets)[i] ;
47  if (fabs(jet->eta()) < 2.5){
48  decorator(*jet) = (counter <2); // pick the two leading jets only
49  counter+=1;
50  } else {
51  decorator(*jet) = 0; // pick the two leading jets only
52  }
53  }
54  return StatusCode::SUCCESS;
55  }

◆ initialize()

StatusCode DerivationFramework::AugmentationToolLeadingJets::initialize ( )
overridevirtual

Definition at line 27 of file AugmentationToolLeadingJets.cxx.

28  {
32  return StatusCode::SUCCESS;
33  }

Member Data Documentation

◆ m_decorationKey

SG::WriteDecorHandleKey<xAOD::JetContainer> DerivationFramework::AugmentationToolLeadingJets::m_decorationKey { this, "DecorationKey", m_jetKey, "DFDecoratorLeadingJets", "" }
private

Definition at line 32 of file AugmentationToolLeadingJets.h.

◆ m_jetKey

SG::ReadHandleKey<xAOD::JetContainer> DerivationFramework::AugmentationToolLeadingJets::m_jetKey { this, "JetKey", "AntiKt4EMTopoJets", "" }
private

Definition at line 30 of file AugmentationToolLeadingJets.h.


The documentation for this class was generated from the following files:
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:67
initialize
void initialize()
Definition: run_EoverP.cxx:894
DerivationFramework::AugmentationToolLeadingJets::m_decorationKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decorationKey
Definition: AugmentationToolLeadingJets.h:33
defineDB.jets
jets
Definition: JetTagCalibration/share/defineDB.py:24
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
lumiFormat.i
int i
Definition: lumiFormat.py:85
beamspotman.n
n
Definition: beamspotman.py:731
DerivationFramework::AugmentationToolLeadingJets::m_jetKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetKey
Definition: AugmentationToolLeadingJets.h:31
SG::WriteDecorHandle
Handle class for adding a decoration to an object.
Definition: StoreGate/StoreGate/WriteDecorHandle.h:100
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
SG::WriteDecorHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
test_pyathena.counter
counter
Definition: test_pyathena.py:15