ATLAS Offline Software
JetSelectorAttribute.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
8 
10  : asg::AsgTool(t)
11  , m_var(this)
12 {
13  declareProperty("CutMin", m_min );
14  declareProperty("CutMax", m_max );
15  declareProperty("Var", m_var);
16 }
17 
19 
21 
22  for (unsigned int it = 0; it < m_var.size(); it++) {
24  ATH_MSG_INFO( "Selecting on var ("<< m_var[it]->describe() << ") in ["<< m_min.at(it) << " , "<< m_max.at(it)<< "]");
25  }
26  return StatusCode::SUCCESS;
27 }
28 
30 
31  for (unsigned int it = 0; it < m_var.size(); it++) {
32  float v = m_var[it]->value(jet);
33  if ((m_min.at(it) > v) || (m_max.at(it) < v)) return false;
34  }
35  return true;
36 }
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
JetSelectorAttribute::m_max
std::vector< float > m_max
Definition: JetSelectorAttribute.h:34
JetSelectorAttribute::m_var
ToolHandleArray< IJetHistoVarTool > m_var
Definition: JetSelectorAttribute.h:36
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
JetSelectorAttribute::m_min
std::vector< float > m_min
Definition: JetSelectorAttribute.h:33
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
JetSelectorAttribute::JetSelectorAttribute
JetSelectorAttribute(const std::string &t)
Definition: JetSelectorAttribute.cxx:9
JetSelectorAttribute::initialize
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
Definition: JetSelectorAttribute.cxx:20
skel.it
it
Definition: skel.GENtoEVGEN.py:423
asg
Definition: DataHandleTestTool.h:28
JetSelectorAttribute::~JetSelectorAttribute
virtual ~JetSelectorAttribute()
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
JetVariable.h
python.PyAthena.v
v
Definition: PyAthena.py:157
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
JetSelectorAttribute.h
JetSelectorAttribute::keep
int keep(const xAOD::Jet &jet) const
Method to select.
Definition: JetSelectorAttribute.cxx:29