ATLAS Offline Software
Loading...
Searching...
No Matches
JetAttributeSelector.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#ifndef JETSELECTORTOOLS_JETSELECTORATTRIBUTE_H
8#define JETSELECTORTOOLS_JETSELECTORATTRIBUTE_H
9
11#include "AsgTools/AsgTool.h"
38
39class JetAttributeSelector : public asg::AsgTool , virtual public IJetSelector
40 {
42 public:
43
47 virtual float value(const xAOD::Jet& j) const = 0;
48 virtual ~SelValueRetriever(){};
49 };
50
51 JetAttributeSelector(const std::string &t);
52 virtual ~JetAttributeSelector();
53
54 virtual StatusCode initialize() ;
55
56 virtual int keep(const xAOD::Jet& jet) const;
57
58 protected:
59 SelValueRetriever * buildValueRetriever(const std::string& type, const std::string& name, int index);
60
61 float m_min;
62 float m_max;
63
64 std::string m_attName;
65 std::string m_attType;
66
69
70};
71
72
74
76public:
77 JetAbsAttributeSelector(const std::string &t);
78 virtual int keep(const xAOD::Jet& jet) const;
79
80};
81
83
85public:
86 JetAttributeRatioSelector(const std::string &t);
87
88 virtual StatusCode initialize() ;
89
90 virtual int keep(const xAOD::Jet& jet) const;
91 protected:
92
93 std::string m_attName2;
94 std::string m_attType2;
95
98
99};
100
101
102
103
104#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
#define ASG_TOOL_CLASS0(CLASSNAME)
IJetSelector is a dual-use tool interface for a tool that selects a jet.
virtual int keep(const xAOD::Jet &jet) const
Method to select.
JetAbsAttributeSelector(const std::string &t)
JetAttributeRatioSelector(const std::string &t)
SelValueRetriever * m_vretriever2
if the attribute is a vector we'll use the value at this index. else it is ignored.
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
virtual int keep(const xAOD::Jet &jet) const
Method to select.
virtual int keep(const xAOD::Jet &jet) const
Method to select.
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
JetAttributeSelector(const std::string &t)
SelValueRetriever * m_vretriever
if the attribute is a vector we'll use the value at this index. else it is ignored.
SelValueRetriever * buildValueRetriever(const std::string &type, const std::string &name, int index)
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
Definition index.py:1
Jet_v1 Jet
Definition of the current "jet version".
value on which this tool select jets.
virtual float value(const xAOD::Jet &j) const =0