]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALCalibData.cxx
remove unnecessary histogram booking, filling, storing; QA classes handle that now
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALCalibData.cxx
index 3babb67fe9509e097182b910e840f32ad2f9ba2e..480f89f1e3adcc37914774ef31b8d63e48d5ba57 100644 (file)
@@ -24,6 +24,8 @@
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
+#include <TMath.h>
+
 #include "AliEMCALCalibData.h"
 
 ClassImp(AliEMCALCalibData)
@@ -61,7 +63,7 @@ AliEMCALCalibData::AliEMCALCalibData(const AliEMCALCalibData& calibda) :
   Int_t nRow2 = 12; //Modules 11 and 12 are half modules
 
   for(Int_t supermodule=0; supermodule<nSMod; supermodule++) {
-    if(supermodule > 10)
+    if(supermodule >= 10)
       nRow = nRow2;
     for(Int_t column=0; column<nCol; column++) {
       for(Int_t row=0; row<nRow; row++) {
@@ -89,7 +91,7 @@ AliEMCALCalibData &AliEMCALCalibData::operator =(const AliEMCALCalibData& calibd
   Int_t nRow2 = 12; //Modules 11 and 12 are half modules
 
   for(Int_t supermodule=0; supermodule<nSMod; supermodule++) {
-    if(supermodule > 10)
+    if(supermodule >= 10)
       nRow = nRow2;
     for(Int_t column=0; column<nCol; column++) {
       for(Int_t row=0; row<nRow; row++) {
@@ -129,7 +131,7 @@ void  AliEMCALCalibData::Print(Option_t *option) const
   if (strstr(option,"ped")) {
     printf("\n ----    Pedestal values ----\n\n");
     for (Int_t supermodule=0; supermodule<nSMod; supermodule++){
-      if(supermodule > 10)
+      if(supermodule >= 10)
        nRow = nRow2;
       printf("============== Supermodule %d\n",supermodule+1);
       for (Int_t column=0; column<nCol; column++){
@@ -145,7 +147,7 @@ void  AliEMCALCalibData::Print(Option_t *option) const
   if (strstr(option,"gain")) {
     printf("\n ----    ADC channel values      ----\n\n");
     for (Int_t supermodule=0; supermodule<nSMod; supermodule++){
-      if(supermodule > 10) 
+      if(supermodule >= 10) 
        nRow = nRow2;
       printf("============== Supermodule %d\n",supermodule+1);
       for (Int_t column=0; column<nCol; column++){