23 const std::string& name,
24 const IInterface* parent )
28 declareInterface< IMBTSModuleCnvTool >(
this);
36 return StatusCode::SUCCESS;
40 const auto end = aod->
end();
41 for(
auto itr = aod->
begin(); itr != end; ++itr ) {
46 xmbtsmod->
setE((*itr)->energy());
47 xmbtsmod->
setEta((*itr)->eta());
48 xmbtsmod->
setPhi((*itr)->phi());
49 xmbtsmod->
setTime((*itr)->time());
51 xmbtsmod->
setMbtsQuality ( ((*itr)->provenance()<<16 ) | (*itr)->quality());
52 ATH_MSG_DEBUG(
"MBTS: quality=" << (*itr)->quality() <<
" provenance=" << (*itr)->provenance() <<
" mbtsQuality=" << xmbtsmod->
mbtsQuality() );
63 return StatusCode::SUCCESS;
#define ATH_MSG_WARNING(x)
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
TileContainer< TileCell > TileCellContainer
const ServiceHandle< StoreGateSvc > & detStore() const
value_type push_back(value_type pElem)
Add an element to the end of the collection.
const_iterator end() const noexcept
const_iterator begin() const noexcept
Helper class for TileCal offline identifiers of ancillary testbeam detectors and MBTS.
int type(const Identifier &id) const
extract type field from TileTB identifier
int channel(const Identifier &id) const
extract channel field from TileTB identifier
void setMbtsModule(int val_module)
void setMbtsQuality(int val_quality)
void setEta(float val_eta)
void setTime(float val_time)
void setChannel(int val_channel)
void setPhi(float val_phi)
void setType(int val_type)
MBTSModuleContainer_v1 MBTSModuleContainer