ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetRecTools
InDetGNNHardScatterSelection
InDetGNNHardScatterSelection
JetsLoader.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
4
This is a subclass of IConstituentsLoader. It is used to load the general Jets from the vertex
5
and extract their features for the NN evaluation.
6
*/
7
8
#ifndef INDET_JETS_LOADER_H
9
#define INDET_JETS_LOADER_H
10
11
// local includes
12
#include "
InDetGNNHardScatterSelection/ConstituentsLoader.h
"
13
#include "
InDetGNNHardScatterSelection/CustomGetterUtils.h
"
14
15
// EDM includes
16
#include "
xAODTracking/VertexFwd.h
"
17
#include "
xAODJet/Jet.h
"
18
#include "
xAODJet/JetContainer.h
"
19
#include "
xAODBase/IParticle.h
"
20
21
// STL includes
22
#include <string>
23
#include <vector>
24
#include <functional>
25
#include <exception>
26
#include <type_traits>
27
#include <regex>
28
29
namespace
InDetGNNHardScatterSelection
{
30
31
// Subclass for Jets loader inherited from abstract IConstituentsLoader class
32
class
JetsLoader
:
public
IConstituentsLoader
{
33
public
:
34
JetsLoader
(
const
ConstituentsInputConfig
&);
35
std::tuple<std::string, FlavorTagInference::Inputs, std::vector<const xAOD::IParticle*>>
getData
(
36
const
xAOD::Vertex
& vertex)
const override
;
37
std::string
getName
()
const override
;
38
ConstituentsType
getType
()
const override
;
39
protected
:
40
// typedefs
41
typedef
xAOD::Vertex
Vertex
;
42
typedef
std::pair<std::string, double>
NamedVar
;
43
typedef
std::pair<std::string, std::vector<double> >
NamedSeq
;
44
// iparticle typedefs
45
typedef
std::vector<const xAOD::Jet*>
Jets
;
46
typedef
std::vector<const xAOD::IParticle*>
Particles
;
47
typedef
std::function<double(
const
xAOD::Jet
*,
48
const
Vertex
&)>
JetSortVar
;
49
50
// usings for Jet getter
51
using
AE
=
SG::AuxElement
;
52
using
IPC
=
xAOD::JetContainer
;
53
using
PartLinks
= std::vector<ElementLink<IPC>>;
54
using
IPV
= std::vector<const xAOD::Jet*>;
55
56
static
JetSortVar
iparticleSortVar
(
ConstituentsSortOrder
);
57
58
std::vector<const xAOD::Jet*>
getJetsFromVertex
(
const
xAOD::Vertex
& vertex)
const
;
59
60
JetSortVar
m_iparticleSortVar
;
61
getter_utils::CustomSequenceGetter<xAOD::Jet>
m_customSequenceGetter
;
62
std::function<
IPV
(
const
Vertex
&)>
m_associator
;
63
};
64
}
65
66
#endif
IParticle.h
Jet.h
ConstituentsLoader.h
CustomGetterUtils.h
JetContainer.h
VertexFwd.h
InDetGNNHardScatterSelection::IConstituentsLoader::IConstituentsLoader
IConstituentsLoader(const ConstituentsInputConfig &cfg)
Definition
InnerDetector/InDetRecTools/InDetGNNHardScatterSelection/InDetGNNHardScatterSelection/ConstituentsLoader.h:63
InDetGNNHardScatterSelection::JetsLoader::IPV
std::vector< const xAOD::Jet * > IPV
Definition
JetsLoader.h:54
InDetGNNHardScatterSelection::JetsLoader::JetSortVar
std::function< double(const xAOD::Jet *, const Vertex &)> JetSortVar
Definition
JetsLoader.h:48
InDetGNNHardScatterSelection::JetsLoader::Particles
std::vector< const xAOD::IParticle * > Particles
Definition
JetsLoader.h:46
InDetGNNHardScatterSelection::JetsLoader::getData
std::tuple< std::string, FlavorTagInference::Inputs, std::vector< const xAOD::IParticle * > > getData(const xAOD::Vertex &vertex) const override
Definition
JetsLoader.cxx:65
InDetGNNHardScatterSelection::JetsLoader::m_customSequenceGetter
getter_utils::CustomSequenceGetter< xAOD::Jet > m_customSequenceGetter
Definition
JetsLoader.h:61
InDetGNNHardScatterSelection::JetsLoader::NamedVar
std::pair< std::string, double > NamedVar
Definition
JetsLoader.h:42
InDetGNNHardScatterSelection::JetsLoader::m_associator
std::function< IPV(const Vertex &)> m_associator
Definition
JetsLoader.h:62
InDetGNNHardScatterSelection::JetsLoader::m_iparticleSortVar
JetSortVar m_iparticleSortVar
Definition
JetsLoader.h:60
InDetGNNHardScatterSelection::JetsLoader::AE
SG::AuxElement AE
Definition
JetsLoader.h:51
InDetGNNHardScatterSelection::JetsLoader::getJetsFromVertex
std::vector< const xAOD::Jet * > getJetsFromVertex(const xAOD::Vertex &vertex) const
Definition
JetsLoader.cxx:48
InDetGNNHardScatterSelection::JetsLoader::IPC
xAOD::JetContainer IPC
Definition
JetsLoader.h:52
InDetGNNHardScatterSelection::JetsLoader::iparticleSortVar
static JetSortVar iparticleSortVar(ConstituentsSortOrder)
Definition
JetsLoader.cxx:14
InDetGNNHardScatterSelection::JetsLoader::JetsLoader
JetsLoader(const ConstituentsInputConfig &)
Definition
JetsLoader.cxx:28
InDetGNNHardScatterSelection::JetsLoader::Vertex
xAOD::Vertex Vertex
Definition
JetsLoader.h:41
InDetGNNHardScatterSelection::JetsLoader::NamedSeq
std::pair< std::string, std::vector< double > > NamedSeq
Definition
JetsLoader.h:43
InDetGNNHardScatterSelection::JetsLoader::getName
std::string getName() const override
Definition
JetsLoader.cxx:75
InDetGNNHardScatterSelection::JetsLoader::PartLinks
std::vector< ElementLink< IPC > > PartLinks
Definition
JetsLoader.h:53
InDetGNNHardScatterSelection::JetsLoader::getType
ConstituentsType getType() const override
Definition
JetsLoader.cxx:78
InDetGNNHardScatterSelection::getter_utils::CustomSequenceGetter
Template class to extract features from sequence of constituents.
Definition
InnerDetector/InDetRecTools/InDetGNNHardScatterSelection/InDetGNNHardScatterSelection/CustomGetterUtils.h:81
InDetGNNHardScatterSelection
Definition
InnerDetector/InDetRecTools/InDetGNNHardScatterSelection/InDetGNNHardScatterSelection/ConstituentsLoader.h:22
InDetGNNHardScatterSelection::ConstituentsType
ConstituentsType
Definition
InnerDetector/InDetRecTools/InDetGNNHardScatterSelection/InDetGNNHardScatterSelection/ConstituentsLoader.h:31
InDetGNNHardScatterSelection::ConstituentsSortOrder
ConstituentsSortOrder
Definition
InnerDetector/InDetRecTools/InDetGNNHardScatterSelection/InDetGNNHardScatterSelection/ConstituentsLoader.h:25
Jets
Definition
Jets.py:1
SG::AuxElement
AuxElement(SG::AuxVectorData *container, size_t index)
Base class for elements of a container that can have aux data.
xAOD::Jet
Jet_v1 Jet
Definition of the current "jet version".
Definition
Event/xAOD/xAODJet/xAODJet/Jet.h:17
xAOD::Vertex
Vertex_v1 Vertex
Define the latest version of the vertex class.
Definition
Event/xAOD/xAODTracking/xAODTracking/Vertex.h:16
xAOD::JetContainer
JetContainer_v1 JetContainer
Definition of the current "jet container version".
Definition
JetContainer.h:17
InDetGNNHardScatterSelection::ConstituentsInputConfig
Definition
InnerDetector/InDetRecTools/InDetGNNHardScatterSelection/InDetGNNHardScatterSelection/ConstituentsLoader.h:45
Generated on
for ATLAS Offline Software by
1.17.0