ATLAS Offline Software
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 
15 #include "AthenaKernel/CLASS_DEF.h"
16 
22 
23 private:
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 
27 public:
28 
32  TrigRNNOutput();
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 
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 
68 CLASS_DEF( TrigRNNOutput , 55078062 , 1 )
69 
70 #endif
71 
72 
TrigRNNOutput::cluster
const TrigEMCluster * cluster() const
Definition: TrigRNNOutput.cxx:64
TrigEMClusterContainer.h
TrigRNNOutput::at
float & at(const unsigned int i)
Definition: TrigRNNOutput.cxx:29
TrigEMCluster
Class with calibrated variables for egamma clustering.
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigEMCluster.h:31
TrigEMClusterContainer
Container from TrigEMCluster type objects.
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigEMClusterContainer.h:32
lumiFormat.i
int i
Definition: lumiFormat.py:85
TrigRNNOutput::m_cluster
ElementLink< TrigEMClusterContainer > m_cluster
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigRNNOutput.h:25
TrigRNNOutput
This class carries the output of the Neural Network of TrigMultiVarHypo.
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigRNNOutput.h:21
TrigEMCluster.h
TrigRNNOutputConverterBase
Definition: TrigRNNOutputConverterBase.h:9
TrigRNNOutput::clusterLink
const ElementLink< TrigEMClusterContainer > & clusterLink() const
Definition: TrigRNNOutput.cxx:78
TrigRNNOutput::setCluster
void setCluster(const TrigEMClusterContainer &cluster_con, unsigned int cluster_idx)
Definition: TrigRNNOutput.cxx:53
TrigRNNOutput::size
unsigned int size() const
Definition: TrigRNNOutput.cxx:37
TrigRNNOutput::m_output
std::vector< float > m_output
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigRNNOutput.h:24
TrigRNNOutput::TrigRNNOutput
TrigRNNOutput()
Class default constructor.
Definition: TrigRNNOutput.cxx:9
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
TrigRNNOutput::isValid
bool isValid() const
Set and manipulate ElementLink.
Definition: TrigRNNOutput.cxx:49
TrigRNNOutput::output
std::vector< float > & output()
Acessor methods.
Definition: TrigRNNOutput.cxx:17
CLASS_DEF.h
macros to associate a CLID to a type
TrigRNNOutput::operator[]
const float & operator[](const unsigned int i) const
Definition: TrigRNNOutput.cxx:41