]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSOnlineSPDscanInfo.cxx
fix in calling of gaussian spread function
[u/mrichter/AliRoot.git] / ITS / AliITSOnlineSPDscanInfo.cxx
index 5ac3dc4dbddb7826e8c059722fcc6fef1d0e1dfe..528306d9de793e2ac5f59c003d7a018f74cc8a5a 100644 (file)
@@ -12,6 +12,7 @@ ClassImp(AliITSOnlineSPDscanInfo)
 
 AliITSOnlineSPDscanInfo::AliITSOnlineSPDscanInfo(): 
   fType(999),
+  fDataFormat(999),
   fRunNr(0),
   fRouterNr(999),
   fNSteps(0),
@@ -20,7 +21,8 @@ AliITSOnlineSPDscanInfo::AliITSOnlineSPDscanInfo():
   fRowEnd(255),
   fDacStep(1),
   fDacStart(0),
-  fDacEnd(255)
+  fDacEnd(255),
+  fDCSVersion(0)
 {
   ClearThis();
 }
@@ -37,6 +39,9 @@ void AliITSOnlineSPDscanInfo::ClearThis() {
   fRouterNr=999;
   fRowStart=0;
   fRowEnd=255;
+  for (Int_t hs=0; hs<6; hs++) {
+    fHalfStaveScanned[hs]=kFALSE;
+  }
   for (Int_t i=0; i<10; i++) {
     fChipPresent[i]=kTRUE;
   }
@@ -49,7 +54,6 @@ UInt_t AliITSOnlineSPDscanInfo::AddScanStep() {
   fTriggers.AddAt(0, fNSteps-1);
   return fNSteps-1;
 }
-
 void AliITSOnlineSPDscanInfo::IncrementTriggers(UInt_t nsi) {
   // increment the nr of triggers for step nsi
   if (nsi<fNSteps) {
@@ -62,9 +66,24 @@ void AliITSOnlineSPDscanInfo::SetTriggers(UInt_t nsi, UInt_t val) {
     fTriggers.AddAt(val,nsi);
   }
 }
-
 UInt_t AliITSOnlineSPDscanInfo::GetTriggers(UInt_t nsi) const {
   // get the nr of triggers for step nsi
   if (nsi<fNSteps) return fTriggers.At(nsi);
   else return 0;
 }
+void AliITSOnlineSPDscanInfo::SetHalfStaveScanned(UInt_t val, Bool_t b) {
+  // set half stave scanned
+  if (val<6) {
+    fHalfStaveScanned[val]=b;
+  }
+}
+Bool_t AliITSOnlineSPDscanInfo::GetHalfStaveScanned(UInt_t val) {
+  // set half stave scanned
+  if (val<6) {
+    return fHalfStaveScanned[val];
+  }
+  else {
+    printf("hs requested is out of range (hs=%d)\n",val);
+    return kFALSE;
+  }
+}