]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/Cal/AliTRDCalDCS.h
- coverity fixes
[u/mrichter/AliRoot.git] / TRD / Cal / AliTRDCalDCS.h
index dcb382e6a9f3902ffa1c2889ea7814705b39c117..778b53f43c94e2cfa154d547cef0603286f450ba 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef AliTRDCALDCS_H
-#define AliTRDCALDCS_H
+#ifndef ALITRDCALDCS_H
+#define ALITRDCALDCS_H
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
 ///////////////////////////////////////////////////////////////////////////////
 
 #include "TNamed.h"
-#include <TObjArray.h>
-#include "AliTRDCalDCSFEE.h"
-#include "AliTRDCalDCSPTR.h"
-#include "AliTRDCalDCSGTU.h"
+#include "TObjArray.h"
 
 class TString;
 
+class AliTRDCalDCSFEE;
+class AliTRDCalDCSPTR;
+class AliTRDCalDCSGTU;
+
 class AliTRDCalDCS : public TNamed {
 
  public:
@@ -28,52 +29,78 @@ class AliTRDCalDCS : public TNamed {
   AliTRDCalDCS(const AliTRDCalDCS &cd);
   AliTRDCalDCS &operator=(const AliTRDCalDCS &cd);
   virtual ~AliTRDCalDCS() { };
-    
-  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;    }
-  void    SetFEEArr(TObjArray *fa)            { fFEEArr              = fa;    }
-  void    SetPTRArr(TObjArray *pa)            { fPTRArr              = pa;    }
-  void    SetGTUArr(TObjArray *ga)            { fGTUArr              = ga;    }
 
-  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;          }
-  TObjArray*       GetFEEArr() const          { return fFEEArr;               }
-  TObjArray*       GetPTRArr() const          { return fPTRArr;               }
-  TObjArray*       GetGTUArr() const          { return fGTUArr;               }
+  void    EvaluateGlobalParameters();
+  void    SetFEEArr(TObjArray * const fa)      { fFEEArr              = fa;    }
+  void    SetPTRArr(TObjArray * const pa)      { fPTRArr              = pa;    }
+  void    SetGTUObj(AliTRDCalDCSGTU *go)       { fGTUObj              = go;    }
+  void    SetRunType(TString rt)               { fRunType = rt;                }
+  void    SetStartTime(UInt_t st)              { fStartTime = st;              }
+  void    SetEndTime(UInt_t et)                { fEndTime = et;                }
+  
+  Int_t   GetGlobalNumberOfTimeBins() const    { return fGNumberOfTimeBins;    }
+  Int_t   GetGlobalConfigTag() const           { return fGConfigTag;           }
+  Int_t   GetGlobalSingleHitThres() const      { return fGSingleHitThres;      }
+  Int_t   GetGlobalThreePadClustThres() const  { return fGThreePadClustThres;  }
+  Int_t   GetGlobalSelectiveNoZS() const       { return fGSelNoZS;             }
+  Int_t   GetGlobalTCFilterWeight() const      { return fGTCFilterWeight;      }
+  Int_t   GetGlobalTCFilterShortDecPar() const { return fGTCFilterShortDecPar; }
+  Int_t   GetGlobalTCFilterLongDecPar() const  { return fGTCFilterLongDecPar;  }
+  Int_t   GetGlobalModeFastStatNoise() const   { return fGFastStatNoise;       }
+  TString GetGlobalConfigVersion() const       { return fGConfigVersion;       }
+  TString GetGlobalConfigName() const          { return fGConfigName;          }
+  TString GetGlobalFilterType() const          { return fGFilterType;          }
+  TString GetGlobalReadoutParam() const        { return fGReadoutParam;        }
+  TString GetGlobalTestPattern() const         { return fGTestPattern;         }
+  TString GetGlobalTrackletMode() const        { return fGTrackletMode;        }
+  TString GetGlobalTrackletDef() const         { return fGTrackletDef;         }
+  TString GetGlobalTriggerSetup() const        { return fGTriggerSetup;        }
+  TString GetGlobalAddOptions() const          { return fGAddOptions;          }
+  TString GetRunType() const                   { return fRunType;              }
+  UInt_t  GetStartTime() const                 { return fStartTime;            }
+  UInt_t  GetEndTime() const                   { return fEndTime;              }
+  TObjArray*       GetFEEArr() const           { return fFEEArr;               }
+  TObjArray*       GetPTRArr() const           { return fPTRArr;               }
   AliTRDCalDCSFEE* GetCalDCSFEEObj(Int_t det) 
-                           { return (AliTRDCalDCSFEE*)fFEEArr->At(det);      }
+                                 { return (AliTRDCalDCSFEE*)fFEEArr->At(det); }
   AliTRDCalDCSPTR* GetCalDCSPTRObj(Int_t det) 
-                           { return (AliTRDCalDCSPTR*)fPTRArr->At(det);      }
-  AliTRDCalDCSGTU* GetCalDCSGTUObj(Int_t det
-                           { return (AliTRDCalDCSGTU*)fGTUArr->At(det);      }
+                                 { return (AliTRDCalDCSPTR*)fPTRArr->At(det); }
+  AliTRDCalDCSGTU* GetGTUObj(
+                                 { return (AliTRDCalDCSGTU*)fGTUObj;          }
 
  protected:
 
   // global configuration parameters
-  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
+  Int_t   fGNumberOfTimeBins;    // Number of timebins (-1 if diverse)
+  Int_t   fGConfigTag;           // Configuration Tag (-1 if diverse)
+  Int_t   fGSingleHitThres;      // thres. of single hits (arg of readout param) (-1 if diverse)
+  Int_t   fGThreePadClustThres;  // thres. of 3-pad clusters (arg of readout param) (-1 if diverse)
+  Int_t   fGSelNoZS;             // write every fGSelNoZS'th event without ZS (-1 if diverse)
+  Int_t   fGTCFilterWeight;      // tail cancellation filter weight (-1 if diverse)
+  Int_t   fGTCFilterShortDecPar; // tail cancellation filter short decay parameter (-1 if diverse)
+  Int_t   fGTCFilterLongDecPar;  // tail cancellation filter long decay parameter (-1 if diverse)
+  Int_t   fGFastStatNoise;       // collect stat. f. fast noise mode (0: no, 1: yes, -1: diverse)
+  TString fGConfigVersion;       // Configuration version (empty if diverse)
+  TString fGConfigName;          // Configuration name (empty if diverse)
+  TString fGFilterType;          // filter type (p, pgt, nf) (empty if diverse)
+  TString fGReadoutParam;        // readout parameter (zs, nozs, testpattern) (empty if diverse)
+  TString fGTestPattern;         // value of testpattern (for readout param) (empty if diverse)
+  TString fGTrackletMode;        // tracklet mode (trk, csmtrk, notrk) (empty if diverse)
+  TString fGTrackletDef;         // definition for tracklet mode trk (empty if diverse)
+  TString fGTriggerSetup;        // trigger setup (ptrg, autotrg, autol0) (empty if diverse)
+  TString fGAddOptions;          // additional options (nopm, nion) (empty if diverse)
+  TString fRunType;              // the type of run (physics, pedestal, ...)
+  UInt_t  fStartTime;            // value from GetStartTimeDCSQuery
+  UInt_t  fEndTime;              // value from GetiEndTimeDCSQuery
+  
+  // individual configuration parameters
+  TObjArray *fFEEArr;            // config param of the individual chambers
+  TObjArray *fPTRArr;            // config param of the pretrigger
 
-  //individual configuration parameters
-  TObjArray *fFEEArr; // config param of the individual chambers
-  TObjArray *fPTRArr; // config param of the pretrigger
-  TObjArray *fGTUArr; // config param of the GTU
+  AliTRDCalDCSGTU *fGTUObj;      // GTU object
 
-  ClassDef(AliTRDCalDCS,1)         //  TRD calibration class for TRD DCS parameters
+  ClassDef(AliTRDCalDCS,4)       //  TRD calibration class for TRD DCS parameters
 
 };
 #endif
+