Skip to content
Snippets Groups Projects
Commit 2ab00e52 authored by John Derek Chapman's avatar John Derek Chapman
Browse files

Merge branch 'nsw_clus_tools' into '21.3'

Fixing the strip identifier in the MM RDO

See merge request atlas/athena!20527
parents 1056c860 4cdff5d3
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,29 @@ StatusCode MM_DigitToRDO::execute()
for ( unsigned int i=0 ; i<nstrips ; ++i ) {
MM_RawData* rdo = new MM_RawData(id,
///
/// set the rdo id to a value consistent with the channel number
///
bool isValid;
int stationName = m_idHelper->stationName(id);
int stationEta = m_idHelper->stationEta(id);
int stationPhi = m_idHelper->stationPhi(id);
int multilayer = m_idHelper->multilayer(id);
int gasGap = m_idHelper->gasGap(id);
///
int channel = digit->stripResponsePosition().at(i);
Identifier newId = m_idHelper->channelID(stationName,stationEta,
stationPhi,multilayer,gasGap,channel,true,&isValid);
if (!isValid) {
ATH_MSG_WARNING("Invalid MM identifier. StationName="<<stationName <<
" stationEta=" << stationEta << " stationPhi=" << stationPhi <<
" multi=" << multilayer << " gasGap=" << gasGap << " channel=" << channel);
continue;
}
MM_RawData* rdo = new MM_RawData(newId,
digit->stripResponsePosition().at(i),
digit->stripResponseTime().at(i),
digit->stripResponseCharge().at(i));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment