]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSOnlineSPDfo.cxx
PWGPP-41 - function to generate pwd for QA
[u/mrichter/AliRoot.git] / ITS / AliITSOnlineSPDfo.cxx
index 7ef678e26b337e04bf39b5cff90ff122d056f0e1..db1edea93b0949d5ba997ffbe0fbd8c5e93bd08b 100644 (file)
@@ -106,7 +106,7 @@ void AliITSOnlineSPDfo::SetFile(TString inputfile)
  } else {
    fFile = TFile::Open(inputfile.Data());
    if(!fFile) {
-     Info("AliITSOnlineSPDfo::SetFile",Form(" %s  not existing.... The scan info are not available....crash is expected \n",inputfile.Data()));
+     Info("AliITSOnlineSPDfo::SetFile"," %s  not existing.... The scan info are not available....crash is expected \n",inputfile.Data());
      return;
     } else {
      fInfo = (AliITSOnlineSPDfoInfo *)fFile->Get("generalinfo");
@@ -300,9 +300,10 @@ TArrayI AliITSOnlineSPDfo::GetDACscanParams() const
   }
 
  
   for(Int_t i=0; i<fNdacs; i++) {
-    dacs.AddAt(min.At(i),3*i);
-    dacs.AddAt(max.At(i),3*i+1);
+    dacs.AddAt(min.At(i),3*i);    
+    dacs.AddAt(max.At(i),3*i+1); 
     dacs.AddAt(step.At(i),3*i+2); 
   }
  
@@ -353,7 +354,8 @@ TArrayS AliITSOnlineSPDfo::CreateDACArray(const TArrayS dacs, const TArrayS dacI
     else if(dacId.At(i)==kIdCONVPOL) dacarray.AddAt(dacs.At(i),kCONVPOL);
     else if(dacId.At(i)==kIdCOMPREF) dacarray.AddAt(dacs.At(i),kCOMPREF);
     else if(dacId.At(i)==kIdPreVTH) dacarray.AddAt(dacs.At(i),kPreVTH);
-    else dacarray.AddAt(dacs.At(i),i);
+    else if(dacId.At(i)==kIdCGPOL) dacarray.AddAt(dacs.At(i),kCGPOL);
+    else printf("new DAC included in the scan??\n");
     
   }