TOF + macros to each detector folder
[u/mrichter/AliRoot.git] / TRD / TRDbase / AliTRDCalDCSFEE.cxx
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 ClassImp(AliTRDCalDCSFEE)
35   
36 //_____________________________________________________________________________
37 AliTRDCalDCSFEE::AliTRDCalDCSFEE()
38   :TNamed()
39   ,fStatusBit(0)
40   ,fDCSID(-1)
41   ,fSM(-1)
42   ,fStack(-1)
43   ,fLayer(-1)
44   ,fNumberOfTimeBins(-1)
45   ,fConfigTag(-1)
46   ,fSingleHitThres(-1)
47   ,fThrPdClsThres(-1)
48   ,fSelNoZS(-1)
49   ,fTCFilterWeight(-1)
50   ,fTCFilterShortDecPar(-1)
51   ,fTCFilterLongDecPar(-1)
52   ,fFastStatNoise(-1)
53   ,fGainTableRocType("")
54   ,fGainTableRocSerial(0)
55   ,fFilterType(0)
56   ,fReadoutParam(0)
57   ,fTestPattern(0)
58   ,fTrackletMode(0)
59   ,fTrackletDef(0)
60   ,fTriggerSetup(0)
61   ,fAddOptions(0) 
62   ,fConfigName(0)
63   ,fConfigVersion(0)
64   ,fGainTableName("")
65   ,fGainTableDesc("")
66 {
67   //
68   // AliTRDCalDCSFEE default constructor
69   //
70   for(Int_t i=0; i<fgkROB; i++) {
71     for(Int_t j=0; j<fgkMCM; j++) {
72       fRStateGSM[i][j]  = -1;
73       fRStateNI[i][j]   = -1;
74       fRStateEV[i][j]   = -1;
75       fRStatePTRG[i][j] = -1;
76       fGainTableAdcdac[i][j] = -1;
77       for(Int_t k=0; k<fgkADC; k++) {
78         fGainTableFgfn[i][j][k] = -1;
79         fGainTableFgan[i][j][k] = -1;
80       }
81     }
82   }
83 }
84
85
86 //_____________________________________________________________________________
87 AliTRDCalDCSFEE::AliTRDCalDCSFEE(const char *name, const char *title)
88 :TNamed(name,title)
89 ,fStatusBit(0)
90 ,fDCSID(-1)
91 ,fSM(-1)
92 ,fStack(-1)
93 ,fLayer(-1)
94 ,fNumberOfTimeBins(-1)
95 ,fConfigTag(-1)
96 ,fSingleHitThres(-1)
97 ,fThrPdClsThres(-1)
98 ,fSelNoZS(-1)
99 ,fTCFilterWeight(-1)
100 ,fTCFilterShortDecPar(-1)
101 ,fTCFilterLongDecPar(-1)
102 ,fFastStatNoise(-1)
103 ,fGainTableRocType("")
104 ,fGainTableRocSerial(0)
105 ,fFilterType(0)
106 ,fReadoutParam(0)
107 ,fTestPattern(0)
108 ,fTrackletMode(0)
109 ,fTrackletDef(0)
110 ,fTriggerSetup(0)
111 ,fAddOptions(0) 
112 ,fConfigName(0)
113 ,fConfigVersion(0)
114 ,fGainTableName("")
115 ,fGainTableDesc("")
116 {
117   //
118   // AliTRDCalDCSFEE constructor
119   //
120   for(Int_t i=0; i<fgkROB; i++) {
121     for(Int_t j=0; j<fgkMCM; j++) {
122       fRStateGSM[i][j]  = -1;
123       fRStateNI[i][j]   = -1;
124       fRStateEV[i][j]   = -1;
125       fRStatePTRG[i][j] = -1;
126       fGainTableAdcdac[i][j] = -1;
127       for(Int_t k=0; k<fgkADC; k++) {
128         fGainTableFgfn[i][j][k] = -1;
129         fGainTableFgan[i][j][k] = -1;
130       }
131     }
132   }
133 }
134
135