ATLAS Offline Software
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 
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 
48  trans->setCluster (cluster);
49 }
50 
ElementLinkCnv_p3.h
This file contains the class definition for the ElementLinkCnv_p3 class.
ElementLinkCnv_p3::persToTrans
void persToTrans(const PersLink_t &pers, Link_t &trans, MsgStream &log) const
TrigEMClusterContainer.h
TrigRNNOutput_p2::m_cluster
ElementLinkInt_p3 m_cluster
Definition: TrigRNNOutput_p2.h:48
TrigRNNOutput.h
TrigRNNOutput::at
float & at(const unsigned int i)
Definition: TrigRNNOutput.cxx:29
TrigRNNOutput_p2
Definition: TrigRNNOutput_p2.h:22
ElementLinkCnv_p3::transToPers
void transToPers(const Link_t &trans, PersLink_t &pers, const SG::ThinningCache *cache, MsgStream &log) const
TrigRNNOutputCnv_p2::transToPers
virtual void transToPers(const TrigRNNOutput *transObj, TrigRNNOutput_p2 *persObj, MsgStream &log) const override
Definition: TrigRNNOutputCnv_p2.cxx:15
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
TrigRNNOutputCnv_p2.h
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_p2::m_output
std::vector< float > m_output
Definition: TrigRNNOutput_p2.h:47
TrigRNNOutput_p2.h
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigRNNOutput::output
std::vector< float > & output()
Acessor methods.
Definition: TrigRNNOutput.cxx:17
TrigRNNOutputCnv_p2::ELinkTrigEMClusterCnv
ElementLinkCnv_p3< ElementLink< TrigEMClusterContainer > > ELinkTrigEMClusterCnv
Definition: TrigRNNOutputCnv_p2.h:45
TrigRNNOutputCnv_p2::persToTrans
virtual void persToTrans(const TrigRNNOutput_p2 *persObj, TrigRNNOutput *transObj, MsgStream &log) const override
Definition: TrigRNNOutputCnv_p2.cxx:32