ATLAS Offline Software
TrigRNNOutputCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
10 
11 #include "AthLinks/ElementLink.h"
13 
15  TrigRNNOutput_p1 *pers,
16  MsgStream &log) const {
17 
18  log << MSG::DEBUG << "TrigRNNOutputCnv_p1::tranToPers" << endmsg;
19 
20  if ( (!trans) || (!pers) )
21  return;
22 
23  pers->m_output.clear();
24  for (unsigned int i = 0; i < trans->size(); ++i) {
25  pers->m_output.push_back(trans->at(i));
26  }
27 
28  m_ELinkTrigEMClusterCnv.transToPers(&trans->clusterLink(), &pers->m_cluster, log);
29 }
30 
32  TrigRNNOutput *trans,
33  MsgStream &log) const {
34 
35  log << MSG::DEBUG << "TrigRNNOutputCnv_p1::persToTrans" << endmsg;
36 
37  if ( (!pers) || (!trans) )
38  return;
39 
40  trans->output().clear();
41  for (unsigned int i = 0; i < pers->m_output.size(); ++i){
42  trans->output().push_back(pers->m_output[i]);
43  }
44 
46  m_ELinkTrigEMClusterCnv.persToTrans(&pers->m_cluster, &cluster, log);
47  trans->setCluster (cluster);
48 }
49 
ElementLinkCnv_p1.h
This file contains the class definition for the ElementLinkCnv_p1 class.
TrigRNNOutputConverterBase< TrigRNNOutput_p1 >::transToPers
virtual void transToPers(const TrigRNNOutput *transObj, TrigRNNOutput_p1 *persObj, MsgStream &log) const override
Definition: TrigRNNOutputCnv_p1.cxx:14
TrigEMClusterContainer.h
TrigRNNOutput.h
TrigRNNOutput::at
float & at(const unsigned int i)
Definition: TrigRNNOutput.cxx:29
lumiFormat.i
int i
Definition: lumiFormat.py:85
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigRNNOutput
This class carries the output of the Neural Network of TrigMultiVarHypo.
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigRNNOutput.h:21
TrigRNNOutput_p1
Definition: TrigRNNOutput_p1.h:22
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
TrigRNNOutputConverterBase< TrigRNNOutput_p1 >::persToTrans
virtual void persToTrans(const TrigRNNOutput_p1 *persObj, TrigRNNOutput *transObj, MsgStream &log) const override
Definition: TrigRNNOutputCnv_p1.cxx:31
TrigRNNOutput_p1.h
TrigRNNOutputCnv_p1.h
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigRNNOutput_p1::m_cluster
ElementLinkInt_p1 m_cluster
Definition: TrigRNNOutput_p1.h:51
TrigRNNOutput_p1::m_output
std::vector< float > m_output
Definition: TrigRNNOutput_p1.h:50
TrigRNNOutput::output
std::vector< float > & output()
Acessor methods.
Definition: TrigRNNOutput.cxx:17