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: AliTRDCalDCSFEEv2.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 "AliTRDCalDCSFEEv2.h"

ClassImp(AliTRDCalDCSFEEv2)
  
//_____________________________________________________________________________
AliTRDCalDCSFEEv2::AliTRDCalDCSFEEv2()
  :TObject()
  ,fStatusBit(0)
  ,fSM(-1)
  ,fStack(-1)
  ,fLayer(-1)
  ,fGainTableRocSerial(0)
  ,fDCSID(-1)
  ,fNumberOfTimeBins(-1)
  ,fConfigTag(-1)
  ,fSingleHitThres(-1)
  ,fThrPdClsThres(-1)
  ,fSelNoZS(-1)
  ,fTCFilterWeight(-1)
  ,fTCFilterShortDecPar(-1)
  ,fTCFilterLongDecPar(-1)
  ,fFastStatNoise(-1)
  ,fGainTableRocType("")
  ,fFilterType("")
  ,fReadoutParam("")
  ,fTestPattern("")
  ,fTrackletMode("")
  ,fTrackletDef("")
  ,fTriggerSetup("")
  ,fAddOptions("") 
  ,fConfigName("")
  ,fConfigVersion("")
  ,fGainTableName("")
  ,fGainTableDesc("")
{
  //
  // AliTRDCalDCSFEEv2 default constructor
  //
  for(Int_t i=0; i<(Int_t)fgkROB; i++) {
    for(Int_t j=0; j<(Int_t)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<(Int_t)fgkADC; k++) {
	fGainTableFgfn[i][j][k] = -1;
	fGainTableFgan[i][j][k] = -1;
      }
    }
  }
}


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


//_____________________________________________________________________________
AliTRDCalDCSFEEv2 &AliTRDCalDCSFEEv2::operator=(const AliTRDCalDCSFEEv2 &c)
{
  //
  // Assignment operator
  //
  if (&c == this) return *this;

  new (this) AliTRDCalDCSFEEv2(c);
  return *this;
}

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