ATLAS Offline Software
Loading...
Searching...
No Matches
Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigRNNOutput.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGRNNOUTPUT_H
6#define TRIGRNNOUTPUT_H
7
8
9#include <vector>
10
11#include "AthLinks/ElementLink.h"
14
16
20
22
23private:
24 std::vector<float> m_output; //< Holds the output vector of the neural network.
25 ElementLink<TrigEMClusterContainer> m_cluster; //< Links this object with the cluster on which the rings were generated.
26
27public:
28
33
39 TrigRNNOutput(const std::vector<float> &output);
40
41
43 std::vector<float> &output();
44 const std::vector<float> &output() const;
45 void output(const std::vector<float> &o);
46 float &at(const unsigned int i);
47 const float &at(const unsigned int i) const;
48 unsigned int size() const;
49 const float &operator [](const unsigned int i) const;
50 float &operator [](const unsigned int i);
51
56
57 bool isValid() const;
58 void setCluster(const TrigEMClusterContainer &cluster_con, unsigned int cluster_idx);
60 const TrigEMCluster *cluster() const;
62
63 private:
64 template <class T>
66};
67
68CLASS_DEF( TrigRNNOutput , 55078062 , 1 )
69
70#endif
71
72
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Class with calibrated variables for egamma clustering.
This class carries the output of the Neural Network of TrigMultiVarHypo.
const TrigEMCluster * cluster() const
unsigned int size() const
float & at(const unsigned int i)
std::vector< float > & output()
Acessor methods.
const ElementLink< TrigEMClusterContainer > & clusterLink() const
TrigRNNOutput()
Class default constructor.
const float & operator[](const unsigned int i) const
void setCluster(const TrigEMClusterContainer &cluster_con, unsigned int cluster_idx)
bool isValid() const
Set and manipulate ElementLink.