]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Correct number of rows in smaller modules
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 1 Mar 2006 08:30:06 +0000 (08:30 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 1 Mar 2006 08:30:06 +0000 (08:30 +0000)
EMCAL/AliEMCALCalibData.cxx

index 49fd7ed85ea3a82791313814fea6d136d5634956..7c2fcecbd0307289e5924b81c7c68584133d308d 100644 (file)
@@ -55,10 +55,11 @@ AliEMCALCalibData::AliEMCALCalibData(const AliEMCALCalibData& calibda) :
   Int_t nSMod = 12;
   Int_t nCol  = 48;
   Int_t nRow  = 24;
+  Int_t nRow2 = 12; //Modules 11 and 12 are half modules
 
   for(Int_t supermodule=0; supermodule<nSMod; supermodule++) {
     if(supermodule > 10)
-      nRow = nRow/2;
+      nRow = nRow2;
     for(Int_t column=0; column<nCol; column++) {
       for(Int_t row=0; row<nRow; row++) {
        fADCchannel[supermodule][column][row] = 
@@ -82,10 +83,11 @@ AliEMCALCalibData &AliEMCALCalibData::operator =(const AliEMCALCalibData& calibd
   Int_t nSMod = 12;
   Int_t nCol  = 48;
   Int_t nRow  = 24;
+  Int_t nRow2 = 12; //Modules 11 and 12 are half modules
 
   for(Int_t supermodule=0; supermodule<nSMod; supermodule++) {
     if(supermodule > 10)
-      nRow = nRow/2;
+      nRow = nRow2;
     for(Int_t column=0; column<nCol; column++) {
       for(Int_t row=0; row<nRow; row++) {
        fADCchannel[supermodule][column][row] = 
@@ -120,12 +122,12 @@ void  AliEMCALCalibData::Print(Option_t *option) const
   Int_t nSMod = 12;
   Int_t nCol  = 48;
   Int_t nRow  = 24;
-
+  Int_t nRow2 = 12; //Modules 11 and 12 are half modules
   if (strstr(option,"ped")) {
     printf("\n ----    Pedestal values ----\n\n");
     for (Int_t supermodule=0; supermodule<nSMod; supermodule++){
       if(supermodule > 10)
-       nRow = nRow/2;
+       nRow = nRow2;
       printf("============== Supermodule %d\n",supermodule+1);
       for (Int_t column=0; column<nCol; column++){
        for (Int_t row=0; row<nRow; row++){
@@ -141,7 +143,7 @@ void  AliEMCALCalibData::Print(Option_t *option) const
     printf("\n ----    ADC channel values      ----\n\n");
     for (Int_t supermodule=0; supermodule<nSMod; supermodule++){
       if(supermodule > 10) 
-       nRow = nRow/2;
+       nRow = nRow2;
       printf("============== Supermodule %d\n",supermodule+1);
       for (Int_t column=0; column<nCol; column++){
        for (Int_t row=0; row<nRow; row++){