ATLAS Offline Software
Loading...
Searching...
No Matches
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
7This is a temporary file which holds the older version of JetSelectorAttribute used in RunII
8monitoring. It's here to allow the RunII monitoring system to continue to run during the migration.
9It'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
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
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
IJetSelector is a dual-use tool interface for a tool that selects a jet.
int keep(const xAOD::Jet &jet) const
Method to select.
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
SelValueRetriever * m_vretriever
if the attribute is a vector we'll use the value at this index. else it is ignored.
JetSelectorAttributeRunII(const std::string &t)
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
Jet_v1 Jet
Definition of the current "jet version".
SelValueRetriever retrieves the value on which this tool select jets.
virtual float value(const xAOD::Jet &j) const =0