ROOT logo
/**************************************************************************
 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 *                                                                        *
 * Author: The ALICE Off-line Project.                                    *
 * Contributors are mentioned in the code where appropriate.              *
 *                                                                        *
 * Permission to use, copy, modify and distribute this software and its   *
 * documentation strictly for non-commercial purposes is hereby granted   *
 * without fee, provided that the above copyright notice appears in all   *
 * copies and that both the copyright notice and this permission notice   *
 * appear in the supporting documentation. The authors make no claims     *
 * about the suitability of this software for any purpose. It is          *
 * provided "as is" without express or implied warranty.                  *
 **************************************************************************/

/* $Id: AliTRDCalDCSFEE.cxx 18952 2007-06-08 11:36:12Z cblume $ */

///////////////////////////////////////////////////////////////////////////////
//                                                                           //
//  TRD calibration class for TRD DCS FEE configuration parameters           //
//                                                                           //
///////////////////////////////////////////////////////////////////////////////

// fStatusBit:
// 0: no errors for that ROC
// 1: ROC sent invalid or corrupted data. 
// 2: ROC was not in state CONFIGURED or STANDBY_INIT (most probably it was in STANDBY)
// 3: No new data received from that ROC.
// 4: DCS id from XML attributes <DCS> and <ack> and the one calculated from SM, S, L do not match
// 5: ROC has not responded at all, most probably it was off.

#include "AliTRDCalDCSFEE.h"

ClassImp(AliTRDCalDCSFEE)
  
//_____________________________________________________________________________
AliTRDCalDCSFEE::AliTRDCalDCSFEE()
  :TNamed()
  ,fStatusBit(0)
  ,fDCSID(-1)
  ,fSM(-1)
  ,fStack(-1)
  ,fLayer(-1)
  ,fNumberOfTimeBins(-1)
  ,fConfigTag(-1)
  ,fSingleHitThres(-1)
  ,fThrPdClsThres(-1)
  ,fSelNoZS(-1)
  ,fTCFilterWeight(-1)
  ,fTCFilterShortDecPar(-1)
  ,fTCFilterLongDecPar(-1)
  ,fFastStatNoise(-1)
  ,fGainTableRocType("")
  ,fGainTableRocSerial(0)
  ,fFilterType(0)
  ,fReadoutParam(0)
  ,fTestPattern(0)
  ,fTrackletMode(0)
  ,fTrackletDef(0)
  ,fTriggerSetup(0)
  ,fAddOptions(0) 
  ,fConfigName(0)
  ,fConfigVersion(0)
  ,fGainTableName("")
  ,fGainTableDesc("")
{
  //
  // AliTRDCalDCSFEE default constructor
  //
  for(Int_t i=0; i<fgkROB; i++) {
    for(Int_t j=0; j<fgkMCM; j++) {
      fRStateGSM[i][j]  = -1;
      fRStateNI[i][j]   = -1;
      fRStateEV[i][j]   = -1;
      fRStatePTRG[i][j] = -1;
      fGainTableAdcdac[i][j] = -1;
      for(Int_t k=0; k<fgkADC; k++) {
	fGainTableFgfn[i][j][k] = -1;
	fGainTableFgan[i][j][k] = -1;
      }
    }
  }
}


//_____________________________________________________________________________
AliTRDCalDCSFEE::AliTRDCalDCSFEE(const char *name, const char *title)
:TNamed(name,title)
,fStatusBit(0)
,fDCSID(-1)
,fSM(-1)
,fStack(-1)
,fLayer(-1)
,fNumberOfTimeBins(-1)
,fConfigTag(-1)
,fSingleHitThres(-1)
,fThrPdClsThres(-1)
,fSelNoZS(-1)
,fTCFilterWeight(-1)
,fTCFilterShortDecPar(-1)
,fTCFilterLongDecPar(-1)
,fFastStatNoise(-1)
,fGainTableRocType("")
,fGainTableRocSerial(0)
,fFilterType(0)
,fReadoutParam(0)
,fTestPattern(0)
,fTrackletMode(0)
,fTrackletDef(0)
,fTriggerSetup(0)
,fAddOptions(0) 
,fConfigName(0)
,fConfigVersion(0)
,fGainTableName("")
,fGainTableDesc("")
{
  //
  // AliTRDCalDCSFEE constructor
  //
  for(Int_t i=0; i<fgkROB; i++) {
    for(Int_t j=0; j<fgkMCM; j++) {
      fRStateGSM[i][j]  = -1;
      fRStateNI[i][j]   = -1;
      fRStateEV[i][j]   = -1;
      fRStatePTRG[i][j] = -1;
      fGainTableAdcdac[i][j] = -1;
      for(Int_t k=0; k<fgkADC; k++) {
	fGainTableFgfn[i][j][k] = -1;
	fGainTableFgan[i][j][k] = -1;
      }
    }
  }
}


 AliTRDCalDCSFEE.cxx:1
 AliTRDCalDCSFEE.cxx:2
 AliTRDCalDCSFEE.cxx:3
 AliTRDCalDCSFEE.cxx:4
 AliTRDCalDCSFEE.cxx:5
 AliTRDCalDCSFEE.cxx:6
 AliTRDCalDCSFEE.cxx:7
 AliTRDCalDCSFEE.cxx:8
 AliTRDCalDCSFEE.cxx:9
 AliTRDCalDCSFEE.cxx:10
 AliTRDCalDCSFEE.cxx:11
 AliTRDCalDCSFEE.cxx:12
 AliTRDCalDCSFEE.cxx:13
 AliTRDCalDCSFEE.cxx:14
 AliTRDCalDCSFEE.cxx:15
 AliTRDCalDCSFEE.cxx:16
 AliTRDCalDCSFEE.cxx:17
 AliTRDCalDCSFEE.cxx:18
 AliTRDCalDCSFEE.cxx:19
 AliTRDCalDCSFEE.cxx:20
 AliTRDCalDCSFEE.cxx:21
 AliTRDCalDCSFEE.cxx:22
 AliTRDCalDCSFEE.cxx:23
 AliTRDCalDCSFEE.cxx:24
 AliTRDCalDCSFEE.cxx:25
 AliTRDCalDCSFEE.cxx:26
 AliTRDCalDCSFEE.cxx:27
 AliTRDCalDCSFEE.cxx:28
 AliTRDCalDCSFEE.cxx:29
 AliTRDCalDCSFEE.cxx:30
 AliTRDCalDCSFEE.cxx:31
 AliTRDCalDCSFEE.cxx:32
 AliTRDCalDCSFEE.cxx:33
 AliTRDCalDCSFEE.cxx:34
 AliTRDCalDCSFEE.cxx:35
 AliTRDCalDCSFEE.cxx:36
 AliTRDCalDCSFEE.cxx:37
 AliTRDCalDCSFEE.cxx:38
 AliTRDCalDCSFEE.cxx:39
 AliTRDCalDCSFEE.cxx:40
 AliTRDCalDCSFEE.cxx:41
 AliTRDCalDCSFEE.cxx:42
 AliTRDCalDCSFEE.cxx:43
 AliTRDCalDCSFEE.cxx:44
 AliTRDCalDCSFEE.cxx:45
 AliTRDCalDCSFEE.cxx:46
 AliTRDCalDCSFEE.cxx:47
 AliTRDCalDCSFEE.cxx:48
 AliTRDCalDCSFEE.cxx:49
 AliTRDCalDCSFEE.cxx:50
 AliTRDCalDCSFEE.cxx:51
 AliTRDCalDCSFEE.cxx:52
 AliTRDCalDCSFEE.cxx:53
 AliTRDCalDCSFEE.cxx:54
 AliTRDCalDCSFEE.cxx:55
 AliTRDCalDCSFEE.cxx:56
 AliTRDCalDCSFEE.cxx:57
 AliTRDCalDCSFEE.cxx:58
 AliTRDCalDCSFEE.cxx:59
 AliTRDCalDCSFEE.cxx:60
 AliTRDCalDCSFEE.cxx:61
 AliTRDCalDCSFEE.cxx:62
 AliTRDCalDCSFEE.cxx:63
 AliTRDCalDCSFEE.cxx:64
 AliTRDCalDCSFEE.cxx:65
 AliTRDCalDCSFEE.cxx:66
 AliTRDCalDCSFEE.cxx:67
 AliTRDCalDCSFEE.cxx:68
 AliTRDCalDCSFEE.cxx:69
 AliTRDCalDCSFEE.cxx:70
 AliTRDCalDCSFEE.cxx:71
 AliTRDCalDCSFEE.cxx:72
 AliTRDCalDCSFEE.cxx:73
 AliTRDCalDCSFEE.cxx:74
 AliTRDCalDCSFEE.cxx:75
 AliTRDCalDCSFEE.cxx:76
 AliTRDCalDCSFEE.cxx:77
 AliTRDCalDCSFEE.cxx:78
 AliTRDCalDCSFEE.cxx:79
 AliTRDCalDCSFEE.cxx:80
 AliTRDCalDCSFEE.cxx:81
 AliTRDCalDCSFEE.cxx:82
 AliTRDCalDCSFEE.cxx:83
 AliTRDCalDCSFEE.cxx:84
 AliTRDCalDCSFEE.cxx:85
 AliTRDCalDCSFEE.cxx:86
 AliTRDCalDCSFEE.cxx:87
 AliTRDCalDCSFEE.cxx:88
 AliTRDCalDCSFEE.cxx:89
 AliTRDCalDCSFEE.cxx:90
 AliTRDCalDCSFEE.cxx:91
 AliTRDCalDCSFEE.cxx:92
 AliTRDCalDCSFEE.cxx:93
 AliTRDCalDCSFEE.cxx:94
 AliTRDCalDCSFEE.cxx:95
 AliTRDCalDCSFEE.cxx:96
 AliTRDCalDCSFEE.cxx:97
 AliTRDCalDCSFEE.cxx:98
 AliTRDCalDCSFEE.cxx:99
 AliTRDCalDCSFEE.cxx:100
 AliTRDCalDCSFEE.cxx:101
 AliTRDCalDCSFEE.cxx:102
 AliTRDCalDCSFEE.cxx:103
 AliTRDCalDCSFEE.cxx:104
 AliTRDCalDCSFEE.cxx:105
 AliTRDCalDCSFEE.cxx:106
 AliTRDCalDCSFEE.cxx:107
 AliTRDCalDCSFEE.cxx:108
 AliTRDCalDCSFEE.cxx:109
 AliTRDCalDCSFEE.cxx:110
 AliTRDCalDCSFEE.cxx:111
 AliTRDCalDCSFEE.cxx:112
 AliTRDCalDCSFEE.cxx:113
 AliTRDCalDCSFEE.cxx:114
 AliTRDCalDCSFEE.cxx:115
 AliTRDCalDCSFEE.cxx:116
 AliTRDCalDCSFEE.cxx:117
 AliTRDCalDCSFEE.cxx:118
 AliTRDCalDCSFEE.cxx:119
 AliTRDCalDCSFEE.cxx:120
 AliTRDCalDCSFEE.cxx:121
 AliTRDCalDCSFEE.cxx:122
 AliTRDCalDCSFEE.cxx:123
 AliTRDCalDCSFEE.cxx:124
 AliTRDCalDCSFEE.cxx:125
 AliTRDCalDCSFEE.cxx:126
 AliTRDCalDCSFEE.cxx:127
 AliTRDCalDCSFEE.cxx:128
 AliTRDCalDCSFEE.cxx:129
 AliTRDCalDCSFEE.cxx:130
 AliTRDCalDCSFEE.cxx:131
 AliTRDCalDCSFEE.cxx:132
 AliTRDCalDCSFEE.cxx:133
 AliTRDCalDCSFEE.cxx:134
 AliTRDCalDCSFEE.cxx:135