#include "AliTOFFEElightConfig.h"
#include "AliTOFRawStream.h"
#include "AliTOFGeometry.h"
+#include "AliTOFcalibHisto.h"
#include "AliLog.h"
#include <fstream>
*
*/
+ Reset();
memcpy(fFEEConfig, source.fFEEConfig, sizeof(AliTOFFEEConfig));
memcpy(fFEElightConfig, source.fFEElightConfig, sizeof(AliTOFFEElightConfig));
}
//_______________________________________________________________
+void
+AliTOFFEEReader::ResetTriggerMaskArray()
+{
+ /*
+ *
+ * reset trigger mask array
+ *
+ */
+
+ for (Int_t iddl = 0; iddl < GetNumberOfDDLs(); iddl++)
+ fTriggerMask[iddl] = 0x0;
+}
+
+//_______________________________________________________________
+
void
AliTOFFEEReader::Reset()
{
fMatchingWindow[iIndex] = 0;
fLatencyWindow[iIndex] = 0;
}
+
+ for (Int_t iddl = 0; iddl < GetNumberOfDDLs(); iddl++)
+ fTriggerMask[iddl] = 0x0;
}
//_______________________________________________________________
AliInfo("parsing TOF FEElight config");
- Int_t nEnabled = 0;
+ Reset();
+
+ AliTOFcalibHisto calibHisto;
+ calibHisto.LoadCalibHisto();
+
+ Int_t nEnabled = 0, index;
AliTOFFEEchannelConfig *channelConfig = NULL;
- for (Int_t i = 0; i < GetNumberOfIndexes(); i++) {
+ for (Int_t i = 0; i < GetNumberOfIndexesEO(); i++) {
channelConfig = fFEElightConfig->GetChannelConfig(i);
- if (channelConfig->IsEnabled())
- nEnabled++;
- fChannelEnabled[i] = channelConfig->IsEnabled();
- fMatchingWindow[i] = channelConfig->GetMatchingWindow();
+ if (!channelConfig->IsEnabled()) continue;
+ /* get index DO from index EO */
+ index = (Int_t)calibHisto.GetCalibMap(AliTOFcalibHisto::kIndex, i);
+ if (index == -1) continue;
+ nEnabled++;
+ fChannelEnabled[index] = channelConfig->IsEnabled();
+ 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;
//_______________________________________________________________
Int_t
-AliTOFFEEReader::GetMatchingWindow(Int_t iDDL, Int_t iTRM, Int_t iChain, Int_t iTDC, Int_t iChannel) const
+AliTOFFEEReader::GetMatchingWindow(Int_t iDDL, Int_t iTRM, Int_t, Int_t, Int_t) const
{
/*
*
AliTOFCrateConfig *crateConfig;
AliTOFTRMConfig *trmConfig;
- iChain = 0; iTDC = 0; iChannel = 0; /* dummy for the time being */
-
/* get and check fee config */
if (!(feeConfig = GetFEEConfig()))
return 0;
AliInfo("dumping TOF FEE config");
AliInfo("-------------------------------------");
AliInfo(Form("version: %d", feeConfig->GetVersion()));
- AliInfo(Form("dump time: %d", feeConfig->GetDumpTime()));
+ AliInfo(Form("dump time: %d", (Int_t)feeConfig->GetDumpTime()));
AliInfo(Form("run number: %d", feeConfig->GetRunNumber()));
AliInfo(Form("run type: %d", feeConfig->GetRunType()));
AliInfo("-------------------------------------");