|
ATLAS Offline Software
|
Go to the documentation of this file.
16 #ifndef TRIGEVENTTPCNV_TRIGRNNOUTPUTCONTAINER_CNV_P1_H
17 #define TRIGEVENTTPCNV_TRIGRNNOUTPUTCONTAINER_CNV_P1_H
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 <<
" "
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
Const iterator class for DataVector/DataList.
virtual void transToPers(const TrigRNNOutputContainer *transVect, TrigRNNOutputContainer_p1 *persVect, MsgStream &log)
TrigRNNOutputContainerCnv_p1()
This class carries the output of the Neural Network of TrigMultiVarHypo.
void clear()
Erase all the elements in the collection.
virtual void persToTrans(const TrigRNNOutputContainer_p1 *persVect, TrigRNNOutputContainer *transVect, MsgStream &log)
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
Persistify an object and store the persistent represenation in the storage vector of the top-level pe...
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.
CONV * m_elementCnv
pointer to the TP converter used for vector elements
size_type size() const noexcept
Returns the number of elements in the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
CNV::Trans_t * createTransFromPStore(CNV **cnv, const TPObjRef &ref, MsgStream &log) const
Create transient representation of a persistent object, stored in the the top-level persistent object...