ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
FlavorTagInference
FlavorTagInference
CaloClusterLoader.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
4
This is a subclass of IConstituentsLoader. It is used to load CaloCluster
5
objects from the jet via a two-hop navigation:
6
jet -> constituentLinks -> FlowElement -> otherObjects() -> CaloCluster
7
and extract their features for the NN evaluation.
8
*/
9
10
#ifndef CALO_CLUSTER_LOADER_H
11
#define CALO_CLUSTER_LOADER_H
12
13
// local includes
14
#include "
FlavorTagInference/ConstituentsLoader.h
"
15
#include "
FlavorTagInference/CustomGetterUtils.h
"
16
17
// EDM includes
18
#include "
xAODJet/JetFwd.h
"
19
#include "
xAODPFlow/FlowElement.h
"
20
#include "
xAODCaloEvent/CaloCluster.h
"
21
22
// STL includes
23
#include <string>
24
#include <vector>
25
#include <functional>
26
27
namespace
FlavorTagInference
{
28
29
// Subclass for CaloCluster loader inherited from abstract IConstituentsLoader class
30
class
CaloClusterLoader
:
public
IConstituentsLoader
{
31
public
:
32
CaloClusterLoader
(
const
ConstituentsInputConfig
& cfg,
const
FTagOptions
& options);
33
Inputs
getData
(
const
xAOD::IParticle
&
jet
)
const override
;
34
const
FTagDataDependencyNames
&
getDependencies
()
const override
;
35
const
std::set<std::string>&
getUsedRemap
()
const override
;
36
const
std::string&
getName
()
const override
;
37
const
ConstituentsType
&
getType
()
const override
;
38
protected
:
39
// typedefs
40
typedef
xAOD::IParticle
Jet
;
41
typedef
std::pair<std::string, double>
NamedVar
;
42
typedef
std::pair<std::string, std::vector<double> >
NamedSeq
;
43
// CaloCluster typedefs
44
typedef
std::vector<const xAOD::CaloCluster*>
CaloClusters
;
45
typedef
std::function<double(
const
xAOD::CaloCluster
*,
46
const
Jet
&)>
CaloClusterSortVar
;
47
48
// usings for IParticle getter
49
using
AE
=
SG::AuxElement
;
50
using
IPC
=
xAOD::IParticleContainer
;
51
using
PartLinks
= std::vector<ElementLink<IPC>>;
52
53
CaloClusterSortVar
caloClusterSortVar
(
ConstituentsSortOrder
);
54
55
CaloClusters
getCaloClustersFromJet
(
const
xAOD::IParticle
&
jet
)
const
;
56
57
CaloClusterSortVar
m_caloClusterSortVar
;
58
getter_utils::SeqGetter<xAOD::CaloCluster>
m_seqGetter
;
59
bool
m_skipInvalidLinks
{
false
};
60
};
61
}
62
63
#endif
CaloCluster.h
FlowElement.h
JetFwd.h
ConstituentsLoader.h
CustomGetterUtils.h
FlavorTagInference::CaloClusterLoader::NamedVar
std::pair< std::string, double > NamedVar
Definition
CaloClusterLoader.h:41
FlavorTagInference::CaloClusterLoader::NamedSeq
std::pair< std::string, std::vector< double > > NamedSeq
Definition
CaloClusterLoader.h:42
FlavorTagInference::CaloClusterLoader::getCaloClustersFromJet
CaloClusters getCaloClustersFromJet(const xAOD::IParticle &jet) const
Definition
CaloClusterLoader.cxx:44
FlavorTagInference::CaloClusterLoader::getData
Inputs getData(const xAOD::IParticle &jet) const override
Definition
CaloClusterLoader.cxx:107
FlavorTagInference::CaloClusterLoader::m_caloClusterSortVar
CaloClusterSortVar m_caloClusterSortVar
Definition
CaloClusterLoader.h:57
FlavorTagInference::CaloClusterLoader::m_seqGetter
getter_utils::SeqGetter< xAOD::CaloCluster > m_seqGetter
Definition
CaloClusterLoader.h:58
FlavorTagInference::CaloClusterLoader::getName
const std::string & getName() const override
Definition
CaloClusterLoader.cxx:118
FlavorTagInference::CaloClusterLoader::IPC
xAOD::IParticleContainer IPC
Definition
CaloClusterLoader.h:50
FlavorTagInference::CaloClusterLoader::caloClusterSortVar
CaloClusterSortVar caloClusterSortVar(ConstituentsSortOrder)
Definition
CaloClusterLoader.cxx:16
FlavorTagInference::CaloClusterLoader::Jet
xAOD::IParticle Jet
Definition
CaloClusterLoader.h:40
FlavorTagInference::CaloClusterLoader::AE
SG::AuxElement AE
Definition
CaloClusterLoader.h:49
FlavorTagInference::CaloClusterLoader::m_skipInvalidLinks
bool m_skipInvalidLinks
Definition
CaloClusterLoader.h:59
FlavorTagInference::CaloClusterLoader::getDependencies
const FTagDataDependencyNames & getDependencies() const override
Definition
CaloClusterLoader.cxx:112
FlavorTagInference::CaloClusterLoader::CaloClusterSortVar
std::function< double(const xAOD::CaloCluster *, const Jet &)> CaloClusterSortVar
Definition
CaloClusterLoader.h:46
FlavorTagInference::CaloClusterLoader::CaloClusters
std::vector< const xAOD::CaloCluster * > CaloClusters
Definition
CaloClusterLoader.h:44
FlavorTagInference::CaloClusterLoader::CaloClusterLoader
CaloClusterLoader(const ConstituentsInputConfig &cfg, const FTagOptions &options)
Definition
CaloClusterLoader.cxx:30
FlavorTagInference::CaloClusterLoader::getType
const ConstituentsType & getType() const override
Definition
CaloClusterLoader.cxx:121
FlavorTagInference::CaloClusterLoader::getUsedRemap
const std::set< std::string > & getUsedRemap() const override
Definition
CaloClusterLoader.cxx:115
FlavorTagInference::CaloClusterLoader::PartLinks
std::vector< ElementLink< IPC > > PartLinks
Definition
CaloClusterLoader.h:51
FlavorTagInference::IConstituentsLoader::IConstituentsLoader
IConstituentsLoader(const ConstituentsInputConfig &cfg)
Definition
PhysicsAnalysis/JetTagging/FlavorTagInference/FlavorTagInference/ConstituentsLoader.h:86
FlavorTagInference::getter_utils::SeqGetter
Template class to extract features from sequence of constituents.
Definition
PhysicsAnalysis/JetTagging/FlavorTagInference/FlavorTagInference/CustomGetterUtils.h:70
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition
Event/xAOD/xAODBase/xAODBase/IParticle.h:41
FlavorTagInference
This file contains "getter" functions used for accessing tagger inputs from the EDM.
Definition
CaloClusterLoader.h:27
FlavorTagInference::ConstituentsType
ConstituentsType
Definition
PhysicsAnalysis/JetTagging/FlavorTagInference/FlavorTagInference/ConstituentsLoader.h:48
FlavorTagInference::ConstituentsSortOrder
ConstituentsSortOrder
Definition
PhysicsAnalysis/JetTagging/FlavorTagInference/FlavorTagInference/ConstituentsLoader.h:29
SG::AuxElement
AuxElement(SG::AuxVectorData *container, size_t index)
Base class for elements of a container that can have aux data.
jet
Definition
JetCalibTools_PlotJESFactors.cxx:23
xAOD::CaloCluster
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloCluster.h:19
xAOD::IParticleContainer
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.
Definition
xAOD/xAODBase/xAODBase/IParticleContainer.h:32
FlavorTagInference::ConstituentsInputConfig
Definition
PhysicsAnalysis/JetTagging/FlavorTagInference/FlavorTagInference/ConstituentsLoader.h:67
FlavorTagInference::FTagDataDependencyNames
Definition
FTagDataDependencyNames.h:12
FlavorTagInference::FTagOptions
Definition
PhysicsAnalysis/JetTagging/FlavorTagInference/FlavorTagInference/DataPrepUtilities.h:45
Generated on
for ATLAS Offline Software by
1.17.0