@@ -65,11 +65,35 @@ class Geometry
6565 return o2::base::GeometryManager::getPNEntry (getDetID (), index);
6666 }
6767
68+ // NEW:
69+ // Calculate the coordinates of all the channels.
70+ void calculateChannelCenter ();
71+ // Get the coordinates of the center of the channel channelId.
72+ TVector3 getChannelCenter (UInt_t channelId) {return mChannelCenter [channelId];}
73+
6874 private:
6975 TVector3 mMCP [52 ];
7076 TVector3 mAngles [28 ];
77+ std::array<TVector3, Nchannels> mChannelCenter ; // /< NEW: Center of each channel in FT0 A (96) and C (112) combined.
78+
79+ // Convert the local ordering of the channels to the official one and apply it to the channel map.
80+ // localChannelOrder[local channel index] = official channel.
81+ Int_t localChannelOrder[Nchannels] = {
82+ 58 , 56 , 59 , 57 , 54 , 52 , 55 , 53 , 50 , 49 , 51 , 48 , 47 , 45 , 46 , 44 , 43 , 42 , 41 , 40 ,
83+ 61 , 60 , 63 , 62 , 14 , 12 , 15 , 13 , 10 , 9 , 11 , 8 , 7 , 6 , 5 , 4 , 39 , 38 , 37 , 36 ,
84+ 65 , 64 , 66 , 67 , 17 , 16 , 18 , 19 , 3 , 2 , 0 , 1 , 35 , 34 , 32 , 33 ,
85+ 68 , 69 , 70 , 71 , 20 , 21 , 22 , 23 , 24 , 27 , 25 , 26 , 29 , 31 , 28 , 30 , 94 , 95 , 92 , 93 ,
86+ 72 , 73 , 74 , 75 , 76 , 78 , 77 , 79 , 80 , 83 , 81 , 82 , 85 , 87 , 84 , 86 , 89 , 91 , 88 , 90 ,
87+ 173 , 172 , 175 , 174 , 206 , 207 , 204 , 205 , 169 , 168 , 171 , 170 , 202 , 203 , 200 , 201 ,
88+ 117 , 116 , 119 , 118 , 142 , 143 , 140 , 141 , 114 , 112 , 115 , 113 , 137 , 139 , 136 , 138 ,
89+ 166 , 164 , 167 , 165 , 197 , 199 , 196 , 198 , 110 , 108 , 111 , 109 , 133 , 135 , 132 , 134 ,
90+ 162 , 160 , 163 , 161 , 193 , 195 , 192 , 194 , 107 , 105 , 106 , 104 , 128 , 130 , 129 , 131 ,
91+ 159 , 157 , 158 , 156 , 188 , 190 , 189 , 191 , 99 , 98 , 97 , 96 , 120 , 121 , 122 , 123 ,
92+ 103 , 102 , 101 , 100 , 124 , 125 , 126 , 127 , 155 , 153 , 154 , 152 , 184 , 186 , 185 , 187 ,
93+ 147 , 146 , 145 , 144 , 176 , 177 , 178 , 179 , 151 , 150 , 149 , 148 , 180 , 181 , 182 , 183
94+ };
7195
72- ClassDefNV (Geometry, 2 );
96+ ClassDefNV (Geometry, 3 );
7397};
7498} // namespace ft0
7599} // namespace o2
0 commit comments