ATLAS Offline Software
JetSelectorAttribute.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef JETMONITORING_JETSELECTORATTRIBUTE_H
8 #define JETMONITORING_JETSELECTORATTRIBUTE_H
9 #include "AsgTools/AsgTool.h"
10 
13 
14 
15 namespace JetVar {
16  class Variable;
17 }
18 
19 class JetSelectorAttribute : public asg::AsgTool , virtual public IJetSelector
20  {
22  public:
23 
24  JetSelectorAttribute(const std::string &t);
26 
27  virtual StatusCode initialize() ;
28 
29  int keep(const xAOD::Jet& jet) const;
30 
31  protected:
32 
33  std::vector<float> m_min;
34  std::vector<float> m_max;
35 
36  ToolHandleArray<IJetHistoVarTool> m_var;
37 
38 };
39 
40 
41 
42 
43 #endif
JetSelectorAttribute::m_max
std::vector< float > m_max
Definition: JetSelectorAttribute.h:34
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
JetHistoVarTool.h
JetSelectorAttribute::m_var
ToolHandleArray< IJetHistoVarTool > m_var
Definition: JetSelectorAttribute.h:36
JetSelectorAttribute::m_min
std::vector< float > m_min
Definition: JetSelectorAttribute.h:33
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
JetSelectorAttribute::~JetSelectorAttribute
virtual ~JetSelectorAttribute()
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
IJetSelector.h
JetSelectorAttribute
Definition: JetSelectorAttribute.h:20
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
JetVar::Variable
Definition: JetVariable.h:51
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
JetVar
Definition: JetSelectorAttribute.h:15
IJetSelector
IJetSelector is a dual-use tool interface for a tool that selects a jet.
Definition: IJetSelector.h:19
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
JetSelectorAttribute::keep
int keep(const xAOD::Jet &jet) const
Method to select.
Definition: JetSelectorAttribute.cxx:29
AsgTool.h