]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/Cal/AliTRDCalDCSFEE.h
Switch to the new raw reader (Julian, Raphaelle)
[u/mrichter/AliRoot.git] / TRD / Cal / AliTRDCalDCSFEE.h
index c4531dc84500e8605c2cfcf06912b36ef341fe3f..a3386b40221a370cd158e10eafb2b26064485571 100644 (file)
-#ifndef AliTRDCALDCSFEE_H
-#define AliTRDCALDCSFEE_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-
-
-///////////////////////////////////////////////////////////////////////////////
-//                                                                           //
-//  TRD calibration class for TRD FEE configuration parameters               //
-//                                                                           //
-///////////////////////////////////////////////////////////////////////////////
-
-#include "TNamed.h"
-
-class TString;
-
-class AliTRDCalDCSFEE : public TNamed {
-
- public:
-
-  AliTRDCalDCSFEE();
-  AliTRDCalDCSFEE(const char *name, const char *title);
-  virtual ~AliTRDCalDCSFEE() { };
-
-  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    SetTailCancelationTau1(Int_t tau1) { fTailCancelationTau1 = tau1;  }
-  void    SetTailCancelationTau2(Int_t tau2) { fTailCancelationTau2 = tau2;  }
-  void    SetTailCancelationAmp(Int_t amp)   { fTailCancelationAmp  = amp;   }
-  void    SetPedestal(Int_t ped)             { fPedestal            = ped;   }
-  void    SetConfigID(TString id)            { fConfigID            = id;    }
-  void    SetGainTableID(TString id)         { fGainTableID         = id;    }
-
-  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   GetTailCancelationTau1() const     { return fTailCancelationTau1;  }
-  Int_t   GetTailCancelationTau2() const     { return fTailCancelationTau2;  }
-  Int_t   GetTailCancelationAmp() const      { return fTailCancelationAmp;   }
-  Int_t   GetPedestal() const                { return fPedestal;             }
-  TString GetConfigID() const                { return fConfigID;             }
-  TString GetGainTableID() const             { return fGainTableID;          }
-
- protected:
-  
-  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   fTailCancelationTau1;    //  Tau1 of tail cancelation
-  Int_t   fTailCancelationTau2;    //  Tau2 of tail cancelation
-  Int_t   fTailCancelationAmp;     //  Amplitude of tail cancelation
-
-  Int_t   fPedestal;               //  Pedestal
-
-  TString fConfigID;               //  Configuration ID
-  TString fGainTableID;            //  Gain table ID
-
-  ClassDef(AliTRDCalDCSFEE,1)         //  TRD calibration class for TRD FEE parameters
-
-};
-#endif
+#ifndef ALITRDCALDCSFEE_H\r
+#define ALITRDCALDCSFEE_H\r
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\r
+ * See cxx source for full Copyright notice                               */\r
+\r
+/* $Id: AliTRDCalDCSFEE.h 18952 2007-06-08 11:36:12Z cblume $ */\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+//                                                                           //\r
+//  TRD calibration class for FEE configuration parameters                   //\r
+//                                                                           //\r
+///////////////////////////////////////////////////////////////////////////////\r
+\r
+#include "TNamed.h"\r
+\r
+class TString;\r
+\r
+class AliTRDCalDCSFEE : public TNamed {\r
+\r
+ public:\r
+\r
+  AliTRDCalDCSFEE();\r
+  AliTRDCalDCSFEE(const char *name, const char *title);\r
+  virtual ~AliTRDCalDCSFEE() { };\r
+\r
+  void    SetStatusBit(Int_t stbit)                  { fStatusBit           = stbit; }  \r
+  void    SetDCSid(Int_t dcsid)                      { fDCSID               = dcsid; }  \r
+  void    SetSM(Int_t smid)                          { fSM                  = smid;  }\r
+  void    SetStack(Int_t stid)                       { fStack               = stid;  }\r
+  void    SetLayer(Int_t lyid)                       { fLayer               = lyid;  }\r
+  void    SetNumberOfTimeBins(Int_t value)           { fNumberOfTimeBins    = value; }\r
+  void    SetConfigTag(Int_t cfgt)                   { fConfigTag           = cfgt;  }\r
+  void    SetSingleHitThres(Int_t sht)               { fSingleHitThres      = sht;   }\r
+  void    SetThreePadClustThres(Int_t tpct)          { fThrPdClsThres       = tpct;  }\r
+  void    SetSelectiveNoZS(Int_t snzs)               { fSelNoZS             = snzs;  }\r
+  void    SetFastStatNoise(Int_t fstn)               { fFastStatNoise       = fstn;  }\r
+  void    SetTCFilterWeight(Int_t tcfw)              { fTCFilterWeight      = tcfw;  }\r
+  void    SetTCFilterShortDecPar(Int_t sdp)          { fTCFilterShortDecPar = sdp;   }\r
+  void    SetTCFilterLongDecPar(Int_t ldp)           { fTCFilterLongDecPar  = ldp;   }\r
+  void    SetGainTableRocSerial(Int_t gts)           { fGainTableRocSerial  = gts;   }\r
+  void    SetFilterType(TString fity)                { fFilterType          = fity;  }\r
+  void    SetReadoutParam(TString rpar)              { fReadoutParam        = rpar;  }\r
+  void    SetTestPattern(TString tpat)               { fTestPattern         = tpat;  }\r
+  void    SetTrackletMode(TString tmde)              { fTrackletMode        = tmde;  }\r
+  void    SetTrackletDef(TString tdef)               { fTrackletDef         = tdef;  }\r
+  void    SetTriggerSetup(TString trse)              { fTriggerSetup        = trse;  }\r
+  void    SetAddOptions(TString adop)                { fAddOptions          = adop;  }\r
+  void    SetConfigName(TString cfgn)                { fConfigName          = cfgn;  }\r
+  void    SetConfigVersion(TString cfgv)             { fConfigVersion       = cfgv;  }\r
+  void    SetGainTableName(TString gt)               { fGainTableName       = gt;    }\r
+  void    SetGainTableDesc(TString gd)               { fGainTableDesc       = gd;    }\r
+  void    SetGainTableRocType(TString gr)            { fGainTableRocType    = gr;    }\r
+  void    SetMCMGlobalState(Int_t r,Int_t m,Int_t g) { fRStateGSM[r][m]     = g;     }\r
+  void    SetMCMStateNI(Int_t r,Int_t m,Int_t v)     { fRStateNI[r][m]      = v;     }\r
+  void    SetMCMEventCnt(Int_t r,Int_t m,Int_t v)    { fRStateEV[r][m]      = v;     }\r
+  void    SetMCMPtCnt(Int_t r,Int_t m,Int_t v)       { fRStatePTRG[r][m]    = v;     }\r
+  void    SetGainTableAdcdac(Int_t r,Int_t m,Int_t v){ fGainTableAdcdac[r][m]    = v;}\r
+  void    SetGainTableFgfn(Int_t r,Int_t m,Int_t a,Int_t v) { fGainTableFgfn[r][m][a] = v; }\r
+  void    SetGainTableFgan(Int_t r,Int_t m,Int_t a,Int_t v) { fGainTableFgan[r][m][a] = v; }\r
+\r
+  Int_t   GetStatusBit() const                       { return fStatusBit;            }\r
+  Int_t   GetDCSid() const                           { return fDCSID;                }\r
+  Int_t   GetSM() const                              { return fSM;                   }\r
+  Int_t   GetStack() const                           { return fStack;                }\r
+  Int_t   GetLayer() const                           { return fLayer;                }\r
+  Int_t   GetNumberOfTimeBins() const                { return fNumberOfTimeBins;     }\r
+  Int_t   GetConfigTag() const                       { return fConfigTag;            }\r
+  Int_t   GetSingleHitThres() const                  { return fSingleHitThres;       }\r
+  Int_t   GetThreePadClustThres() const              { return fThrPdClsThres;        }\r
+  Int_t   GetSelectiveNoZS() const                   { return fSelNoZS;              }\r
+  Int_t   GetTCFilterWeight() const                  { return fTCFilterWeight;       }\r
+  Int_t   GetTCFilterShortDecPar() const             { return fTCFilterShortDecPar;  }\r
+  Int_t   GetTCFilterLongDecPar() const              { return fTCFilterLongDecPar;   }\r
+  Int_t   GetFastStatNoise() const                   { return fFastStatNoise;        }\r
+  Int_t   GetGainTableRocSerial() const              { return fGainTableRocSerial;   }\r
+  TString GetFilterType() const                      { return fFilterType;           }\r
+  TString GetReadoutParam() const                    { return fReadoutParam;         }\r
+  TString GetTestPattern() const                     { return fTestPattern;          }\r
+  TString GetTrackletMode() const                    { return fTrackletMode;         }\r
+  TString GetTrackletDef() const                     { return fTrackletDef;          }\r
+  TString GetTriggerSetup() const                    { return fTriggerSetup;         }\r
+  TString GetAddOptions() const                      { return fAddOptions;           }\r
+  TString GetConfigName() const                      { return fConfigName;           }\r
+  TString GetConfigVersion() const                   { return fConfigVersion;        }\r
+  TString GetGainTableName() const                   { return fGainTableName;        }\r
+  TString GetGainTableDesc() const                   { return fGainTableDesc;        }\r
+  TString GetGainTableRocType() const                { return fGainTableRocType;     }\r
+  Int_t   GetMCMGlobalState(Int_t r,Int_t m) const   { return fRStateGSM[r][m];      }\r
+  Int_t   GetMCMStateNI(Int_t r,Int_t m) const       { return fRStateNI[r][m];       }\r
+  Int_t   GetMCMEventCnt(Int_t r,Int_t m) const      { return fRStateEV[r][m];       }\r
+  Int_t   GetMCMPtCnt(Int_t r,Int_t m) const         { return fRStatePTRG[r][m];     }\r
+  Int_t   GetGainTableAdcdac(Int_t r,Int_t m) const  { return fGainTableAdcdac[r][m];}\r
+  Int_t   GetGainTableFgfn(Int_t r,Int_t m,Int_t a) const  { return fGainTableFgfn[r][m][a]; }\r
+  Int_t   GetGainTableFgan(Int_t r,Int_t m,Int_t a) const  { return fGainTableFgan[r][m][a]; }\r
+\r
+ protected:\r
+\r
+  static const Int_t fgkROB = 8;       // Number of readout boards\r
+  static const Int_t fgkMCM = 18;      // Number of MCMs\r
+  static const Int_t fgkADC = 21;      // Number of ADC channels\r
+  \r
+  Int_t   fStatusBit;                  // 0 if everything is OK, otherwise !=0 (see impl. file)\r
+  Int_t   fDCSID;                      // ID of the DCS-Board\r
+  Int_t   fSM;                         // the number of the supermode 0..17\r
+  Int_t   fStack;                      // the number of the stack 0..4\r
+  Int_t   fLayer;                      // the number of the layer 0..5\r
+  Int_t   fNumberOfTimeBins;           // Number of timebins  \r
+  Int_t   fConfigTag;                  // Configuration tag\r
+  Int_t   fSingleHitThres;             // threshold of single hits (arg of readout param)\r
+  Int_t   fThrPdClsThres;              // threshold of 3-pad clusters (arg of readout param)\r
+  Int_t   fSelNoZS;                    // write every fSelNoZS'th event without ZS\r
+  Int_t   fTCFilterWeight;             // tail cancellation filter weight\r
+  Int_t   fTCFilterShortDecPar;        // tail cancellation filter short decay parameter\r
+  Int_t   fTCFilterLongDecPar;         // tail cancellation filter long decay parameter\r
+  Int_t   fFastStatNoise;              // collect statistics for fast noise mode\r
+  Int_t   fRStateGSM[fgkROB][fgkMCM];  // array of the global states of the MCMs\r
+  Int_t   fRStateNI[fgkROB][fgkMCM];   // array of the network interface states of the MCMs\r
+  Int_t   fRStateEV[fgkROB][fgkMCM];   // array of the event counters of the MCMs\r
+  Int_t   fRStatePTRG[fgkROB][fgkMCM]; // array of the pretrigger counters of the MCMs\r
+  TString fGainTableRocType;           // the roc type from the gain table\r
+  Int_t   fGainTableRocSerial;         // the roc serial of the chamber from the gain table\r
+  Int_t   fGainTableAdcdac[fgkROB][fgkMCM];       // array of gain table adcdac values\r
+  Int_t   fGainTableFgfn[fgkROB][fgkMCM][fgkADC]; // array of gain table fgfn values\r
+  Int_t   fGainTableFgan[fgkROB][fgkMCM][fgkADC]; // array of gain table fgan values\r
+  TString fFilterType;                 // filter type (p, pgt, nf)\r
+  TString fReadoutParam;               // readout parameter (zs, nozs, testpattern)\r
+  TString fTestPattern;                // value of testpattern (for readout param)\r
+  TString fTrackletMode;               // tracklet mode (trk, csmtrk, notrk)\r
+  TString fTrackletDef;                // definition for tracklet mode trk\r
+  TString fTriggerSetup;               // trigger setup (ptrg, autotrg, autol0)\r
+  TString fAddOptions;                 // additional options (nopm, nion)\r
+  TString fConfigName;                 // Configuration name\r
+  TString fConfigVersion;              // Configuration version\r
+  TString fGainTableName;              // the name of the gain table\r
+  TString fGainTableDesc;              // the description of the gain table\r
+\r
+  ClassDef(AliTRDCalDCSFEE,4)          // TRD calibration class for TRD FEE parameters\r
+};\r
+#endif\r