]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDPreprocessor.cxx
no dependence of ldc configuration for storing reference data of pedestal runs
[u/mrichter/AliRoot.git] / TRD / AliTRDPreprocessor.cxx
index 7025aff3e286828481ea870eb16fb978919776c6..888f8ed0f1f972b829eb68414e2d654dd5da5a24 100644 (file)
@@ -453,8 +453,6 @@ Bool_t AliTRDPreprocessor::ExtractPedestals()
        
        if(calPed){
          
-         Int_t ldc = 0; 
-
          // analyse
          //calPed->AnalyseHisto();
                  
@@ -463,7 +461,6 @@ Bool_t AliTRDPreprocessor::ExtractPedestals()
            AliTRDCalROC *rocMean  = calPed->GetCalRocMean(idet, kFALSE);
            if ( rocMean )  {
              calPedSum.SetCalRocMean(rocMean,idet);
-             ldc = (Int_t) (idet / 30);
            }
            AliTRDCalROC *rocRMS = calPed->GetCalRocRMS(idet, kFALSE);
            if ( rocRMS )  {
@@ -479,16 +476,9 @@ Bool_t AliTRDPreprocessor::ExtractPedestals()
            }
          }// det loop
 
-         if((ldc==0) || (ldc==1) || (ldc==2)) ldc = 1;
-         if((ldc==3) || (ldc==4) || (ldc==5)) ldc = 2;
-         if((ldc==6) || (ldc==7) || (ldc==8)) ldc = 3;
-         if((ldc==9) || (ldc==10) || (ldc==11)) ldc = 4;
-         if((ldc==12) || (ldc==13) || (ldc==14)) ldc = 5;
-         if((ldc==15) || (ldc==16) || (ldc==17)) ldc = 6;
-       
          // store as reference data
          TString name("PadStatus");
-         name += ldc;
+         name += index;
          if(!StoreReferenceData("DAQData",(const char *)name,(TObject *) calPed,&metaData)){
            Log(Form("Error storing AliTRDCalibPadStatus object %d as reference data",(Int_t)index));
            error = kTRUE;