Line data Source code
1 : /**************************************************************************
2 : * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 : * *
4 : * Author: The ALICE Off-line Project. *
5 : * Contributors are mentioned in the code where appropriate. *
6 : * *
7 : * Permission to use, copy, modify and distribute this software and its *
8 : * documentation strictly for non-commercial purposes is hereby granted *
9 : * without fee, provided that the above copyright notice appears in all *
10 : * copies and that both the copyright notice and this permission notice *
11 : * appear in the supporting documentation. The authors make no claims *
12 : * about the suitability of this software for any purpose. It is *
13 : * provided "as is" without express or implied warranty. *
14 : **************************************************************************/
15 :
16 : /* $Id: AliTRDCalDCSFEE.cxx 18952 2007-06-08 11:36:12Z cblume $ */
17 :
18 : ///////////////////////////////////////////////////////////////////////////////
19 : // //
20 : // TRD calibration class for TRD DCS FEE configuration parameters //
21 : // //
22 : ///////////////////////////////////////////////////////////////////////////////
23 :
24 : // fStatusBit:
25 : // 0: no errors for that ROC
26 : // 1: ROC sent invalid or corrupted data.
27 : // 2: ROC was not in state CONFIGURED or STANDBY_INIT (most probably it was in STANDBY)
28 : // 3: No new data received from that ROC.
29 : // 4: DCS id from XML attributes <DCS> and <ack> and the one calculated from SM, S, L do not match
30 : // 5: ROC has not responded at all, most probably it was off.
31 :
32 : #include "AliTRDCalDCSFEE.h"
33 :
34 48 : ClassImp(AliTRDCalDCSFEE)
35 :
36 : //_____________________________________________________________________________
37 : AliTRDCalDCSFEE::AliTRDCalDCSFEE()
38 0 : :TNamed()
39 0 : ,fStatusBit(0)
40 0 : ,fDCSID(-1)
41 0 : ,fSM(-1)
42 0 : ,fStack(-1)
43 0 : ,fLayer(-1)
44 0 : ,fNumberOfTimeBins(-1)
45 0 : ,fConfigTag(-1)
46 0 : ,fSingleHitThres(-1)
47 0 : ,fThrPdClsThres(-1)
48 0 : ,fSelNoZS(-1)
49 0 : ,fTCFilterWeight(-1)
50 0 : ,fTCFilterShortDecPar(-1)
51 0 : ,fTCFilterLongDecPar(-1)
52 0 : ,fFastStatNoise(-1)
53 0 : ,fGainTableRocType("")
54 0 : ,fGainTableRocSerial(0)
55 0 : ,fFilterType(0)
56 0 : ,fReadoutParam(0)
57 0 : ,fTestPattern(0)
58 0 : ,fTrackletMode(0)
59 0 : ,fTrackletDef(0)
60 0 : ,fTriggerSetup(0)
61 0 : ,fAddOptions(0)
62 0 : ,fConfigName(0)
63 0 : ,fConfigVersion(0)
64 0 : ,fGainTableName("")
65 0 : ,fGainTableDesc("")
66 0 : {
67 : //
68 : // AliTRDCalDCSFEE default constructor
69 : //
70 0 : for(Int_t i=0; i<fgkROB; i++) {
71 0 : for(Int_t j=0; j<fgkMCM; j++) {
72 0 : fRStateGSM[i][j] = -1;
73 0 : fRStateNI[i][j] = -1;
74 0 : fRStateEV[i][j] = -1;
75 0 : fRStatePTRG[i][j] = -1;
76 0 : fGainTableAdcdac[i][j] = -1;
77 0 : for(Int_t k=0; k<fgkADC; k++) {
78 0 : fGainTableFgfn[i][j][k] = -1;
79 0 : fGainTableFgan[i][j][k] = -1;
80 : }
81 : }
82 : }
83 0 : }
84 :
85 :
86 : //_____________________________________________________________________________
87 : AliTRDCalDCSFEE::AliTRDCalDCSFEE(const char *name, const char *title)
88 0 : :TNamed(name,title)
89 0 : ,fStatusBit(0)
90 0 : ,fDCSID(-1)
91 0 : ,fSM(-1)
92 0 : ,fStack(-1)
93 0 : ,fLayer(-1)
94 0 : ,fNumberOfTimeBins(-1)
95 0 : ,fConfigTag(-1)
96 0 : ,fSingleHitThres(-1)
97 0 : ,fThrPdClsThres(-1)
98 0 : ,fSelNoZS(-1)
99 0 : ,fTCFilterWeight(-1)
100 0 : ,fTCFilterShortDecPar(-1)
101 0 : ,fTCFilterLongDecPar(-1)
102 0 : ,fFastStatNoise(-1)
103 0 : ,fGainTableRocType("")
104 0 : ,fGainTableRocSerial(0)
105 0 : ,fFilterType(0)
106 0 : ,fReadoutParam(0)
107 0 : ,fTestPattern(0)
108 0 : ,fTrackletMode(0)
109 0 : ,fTrackletDef(0)
110 0 : ,fTriggerSetup(0)
111 0 : ,fAddOptions(0)
112 0 : ,fConfigName(0)
113 0 : ,fConfigVersion(0)
114 0 : ,fGainTableName("")
115 0 : ,fGainTableDesc("")
116 0 : {
117 : //
118 : // AliTRDCalDCSFEE constructor
119 : //
120 0 : for(Int_t i=0; i<fgkROB; i++) {
121 0 : for(Int_t j=0; j<fgkMCM; j++) {
122 0 : fRStateGSM[i][j] = -1;
123 0 : fRStateNI[i][j] = -1;
124 0 : fRStateEV[i][j] = -1;
125 0 : fRStatePTRG[i][j] = -1;
126 0 : fGainTableAdcdac[i][j] = -1;
127 0 : for(Int_t k=0; k<fgkADC; k++) {
128 0 : fGainTableFgfn[i][j][k] = -1;
129 0 : fGainTableFgan[i][j][k] = -1;
130 : }
131 : }
132 : }
133 0 : }
134 :
135 :
|