ATLAS Offline Software
Loading...
Searching...
No Matches
DL2.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef DL2_H
6#define DL2_H
7
8// local includes
11
12// forward declarations
13namespace lwt {
14 class NanReplacer;
15 class LightweightGraph;
16}
17
19
20 using namespace FlavorTagInference;
21
22 class DL2 {
23 public:
24 DL2(const lwt::GraphConfig&,
25 const std::vector<FTagInputConfig>&,
26 const std::vector<ConstituentsInputConfig>& = {},
27 const FTagOptions& = FTagOptions());
28 void decorate(const xAOD::IParticle& i_jet) const;
29 void decorateWithDefaults(const SG::AuxElement&) const;
30
31
32 // functions to report data dependencies
34
35 private:
36 void decorate(const xAOD::Jet& jet) const;
37 std::string m_input_node_name;
38 std::unique_ptr<lwt::LightweightGraph> m_graph;
39 std::unique_ptr<lwt::NanReplacer> m_variable_cleaner;
40 std::vector<std::pair<std::string, internal::VarFromJet>> m_varsFromJet;
41 std::vector<std::shared_ptr<TracksLoader>> m_tracksLoaders;
42 std::map<std::string, internal::OutNodeFloat> m_decorators;
44 std::function<char(const internal::Tracks&)> m_invalid_track_checker;
45 std::vector<SG::AuxElement::Decorator<char>> m_is_defaults;
46
48
49 };
50}
51#endif
DL2(const lwt::GraphConfig &, const std::vector< FTagInputConfig > &, const std::vector< ConstituentsInputConfig > &={}, const FTagOptions &=FTagOptions())
Definition DL2.cxx:20
std::function< char(const internal::Tracks &)> m_invalid_track_checker
Definition DL2.h:44
void decorate(const xAOD::IParticle &i_jet) const
Definition DL2.cxx:70
std::unique_ptr< lwt::LightweightGraph > m_graph
Definition DL2.h:38
std::string m_input_node_name
Definition DL2.h:37
const FTagDataDependencyNames & getDataDependencyNames() const
Definition DL2.cxx:129
std::vector< SG::AuxElement::Decorator< char > > m_is_defaults
Definition DL2.h:45
std::vector< std::shared_ptr< TracksLoader > > m_tracksLoaders
Definition DL2.h:41
std::unique_ptr< lwt::NanReplacer > m_variable_cleaner
Definition DL2.h:39
std::map< std::string, internal::OutNodeFloat > m_decorators
Definition DL2.h:42
FTagDataDependencyNames m_dataDependencyNames
Definition DL2.h:47
std::vector< std::pair< std::string, internal::VarFromJet > > m_varsFromJet
Definition DL2.h:40
void decorateWithDefaults(const SG::AuxElement &) const
Definition DL2.cxx:74
Base class for elements of a container that can have aux data.
Definition AuxElement.h:483
Class providing the definition of the 4-vector interface.
This file contains "getter" functions used for accessing tagger inputs from the EDM.
Jet_v1 Jet
Definition of the current "jet version".