|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TAURECTOOLS_TAUJETRNN_H
6 #define TAURECTOOLS_TAUJETRNN_H
17 class LightweightGraph;
53 const std::vector<const xAOD::TauTrack *> &tracks,
54 const std::vector<xAOD::CaloVertexedTopoCluster> &
clusters)
const;
58 const std::vector<const xAOD::TauTrack *> &tracks,
59 const std::vector<xAOD::CaloVertexedTopoCluster> &
clusters,
60 std::map<std::string, std::map<std::string, double>>& scalarInputs,
61 std::map<std::string, std::map<std::string, std::vector<double>>>& vectorInputs)
const;
68 explicit operator bool()
const {
69 return static_cast<bool>(
m_graph);
75 using VectorMap = std::map<std::string, std::vector<double>>;
77 using InputMap = std::map<std::string, VariableMap>;
82 std::unique_ptr<const lwt::LightweightGraph>
m_graph;
93 #endif // TAURECTOOLS_TAUJETRNN_H
std::map< std::string, VariableMap > InputMap
Tool to calculate input variables for the RNN-based tau identification.
float compute(const xAOD::TauJet &tau, const std::vector< const xAOD::TauTrack * > &tracks, const std::vector< xAOD::CaloVertexedTopoCluster > &clusters) const
std::unique_ptr< const lwt::LightweightGraph > m_graph
TauJetRNN(const std::string &filename, const Config &config)
bool calculateInputVariables(const xAOD::TauJet &tau, const std::vector< const xAOD::TauTrack * > &tracks, const std::vector< xAOD::CaloVertexedTopoCluster > &clusters, std::map< std::string, std::map< std::string, double >> &scalarInputs, std::map< std::string, std::map< std::string, std::vector< double >>> &vectorInputs) const
Wrapper around lwtnn to compute the output score of a neural network.
std::vector< std::string > m_track_inputs
const TauJetRNNUtils::VarCalc * variable_calculator() const
std::map< std::string, double > VariableMap
std::map< std::string, std::vector< double > > VectorMap
Class describing a tau jet.
std::vector< std::string > m_scalar_inputs
std::string input_layer_tracks
Class mimicking the AthMessaging class from the offline software.
Evaluate cluster kinematics with a different vertex / signal state.
std::map< std::string, VectorMap > InputSequenceMap
std::vector< std::string > m_cluster_inputs
std::string input_layer_clusters
setBGCode setTAP setLVL2ErrorBits bool
std::string input_layer_scalar
std::unique_ptr< TauJetRNNUtils::VarCalc > m_var_calc