]>
Commit | Line | Data |
---|---|---|
b60bd496 | 1 | /************************************************************************** |
2 | * This file is property of and copyright by the Experimental Nuclear * | |
3 | * Physics Group, Dep. of Physics * | |
4 | * University of Oslo, Norway, 2007 * | |
5 | * * | |
6 | * Author: Per Thomas Hille <perthi@fys.uio.no> for the ALICE HLT Project.* | |
7 | * Contributors are mentioned in the code where appropriate. * | |
8 | * Please report bugs to perthi@fys.uio.no * | |
9 | * * | |
10 | * Permission to use, copy, modify and distribute this software and its * | |
11 | * documentation strictly for non-commercial purposes is hereby granted * | |
12 | * without fee, provided that the above copyright notice appears in all * | |
13 | * copies and that both the copyright notice and this permission notice * | |
14 | * appear in the supporting documentation. The authors make no claims * | |
15 | * about the suitability of this software for any purpose. It is * | |
16 | * provided "as is" without express or implied warranty. * | |
17 | **************************************************************************/ | |
18 | #include "AliHLTPHOSRcuProcessor.h" | |
19 | ||
939c67e7 | 20 | AliHLTPHOSRcuProcessor::AliHLTPHOSRcuProcessor():AliHLTPHOSProcessor(), |
04751caa | 21 | AliHLTPHOSRcuProperties() |
22 | // fkEquippmentID(0), | |
23 | // fRcuX(0), | |
24 | // fRcuZ(0), | |
25 | // fRcuZOffset(0), | |
26 | // fRcuXOffset(0), | |
27 | // fIsSetEquippmentID(kFALSE) | |
b60bd496 | 28 | { |
939c67e7 | 29 | // cout << "AliHLTPHOSRcuProcessor::AliHLTPHOSRcuProcessor() "<< endl; |
b60bd496 | 30 | } |
31 | ||
32 | AliHLTPHOSRcuProcessor::~AliHLTPHOSRcuProcessor() | |
33 | { | |
34 | ||
35 | } | |
36 | ||
37 | ||
04751caa | 38 | /* |
b60bd496 | 39 | const AliHLTUInt16_t |
40 | AliHLTPHOSRcuProcessor::GetEquippmentID() const | |
41 | { | |
42 | return fkEquippmentID; | |
43 | } | |
04751caa | 44 | */ |
b60bd496 | 45 | |
04751caa | 46 | |
47 | /* | |
b60bd496 | 48 | void |
49 | AliHLTPHOSRcuProcessor::SetEquippmentID(AliHLTUInt16_t id) | |
50 | { | |
51 | AliHLTUInt16_t &ref = const_cast<AliHLTUInt16_t&>(fkEquippmentID); | |
52 | ref = id; | |
53 | } | |
04751caa | 54 | */ |
b60bd496 | 55 | |
56 | ||
b60bd496 | 57 | |
b60bd496 | 58 | |
04751caa | 59 | //void |
60 | //AliHLTPHOSRcuProcessor::SetCoordinates(AliHLTUInt16_t /*equippmentID*/) | |
61 | /* | |
b60bd496 | 62 | { |
63 | int rcuIndex = (fkEquippmentID - 1792)%N_RCUS_PER_MODULE; | |
04751caa | 64 | fModID = (fkEquippmentID -1792 -rcuIndex)/N_RCUS_PER_MODULE; |
b60bd496 | 65 | |
66 | if(rcuIndex == 0) | |
67 | { | |
68 | fRcuX = 0; | |
69 | fRcuZ = 0; | |
70 | } | |
71 | ||
72 | if(rcuIndex == 1) | |
73 | { | |
74 | fRcuX = 0; | |
75 | fRcuZ = 1; | |
76 | } | |
77 | ||
78 | if(rcuIndex == 2) | |
79 | { | |
80 | fRcuX = 1; | |
81 | fRcuZ = 0; | |
82 | } | |
83 | ||
84 | if(rcuIndex == 3) | |
85 | { | |
86 | fRcuX = 1; | |
87 | fRcuZ = 1; | |
88 | } | |
89 | ||
90 | fRcuZOffset = N_ZROWS_RCU*fRcuZ; | |
91 | fRcuXOffset = N_XCOLUMNS_RCU*fRcuX; | |
92 | ||
04751caa | 93 | */ |
94 | ||
8efbf5fe | 95 | // cout <<"********InitInfo************"<< endl; |
96 | // cout <<"AliHLTPHOSRawAnalyzerComponent::SetCoordinate casted"<< endl; | |
97 | // cout <<"Equpippment ID =\t"<< fkEquippmentID <<endl; | |
04751caa | 98 | // cout <<"Mod ID =\t"<< (int)fModID<<endl; |
8efbf5fe | 99 | // cout <<"RCUX =\t\t" << (int)fRcuX << endl; |
100 | // cout <<"RCUZ =\t\t" << (int)fRcuZ << endl; | |
101 | // cout <<"RcuZOffset = \t" << (int)fRcuZOffset << endl; | |
102 | // cout <<"RcuXOffset = \t" << (int)fRcuXOffset << endl << endl; | |
b60bd496 | 103 | |
04751caa | 104 | //} |
105 | ||
106 |