]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/Cal/AliTRDCalDCSFEE.h
end-of-line normalization
[u/mrichter/AliRoot.git] / TRD / Cal / AliTRDCalDCSFEE.h
CommitLineData
7fac8669 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
16class TString;
17
18class AliTRDCalDCSFEE : public TNamed {
19
20 public:
21
22 AliTRDCalDCSFEE();
23 AliTRDCalDCSFEE(const char *name, const char *title);
24 virtual ~AliTRDCalDCSFEE() { };
25
26 void SetStatusBit(Int_t stbit) { fStatusBit = stbit; }
27 void SetDCSid(Int_t dcsid) { fDCSID = dcsid; }
28 void SetSM(Int_t smid) { fSM = smid; }
29 void SetStack(Int_t stid) { fStack = stid; }
30 void SetLayer(Int_t lyid) { fLayer = lyid; }
31 void SetNumberOfTimeBins(Int_t value) { fNumberOfTimeBins = value; }
32 void SetConfigTag(Int_t cfgt) { fConfigTag = cfgt; }
33 void SetSingleHitThres(Int_t sht) { fSingleHitThres = sht; }
34 void SetThreePadClustThres(Int_t tpct) { fThrPdClsThres = tpct; }
35 void SetSelectiveNoZS(Int_t snzs) { fSelNoZS = snzs; }
36 void SetFastStatNoise(Int_t fstn) { fFastStatNoise = fstn; }
37 void SetTCFilterWeight(Int_t tcfw) { fTCFilterWeight = tcfw; }
38 void SetTCFilterShortDecPar(Int_t sdp) { fTCFilterShortDecPar = sdp; }
39 void SetTCFilterLongDecPar(Int_t ldp) { fTCFilterLongDecPar = ldp; }
40 void SetGainTableRocSerial(Int_t gts) { fGainTableRocSerial = gts; }
41 void SetFilterType(TString fity) { fFilterType = fity; }
42 void SetReadoutParam(TString rpar) { fReadoutParam = rpar; }
43 void SetTestPattern(TString tpat) { fTestPattern = tpat; }
44 void SetTrackletMode(TString tmde) { fTrackletMode = tmde; }
45 void SetTrackletDef(TString tdef) { fTrackletDef = tdef; }
46 void SetTriggerSetup(TString trse) { fTriggerSetup = trse; }
47 void SetAddOptions(TString adop) { fAddOptions = adop; }
48 void SetConfigName(TString cfgn) { fConfigName = cfgn; }
49 void SetConfigVersion(TString cfgv) { fConfigVersion = cfgv; }
50 void SetGainTableName(TString gt) { fGainTableName = gt; }
51 void SetGainTableDesc(TString gd) { fGainTableDesc = gd; }
52 void SetGainTableRocType(TString gr) { fGainTableRocType = gr; }
53 void SetMCMGlobalState(Int_t r,Int_t m,Int_t g) { fRStateGSM[r][m] = g; }
54 void SetMCMStateNI(Int_t r,Int_t m,Int_t v) { fRStateNI[r][m] = v; }
55 void SetMCMEventCnt(Int_t r,Int_t m,Int_t v) { fRStateEV[r][m] = v; }
56 void SetMCMPtCnt(Int_t r,Int_t m,Int_t v) { fRStatePTRG[r][m] = v; }
57 void SetGainTableAdcdac(Int_t r,Int_t m,Int_t v){ fGainTableAdcdac[r][m] = v;}
58 void SetGainTableFgfn(Int_t r,Int_t m,Int_t a,Int_t v) { fGainTableFgfn[r][m][a] = v; }
59 void SetGainTableFgan(Int_t r,Int_t m,Int_t a,Int_t v) { fGainTableFgan[r][m][a] = v; }
60
61 Int_t GetStatusBit() const { return fStatusBit; }
62 Int_t GetDCSid() const { return fDCSID; }
63 Int_t GetSM() const { return fSM; }
64 Int_t GetStack() const { return fStack; }
65 Int_t GetLayer() const { return fLayer; }
66 Int_t GetNumberOfTimeBins() const { return fNumberOfTimeBins; }
67 Int_t GetConfigTag() const { return fConfigTag; }
68 Int_t GetSingleHitThres() const { return fSingleHitThres; }
69 Int_t GetThreePadClustThres() const { return fThrPdClsThres; }
70 Int_t GetSelectiveNoZS() const { return fSelNoZS; }
71 Int_t GetTCFilterWeight() const { return fTCFilterWeight; }
72 Int_t GetTCFilterShortDecPar() const { return fTCFilterShortDecPar; }
73 Int_t GetTCFilterLongDecPar() const { return fTCFilterLongDecPar; }
74 Int_t GetFastStatNoise() const { return fFastStatNoise; }
75 Int_t GetGainTableRocSerial() const { return fGainTableRocSerial; }
76 TString GetFilterType() const { return fFilterType; }
77 TString GetReadoutParam() const { return fReadoutParam; }
78 TString GetTestPattern() const { return fTestPattern; }
79 TString GetTrackletMode() const { return fTrackletMode; }
80 TString GetTrackletDef() const { return fTrackletDef; }
81 TString GetTriggerSetup() const { return fTriggerSetup; }
82 TString GetAddOptions() const { return fAddOptions; }
83 TString GetConfigName() const { return fConfigName; }
84 TString GetConfigVersion() const { return fConfigVersion; }
85 TString GetGainTableName() const { return fGainTableName; }
86 TString GetGainTableDesc() const { return fGainTableDesc; }
87 TString GetGainTableRocType() const { return fGainTableRocType; }
88 Int_t GetMCMGlobalState(Int_t r,Int_t m) const { return fRStateGSM[r][m]; }
89 Int_t GetMCMStateNI(Int_t r,Int_t m) const { return fRStateNI[r][m]; }
90 Int_t GetMCMEventCnt(Int_t r,Int_t m) const { return fRStateEV[r][m]; }
91 Int_t GetMCMPtCnt(Int_t r,Int_t m) const { return fRStatePTRG[r][m]; }
92 Int_t GetGainTableAdcdac(Int_t r,Int_t m) const { return fGainTableAdcdac[r][m];}
93 Int_t GetGainTableFgfn(Int_t r,Int_t m,Int_t a) const { return fGainTableFgfn[r][m][a]; }
94 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 ClassDef(AliTRDCalDCSFEE,4) // TRD calibration class for TRD FEE parameters
138};
139#endif