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