Changeset 5677 for trunk/MagicSoft/Mars
- Timestamp:
- 12/22/04 18:57:38 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibColorSet.cc
r5642 r5677 202 202 203 203 Int_t color = kNONE; 204 fPattern = 0; 204 205 205 206 switch (num) … … 313 314 314 315 // Possible green combinations 315 TRegexp gre0("0.1led[sS]? [gG][rR][eE][eE]");316 TRegexp gre0("0.1led[sS]?gree"); 316 317 if (proj.Contains(gre0)) 317 318 { fPattern |= k01LedGreen; color = kGREEN; } 318 TRegexp gre1("1led[sS]? [gG][rR][eE][eE]");319 TRegexp gre1("1led[sS]?gree"); 319 320 if (proj.Contains(gre1)) 320 321 { fPattern |= k1LedGreen; color = kGREEN; } 321 TRegexp gre2("2led[sS]? [gG][rR][eE][eE]");322 TRegexp gre2("2led[sS]?gree"); 322 323 if (proj.Contains(gre2)) 323 324 { fPattern |= k2LedGreen; color = kGREEN; } 324 TRegexp gre3("3led[sS]? [gG][rR][eE][eE]");325 TRegexp gre3("3led[sS]?gree"); 325 326 if (proj.Contains(gre3)) 326 327 { fPattern |= k3LedGreen; color = kGREEN; } 327 TRegexp gre5("5led[sS]? [gG][rR][eE][eE]");328 TRegexp gre5("5led[sS]?gree"); 328 329 if (proj.Contains(gre5)) 329 330 { fPattern |= k5LedGreen; color = kGREEN; } 330 TRegexp gre6("6led[sS]? [gG][rR][eE][eE]");331 TRegexp gre6("6led[sS]?gree"); 331 332 if (proj.Contains(gre6)) 332 333 { fPattern |= k6LedGreen; color = kGREEN; } 333 TRegexp gre7("7led[sS]? [gG][rR][eE][eE]");334 TRegexp gre7("7led[sS]?gree"); 334 335 if (proj.Contains(gre7)) 335 336 { fPattern |= k7LedGreen; color = kGREEN; } 336 TRegexp gre8("8led[sS]? [gG][rR][eE][eE]");337 TRegexp gre8("8led[sS]?gree"); 337 338 if (proj.Contains(gre8)) 338 339 { fPattern |= k8LedGreen; color = kGREEN; } 339 340 340 341 // Possible blue combinations 341 TRegexp blu0("0.1led[sS]? [bB][lL][uU][eE]");342 TRegexp blu0("0.1led[sS]?blue"); 342 343 if (proj.Contains(blu0)) 343 344 { fPattern |= k01LedBlue; color = kBLUE; } 344 TRegexp blu1("1led[sS]? [bB][lL][uU][eE]");345 TRegexp blu1("1led[sS]?blue"); 345 346 if (proj.Contains(blu1)) 346 347 { fPattern |= k1LedBlue; color = kBLUE; } 347 TRegexp blu2("2led[sS]? [bB][lL][uU][eE]");348 TRegexp blu2("2led[sS]?blue"); 348 349 if (proj.Contains(blu2)) 349 350 { fPattern |= k2LedBlue; color = kBLUE; } 350 TRegexp blu3("3led[sS]? [bB][lL][uU][eE]");351 TRegexp blu3("3led[sS]?blue"); 351 352 if (proj.Contains(blu3)) 352 353 { fPattern |= k3LedBlue; color = kBLUE; } 353 TRegexp blu5("5led[sS]? [bB][lL][uU][eE]");354 TRegexp blu5("5led[sS]?blue"); 354 355 if (proj.Contains(blu5)) 355 356 { fPattern |= k5LedBlue1; color = kBLUE; } 356 TRegexp blu6("6led[sS]? [bB][lL][uU][eE]");357 TRegexp blu6("6led[sS]?blue"); 357 358 if (proj.Contains(blu6)) 358 359 { fPattern |= k6LedBlue; color = kBLUE; } 359 TRegexp blu7("7led[sS]? [bB][lL][uU][eE]");360 TRegexp blu7("7led[sS]?blue"); 360 361 if (proj.Contains(blu7)) 361 362 { fPattern |= k7LedBlue; color = kBLUE; } 362 TRegexp blu8("8led[sS]? [bB][lL][uU][eE]");363 TRegexp blu8("8led[sS]?blue"); 363 364 if (proj.Contains(blu8)) 364 365 { fPattern |= k8LedBlue; color = kBLUE; } 365 TRegexp blu10("10led[sS]? [bB][lL][uU][eE]");366 TRegexp blu10("10led[sS]?blue"); 366 367 if (proj.Contains(blu10)) 367 368 { fPattern |= k10LedBlue; color = kBLUE; } 368 TRegexp blu15("15led[sS]? [bB][lL][uU][eE]");369 TRegexp blu15("15led[sS]?blue"); 369 370 if (proj.Contains(blu15)) 370 371 { fPattern |= k15LedBlue; color = kBLUE; } 371 TRegexp blu20("20led[sS]? [bB][lL][uU][eE]");372 TRegexp blu20("20led[sS]?blue"); 372 373 if (proj.Contains(blu20)) 373 374 { fPattern |= k20LedBlue; color = kBLUE; } 374 TRegexp blu21("21led[sS]? [bB][lL][uU][eE]");375 TRegexp blu21("21led[sS]?blue"); 375 376 if (proj.Contains(blu21)) 376 377 { fPattern |= k21LedBlue; color = kBLUE; } 377 TRegexp blu22("22led[sS]? [bB][lL][uU][eE]");378 TRegexp blu22("22led[sS]?blue"); 378 379 if (proj.Contains(blu22)) 379 380 { fPattern |= k22LedBlue; color = kBLUE; } 380 TRegexp blu23("23led[sS]? [bB][lL][uU][eE]");381 TRegexp blu23("23led[sS]?blue"); 381 382 if (proj.Contains(blu23)) 382 383 { fPattern |= k23LedBlue; color = kBLUE; } 383 384 384 385 // Possible UV combinations 385 TRegexp uv1("1led[sS]? [U][vV]");386 TRegexp uv1("1led[sS]?uv"); 386 387 if (proj.Contains(uv1)) 387 388 { fPattern |= k1LedUV; color = kUV; } 388 TRegexp uv2("2led[sS]? [U][vV]");389 TRegexp uv2("2led[sS]?uv"); 389 390 if (proj.Contains(uv2)) 390 391 { fPattern |= k2LedUV; color = kUV; } 391 TRegexp uv3("3led[sS]? [U][vV]");392 TRegexp uv3("3led[sS]?uv"); 392 393 if (proj.Contains(uv3)) 393 394 { fPattern |= k3LedUV; color = kUV; } 394 TRegexp uv5("5led[sS]? [U][vV]");395 TRegexp uv5("5led[sS]?uv"); 395 396 if (proj.Contains(uv5)) 396 397 { fPattern |= k5LedUV1; color = kUV; } 397 TRegexp uv6("6led[sS]? [U][vV]");398 TRegexp uv6("6led[sS]?uv"); 398 399 if (proj.Contains(uv6)) 399 400 { fPattern |= k6LedUV; color = kUV; } 400 TRegexp uv7("7led[sS]? [U][vV]");401 TRegexp uv7("7led[sS]?uv"); 401 402 if (proj.Contains(uv7)) 402 403 { fPattern |= k7LedUV; color = kUV; } 403 TRegexp uv8("8led[sS]? [U][vV]");404 TRegexp uv8("8led[sS]?uv"); 404 405 if (proj.Contains(uv8)) 405 406 { fPattern |= k8LedUV; color = kUV; } 406 TRegexp uv10("10led[sS]? [U][vV]");407 TRegexp uv10("10led[sS]?uv"); 407 408 if (proj.Contains(uv10)) 408 409 { fPattern |= k10LedUV; color = kUV; } 409 TRegexp uv11("11led[sS]? [U][vV]");410 TRegexp uv11("11led[sS]?uv"); 410 411 if (proj.Contains(uv11)) 411 412 { fPattern |= k11LedUV; color = kUV; } 412 TRegexp uv12("12led[sS]? [U][vV]");413 TRegexp uv12("12led[sS]?uv"); 413 414 if (proj.Contains(uv12)) 414 415 { fPattern |= k12LedUV; color = kUV; } 415 TRegexp uv13("13led[sS]? [U][vV]");416 TRegexp uv13("13led[sS]?uv"); 416 417 if (proj.Contains(uv13)) 417 418 { fPattern |= k13LedUV; color = kUV; }
Note:
See TracChangeset
for help on using the changeset viewer.