 |
ATLAS Offline Software
|
Go to the documentation of this file.
10 #include "GaudiKernel/MsgStream.h"
26 assert(oldObj !=
nullptr);
27 assert(newObj !=
nullptr);
40 for(
size_t i = 0;
i < oldObj->
size(); ++
i ) {
43 oldInt.setStore( oldObj );
46 for(
size_t i = 0;
i < newObj->
size(); ++
i ) {
49 newInt.setStore( newObj );
51 unsigned int index{0};
56 const int oldID = (idAcc.
isAvailable (*oldVtx)) ? idAcc(*oldVtx) : 1000;
62 newVtx->
setUid(oldBarcode);
76 MsgStream&
log)
const {
78 static const char*
const ERRORMSG =
79 "Somebody called xAODTruthVertexAuxContainerCnv_v1::transToPers";
81 throw std::runtime_error(ERRORMSG);
void copyAuxStoreThinned(const SG::IConstAuxStore &orig, SG::IAuxStore ©, const SG::ThinningInfo *info)
Helper to copy an aux store while applying thinning.
Auxiliary store for the truth vertices.
Helper class to provide type-safe access to aux data.
virtual void persToTrans(const xAOD::TruthVertexAuxContainer_v1 *oldObj, xAOD::TruthVertexAuxContainer *newObj, MsgStream &log) const override
Function converting from the old type to the current one.
Auxiliary store for the truth vertices.
virtual bool resize(size_t size) override
Resize the arrays to a given size.
virtual size_t size() const override
Get the size of the container.
Helper to copy an aux store while applying thinning.
int new_vertex_status_from_old(const int oldStatus, const int barcode)
Get vertex status in the new scheme from the barcode and status in the old scheme.
virtual void transToPers(const xAOD::TruthVertexAuxContainer *, xAOD::TruthVertexAuxContainer_v1 *, MsgStream &log) const override
Dummy function inherited from the base class.
constexpr int INVALID_VERTEX_ID
Class describing a truth vertex in the MC record.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
void setUid(int value)
Set the vertex unique ID.
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
const T * at(size_type n) const
Access an element, as an rvalue.
void setStatus(int value)
Set the vertex status.