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() ...@@ -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)) if(static_cast<RD53*>(cChip)->getChipOriginalMask()->isChannelEnabled(row, col) && this->fChannelGroupHandler->allChannelGroup()->isChannelEnabled(row, col))
{ {
for(auto i = 1u; i < dacList.size(); i++) for(auto i = 1u; i < dacList.size(); i++)
measurements[i] = fabs(detectorContainerVector[i] measurements[i - 1] = fabs(detectorContainerVector[i]
->at(cBoard->getIndex()) ->at(cBoard->getIndex())
->at(cOpticalGroup->getIndex()) ->at(cOpticalGroup->getIndex())
->at(cHybrid->getIndex()) ->at(cHybrid->getIndex())
->at(cChip->getIndex()) ->at(cChip->getIndex())
->getChannel<OccupancyAndPh>(row, col) ->getChannel<OccupancyAndPh>(row, col)
.fOccupancy - .fOccupancy -
detectorContainerVector[i - 1] detectorContainerVector[i - 1]
->at(cBoard->getIndex()) ->at(cBoard->getIndex())
->at(cOpticalGroup->getIndex()) ->at(cOpticalGroup->getIndex())
->at(cHybrid->getIndex()) ->at(cHybrid->getIndex())
->at(cChip->getIndex()) ->at(cChip->getIndex())
->getChannel<OccupancyAndPh>(row, col) ->getChannel<OccupancyAndPh>(row, col)
.fOccupancy); .fOccupancy);
SCurve::computeStats(measurements, offset, nHits, mean, rms); 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