36 ATH_MSG_DEBUG(
"StgcDataPreparator::prepareData() was called.");
40 std::vector<const Muon::sTgcPrepDataCollection*> stgcCols;
41 std::vector<IdentifierHash> stgcHashList;
42 std::vector<IdentifierHash> stgcHashList_cache;
47 return StatusCode::SUCCESS;
50 if (!stgcPrepContainerHandle.isValid()) {
52 return StatusCode::FAILURE;
70 std::vector<uint32_t> stgcRobList;
73 if (!stgcHashList.empty()) {
80 if( STGCcoll ==
nullptr ) {
84 if( STGCcoll->size() == 0) {
89 stgcHashList_cache.push_back(
id);
90 stgcCols.push_back(STGCcoll);
99 for(
const auto stgccoll : *stgcPrds) {
100 stgcCols.push_back(stgccoll);
107 stgcHits.reserve( stgcHits.size() + stgc->size() );
113 lutDigit.
eta = prepData->globalPosition().eta();
114 lutDigit.
phi = prepData->globalPosition().phi();
115 lutDigit.
r = prepData->globalPosition().perp();
116 lutDigit.
z = prepData->globalPosition().z();
125 stgcHits.push_back(lutDigit);
127 ATH_MSG_DEBUG(
"StgcDataPreparator: global eta/phi/r/z station eta/phi/name channel_type layer " << lutDigit.
eta <<
"/" << lutDigit.
phi <<
"/" << lutDigit.
r <<
"/" << lutDigit.
z <<
" " << lutDigit.
stationEta <<
"/" << lutDigit.
stationPhi <<
"/" << lutDigit.
stationName <<
" " << lutDigit.
channelType <<
" " << (
m_idHelperSvc->stgcIdHelper().gasGap(prepData->identify())-1 + 4*(
m_idHelperSvc->stgcIdHelper().multilayer(prepData->identify())-1)) );
132 return StatusCode::SUCCESS;