|
ATLAS Offline Software
|
Go to the documentation of this file.
10 #include "Identifier/Identifier.h"
18 persCont->
m_simdata.resize(transCont->size());
20 unsigned int collIndex(0);
21 for (
const auto& transSimDataPair : *transCont) {
23 (persCont->
m_simdata[collIndex]).
first = transSimDataPair.first.get_identifier32().get_compact();
36 if (this->
initialize(log) != StatusCode::SUCCESS) {
42 for (
const auto& persSimDataPair : persCont->
m_simdata) {
53 else {
id = persSimDataPair.first; }
54 transCont->insert( transCont->end(), std :: make_pair(
id,
simData ) );
55 transCont->insert( transCont->end(), std :: make_pair(
Identifier( persSimDataPair.first ),
simData ) );
66 SmartIF<StoreGateSvc>
detStore{Gaudi::svcLocator()->service(
"DetectorStore")};
72 return StatusCode::SUCCESS;
std::vector< std::pair< Identifier32::value_type, InDetSimData_p1 > > m_simdata
static IProxyDict * store()
Fetch the current store.
StatusCode initialize(MsgStream &log)
bool is_shortened_pixel_id(Identifier32::value_type val) const
Test if this is a valid shortened pixel channel id.
virtual void transToPers(const InDetSimDataCollection *transCont, InDetSimDataCollection_p1 *persCont, MsgStream &log)
virtual void persToTrans(const InDetSimData_p1 *persObj, InDetSimData *transObj, MsgStream &log)
::StatusCode StatusCode
StatusCode definition for legacy code.
void setCurrentStore(IProxyDict *store)
#define CHECK(...)
Evaluate an expression and check for errors.
virtual void persToTrans(const InDetSimDataCollection_p1 *persCont, InDetSimDataCollection *transCont, MsgStream &log)
virtual void transToPers(const InDetSimData *transObj, InDetSimData_p1 *persObj, MsgStream &log)
Helpers for checking error return status codes and reporting errors.
#define MSG_DEBUG(log, x)
Identifier pixel_id_from_shortened(Identifier32::value_type val) const
Create a compact pixel id from a (fixed format) legacy pixel channel id.