]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSOnlineSPDscan.cxx
New include needed
[u/mrichter/AliRoot.git] / ITS / AliITSOnlineSPDscan.cxx
index 0e5a2ab5a5de26844bf4ccb4f5e8f5998aa5240a..ecb2c66f7d3e183893e70e04dc771c5658176a78 100644 (file)
@@ -13,6 +13,8 @@
 // memory.                                                //
 ////////////////////////////////////////////////////////////
 
+#include <math.h>
+
 #include <TFile.h>
 #include "AliITSOnlineSPDscan.h"
 #include "AliITSOnlineSPDscanInfo.h"
@@ -407,8 +409,19 @@ void AliITSOnlineSPDscan::SetRouterNr(UInt_t val) {
   fScanInfo->SetRouterNr(val);
   fInfoModified=kTRUE;
 }
+void AliITSOnlineSPDscan::SetHalfStaveScanned(UInt_t val, Bool_t b) {
+  // set half stave scanned
+  fScanInfo->SetHalfStaveScanned(val,b);
+  fInfoModified=kTRUE;
+}
+void AliITSOnlineSPDscan::SetDataFormat(UInt_t val) {
+  // set data format (0=normal 1=histogram)
+  fScanInfo->SetDataFormat(val);
+  fInfoModified=kTRUE;
+}
 void AliITSOnlineSPDscan::SetTriggers(UInt_t nsi, UInt_t val) {
   // set nr of triggers
+  SwitchToStep(nsi);
   fScanInfo->SetTriggers(nsi,val);
   fInfoModified=kTRUE;
 }
@@ -444,6 +457,7 @@ void AliITSOnlineSPDscan::SetDacStep(UInt_t val){
 }
 void AliITSOnlineSPDscan::IncrementTriggers(UInt_t nsi) {
   // increment nr of triggers
+  SwitchToStep(nsi);
   fScanInfo->IncrementTriggers(nsi); 
   fInfoModified=kTRUE;
 }
@@ -462,6 +476,12 @@ UInt_t AliITSOnlineSPDscan::GetRunNr() const {
 UInt_t AliITSOnlineSPDscan::GetRouterNr() const {
   return fScanInfo->GetRouterNr();
 }
+Bool_t AliITSOnlineSPDscan::GetHalfStaveScanned(UInt_t val) const {
+  return fScanInfo->GetHalfStaveScanned(val);
+}
+UInt_t AliITSOnlineSPDscan::GetDataFormat() const {
+  return fScanInfo->GetDataFormat();
+}
 UInt_t AliITSOnlineSPDscan::GetTriggers(UInt_t nsi) const {
   return fScanInfo->GetTriggers(nsi);
 }