]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFFEEReader.cxx
Fixed install target
[u/mrichter/AliRoot.git] / TOF / AliTOFFEEReader.cxx
index c8fd0b8798b62d4c009b6da31634950bed842b13..d414252e54863d87289870c6780ba2b81c1790c2 100644 (file)
@@ -121,6 +121,21 @@ AliTOFFEEReader::ResetChannelEnabledArray()
 
 //_______________________________________________________________
 
+void
+AliTOFFEEReader::ResetTriggerMaskArray()
+{
+  /*
+   *
+   * reset trigger mask array
+   *
+   */
+
+  for (Int_t iddl = 0; iddl < GetNumberOfDDLs(); iddl++)
+    fTriggerMask[iddl] = 0x0;
+}
+
+//_______________________________________________________________
+
 void
 AliTOFFEEReader::Reset()
 {
@@ -135,6 +150,9 @@ AliTOFFEEReader::Reset()
     fMatchingWindow[iIndex] = 0;
     fLatencyWindow[iIndex] = 0;
   }
+
+  for (Int_t iddl = 0; iddl < GetNumberOfDDLs(); iddl++)
+    fTriggerMask[iddl] = 0x0;
 }
 
 //_______________________________________________________________
@@ -244,6 +262,8 @@ AliTOFFEEReader::ParseFEElightConfig()
 
   AliInfo("parsing TOF FEElight config");
 
+  Reset();
+
   AliTOFcalibHisto calibHisto;
   calibHisto.LoadCalibHisto();
 
@@ -260,6 +280,12 @@ AliTOFFEEReader::ParseFEElightConfig()
     fMatchingWindow[index] = channelConfig->GetMatchingWindow();
     fLatencyWindow[index] = channelConfig->GetLatencyWindow();
   }
+
+  AliTOFFEEtriggerConfig *triggerConfig = NULL;
+  for (Int_t iddl = 0; iddl < GetNumberOfDDLs(); iddl++) {
+    triggerConfig = fFEElightConfig->GetTriggerConfig(iddl);
+    fTriggerMask[iddl] = triggerConfig->GetStatusMap();
+  }
  
   return nEnabled;
 }