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

Merge branch 'adc2mevcondalg.LArRecUtils-20180323' into 'master'

LArRecUtils: Don't complain in LArADC2MeVCondAlg if low gain data are missing.

See merge request atlas/athena!9951
parents 7f4d6efb ff75d1a2
1 merge request!20779WIP: Migrate DataQualityTools to ToolHandles
......@@ -14,6 +14,7 @@
#include "LArElecCalib/ILArHVScaleCorr.h"
#include "LArIdentifier/LArOnlineID.h"
#include "LArIdentifier/LArOnline_SuperCellID.h"
#include "CaloIdentifier/CaloGain.h"
#include "LArElecCalib/ILArFEBConfigReader.h"
......@@ -271,8 +272,14 @@ StatusCode LArADC2MeVCondAlg::execute() {
// ADC2DAC is a vector (polynomial fit of ramps)
const ILArRamp::RampRef_t adc2dac = larRamp->ADC2DAC(chid,igain);
if (adc2dac.size()<2) {
msg(MSG::ERROR) << "No Ramp found for channel " << larOnlineID->channel_name(chid) << ", gain " << igain << endmsg;
++nNoRamp;
// Low gain can sometimes be missing: not an error.
if (igain == CaloGain::LARLOWGAIN) {
msg(MSG::VERBOSE) << "No Ramp found for channel " << larOnlineID->channel_name(chid) << ", gain " << igain << endmsg;
}
else {
msg(MSG::ERROR) << "No Ramp found for channel " << larOnlineID->channel_name(chid) << ", gain " << igain << endmsg;
++nNoRamp;
}
continue;
}
......
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