Skip to content
Snippets Groups Projects
Commit a68e51c8 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'cherry-pick-2ab00e52-master' into 'master'

Sweeping !20527 from 21.3 to master.
Fixing the strip identifier in the MM RDO

See merge request !20576
parents fce2ac1c 32e551c8
No related branches found
No related tags found
9 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!28528Revert 63f845ae,!27054Atr20369 210,!26342Monopole: Handle fractionally charged particles,!20576Sweeping !20527 from 21.3 to master. Fixing the strip identifier in the MM RDO
File mode changed from 100644 to 100755
......@@ -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