Line data Source code
1 : #ifndef ALITRDCALDCSv2_H
2 : #define ALITRDCALDCSv2_H
3 : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 : * See cxx source for full Copyright notice */
5 :
6 : /* $Id: AliTRDCalDCSv2.h 18952 2007-06-08 11:36:12Z cblume $ */
7 :
8 : ///////////////////////////////////////////////////////////////////////////////
9 : // //
10 : // TRD calibration class v2 for TRD DCS parameters //
11 : // //
12 : ///////////////////////////////////////////////////////////////////////////////
13 :
14 : #include "TNamed.h"
15 : #include "TObjArray.h"
16 :
17 : class TString;
18 :
19 : class AliTRDCalDCSFEEv2;
20 : class AliTRDCalDCSPTR;
21 : class AliTRDCalDCSGTU;
22 :
23 : class AliTRDCalDCSv2 : public TNamed {
24 :
25 : public:
26 :
27 : AliTRDCalDCSv2();
28 : AliTRDCalDCSv2(const Text_t *name, const Text_t *title);
29 : AliTRDCalDCSv2(const AliTRDCalDCSv2 &cd);
30 : AliTRDCalDCSv2 &operator=(const AliTRDCalDCSv2 &cd);
31 0 : virtual ~AliTRDCalDCSv2() { };
32 :
33 : void EvaluateGlobalParameters();
34 0 : void SetFEEArr(TObjArray * const fa) { fFEEArr = fa; }
35 0 : void SetPTRArr(TObjArray * const pa) { fPTRArr = pa; }
36 0 : void SetGTUObj(AliTRDCalDCSGTU *go) { fGTUObj = go; }
37 0 : void SetRunType(TString rt) { fRunType = rt; }
38 0 : void SetStartTime(UInt_t st) { fStartTime = st; }
39 0 : void SetEndTime(UInt_t et) { fEndTime = et; }
40 :
41 0 : Int_t GetGlobalNumberOfTimeBins() const { return fGNumberOfTimeBins; }
42 0 : Int_t GetGlobalConfigTag() const { return fGConfigTag; }
43 0 : Int_t GetGlobalSingleHitThres() const { return fGSingleHitThres; }
44 0 : Int_t GetGlobalThreePadClustThres() const { return fGThreePadClustThres; }
45 0 : Int_t GetGlobalSelectiveNoZS() const { return fGSelNoZS; }
46 0 : Int_t GetGlobalTCFilterWeight() const { return fGTCFilterWeight; }
47 0 : Int_t GetGlobalTCFilterShortDecPar() const { return fGTCFilterShortDecPar; }
48 0 : Int_t GetGlobalTCFilterLongDecPar() const { return fGTCFilterLongDecPar; }
49 0 : Int_t GetGlobalModeFastStatNoise() const { return fGFastStatNoise; }
50 2 : TString GetGlobalConfigVersion() const { return fGConfigVersion; }
51 3016 : TString GetGlobalConfigName() const { return fGConfigName; }
52 0 : TString GetGlobalFilterType() const { return fGFilterType; }
53 0 : TString GetGlobalReadoutParam() const { return fGReadoutParam; }
54 0 : TString GetGlobalTestPattern() const { return fGTestPattern; }
55 0 : TString GetGlobalTrackletMode() const { return fGTrackletMode; }
56 0 : TString GetGlobalTrackletDef() const { return fGTrackletDef; }
57 0 : TString GetGlobalTriggerSetup() const { return fGTriggerSetup; }
58 0 : TString GetGlobalAddOptions() const { return fGAddOptions; }
59 0 : TString GetRunType() const { return fRunType; }
60 0 : UInt_t GetStartTime() const { return fStartTime; }
61 0 : UInt_t GetEndTime() const { return fEndTime; }
62 0 : TObjArray* GetFEEArr() const { return fFEEArr; }
63 0 : TObjArray* GetPTRArr() const { return fPTRArr; }
64 : AliTRDCalDCSFEEv2* GetCalDCSFEEObj(Int_t det) const
65 21600 : { return (AliTRDCalDCSFEEv2*)fFEEArr->At(det); }
66 : AliTRDCalDCSPTR* GetCalDCSPTRObj(Int_t det) const
67 0 : { return (AliTRDCalDCSPTR*)fPTRArr->At(det); }
68 : AliTRDCalDCSGTU* GetGTUObj() const
69 0 : { return (AliTRDCalDCSGTU*)fGTUObj; }
70 :
71 : protected:
72 :
73 : // global configuration parameters
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)
92 : TString fRunType; // the type of run (physics, pedestal, ...)
93 : UInt_t fStartTime; // value from GetStartTimeDCSQuery
94 : UInt_t fEndTime; // value from GetiEndTimeDCSQuery
95 :
96 : // individual configuration parameters
97 : TObjArray *fFEEArr; // config param of the individual chambers
98 : TObjArray *fPTRArr; // config param of the pretrigger
99 :
100 : AliTRDCalDCSGTU *fGTUObj; // GTU object
101 :
102 3126 : ClassDef(AliTRDCalDCSv2,1) // TRD calibration class v2 for TRD DCS parameters
103 :
104 : };
105 : #endif
106 :
|