end-of-line normalization
[u/mrichter/AliRoot.git] / TRD / Cal / AliTRDCalDCSFEEv2.h
index ac9b96f..a87ee66 100644 (file)
-#ifndef ALITRDCALDCSFEEV2_H\r
-#define ALITRDCALDCSFEEV2_H\r
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\r
- * See cxx source for full Copyright notice                               */\r
-\r
-/* $Id: AliTRDCalDCSFEEv2.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 "TObject.h"\r
-#include "TString.h"\r
-\r
-//class TString;\r
-\r
-class AliTRDCalDCSFEEv2 : public TObject {\r
-\r
- public:\r
-\r
-  AliTRDCalDCSFEEv2();\r
-  AliTRDCalDCSFEEv2(const AliTRDCalDCSFEEv2 &c);\r
-  virtual ~AliTRDCalDCSFEEv2() { };\r
-  AliTRDCalDCSFEEv2 &operator=(const AliTRDCalDCSFEEv2 &c);\r
-\r
-  void    SetStatusBit(Int_t stbit)                  { fStatusBit           = (Char_t)stbit;        }\r
-  void    SetDCSid(Int_t dcsid)                      { fDCSID               = (Short_t)dcsid;       }\r
-  void    SetSM(Int_t smid)                          { fSM                  = (Char_t)smid;         }\r
-  void    SetStack(Int_t stid)                       { fStack               = (Char_t)stid;         }\r
-  void    SetLayer(Int_t lyid)                       { fLayer               = (Char_t)lyid;         }\r
-  void    SetNumberOfTimeBins(Int_t value)           { fNumberOfTimeBins    = (Short_t)value;       }\r
-  void    SetConfigTag(Int_t cfgt)                   { fConfigTag           = (Short_t)cfgt;        }\r
-  void    SetSingleHitThres(Int_t sht)               { fSingleHitThres      = (Short_t)sht;         }\r
-  void    SetThreePadClustThres(Int_t tpct)          { fThrPdClsThres       = (Short_t)tpct;        }\r
-  void    SetSelectiveNoZS(Int_t snzs)               { fSelNoZS             = (Short_t)snzs;        }\r
-  void    SetFastStatNoise(Int_t fstn)               { fFastStatNoise       = (Short_t)fstn;        }\r
-  void    SetTCFilterWeight(Int_t tcfw)              { fTCFilterWeight      = (Short_t)tcfw;        }\r
-  void    SetTCFilterShortDecPar(Int_t sdp)          { fTCFilterShortDecPar = (Short_t)sdp;         }\r
-  void    SetTCFilterLongDecPar(Int_t ldp)           { fTCFilterLongDecPar  = (Short_t)ldp;         }\r
-  void    SetGainTableRocSerial(Int_t gts)           { fGainTableRocSerial  = (UChar_t)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]     = (Char_t)g;            }\r
-  void    SetMCMStateNI(Int_t r,Int_t m,Int_t v)     { fRStateNI[r][m]      = (Char_t)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]         = (Char_t)v;  }\r
-  void    SetGainTableFgfn(Int_t r,Int_t m,Int_t a,Int_t v) { fGainTableFgfn[r][m][a] = (Short_t)v; }\r
-  void    SetGainTableFgan(Int_t r,Int_t m,Int_t a,Int_t v) { fGainTableFgan[r][m][a] = (Char_t)v;  }\r
-\r
-  Int_t   GetStatusBit() const                       { return (Int_t)fStatusBit;                    }\r
-  Int_t   GetDCSid() const                           { return (Int_t)fDCSID;                        }\r
-  Int_t   GetSM() const                              { return (Int_t)fSM;                           }\r
-  Int_t   GetStack() const                           { return (Int_t)fStack;                        }\r
-  Int_t   GetLayer() const                           { return (Int_t)fLayer;                        }\r
-  Int_t   GetNumberOfTimeBins() const                { return (Int_t)fNumberOfTimeBins;             }\r
-  Int_t   GetConfigTag() const                       { return (Int_t)fConfigTag;                    }\r
-  Int_t   GetSingleHitThres() const                  { return (Int_t)fSingleHitThres;               }\r
-  Int_t   GetThreePadClustThres() const              { return (Int_t)fThrPdClsThres;                }\r
-  Int_t   GetSelectiveNoZS() const                   { return (Int_t)fSelNoZS;                      }\r
-  Int_t   GetTCFilterWeight() const                  { return (Int_t)fTCFilterWeight;               }\r
-  Int_t   GetTCFilterShortDecPar() const             { return (Int_t)fTCFilterShortDecPar;          }\r
-  Int_t   GetTCFilterLongDecPar() const              { return (Int_t)fTCFilterLongDecPar;           }\r
-  Int_t   GetFastStatNoise() const                   { return (Int_t)fFastStatNoise;                }\r
-  Int_t   GetGainTableRocSerial() const              { return (Int_t)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 (Char_t)fRStateGSM[r][m];             }\r
-  Int_t   GetMCMStateNI(Int_t r,Int_t m) const       { return (Char_t)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 (Int_t)fGainTableAdcdac[r][m];        }\r
-  Int_t   GetGainTableFgfn(Int_t r,Int_t m,Int_t a) const  { return (Int_t)fGainTableFgfn[r][m][a]; }\r
-  Int_t   GetGainTableFgan(Int_t r,Int_t m,Int_t a) const  { return (Int_t)fGainTableFgan[r][m][a]; }\r
-\r
- protected:\r
-\r
-  static const Char_t fgkROB = 8;       // Number of readout boards\r
-  static const Char_t fgkMCM = 18;      // Number of MCMs\r
-  static const Char_t fgkADC = 21;      // Number of ADC channels\r
-  \r
-  Char_t   fStatusBit;                  // 0 if everything is OK, otherwise !=0 (see impl. file)\r
-  Char_t   fSM;                         // the number of the supermode 0..17\r
-  Char_t   fStack;                      // the number of the stack 0..4\r
-  Char_t   fLayer;                      // the number of the layer 0..5\r
-  Char_t   fGainTableFgan[(Int_t)fgkROB][(Int_t)fgkMCM][(Int_t)fgkADC]; // array of gain table fgan values\r
-  Char_t   fGainTableAdcdac[(Int_t)fgkROB][(Int_t)fgkMCM]; // array of gain table adcdac values\r
-  Char_t   fRStateGSM[(Int_t)fgkROB][(Int_t)fgkMCM];  // array of the global states of the MCMs\r
-  Char_t   fRStateNI[(Int_t)fgkROB][(Int_t)fgkMCM];   // array of the network interface states of the MCMs\r
-  UChar_t  fGainTableRocSerial;         // the roc serial of the chamber from the gain table\r
-  Short_t  fDCSID;                      // ID of the DCS-Board\r
-  Short_t  fNumberOfTimeBins;           // Number of timebins  \r
-  Short_t  fConfigTag;                  // Configuration tag\r
-  Short_t  fSingleHitThres;             // threshold of single hits (arg of readout param)\r
-  Short_t  fThrPdClsThres;              // threshold of 3-pad clusters (arg of readout param)\r
-  Short_t  fSelNoZS;                    // write every fSelNoZS'th event without ZS\r
-  Short_t  fTCFilterWeight;             // tail cancellation filter weight\r
-  Short_t  fTCFilterShortDecPar;        // tail cancellation filter short decay parameter\r
-  Short_t  fTCFilterLongDecPar;         // tail cancellation filter long decay parameter\r
-  Short_t  fFastStatNoise;              // collect statistics for fast noise mode\r
-  Short_t  fGainTableFgfn[(Int_t)fgkROB][(Int_t)fgkMCM][(Int_t)fgkADC]; // array of gain table fgfn values\r
-  Int_t    fRStateEV[(Int_t)fgkROB][(Int_t)fgkMCM];   // array of the event counters of the MCMs\r
-  Int_t    fRStatePTRG[(Int_t)fgkROB][(Int_t)fgkMCM]; // array of the pretrigger counters of the MCMs\r
-  TString  fGainTableRocType;           // the roc type from the gain table\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(AliTRDCalDCSFEEv2,2)          // TRD calibration class for TRD FEE parameters\r
-};\r
-#endif\r
+#ifndef ALITRDCALDCSFEEV2_H
+#define ALITRDCALDCSFEEV2_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id: AliTRDCalDCSFEEv2.h 18952 2007-06-08 11:36:12Z cblume $ */
+
+///////////////////////////////////////////////////////////////////////////////
+//                                                                           //
+//  TRD calibration class for FEE configuration parameters                   //
+//                                                                           //
+///////////////////////////////////////////////////////////////////////////////
+
+#include "TObject.h"
+#include "TString.h"
+
+//class TString;
+
+class AliTRDCalDCSFEEv2 : public TObject {
+
+ public:
+
+  AliTRDCalDCSFEEv2();
+  AliTRDCalDCSFEEv2(const AliTRDCalDCSFEEv2 &c);
+  virtual ~AliTRDCalDCSFEEv2() { };
+  AliTRDCalDCSFEEv2 &operator=(const AliTRDCalDCSFEEv2 &c);
+
+  void    SetStatusBit(Int_t stbit)                  { fStatusBit           = (Char_t)stbit;        }
+  void    SetDCSid(Int_t dcsid)                      { fDCSID               = (Short_t)dcsid;       }
+  void    SetSM(Int_t smid)                          { fSM                  = (Char_t)smid;         }
+  void    SetStack(Int_t stid)                       { fStack               = (Char_t)stid;         }
+  void    SetLayer(Int_t lyid)                       { fLayer               = (Char_t)lyid;         }
+  void    SetNumberOfTimeBins(Int_t value)           { fNumberOfTimeBins    = (Short_t)value;       }
+  void    SetConfigTag(Int_t cfgt)                   { fConfigTag           = (Short_t)cfgt;        }
+  void    SetSingleHitThres(Int_t sht)               { fSingleHitThres      = (Short_t)sht;         }
+  void    SetThreePadClustThres(Int_t tpct)          { fThrPdClsThres       = (Short_t)tpct;        }
+  void    SetSelectiveNoZS(Int_t snzs)               { fSelNoZS             = (Short_t)snzs;        }
+  void    SetFastStatNoise(Int_t fstn)               { fFastStatNoise       = (Short_t)fstn;        }
+  void    SetTCFilterWeight(Int_t tcfw)              { fTCFilterWeight      = (Short_t)tcfw;        }
+  void    SetTCFilterShortDecPar(Int_t sdp)          { fTCFilterShortDecPar = (Short_t)sdp;         }
+  void    SetTCFilterLongDecPar(Int_t ldp)           { fTCFilterLongDecPar  = (Short_t)ldp;         }
+  void    SetGainTableRocSerial(Int_t gts)           { fGainTableRocSerial  = (UChar_t)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]     = (Char_t)g;            }
+  void    SetMCMStateNI(Int_t r,Int_t m,Int_t v)     { fRStateNI[r][m]      = (Char_t)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]         = (Char_t)v;  }
+  void    SetGainTableFgfn(Int_t r,Int_t m,Int_t a,Int_t v) { fGainTableFgfn[r][m][a] = (Short_t)v; }
+  void    SetGainTableFgan(Int_t r,Int_t m,Int_t a,Int_t v) { fGainTableFgan[r][m][a] = (Char_t)v;  }
+
+  Int_t   GetStatusBit() const                       { return (Int_t)fStatusBit;                    }
+  Int_t   GetDCSid() const                           { return (Int_t)fDCSID;                        }
+  Int_t   GetSM() const                              { return (Int_t)fSM;                           }
+  Int_t   GetStack() const                           { return (Int_t)fStack;                        }
+  Int_t   GetLayer() const                           { return (Int_t)fLayer;                        }
+  Int_t   GetNumberOfTimeBins() const                { return (Int_t)fNumberOfTimeBins;             }
+  Int_t   GetConfigTag() const                       { return (Int_t)fConfigTag;                    }
+  Int_t   GetSingleHitThres() const                  { return (Int_t)fSingleHitThres;               }
+  Int_t   GetThreePadClustThres() const              { return (Int_t)fThrPdClsThres;                }
+  Int_t   GetSelectiveNoZS() const                   { return (Int_t)fSelNoZS;                      }
+  Int_t   GetTCFilterWeight() const                  { return (Int_t)fTCFilterWeight;               }
+  Int_t   GetTCFilterShortDecPar() const             { return (Int_t)fTCFilterShortDecPar;          }
+  Int_t   GetTCFilterLongDecPar() const              { return (Int_t)fTCFilterLongDecPar;           }
+  Int_t   GetFastStatNoise() const                   { return (Int_t)fFastStatNoise;                }
+  Int_t   GetGainTableRocSerial() const              { return (Int_t)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 (Char_t)fRStateGSM[r][m];             }
+  Int_t   GetMCMStateNI(Int_t r,Int_t m) const       { return (Char_t)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 (Int_t)fGainTableAdcdac[r][m];        }
+  Int_t   GetGainTableFgfn(Int_t r,Int_t m,Int_t a) const  { return (Int_t)fGainTableFgfn[r][m][a]; }
+  Int_t   GetGainTableFgan(Int_t r,Int_t m,Int_t a) const  { return (Int_t)fGainTableFgan[r][m][a]; }
+
+ protected:
+
+  static const Char_t fgkROB = 8;       // Number of readout boards
+  static const Char_t fgkMCM = 18;      // Number of MCMs
+  static const Char_t fgkADC = 21;      // Number of ADC channels
+  
+  Char_t   fStatusBit;                  // 0 if everything is OK, otherwise !=0 (see impl. file)
+  Char_t   fSM;                         // the number of the supermode 0..17
+  Char_t   fStack;                      // the number of the stack 0..4
+  Char_t   fLayer;                      // the number of the layer 0..5
+  Char_t   fGainTableFgan[(Int_t)fgkROB][(Int_t)fgkMCM][(Int_t)fgkADC]; // array of gain table fgan values
+  Char_t   fGainTableAdcdac[(Int_t)fgkROB][(Int_t)fgkMCM]; // array of gain table adcdac values
+  Char_t   fRStateGSM[(Int_t)fgkROB][(Int_t)fgkMCM];  // array of the global states of the MCMs
+  Char_t   fRStateNI[(Int_t)fgkROB][(Int_t)fgkMCM];   // array of the network interface states of the MCMs
+  UChar_t  fGainTableRocSerial;         // the roc serial of the chamber from the gain table
+  Short_t  fDCSID;                      // ID of the DCS-Board
+  Short_t  fNumberOfTimeBins;           // Number of timebins  
+  Short_t  fConfigTag;                  // Configuration tag
+  Short_t  fSingleHitThres;             // threshold of single hits (arg of readout param)
+  Short_t  fThrPdClsThres;              // threshold of 3-pad clusters (arg of readout param)
+  Short_t  fSelNoZS;                    // write every fSelNoZS'th event without ZS
+  Short_t  fTCFilterWeight;             // tail cancellation filter weight
+  Short_t  fTCFilterShortDecPar;        // tail cancellation filter short decay parameter
+  Short_t  fTCFilterLongDecPar;         // tail cancellation filter long decay parameter
+  Short_t  fFastStatNoise;              // collect statistics for fast noise mode
+  Short_t  fGainTableFgfn[(Int_t)fgkROB][(Int_t)fgkMCM][(Int_t)fgkADC]; // array of gain table fgfn values
+  Int_t    fRStateEV[(Int_t)fgkROB][(Int_t)fgkMCM];   // array of the event counters of the MCMs
+  Int_t    fRStatePTRG[(Int_t)fgkROB][(Int_t)fgkMCM]; // array of the pretrigger counters of the MCMs
+  TString  fGainTableRocType;           // the roc type from the gain table
+  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(AliTRDCalDCSFEEv2,2)          // TRD calibration class for TRD FEE parameters
+};
+#endif