@@ -517,7 +517,7 @@ void DQMStoreStats::calcIgProfDump(Folder& root) {
517517
518518std::vector<double > DQMStoreStats::GetTH2PolyArray (TH2Poly* poly) {
519519 int nBins = poly->GetNumberOfBins ();
520- std::vector<double > array (nBins + 1 , 0.0 ); // Initialize with zeros
520+ std::vector<double > array (nBins + 1 , 0.0 ); // Initialize with zeros
521521 for (int i = 1 ; i <= nBins; i++) {
522522 array[i] = poly->GetBinContent (i);
523523 }
@@ -681,12 +681,8 @@ int DQMStoreStats::calcstats(int mode = DQMStoreStats::considerAllME) {
681681 case MonitorElement::Kind::TH2Poly: {
682682 std::vector<double > polyArray = GetTH2PolyArray (it->getTH2Poly ());
683683 int nBins = polyArray.size () - 1 ;
684- currentSubfolder.AddBinsD (
685- nBins,
686- getEmptyMetric (polyArray.data (), nBins + 1 , 1 , 0 ));
687- curr->update (nBins,
688- getEmptyMetric (polyArray.data (), nBins + 1 , 1 , 0 ),
689- nBins * sizeof (double ));
684+ currentSubfolder.AddBinsD (nBins, getEmptyMetric (polyArray.data (), nBins + 1 , 1 , 0 ));
685+ curr->update (nBins, getEmptyMetric (polyArray.data (), nBins + 1 , 1 , 0 ), nBins * sizeof (double ));
690686 break ;
691687 }
692688 case MonitorElement::Kind::TPROFILE2D:
0 commit comments