ROOT logo
#ifndef ALITRDCALDCSFEE_H
#define ALITRDCALDCSFEE_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */

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

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

#include "TNamed.h"

class TString;

class AliTRDCalDCSFEE : public TNamed {

 public:

  AliTRDCalDCSFEE();
  AliTRDCalDCSFEE(const char *name, const char *title);
  virtual ~AliTRDCalDCSFEE() { };

  void    SetStatusBit(Int_t stbit)                  { fStatusBit           = stbit; }  
  void    SetDCSid(Int_t dcsid)                      { fDCSID               = dcsid; }  
  void    SetSM(Int_t smid)                          { fSM                  = smid;  }
  void    SetStack(Int_t stid)                       { fStack               = stid;  }
  void    SetLayer(Int_t lyid)                       { fLayer               = lyid;  }
  void    SetNumberOfTimeBins(Int_t value)           { fNumberOfTimeBins    = value; }
  void    SetConfigTag(Int_t cfgt)                   { fConfigTag           = cfgt;  }
  void    SetSingleHitThres(Int_t sht)               { fSingleHitThres      = sht;   }
  void    SetThreePadClustThres(Int_t tpct)          { fThrPdClsThres       = tpct;  }
  void    SetSelectiveNoZS(Int_t snzs)               { fSelNoZS             = snzs;  }
  void    SetFastStatNoise(Int_t fstn)               { fFastStatNoise       = fstn;  }
  void    SetTCFilterWeight(Int_t tcfw)              { fTCFilterWeight      = tcfw;  }
  void    SetTCFilterShortDecPar(Int_t sdp)          { fTCFilterShortDecPar = sdp;   }
  void    SetTCFilterLongDecPar(Int_t ldp)           { fTCFilterLongDecPar  = ldp;   }
  void    SetGainTableRocSerial(Int_t gts)           { fGainTableRocSerial  = gts;   }
  void    SetFilterType(TString fity)                { fFilterType          = fity;  }
  void    SetReadoutParam(TString rpar)              { fReadoutParam        = rpar;  }
  void    SetTestPattern(TString tpat)               { fTestPattern         = tpat;  }
  void    SetTrackletMode(TString tmde)              { fTrackletMode        = tmde;  }
  void    SetTrackletDef(TString tdef)               { fTrackletDef         = tdef;  }
  void    SetTriggerSetup(TString trse)              { fTriggerSetup        = trse;  }
  void    SetAddOptions(TString adop)                { fAddOptions          = adop;  }
  void    SetConfigName(TString cfgn)                { fConfigName          = cfgn;  }
  void    SetConfigVersion(TString cfgv)             { fConfigVersion       = cfgv;  }
  void    SetGainTableName(TString gt)               { fGainTableName       = gt;    }
  void    SetGainTableDesc(TString gd)               { fGainTableDesc       = gd;    }
  void    SetGainTableRocType(TString gr)            { fGainTableRocType    = gr;    }
  void    SetMCMGlobalState(Int_t r,Int_t m,Int_t g) { fRStateGSM[r][m]     = g;     }
  void    SetMCMStateNI(Int_t r,Int_t m,Int_t v)     { fRStateNI[r][m]      = v;     }
  void    SetMCMEventCnt(Int_t r,Int_t m,Int_t v)    { fRStateEV[r][m]      = v;     }
  void    SetMCMPtCnt(Int_t r,Int_t m,Int_t v)       { fRStatePTRG[r][m]    = v;     }
  void    SetGainTableAdcdac(Int_t r,Int_t m,Int_t v){ fGainTableAdcdac[r][m]    = v;}
  void    SetGainTableFgfn(Int_t r,Int_t m,Int_t a,Int_t v) { fGainTableFgfn[r][m][a] = v; }
  void    SetGainTableFgan(Int_t r,Int_t m,Int_t a,Int_t v) { fGainTableFgan[r][m][a] = v; }

  Int_t   GetStatusBit() const                       { return fStatusBit;            }
  Int_t   GetDCSid() const                           { return fDCSID;                }
  Int_t   GetSM() const                              { return fSM;                   }
  Int_t   GetStack() const                           { return fStack;                }
  Int_t   GetLayer() const                           { return fLayer;                }
  Int_t   GetNumberOfTimeBins() const                { return fNumberOfTimeBins;     }
  Int_t   GetConfigTag() const                       { return fConfigTag;            }
  Int_t   GetSingleHitThres() const                  { return fSingleHitThres;       }
  Int_t   GetThreePadClustThres() const              { return fThrPdClsThres;        }
  Int_t   GetSelectiveNoZS() const                   { return fSelNoZS;              }
  Int_t   GetTCFilterWeight() const                  { return fTCFilterWeight;       }
  Int_t   GetTCFilterShortDecPar() const             { return fTCFilterShortDecPar;  }
  Int_t   GetTCFilterLongDecPar() const              { return fTCFilterLongDecPar;   }
  Int_t   GetFastStatNoise() const                   { return fFastStatNoise;        }
  Int_t   GetGainTableRocSerial() const              { return fGainTableRocSerial;   }
  TString GetFilterType() const                      { return fFilterType;           }
  TString GetReadoutParam() const                    { return fReadoutParam;         }
  TString GetTestPattern() const                     { return fTestPattern;          }
  TString GetTrackletMode() const                    { return fTrackletMode;         }
  TString GetTrackletDef() const                     { return fTrackletDef;          }
  TString GetTriggerSetup() const                    { return fTriggerSetup;         }
  TString GetAddOptions() const                      { return fAddOptions;           }
  TString GetConfigName() const                      { return fConfigName;           }
  TString GetConfigVersion() const                   { return fConfigVersion;        }
  TString GetGainTableName() const                   { return fGainTableName;        }
  TString GetGainTableDesc() const                   { return fGainTableDesc;        }
  TString GetGainTableRocType() const                { return fGainTableRocType;     }
  Int_t   GetMCMGlobalState(Int_t r,Int_t m) const   { return fRStateGSM[r][m];      }
  Int_t   GetMCMStateNI(Int_t r,Int_t m) const       { return fRStateNI[r][m];       }
  Int_t   GetMCMEventCnt(Int_t r,Int_t m) const      { return fRStateEV[r][m];       }
  Int_t   GetMCMPtCnt(Int_t r,Int_t m) const         { return fRStatePTRG[r][m];     }
  Int_t   GetGainTableAdcdac(Int_t r,Int_t m) const  { return fGainTableAdcdac[r][m];}
  Int_t   GetGainTableFgfn(Int_t r,Int_t m,Int_t a) const  { return fGainTableFgfn[r][m][a]; }
  Int_t   GetGainTableFgan(Int_t r,Int_t m,Int_t a) const  { return fGainTableFgan[r][m][a]; }

 protected:

  static const Int_t fgkROB = 8;       // Number of readout boards
  static const Int_t fgkMCM = 18;      // Number of MCMs
  static const Int_t fgkADC = 21;      // Number of ADC channels
  
  Int_t   fStatusBit;                  // 0 if everything is OK, otherwise !=0 (see impl. file)
  Int_t   fDCSID;                      // ID of the DCS-Board
  Int_t   fSM;                         // the number of the supermode 0..17
  Int_t   fStack;                      // the number of the stack 0..4
  Int_t   fLayer;                      // the number of the layer 0..5
  Int_t   fNumberOfTimeBins;           // Number of timebins  
  Int_t   fConfigTag;                  // Configuration tag
  Int_t   fSingleHitThres;             // threshold of single hits (arg of readout param)
  Int_t   fThrPdClsThres;              // threshold of 3-pad clusters (arg of readout param)
  Int_t   fSelNoZS;                    // write every fSelNoZS'th event without ZS
  Int_t   fTCFilterWeight;             // tail cancellation filter weight
  Int_t   fTCFilterShortDecPar;        // tail cancellation filter short decay parameter
  Int_t   fTCFilterLongDecPar;         // tail cancellation filter long decay parameter
  Int_t   fFastStatNoise;              // collect statistics for fast noise mode
  Int_t   fRStateGSM[fgkROB][fgkMCM];  // array of the global states of the MCMs
  Int_t   fRStateNI[fgkROB][fgkMCM];   // array of the network interface states of the MCMs
  Int_t   fRStateEV[fgkROB][fgkMCM];   // array of the event counters of the MCMs
  Int_t   fRStatePTRG[fgkROB][fgkMCM]; // array of the pretrigger counters of the MCMs
  TString fGainTableRocType;           // the roc type from the gain table
  Int_t   fGainTableRocSerial;         // the roc serial of the chamber from the gain table
  Int_t   fGainTableAdcdac[fgkROB][fgkMCM];       // array of gain table adcdac values
  Int_t   fGainTableFgfn[fgkROB][fgkMCM][fgkADC]; // array of gain table fgfn values
  Int_t   fGainTableFgan[fgkROB][fgkMCM][fgkADC]; // array of gain table fgan values
  TString fFilterType;                 // filter type (p, pgt, nf)
  TString fReadoutParam;               // readout parameter (zs, nozs, testpattern)
  TString fTestPattern;                // value of testpattern (for readout param)
  TString fTrackletMode;               // tracklet mode (trk, csmtrk, notrk)
  TString fTrackletDef;                // definition for tracklet mode trk
  TString fTriggerSetup;               // trigger setup (ptrg, autotrg, autol0)
  TString fAddOptions;                 // additional options (nopm, nion)
  TString fConfigName;                 // Configuration name
  TString fConfigVersion;              // Configuration version
  TString fGainTableName;              // the name of the gain table
  TString fGainTableDesc;              // the description of the gain table

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