Commit 41c4e670 authored by minime's avatar minime
Browse files

Fix scurve bias

parent 727983fd
......@@ -283,20 +283,20 @@ std::shared_ptr<DetectorDataContainer> SCurve::analyze()
if(static_cast<RD53*>(cChip)->getChipOriginalMask()->isChannelEnabled(row, col) && this->fChannelGroupHandler->allChannelGroup()->isChannelEnabled(row, col))
{
for(auto i = 1u; i < dacList.size(); i++)
measurements[i] = fabs(detectorContainerVector[i]
->at(cBoard->getIndex())
->at(cOpticalGroup->getIndex())
->at(cHybrid->getIndex())
->at(cChip->getIndex())
->getChannel<OccupancyAndPh>(row, col)
.fOccupancy -
detectorContainerVector[i - 1]
->at(cBoard->getIndex())
->at(cOpticalGroup->getIndex())
->at(cHybrid->getIndex())
->at(cChip->getIndex())
->getChannel<OccupancyAndPh>(row, col)
.fOccupancy);
measurements[i - 1] = fabs(detectorContainerVector[i]
->at(cBoard->getIndex())
->at(cOpticalGroup->getIndex())
->at(cHybrid->getIndex())
->at(cChip->getIndex())
->getChannel<OccupancyAndPh>(row, col)
.fOccupancy -
detectorContainerVector[i - 1]
->at(cBoard->getIndex())
->at(cOpticalGroup->getIndex())
->at(cHybrid->getIndex())
->at(cChip->getIndex())
->getChannel<OccupancyAndPh>(row, col)
.fOccupancy);
SCurve::computeStats(measurements, offset, nHits, mean, rms);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment