- balewski's home page
- Posts
- 2013
- 2012
- 2011
- 2010
- 2009
- December (4)
- November (1)
- October (5)
- September (6)
- August (1)
- July (1)
- June (1)
- May (2)
- April (5)
- March (5)
- February (4)
- January (6)
- 2008
- December (1)
- November (1)
- September (3)
- July (1)
- June (4)
- April (2)
- March (2)
- February (3)
- January (2)
- 2007
- October (1)
- My blog
- Post new blog entry
- All blogs
BTOW TP mapping in 2D, by Pibero
Hi Jan,
Here is the mapping I'm using:
void jan()
{
int patchMap[10][30];
// West barrel
for (int patch = 0; patch < 150; ++patch) {
int m = 14 - patch / 10; // 0-14
int n = patch % 10; // 0-9
int etabin = n / 2 + 5; // 5-9
int phibin = n % 2 + m * 2; // 0-29
patchMap[etabin][phibin] = patch;
//printf("TP=%d, etabin=%d, phibin=%d\n", patch, etabin, phibin);
}
// East barrel
for (int patch = 150; patch < 300; ++patch) {
int m = 29 - patch / 10; // 0-14
int n = patch % 10; // 0-9
int etabin = 4 - n / 2; // 0-4
int phibin = 1 - n % 2 + m * 2; // 0-29
patchMap[etabin][phibin] = patch;
//printf("TP=%d, etabin=%d, phibin=%d\n", patch, etabin, phibin);
}
// All patches
for (int phibin = 29; phibin >= 0; --phibin) {
for (int etabin = 9; etabin >= 0; --etabin) {
printf("%5d", patchMap[etabin][phibin]);
}
printf("\n");
}
}
The idea is to use geographical eta and phi bins.
I get the following location of trigger patches for
the entire BEMC:
9 7 5 3 1 150 152 154 156 158
8 6 4 2 0 151 153 155 157 159
19 17 15 13 11 160 162 164 166 168
18 16 14 12 10 161 163 165 167 169
29 27 25 23 21 170 172 174 176 178
28 26 24 22 20 171 173 175 177 179
39 37 35 33 31 180 182 184 186 188
38 36 34 32 30 181 183 185 187 189
49 47 45 43 41 190 192 194 196 198
48 46 44 42 40 191 193 195 197 199
59 57 55 53 51 200 202 204 206 208
58 56 54 52 50 201 203 205 207 209
69 67 65 63 61 210 212 214 216 218
68 66 64 62 60 211 213 215 217 219
79 77 75 73 71 220 222 224 226 228
78 76 74 72 70 221 223 225 227 229
89 87 85 83 81 230 232 234 236 238
88 86 84 82 80 231 233 235 237 239
99 97 95 93 91 240 242 244 246 248
98 96 94 92 90 241 243 245 247 249
109 107 105 103 101 250 252 254 256 258
108 106 104 102 100 251 253 255 257 259
119 117 115 113 111 260 262 264 266 268
118 116 114 112 110 261 263 265 267 269
129 127 125 123 121 270 272 274 276 278
128 126 124 122 120 271 273 275 277 279
139 137 135 133 131 280 282 284 286 288
138 136 134 132 130 281 283 285 287 289
149 147 145 143 141 290 292 294 296 298
148 146 144 142 140 291 293 295 297 299
Note West (eta=1) is on the left and East (eta=-1)
is on the right. This is just to be consistent with this
document:
http://drupal.star.bnl.gov/STAR/system/files/active/0/Towers+Layout.pdf
Pibero
- balewski's blog
- Login or register to post comments