TRD module
[u/mrichter/AliRoot.git] / TRD / TRDbase / AliTRDCalDCS.h
CommitLineData
2e32a5ae 1#ifndef ALITRDCALDCS_H
2#define ALITRDCALDCS_H
54c3cb53 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id: AliTRDCalDCS.h 18952 2007-06-08 11:36:12Z cblume $ */
7
8///////////////////////////////////////////////////////////////////////////////
9// //
10// TRD calibration class for TRD DCS parameters //
11// //
12///////////////////////////////////////////////////////////////////////////////
13
14#include "TNamed.h"
faa87e39 15#include "TObjArray.h"
54c3cb53 16
17class TString;
18
faa87e39 19class AliTRDCalDCSFEE;
20class AliTRDCalDCSPTR;
21class AliTRDCalDCSGTU;
22
54c3cb53 23class AliTRDCalDCS : public TNamed {
24
25 public:
26
27 AliTRDCalDCS();
28 AliTRDCalDCS(const Text_t *name, const Text_t *title);
29 AliTRDCalDCS(const AliTRDCalDCS &cd);
30 AliTRDCalDCS &operator=(const AliTRDCalDCS &cd);
31 virtual ~AliTRDCalDCS() { };
54c3cb53 32
1b2ec594 33 void EvaluateGlobalParameters();
2e32a5ae 34 void SetFEEArr(TObjArray * const fa) { fFEEArr = fa; }
35 void SetPTRArr(TObjArray * const pa) { fPTRArr = pa; }
3821ce70 36 void SetGTUObj(AliTRDCalDCSGTU *go) { fGTUObj = go; }
8f7e6c0b 37 void SetRunType(TString rt) { fRunType = rt; }
38 void SetStartTime(UInt_t st) { fStartTime = st; }
39 void SetEndTime(UInt_t et) { fEndTime = et; }
1b2ec594 40
41 Int_t GetGlobalNumberOfTimeBins() const { return fGNumberOfTimeBins; }
42 Int_t GetGlobalConfigTag() const { return fGConfigTag; }
43 Int_t GetGlobalSingleHitThres() const { return fGSingleHitThres; }
44 Int_t GetGlobalThreePadClustThres() const { return fGThreePadClustThres; }
45 Int_t GetGlobalSelectiveNoZS() const { return fGSelNoZS; }
46 Int_t GetGlobalTCFilterWeight() const { return fGTCFilterWeight; }
47 Int_t GetGlobalTCFilterShortDecPar() const { return fGTCFilterShortDecPar; }
48 Int_t GetGlobalTCFilterLongDecPar() const { return fGTCFilterLongDecPar; }
49 Int_t GetGlobalModeFastStatNoise() const { return fGFastStatNoise; }
50 TString GetGlobalConfigVersion() const { return fGConfigVersion; }
51 TString GetGlobalConfigName() const { return fGConfigName; }
52 TString GetGlobalFilterType() const { return fGFilterType; }
53 TString GetGlobalReadoutParam() const { return fGReadoutParam; }
54 TString GetGlobalTestPattern() const { return fGTestPattern; }
55 TString GetGlobalTrackletMode() const { return fGTrackletMode; }
56 TString GetGlobalTrackletDef() const { return fGTrackletDef; }
57 TString GetGlobalTriggerSetup() const { return fGTriggerSetup; }
3821ce70 58 TString GetGlobalAddOptions() const { return fGAddOptions; }
8f7e6c0b 59 TString GetRunType() const { return fRunType; }
60 UInt_t GetStartTime() const { return fStartTime; }
61 UInt_t GetEndTime() const { return fEndTime; }
1b2ec594 62 TObjArray* GetFEEArr() const { return fFEEArr; }
63 TObjArray* GetPTRArr() const { return fPTRArr; }
54c3cb53 64 AliTRDCalDCSFEE* GetCalDCSFEEObj(Int_t det)
1b2ec594 65 { return (AliTRDCalDCSFEE*)fFEEArr->At(det); }
54c3cb53 66 AliTRDCalDCSPTR* GetCalDCSPTRObj(Int_t det)
1b2ec594 67 { return (AliTRDCalDCSPTR*)fPTRArr->At(det); }
67abca5c 68 AliTRDCalDCSGTU* GetGTUObj() const
3821ce70 69 { return (AliTRDCalDCSGTU*)fGTUObj; }
54c3cb53 70
71 protected:
72
73 // global configuration parameters
1b2ec594 74 Int_t fGNumberOfTimeBins; // Number of timebins (-1 if diverse)
75 Int_t fGConfigTag; // Configuration Tag (-1 if diverse)
76 Int_t fGSingleHitThres; // thres. of single hits (arg of readout param) (-1 if diverse)
77 Int_t fGThreePadClustThres; // thres. of 3-pad clusters (arg of readout param) (-1 if diverse)
78 Int_t fGSelNoZS; // write every fGSelNoZS'th event without ZS (-1 if diverse)
79 Int_t fGTCFilterWeight; // tail cancellation filter weight (-1 if diverse)
80 Int_t fGTCFilterShortDecPar; // tail cancellation filter short decay parameter (-1 if diverse)
81 Int_t fGTCFilterLongDecPar; // tail cancellation filter long decay parameter (-1 if diverse)
82 Int_t fGFastStatNoise; // collect stat. f. fast noise mode (0: no, 1: yes, -1: diverse)
83 TString fGConfigVersion; // Configuration version (empty if diverse)
84 TString fGConfigName; // Configuration name (empty if diverse)
85 TString fGFilterType; // filter type (p, pgt, nf) (empty if diverse)
86 TString fGReadoutParam; // readout parameter (zs, nozs, testpattern) (empty if diverse)
87 TString fGTestPattern; // value of testpattern (for readout param) (empty if diverse)
88 TString fGTrackletMode; // tracklet mode (trk, csmtrk, notrk) (empty if diverse)
89 TString fGTrackletDef; // definition for tracklet mode trk (empty if diverse)
90 TString fGTriggerSetup; // trigger setup (ptrg, autotrg, autol0) (empty if diverse)
91 TString fGAddOptions; // additional options (nopm, nion) (empty if diverse)
8f7e6c0b 92 TString fRunType; // the type of run (physics, pedestal, ...)
93 UInt_t fStartTime; // value from GetStartTimeDCSQuery
94 UInt_t fEndTime; // value from GetiEndTimeDCSQuery
1b2ec594 95
8f7e6c0b 96 // individual configuration parameters
97 TObjArray *fFEEArr; // config param of the individual chambers
98 TObjArray *fPTRArr; // config param of the pretrigger
3821ce70 99
8f7e6c0b 100 AliTRDCalDCSGTU *fGTUObj; // GTU object
54c3cb53 101
8f7e6c0b 102 ClassDef(AliTRDCalDCS,4) // TRD calibration class for TRD DCS parameters
54c3cb53 103
104};
105#endif
8f7e6c0b 106