ATLAS Offline Software
JetSelectorAttributeRunII.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 
6 
7 This is a temporary file which holds the older version of JetSelectorAttribute used in RunII
8 monitoring. It's here to allow the RunII monitoring system to continue to run during the migration.
9 It's meant to be removed together with the runII code when migration is complete.
10 
11 */
12 
13 #ifndef JETMONITORING_JETSELECTORATTRIBUTERUNII_H
14 #define JETMONITORING_JETSELECTORATTRIBUTERUNII_H
15 
17 
18 #include "AsgTools/AsgTool.h"
19 
20 class JetSelectorAttributeRunII : public asg::AsgTool , virtual public IJetSelector
21  {
23  public:
24 
29  virtual float value(const xAOD::Jet& j) const = 0;
30  virtual ~SelValueRetriever(){};
31  };
32 
33  JetSelectorAttributeRunII(const std::string &t);
35 
36  virtual StatusCode initialize() ;
37 
38  int keep(const xAOD::Jet& jet) const;
39 
40  protected:
41 
42  float m_min;
43  float m_max;
44 
45  std::string m_attName;
46  std::string m_attType;
47 
50 
51 };
52 
53 
54 
55 
56 #endif
57 
JetSelectorAttributeRunII::m_attType
std::string m_attType
Definition: JetSelectorAttributeRunII.h:46
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
JetSelectorAttributeRunII::SelValueRetriever
Definition: JetSelectorAttributeRunII.h:28
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
IJetSelector.h
JetSelectorAttributeRunII::JetSelectorAttributeRunII
JetSelectorAttributeRunII(const std::string &t)
Definition: JetSelectorAttributeRunII.cxx:28
JetSelectorAttributeRunII::SelValueRetriever::value
virtual float value(const xAOD::Jet &j) const =0
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
JetSelectorAttributeRunII::initialize
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
Definition: JetSelectorAttributeRunII.cxx:50
JetSelectorAttributeRunII::m_min
float m_min
Definition: JetSelectorAttributeRunII.h:42
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
JetSelectorAttributeRunII::m_vectorAttIndex
int m_vectorAttIndex
Definition: JetSelectorAttributeRunII.h:48
JetSelectorAttributeRunII::keep
int keep(const xAOD::Jet &jet) const
Method to select.
Definition: JetSelectorAttributeRunII.cxx:67
JetSelectorAttributeRunII::m_max
float m_max
Definition: JetSelectorAttributeRunII.h:43
JetSelectorAttributeRunII::SelValueRetriever::~SelValueRetriever
virtual ~SelValueRetriever()
Definition: JetSelectorAttributeRunII.h:30
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
JetSelectorAttributeRunII
Definition: JetSelectorAttributeRunII.h:21
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
JetSelectorAttributeRunII::m_vretriever
SelValueRetriever * m_vretriever
if the attribute is a vector we'll use the value at this index. else it is ignored.
Definition: JetSelectorAttributeRunII.h:49
JetSelectorAttributeRunII::m_attName
std::string m_attName
Definition: JetSelectorAttributeRunII.h:45
AsgTool.h
JetSelectorAttributeRunII::~JetSelectorAttributeRunII
virtual ~JetSelectorAttributeRunII()
Definition: JetSelectorAttributeRunII.cxx:46