16#ifndef TRIGEVENTTPCNV_TRIGRNNOUTPUTCONTAINER_CNV_P1_H
17#define TRIGEVENTTPCNV_TRIGRNNOUTPUTCONTAINER_CNV_P1_H
36 log << MSG::DEBUG <<
"TrigRNNOutputContainerCnv::persToTrans" <<
endmsg;
38 log << MSG::WARNING <<
"TrigRNNOutputContainerCnv::persToTrans cannot convert NULL persVect" <<
endmsg;
42 log << MSG::WARNING <<
"TrigRNNOutputContainerCnv::persToTrans cannot convert to NULL transVect" <<
endmsg;
47 transVect->
reserve(persVect->size());
50 for (TrigRNNOutputContainer_p1::const_iterator it = persVect->begin();
51 it != persVect->end(); ++it) {
55 log << MSG::WARNING <<
"TrigRNNOutputContainerCnv::persToTrans failed for an element " <<
endmsg;
64 log << MSG::WARNING <<
"TrigRNNOutputContainerCnv::transToPers cannot convert NULL persVect" <<
endmsg;
68 log << MSG::WARNING <<
"TrigRNNOutputContainerCnv::transToPers cannot convert to NULL transVect" <<
endmsg;
73 persVect->reserve(transVect->
size());
76 it != transVect->
end(); ++it ) {
78 persVect->push_back(
a);
80 log << MSG::WARNING <<
"TrigRNNOutputContainerCnv::transToPers failed for an element " << *it <<
" "
TPPtrVectorCnv< TRANS, PERS, CONV > T_AthenaPoolTPPtrVectorCnv
DataModel_detail::const_iterator< DataVector > const_iterator
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
void clear()
Erase all the elements in the collection.
CNV::Trans_t * createTransFromPStore(CNV **cnv, const TPObjRef &ref, MsgStream &log) const
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
This class is an object reference used in Athena persistent data model.
CONV * m_elementCnv
pointer to the TP converter used for vector elements
virtual void transToPers(const TrigRNNOutputContainer *transVect, TrigRNNOutputContainer_p1 *persVect, MsgStream &log)
TrigRNNOutputContainerCnv_p1()
virtual void persToTrans(const TrigRNNOutputContainer_p1 *persVect, TrigRNNOutputContainer *transVect, MsgStream &log)
This class carries the output of the Neural Network of TrigMultiVarHypo.