Conversion of DCS mapping to aliroot mapping
authorcheynis <cheynis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 27 Aug 2008 13:28:12 +0000 (13:28 +0000)
committercheynis <cheynis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 27 Aug 2008 13:28:12 +0000 (13:28 +0000)
VZERO/AliVZERODataDCS.cxx

index 7d53f93..1aa2195 100644 (file)
@@ -125,11 +125,12 @@ void AliVZERODataDCS::ProcessData(TMap& aliasMap){
   }
   
        // calculate mean and rms of the first two histos
+       // and convert index to aliroot channel
        for(int i=0;i<kNAliases;i++){
-               fMeanHV[i] = fHv[i]->GetMean();
-               fWidthHV[i] = fHv[i]->GetRMS();
+               Int_t iChannel     = GetOfflineChannel(i);      
+               fMeanHV[iChannel]  = fHv[i]->GetMean();
+               fWidthHV[iChannel] = fHv[i]->GetRMS();
        }
-
     
   fIsProcessed=kTRUE;
 }