 |
ATLAS Offline Software
|
Go to the documentation of this file.
22 std::string shortPrint(
const TRT_RDO_Container *main_input_TRT,
unsigned maxprint=25) {
23 std::ostringstream
os;
25 for(
unsigned i=0;
i<maxprint;
i++) {
27 if(
p != main_input_TRT->
end()) {
28 os<<
" "<< (*p)->size();
36 os<<
" [TRT_RDO_Container==NULL]";
43 std::string persistentTRT_ToString(
const TRT_RDO_colvector& rdoV,
unsigned maxprint = 20) {
44 std::ostringstream
os;
45 os<<
"TRT_RDO_colvector = ["<<rdoV.size()<<
"] ";
48 if(++
count>maxprint)
break;
50 os<<(*it)->size()<<
" ";
64 unsigned null_count(0);
92 MSG_DEBUG(
log,
"[p1] using collections found in the StoreGate");
94 for (;
it != last; ++
it) {
102 log<<MSG::WARNING<<
"[p1] transToPers(): got "<< null_count<<
" NULLs in IdentifiableContainer"<<
endmsg;
105 MSG_DEBUG(
log,
"[p1] transToPers(): PERS = "<<persistentTRT_ToString(*pers));
111 MSG_DEBUG(
log,
"[p1] persToTrans(): PERS = "<<persistentTRT_ToString(*pers));
115 for (;
it != last; ++
it) {
119 if (
sc.isFailure()) {
120 log <<
MSG::FATAL <<
"[p1] persToTrans(): TRT RDOs could not be added to the container!" <<
endmsg;
121 throw std::runtime_error(
"TRT_RDO_ContainerCnv_p1::persToTrans(): TRT RDOs could not be added to the container!");
130 return(trans.release());
135 std::unique_ptr<TRT_RDO_Container_p1> pers(std::make_unique<TRT_RDO_Container_p1>(
SG::VIEW_ELEMENTS));
137 return(pers.release());
virtual StatusCode addCollection(const T *coll, IdentifierHash hashId) override final
insert collection into container with id hash if IDC should not take ownership of collection,...
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
iterator end() noexcept
Return an iterator pointing past the end of the collection.
This is an Identifier helper class for the TRT subdetector. This class is a factory for creating comp...
virtual void transToPers(const TRT_RDO_Container *transObj, TRT_RDO_Container_p1 *persObj, MsgStream &log)
StatusCode retrieve(const T *&ptr) const
Retrieve the default object into a const T*.
virtual void persToTrans(const TRT_RDO_Container_p1 *persObj, TRT_RDO_Container *transObj, MsgStream &log)
virtual TRT_RDO_Container * createTransient(const TRT_RDO_Container_p1 *persObj, MsgStream &log)
::StatusCode StatusCode
StatusCode definition for legacy code.
const_iterator indexFind(IdentifierHash hashId) const
const_iterator end() const
return const_iterator for end of container
const_iterator begin() const
return const_iterator for first entry
virtual TRT_RDO_Container_p1 * createPersistent(const TRT_RDO_Container *persObj, MsgStream &log)
DV::const_iterator const_iterator
StoreGateSvc * m_storeGate
value_type push_back(value_type pElem)
Add an element to the end of the collection.
DataVector adapter that acts like it holds const pointers.
#define MSG_DEBUG(log, x)
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
size_type straw_layer_hash_max() const
iterator begin() noexcept
Return an iterator pointing at the beginning of the collection.