Line data Source code
1 : #ifndef ALITRDCALDCSFEE_H
2 : #define ALITRDCALDCSFEE_H
3 : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 : * See cxx source for full Copyright notice */
5 :
6 : /* $Id: AliTRDCalDCSFEE.h 18952 2007-06-08 11:36:12Z cblume $ */
7 :
8 : ///////////////////////////////////////////////////////////////////////////////
9 : // //
10 : // TRD calibration class for FEE configuration parameters //
11 : // //
12 : ///////////////////////////////////////////////////////////////////////////////
13 :
14 : #include "TNamed.h"
15 :
16 : class TString;
17 :
18 0 : class AliTRDCalDCSFEE : public TNamed {
19 :
20 : public:
21 :
22 : AliTRDCalDCSFEE();
23 : AliTRDCalDCSFEE(const char *name, const char *title);
24 0 : virtual ~AliTRDCalDCSFEE() { };
25 :
26 0 : void SetStatusBit(Int_t stbit) { fStatusBit = stbit; }
27 0 : void SetDCSid(Int_t dcsid) { fDCSID = dcsid; }
28 0 : void SetSM(Int_t smid) { fSM = smid; }
29 0 : void SetStack(Int_t stid) { fStack = stid; }
30 0 : void SetLayer(Int_t lyid) { fLayer = lyid; }
31 0 : void SetNumberOfTimeBins(Int_t value) { fNumberOfTimeBins = value; }
32 0 : void SetConfigTag(Int_t cfgt) { fConfigTag = cfgt; }
33 0 : void SetSingleHitThres(Int_t sht) { fSingleHitThres = sht; }
34 0 : void SetThreePadClustThres(Int_t tpct) { fThrPdClsThres = tpct; }
35 0 : void SetSelectiveNoZS(Int_t snzs) { fSelNoZS = snzs; }
36 0 : void SetFastStatNoise(Int_t fstn) { fFastStatNoise = fstn; }
37 0 : void SetTCFilterWeight(Int_t tcfw) { fTCFilterWeight = tcfw; }
38 0 : void SetTCFilterShortDecPar(Int_t sdp) { fTCFilterShortDecPar = sdp; }
39 0 : void SetTCFilterLongDecPar(Int_t ldp) { fTCFilterLongDecPar = ldp; }
40 0 : void SetGainTableRocSerial(Int_t gts) { fGainTableRocSerial = gts; }
41 0 : void SetFilterType(TString fity) { fFilterType = fity; }
42 0 : void SetReadoutParam(TString rpar) { fReadoutParam = rpar; }
43 0 : void SetTestPattern(TString tpat) { fTestPattern = tpat; }
44 0 : void SetTrackletMode(TString tmde) { fTrackletMode = tmde; }
45 0 : void SetTrackletDef(TString tdef) { fTrackletDef = tdef; }
46 0 : void SetTriggerSetup(TString trse) { fTriggerSetup = trse; }
47 0 : void SetAddOptions(TString adop) { fAddOptions = adop; }
48 0 : void SetConfigName(TString cfgn) { fConfigName = cfgn; }
49 0 : void SetConfigVersion(TString cfgv) { fConfigVersion = cfgv; }
50 0 : void SetGainTableName(TString gt) { fGainTableName = gt; }
51 0 : void SetGainTableDesc(TString gd) { fGainTableDesc = gd; }
52 0 : void SetGainTableRocType(TString gr) { fGainTableRocType = gr; }
53 0 : void SetMCMGlobalState(Int_t r,Int_t m,Int_t g) { fRStateGSM[r][m] = g; }
54 0 : void SetMCMStateNI(Int_t r,Int_t m,Int_t v) { fRStateNI[r][m] = v; }
55 0 : void SetMCMEventCnt(Int_t r,Int_t m,Int_t v) { fRStateEV[r][m] = v; }
56 0 : void SetMCMPtCnt(Int_t r,Int_t m,Int_t v) { fRStatePTRG[r][m] = v; }
57 0 : void SetGainTableAdcdac(Int_t r,Int_t m,Int_t v){ fGainTableAdcdac[r][m] = v;}
58 0 : void SetGainTableFgfn(Int_t r,Int_t m,Int_t a,Int_t v) { fGainTableFgfn[r][m][a] = v; }
59 0 : void SetGainTableFgan(Int_t r,Int_t m,Int_t a,Int_t v) { fGainTableFgan[r][m][a] = v; }
60 :
61 0 : Int_t GetStatusBit() const { return fStatusBit; }
62 0 : Int_t GetDCSid() const { return fDCSID; }
63 0 : Int_t GetSM() const { return fSM; }
64 0 : Int_t GetStack() const { return fStack; }
65 0 : Int_t GetLayer() const { return fLayer; }
66 0 : Int_t GetNumberOfTimeBins() const { return fNumberOfTimeBins; }
67 0 : Int_t GetConfigTag() const { return fConfigTag; }
68 0 : Int_t GetSingleHitThres() const { return fSingleHitThres; }
69 0 : Int_t GetThreePadClustThres() const { return fThrPdClsThres; }
70 0 : Int_t GetSelectiveNoZS() const { return fSelNoZS; }
71 0 : Int_t GetTCFilterWeight() const { return fTCFilterWeight; }
72 0 : Int_t GetTCFilterShortDecPar() const { return fTCFilterShortDecPar; }
73 0 : Int_t GetTCFilterLongDecPar() const { return fTCFilterLongDecPar; }
74 0 : Int_t GetFastStatNoise() const { return fFastStatNoise; }
75 0 : Int_t GetGainTableRocSerial() const { return fGainTableRocSerial; }
76 0 : TString GetFilterType() const { return fFilterType; }
77 0 : TString GetReadoutParam() const { return fReadoutParam; }
78 0 : TString GetTestPattern() const { return fTestPattern; }
79 0 : TString GetTrackletMode() const { return fTrackletMode; }
80 0 : TString GetTrackletDef() const { return fTrackletDef; }
81 0 : TString GetTriggerSetup() const { return fTriggerSetup; }
82 0 : TString GetAddOptions() const { return fAddOptions; }
83 0 : TString GetConfigName() const { return fConfigName; }
84 0 : TString GetConfigVersion() const { return fConfigVersion; }
85 0 : TString GetGainTableName() const { return fGainTableName; }
86 0 : TString GetGainTableDesc() const { return fGainTableDesc; }
87 0 : TString GetGainTableRocType() const { return fGainTableRocType; }
88 0 : Int_t GetMCMGlobalState(Int_t r,Int_t m) const { return fRStateGSM[r][m]; }
89 0 : Int_t GetMCMStateNI(Int_t r,Int_t m) const { return fRStateNI[r][m]; }
90 0 : Int_t GetMCMEventCnt(Int_t r,Int_t m) const { return fRStateEV[r][m]; }
91 0 : Int_t GetMCMPtCnt(Int_t r,Int_t m) const { return fRStatePTRG[r][m]; }
92 0 : Int_t GetGainTableAdcdac(Int_t r,Int_t m) const { return fGainTableAdcdac[r][m];}
93 0 : Int_t GetGainTableFgfn(Int_t r,Int_t m,Int_t a) const { return fGainTableFgfn[r][m][a]; }
94 0 : Int_t GetGainTableFgan(Int_t r,Int_t m,Int_t a) const { return fGainTableFgan[r][m][a]; }
95 :
96 : protected:
97 :
98 : static const Int_t fgkROB = 8; // Number of readout boards
99 : static const Int_t fgkMCM = 18; // Number of MCMs
100 : static const Int_t fgkADC = 21; // Number of ADC channels
101 :
102 : Int_t fStatusBit; // 0 if everything is OK, otherwise !=0 (see impl. file)
103 : Int_t fDCSID; // ID of the DCS-Board
104 : Int_t fSM; // the number of the supermode 0..17
105 : Int_t fStack; // the number of the stack 0..4
106 : Int_t fLayer; // the number of the layer 0..5
107 : Int_t fNumberOfTimeBins; // Number of timebins
108 : Int_t fConfigTag; // Configuration tag
109 : Int_t fSingleHitThres; // threshold of single hits (arg of readout param)
110 : Int_t fThrPdClsThres; // threshold of 3-pad clusters (arg of readout param)
111 : Int_t fSelNoZS; // write every fSelNoZS'th event without ZS
112 : Int_t fTCFilterWeight; // tail cancellation filter weight
113 : Int_t fTCFilterShortDecPar; // tail cancellation filter short decay parameter
114 : Int_t fTCFilterLongDecPar; // tail cancellation filter long decay parameter
115 : Int_t fFastStatNoise; // collect statistics for fast noise mode
116 : Int_t fRStateGSM[fgkROB][fgkMCM]; // array of the global states of the MCMs
117 : Int_t fRStateNI[fgkROB][fgkMCM]; // array of the network interface states of the MCMs
118 : Int_t fRStateEV[fgkROB][fgkMCM]; // array of the event counters of the MCMs
119 : Int_t fRStatePTRG[fgkROB][fgkMCM]; // array of the pretrigger counters of the MCMs
120 : TString fGainTableRocType; // the roc type from the gain table
121 : Int_t fGainTableRocSerial; // the roc serial of the chamber from the gain table
122 : Int_t fGainTableAdcdac[fgkROB][fgkMCM]; // array of gain table adcdac values
123 : Int_t fGainTableFgfn[fgkROB][fgkMCM][fgkADC]; // array of gain table fgfn values
124 : Int_t fGainTableFgan[fgkROB][fgkMCM][fgkADC]; // array of gain table fgan values
125 : TString fFilterType; // filter type (p, pgt, nf)
126 : TString fReadoutParam; // readout parameter (zs, nozs, testpattern)
127 : TString fTestPattern; // value of testpattern (for readout param)
128 : TString fTrackletMode; // tracklet mode (trk, csmtrk, notrk)
129 : TString fTrackletDef; // definition for tracklet mode trk
130 : TString fTriggerSetup; // trigger setup (ptrg, autotrg, autol0)
131 : TString fAddOptions; // additional options (nopm, nion)
132 : TString fConfigName; // Configuration name
133 : TString fConfigVersion; // Configuration version
134 : TString fGainTableName; // the name of the gain table
135 : TString fGainTableDesc; // the description of the gain table
136 :
137 48 : ClassDef(AliTRDCalDCSFEE,4) // TRD calibration class for TRD FEE parameters
138 : };
139 : #endif
|