Skip to content
Snippets Groups Projects
Commit 5542eb86 authored by scott snyder's avatar scott snyder
Browse files

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

In one configuration, observed errors from LArADC2MeVCondAlg because
low gain data were missing.  With LArADC2MeVTool, this would not be
an error.  Update LArADC2MeVCondAlg so that this is not an error.


Former-commit-id: ff75d1a2
parent addb03fa
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include "LArElecCalib/ILArHVScaleCorr.h" #include "LArElecCalib/ILArHVScaleCorr.h"
#include "LArIdentifier/LArOnlineID.h" #include "LArIdentifier/LArOnlineID.h"
#include "LArIdentifier/LArOnline_SuperCellID.h" #include "LArIdentifier/LArOnline_SuperCellID.h"
#include "CaloIdentifier/CaloGain.h"
#include "LArElecCalib/ILArFEBConfigReader.h" #include "LArElecCalib/ILArFEBConfigReader.h"
...@@ -271,8 +272,14 @@ StatusCode LArADC2MeVCondAlg::execute() { ...@@ -271,8 +272,14 @@ StatusCode LArADC2MeVCondAlg::execute() {
// ADC2DAC is a vector (polynomial fit of ramps) // ADC2DAC is a vector (polynomial fit of ramps)
const ILArRamp::RampRef_t adc2dac = larRamp->ADC2DAC(chid,igain); const ILArRamp::RampRef_t adc2dac = larRamp->ADC2DAC(chid,igain);
if (adc2dac.size()<2) { if (adc2dac.size()<2) {
msg(MSG::ERROR) << "No Ramp found for channel " << larOnlineID->channel_name(chid) << ", gain " << igain << endmsg; // Low gain can sometimes be missing: not an error.
++nNoRamp; 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; 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