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