ATLAS Offline Software
Loading...
Searching...
No Matches
TrigRNNOutputCnv_p2.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
6
8
11
12#include "AthLinks/ElementLink.h"
14
16 TrigRNNOutput_p2 *pers,
17 MsgStream &log) const {
18
19 log << MSG::DEBUG << "TrigRNNOutputCnv_p2::tranToPers" << endmsg;
20
21 if ( (!trans) || (!pers) )
22 return;
23
24 pers->m_output.clear();
25 for (unsigned int i = 0; i < trans->size(); ++i) {
26 pers->m_output.push_back(trans->at(i));
27 }
28
29 ELinkTrigEMClusterCnv.transToPers(&trans->clusterLink(), &pers->m_cluster, log);
30}
31
33 TrigRNNOutput *trans,
34 MsgStream &log) const {
35
36 log << MSG::DEBUG << "TrigRNNOutputCnv_p2::persToTrans" << endmsg;
37
38 if ( (!pers) || (!trans) )
39 return;
40
41 trans->output().clear();
42 for (unsigned int i = 0; i < pers->m_output.size(); ++i){
43 trans->output().push_back(pers->m_output[i]);
44 }
45
47 ELinkTrigEMClusterCnv.persToTrans(&pers->m_cluster, &cluster, log);
48 trans->setCluster (cluster);
49}
50
#define endmsg
This file contains the class definition for the ElementLinkCnv_p3 class.
virtual void transToPers(const TrigRNNOutput *transObj, TrigRNNOutput_p2 *persObj, MsgStream &log) const override
ElementLinkCnv_p3< ElementLink< TrigEMClusterContainer > > ELinkTrigEMClusterCnv
virtual void persToTrans(const TrigRNNOutput_p2 *persObj, TrigRNNOutput *transObj, MsgStream &log) const override
ElementLinkInt_p3 m_cluster
std::vector< float > m_output
This class carries the output of the Neural Network of TrigMultiVarHypo.
unsigned int size() const
float & at(const unsigned int i)
std::vector< float > & output()
Acessor methods.
const ElementLink< TrigEMClusterContainer > & clusterLink() const
void setCluster(const TrigEMClusterContainer &cluster_con, unsigned int cluster_idx)