end-of-line normalization
[u/mrichter/AliRoot.git] / TRD / Cal / AliTRDCalDCSFEEv2.cxx
CommitLineData
a65a7e70 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: AliTRDCalDCSFEEv2.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 "AliTRDCalDCSFEEv2.h"
33
34ClassImp(AliTRDCalDCSFEEv2)
35
36//_____________________________________________________________________________
37AliTRDCalDCSFEEv2::AliTRDCalDCSFEEv2()
38 :TObject()
39 ,fStatusBit(0)
40 ,fSM(-1)
41 ,fStack(-1)
42 ,fLayer(-1)
43 ,fGainTableRocSerial(0)
44 ,fDCSID(-1)
45 ,fNumberOfTimeBins(-1)
46 ,fConfigTag(-1)
47 ,fSingleHitThres(-1)
48 ,fThrPdClsThres(-1)
49 ,fSelNoZS(-1)
50 ,fTCFilterWeight(-1)
51 ,fTCFilterShortDecPar(-1)
52 ,fTCFilterLongDecPar(-1)
53 ,fFastStatNoise(-1)
54 ,fGainTableRocType("")
55 ,fFilterType("")
56 ,fReadoutParam("")
57 ,fTestPattern("")
58 ,fTrackletMode("")
59 ,fTrackletDef("")
60 ,fTriggerSetup("")
61 ,fAddOptions("")
62 ,fConfigName("")
63 ,fConfigVersion("")
64 ,fGainTableName("")
65 ,fGainTableDesc("")
66{
67 //
68 // AliTRDCalDCSFEEv2 default constructor
69 //
70 for(Int_t i=0; i<(Int_t)fgkROB; i++) {
71 for(Int_t j=0; j<(Int_t)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<(Int_t)fgkADC; k++) {
78 fGainTableFgfn[i][j][k] = -1;
79 fGainTableFgan[i][j][k] = -1;
80 }
81 }
82 }
83}
84
85
86//_____________________________________________________________________________
87AliTRDCalDCSFEEv2::AliTRDCalDCSFEEv2(const AliTRDCalDCSFEEv2 &c)
88 :TObject(c)
89 ,fStatusBit(c.fStatusBit)
90 ,fSM(c.fSM)
91 ,fStack(c.fStack)
92 ,fLayer(c.fLayer)
93 ,fGainTableRocSerial(c.fGainTableRocSerial)
94 ,fDCSID(c.fDCSID)
95 ,fNumberOfTimeBins(c.fNumberOfTimeBins)
96 ,fConfigTag(c.fConfigTag)
97 ,fSingleHitThres(c.fSingleHitThres)
98 ,fThrPdClsThres(c.fThrPdClsThres)
99 ,fSelNoZS(c.fSelNoZS)
100 ,fTCFilterWeight(c.fTCFilterWeight)
101 ,fTCFilterShortDecPar(c.fTCFilterShortDecPar)
102 ,fTCFilterLongDecPar(c.fTCFilterLongDecPar)
103 ,fFastStatNoise(c.fFastStatNoise)
104 ,fGainTableRocType(c.fGainTableRocType)
105 ,fFilterType(c.fFilterType)
106 ,fReadoutParam(c.fReadoutParam)
107 ,fTestPattern(c.fTestPattern)
108 ,fTrackletMode(c.fTrackletMode)
109 ,fTrackletDef(c.fTrackletDef)
110 ,fTriggerSetup(c.fTriggerSetup)
111 ,fAddOptions(c.fAddOptions)
112 ,fConfigName(c.fConfigName)
113 ,fConfigVersion(c.fConfigVersion)
114 ,fGainTableName(c.fGainTableName)
115 ,fGainTableDesc(c.fGainTableDesc)
116{
117 //
118 // AliTRDCalDCSFEEv2 copy constructor
119 //
120 for(Int_t i=0; i<(Int_t)fgkROB; i++) {
121 for(Int_t j=0; j<(Int_t)fgkMCM; j++) {
122 fRStateGSM[i][j] = c.fRStateGSM[i][j];
123 fRStateNI[i][j] = c.fRStateNI[i][j];
124 fRStateEV[i][j] = c.fRStateEV[i][j];
125 fRStatePTRG[i][j] = c.fRStatePTRG[i][j];
126 fGainTableAdcdac[i][j] = c.fGainTableAdcdac[i][j];
127 for(Int_t k=0; k<(Int_t)fgkADC; k++) {
128 fGainTableFgfn[i][j][k] = c.fGainTableFgfn[i][j][k];
129 fGainTableFgan[i][j][k] = c.fGainTableFgan[i][j][k];
130 }
131 }
132 }
133}
134
135
136//_____________________________________________________________________________
137AliTRDCalDCSFEEv2 &AliTRDCalDCSFEEv2::operator=(const AliTRDCalDCSFEEv2 &c)
138{
139 //
140 // Assignment operator
141 //
142 if (&c == this) return *this;
143
144 new (this) AliTRDCalDCSFEEv2(c);
145 return *this;
146}
147