Skip to content
Snippets Groups Projects
Commit 2e8478d8 authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'assert.LArRawConditions-20180322' into 'master'

LArRawConditions: Fix off-by-one error in assertion.

See merge request atlas/athena!9916
parents 5cd378d4 05080fdf
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ LArADC2MeV::LArADC2MeV(const LArOnlineID_Base* onlineID, const LArOnOffIdMapping
m_nGains(nGains) {
assert(m_onlineID);
assert(nGains<3 && nGains>0);
assert(nGains<=CaloGain::LARNGAIN && nGains>0);
for (size_t i=0;i<nGains;++i) {
m_adc2MeV[i].resize(onlineID->channelHashMax());
......
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