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

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

///////////////////////////////////////////////////////////////////////////////
//                                                                           //
//  TRD calibration class for TRD DCS parameters                             //
//                                                                           //
///////////////////////////////////////////////////////////////////////////////

#include "TNamed.h"
#include "TObjArray.h"

class TString;

class AliTRDCalDCSFEE;
class AliTRDCalDCSPTR;
class AliTRDCalDCSGTU;

class AliTRDCalDCS : public TNamed {

 public:

  AliTRDCalDCS();
  AliTRDCalDCS(const Text_t *name, const Text_t *title);
  AliTRDCalDCS(const AliTRDCalDCS &cd);
  AliTRDCalDCS &operator=(const AliTRDCalDCS &cd);
  virtual ~AliTRDCalDCS() { };

  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); }
  AliTRDCalDCSPTR* GetCalDCSPTRObj(Int_t det) 
  			          { return (AliTRDCalDCSPTR*)fPTRArr->At(det); }
  AliTRDCalDCSGTU* GetGTUObj() const
           		          { return (AliTRDCalDCSGTU*)fGTUObj;          }

 protected:

  // global configuration parameters
  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

  AliTRDCalDCSGTU *fGTUObj;      // GTU object

  ClassDef(AliTRDCalDCS,4)       //  TRD calibration class for TRD DCS parameters

};
#endif

 AliTRDCalDCS.h:1
 AliTRDCalDCS.h:2
 AliTRDCalDCS.h:3
 AliTRDCalDCS.h:4
 AliTRDCalDCS.h:5
 AliTRDCalDCS.h:6
 AliTRDCalDCS.h:7
 AliTRDCalDCS.h:8
 AliTRDCalDCS.h:9
 AliTRDCalDCS.h:10
 AliTRDCalDCS.h:11
 AliTRDCalDCS.h:12
 AliTRDCalDCS.h:13
 AliTRDCalDCS.h:14
 AliTRDCalDCS.h:15
 AliTRDCalDCS.h:16
 AliTRDCalDCS.h:17
 AliTRDCalDCS.h:18
 AliTRDCalDCS.h:19
 AliTRDCalDCS.h:20
 AliTRDCalDCS.h:21
 AliTRDCalDCS.h:22
 AliTRDCalDCS.h:23
 AliTRDCalDCS.h:24
 AliTRDCalDCS.h:25
 AliTRDCalDCS.h:26
 AliTRDCalDCS.h:27
 AliTRDCalDCS.h:28
 AliTRDCalDCS.h:29
 AliTRDCalDCS.h:30
 AliTRDCalDCS.h:31
 AliTRDCalDCS.h:32
 AliTRDCalDCS.h:33
 AliTRDCalDCS.h:34
 AliTRDCalDCS.h:35
 AliTRDCalDCS.h:36
 AliTRDCalDCS.h:37
 AliTRDCalDCS.h:38
 AliTRDCalDCS.h:39
 AliTRDCalDCS.h:40
 AliTRDCalDCS.h:41
 AliTRDCalDCS.h:42
 AliTRDCalDCS.h:43
 AliTRDCalDCS.h:44
 AliTRDCalDCS.h:45
 AliTRDCalDCS.h:46
 AliTRDCalDCS.h:47
 AliTRDCalDCS.h:48
 AliTRDCalDCS.h:49
 AliTRDCalDCS.h:50
 AliTRDCalDCS.h:51
 AliTRDCalDCS.h:52
 AliTRDCalDCS.h:53
 AliTRDCalDCS.h:54
 AliTRDCalDCS.h:55
 AliTRDCalDCS.h:56
 AliTRDCalDCS.h:57
 AliTRDCalDCS.h:58
 AliTRDCalDCS.h:59
 AliTRDCalDCS.h:60
 AliTRDCalDCS.h:61
 AliTRDCalDCS.h:62
 AliTRDCalDCS.h:63
 AliTRDCalDCS.h:64
 AliTRDCalDCS.h:65
 AliTRDCalDCS.h:66
 AliTRDCalDCS.h:67
 AliTRDCalDCS.h:68
 AliTRDCalDCS.h:69
 AliTRDCalDCS.h:70
 AliTRDCalDCS.h:71
 AliTRDCalDCS.h:72
 AliTRDCalDCS.h:73
 AliTRDCalDCS.h:74
 AliTRDCalDCS.h:75
 AliTRDCalDCS.h:76
 AliTRDCalDCS.h:77
 AliTRDCalDCS.h:78
 AliTRDCalDCS.h:79
 AliTRDCalDCS.h:80
 AliTRDCalDCS.h:81
 AliTRDCalDCS.h:82
 AliTRDCalDCS.h:83
 AliTRDCalDCS.h:84
 AliTRDCalDCS.h:85
 AliTRDCalDCS.h:86
 AliTRDCalDCS.h:87
 AliTRDCalDCS.h:88
 AliTRDCalDCS.h:89
 AliTRDCalDCS.h:90
 AliTRDCalDCS.h:91
 AliTRDCalDCS.h:92
 AliTRDCalDCS.h:93
 AliTRDCalDCS.h:94
 AliTRDCalDCS.h:95
 AliTRDCalDCS.h:96
 AliTRDCalDCS.h:97
 AliTRDCalDCS.h:98
 AliTRDCalDCS.h:99
 AliTRDCalDCS.h:100
 AliTRDCalDCS.h:101
 AliTRDCalDCS.h:102
 AliTRDCalDCS.h:103
 AliTRDCalDCS.h:104
 AliTRDCalDCS.h:105
 AliTRDCalDCS.h:106