Bug fix (AliITSOnlineSPDscanSingle.cxx) and improvement (AliITSOnlineSPDscan.cxx)
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 1 Mar 2007 16:40:28 +0000 (16:40 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 1 Mar 2007 16:40:28 +0000 (16:40 +0000)
ITS/AliITSOnlineSPDscan.cxx
ITS/AliITSOnlineSPDscanSingle.cxx

index 4cd0d74..da191f0 100644 (file)
@@ -411,6 +411,7 @@ void AliITSOnlineSPDscan::SetRouterNr(UInt_t val) {
 }
 void AliITSOnlineSPDscan::SetTriggers(UInt_t nsi, UInt_t val) {
   // set nr of triggers
+  SwitchToStep(nsi);
   fScanInfo->SetTriggers(nsi,val);
   fInfoModified=kTRUE;
 }
@@ -446,6 +447,7 @@ void AliITSOnlineSPDscan::SetDacStep(UInt_t val){
 }
 void AliITSOnlineSPDscan::IncrementTriggers(UInt_t nsi) {
   // increment nr of triggers
+  SwitchToStep(nsi);
   fScanInfo->IncrementTriggers(nsi); 
   fInfoModified=kTRUE;
 }
index 1e8cecd..d937f72 100644 (file)
@@ -25,12 +25,9 @@ AliITSOnlineSPDscanSingle::AliITSOnlineSPDscanSingle(Char_t *fileName) {
     fclose(fp0);
     fFile = new TFile(fFileName, "READ");
     fWrite=kFALSE;
-    fFile->GetObject("SPDscanInfo", fScanInfo);
+    fFile->GetObject("AliITSOnlineSPDscanInfo", fScanInfo);
   }
   Init();
-  if (GetNSteps()==0) {
-    AddScanStep(); // this is supposedly the only step for this object
-  }
 }
 AliITSOnlineSPDscanSingle::~AliITSOnlineSPDscanSingle() {}