]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/Cal/AliTRDCalDCSFEE.cxx
introduce tracking efficiency for each species
[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\r
26 // 1: ROC didn't respond even though it should have (was in good state)\r
27 // 2: ROC was not in state CONFIGURED or STANDBY_INIT (most probably it in STANDBY)\r
28 // 3: expected and received DCS-ID do not match. This is a serious communication error!\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   ,fFilterType(0)\r
54   ,fReadoutParam(0)\r
55   ,fTestPattern(0)\r
56   ,fTrackletMode(0)\r
57   ,fTrackletDef(0)\r
58   ,fTriggerSetup(0)\r
59   ,fAddOptions(0) \r
60   ,fConfigName(0)\r
61   ,fConfigVersion(0)\r
62 {\r
63   //\r
64   // AliTRDCalDCSFEE default constructor\r
65   //\r
66   for(Int_t i=0; i<nROB; i++) {\r
67     for(Int_t j=0; j<nMCM; j++) {\r
68       fRStateGSM[i][j]  = -1;\r
69       fRStateNI[i][j]   = -1;\r
70       fRStateEV[i][j]   = -1;\r
71       fRStatePTRG[i][j] = -1;\r
72     }\r
73   }\r
74 }\r
75 \r
76 \r
77 //_____________________________________________________________________________\r
78 AliTRDCalDCSFEE::AliTRDCalDCSFEE(const char *name, const char *title)\r
79   :TNamed(name,title)\r
80   ,fStatusBit(0)\r
81   ,fDCSID(-1)\r
82   ,fSM(-1)\r
83   ,fStack(-1)\r
84   ,fLayer(-1)\r
85   ,fNumberOfTimeBins(-1)\r
86   ,fConfigTag(-1)\r
87   ,fSingleHitThres(-1)\r
88   ,fThrPdClsThres(-1)\r
89   ,fSelNoZS(-1)\r
90   ,fTCFilterWeight(-1)\r
91   ,fTCFilterShortDecPar(-1)\r
92   ,fTCFilterLongDecPar(-1)\r
93   ,fFastStatNoise(-1)\r
94   ,fFilterType(0)\r
95   ,fReadoutParam(0)\r
96   ,fTestPattern(0)\r
97   ,fTrackletMode(0)\r
98   ,fTrackletDef(0)\r
99   ,fTriggerSetup(0)\r
100   ,fAddOptions(0) \r
101   ,fConfigName(0)\r
102   ,fConfigVersion(0)\r
103 {\r
104   //\r
105   // AliTRDCalDCSFEE constructor\r
106   //\r
107   for(Int_t i=0; i<nROB; i++) {\r
108     for(Int_t j=0; j<nMCM; j++) {\r
109       fRStateGSM[i][j]  = -1;\r
110       fRStateNI[i][j]   = -1;\r
111       fRStateEV[i][j]   = -1;\r
112       fRStatePTRG[i][j] = -1;\r
113     }\r
114   }\r
115 }\r
116 \r