From 3db5f7339e8a607e315bdc780093cd7059da886a Mon Sep 17 00:00:00 2001 From: masera Date: Thu, 1 Mar 2007 16:40:28 +0000 Subject: [PATCH] Bug fix (AliITSOnlineSPDscanSingle.cxx) and improvement (AliITSOnlineSPDscan.cxx) --- ITS/AliITSOnlineSPDscan.cxx | 2 ++ ITS/AliITSOnlineSPDscanSingle.cxx | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ITS/AliITSOnlineSPDscan.cxx b/ITS/AliITSOnlineSPDscan.cxx index 4cd0d7498c0..da191f0eb69 100644 --- a/ITS/AliITSOnlineSPDscan.cxx +++ b/ITS/AliITSOnlineSPDscan.cxx @@ -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; } diff --git a/ITS/AliITSOnlineSPDscanSingle.cxx b/ITS/AliITSOnlineSPDscanSingle.cxx index 1e8cecd8c90..d937f72cf68 100644 --- a/ITS/AliITSOnlineSPDscanSingle.cxx +++ b/ITS/AliITSOnlineSPDscanSingle.cxx @@ -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() {} -- 2.39.3