Commit d3359707 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Merge branch 'add_CI_test_for_EventLoaderEUDAQ2' into 'master'

Add CI test for event loader eudaq2

See merge request !112
parents db5414dc b241d9d8
Pipeline #1113589 passed with stages
in 21 minutes and 18 seconds
......@@ -158,8 +158,7 @@ tst:telescope:
script:
- cd build/
- mkdir -p ../testing/data
- ctest -R test_timepix3tel --output-on-failure -j4
- ctest --output-on-failure -j4
############################
# Format and Lint Checking #
......
......@@ -443,6 +443,7 @@ StatusCode EventLoaderEUDAQ2::run(std::shared_ptr<Clipboard> clipboard) {
LOG(DEBUG) << "Is within current Corryvreckan event, storing data";
// Store data on the clipboard
auto new_pixels = get_pixel_data(event_, plane_id);
m_hits += new_pixels->size();
pixels->insert(pixels->end(), new_pixels->begin(), new_pixels->end());
}
......@@ -513,3 +514,8 @@ StatusCode EventLoaderEUDAQ2::run(std::shared_ptr<Clipboard> clipboard) {
LOG(DEBUG) << "Finished Corryvreckan event";
return StatusCode::Success;
}
void EventLoaderEUDAQ2::finalise() {
LOG(INFO) << "Found " << m_hits << " hits in the data.";
}
......@@ -55,6 +55,11 @@ namespace corryvreckan {
*/
StatusCode run(std::shared_ptr<Clipboard> clipboard);
/**
* @brief [Finalise this module]
*/
void finalise();
private:
/**
* @brief Read and return the next decoded StandardEvent (smallest possible granularity) from timesorted buffer
......@@ -106,6 +111,8 @@ namespace corryvreckan {
Matrix<std::string> m_adjust_event_times;
int m_buffer_depth;
size_t m_hits = 0;
// EUDAQ file reader instance to retrieve data from
eudaq::FileReaderUP reader_;
......
......@@ -22,6 +22,7 @@ BASE_TARGET = 'data/'
DATASETS = {
'timepix3tel_ebeam120': 'a196166ea38a14bbf00c2165a9aee37c291f1201ed39fd313cc6b3f25dfa225d',
'timepix3tel_dut150um_ebeam120_sim': 'e6de5f9fff6a2a284dc462a27073a76fdfd6a41436bdcec392e3f78276e9dbc6',
'mimosa26tel_desy_5400MeV': '74313bddcc4ce2d8c727414390a9daedd87384a0e1eb4ee98a03b35db3289c76',
}
def sha256(path):
......
[TLU_0]
number_of_pixels = 0,0
orientation = 0deg,0deg,0deg
orientation_mode = "xyz"
pixel_pitch = 0um, 0um
position = 0mm,0mm,0mm
resolution = 0um,0um
type = "TLU"
[MIMOSA26_0]
mask_file = "mask_MIMOSA26_0.txt"
number_of_pixels = 1152,576
orientation = -0.0317992deg,-0.0306532deg,-0.356494deg
orientation_mode = "xyz"
pixel_pitch = 18.4um,18.4um
position = -605.953um,-12.574um,0
resolution = 4um,4um
type = "MIMOSA26"
[MIMOSA26_1]
mask_file = "mask_MIMOSA26_1.txt"
number_of_pixels = 1152,576
orientation = 1.57283deg,0.297652deg,-0.214515deg
orientation_mode = "xyz"
pixel_pitch = 18.4um,18.4um
position = -860.897um,280.298um,152mm
resolution = 4um,4um
type = "MIMOSA26"
[MIMOSA26_2]
mask_file = "mask_MIMOSA26_2.txt"
number_of_pixels = 1152,576
orientation = -0.0336899deg,0.0812454deg,-0.00343775deg
orientation_mode = "xyz"
pixel_pitch = 18.4um,18.4um
position = -1.10334mm,99.171um,305mm
resolution = 4um,4um
role = "reference"
type = "MIMOSA26"
[MIMOSA26_3]
mask_file = "mask_MIMOSA26_3.txt"
number_of_pixels = 1152,576
orientation = 2.08156deg,1.19691deg,0.00699009deg
orientation_mode = "xyz"
pixel_pitch = 18.4um,18.4um
position = -2.58205mm,285.418um,348mm
resolution = 4um,4um
type = "MIMOSA26"
[MIMOSA26_4]
mask_file = "mask_MIMOSA26_4.txt"
number_of_pixels = 1152,576
orientation = -2.53133deg,-0.753898deg,-0.354489deg
orientation_mode = "xyz"
pixel_pitch = 18.4um,18.4um
position = -2.3413mm,173.727um,498mm
resolution = 4um,4um
type = "MIMOSA26"
[MIMOSA26_5]
mask_file = "mask_MIMOSA26_5.txt"
number_of_pixels = 1152,576
orientation = -3.04516deg,-0.866713deg,0.0708176deg
orientation_mode = "xyz"
pixel_pitch = 18.4um,18.4um
position = -2.24809mm,202.137um,585mm
resolution = 4um,4um
type = "MIMOSA26"
[Timepix3_0]
number_of_pixels = 256,256
orientation = 0,0,0
orientation_mode = "xyz"
pixel_pitch = 55um,55um
position = 0,0,666mm
resolution = 10um,10um
role = "dut"
type = "Timepix3"
p 5 466
p 7 410
p 9 14
p 17 338
p 19 261
p 21 36
p 22 305
p 22 545
p 32 462
p 33 251
p 33 389
p 36 18
p 38 285
p 40 292
p 46 286
p 50 344
p 51 441
p 58 235
p 59 114
p 60 273
p 60 326
p 61 381
p 62 452
p 69 517
p 71 508
p 72 270
p 80 173
p 81 371
p 82 146
p 86 43
p 91 4
p 93 335
p 100 128
p 100 557
p 101 398
p 103 80
p 103 241
p 108 560
p 109 172
p 110 491
p 111 214
p 116 452
p 118 68
p 124 336
p 125 132
p 125 133
p 129 299
p 138 324
p 140 209
p 143 95
p 144 95
p 146 92
p 149 453
p 151 261
p 154 67
p 155 67
p 157 286
p 159 186
p 159 434
p 163 23
p 165 280
p 167 423
p 170 343
p 170 344
p 176 108
p 179 506
p 179 507
p 182 346
p 185 100
p 192 551
p 196 70
p 199 298
p 199 416
p 202 19
p 203 42
p 205 178
p 205 179
p 206 311
p 206 312
p 206 313
p 206 314
p 207 312
p 207 313
p 208 119
p 212 8
p 217 405
p 217 556
p 219 170
p 219 235
p 224 336
p 225 336
p 225 499
p 233 124
p 236 43
p 240 21
p 247 81
p 249 146
p 249 478
p 250 146
p 251 545
p 253 518
p 254 518
p 259 197
p 259 198
p 260 198
p 262 138
p 265 148
p 265 149
p 266 149
p 267 90
p 277 420
p 278 420
p 278 443
p 281 513
p 282 483
p 286 108
p 286 328
p 291 397
p 294 461
p 296 334
p 300 158
p 301 129
p 303 101
p 304 101
p 315 518
p 318 29
p 322 146
p 324 186
p 329 196
p 334 157
p 334 541
p 341 538
p 341 539
p 342 492
p 350 335
p 353 187
p 357 568
p 363 231
p 364 214
p 365 214
p 366 89
p 372 98
p 372 318
p 373 318
p 373 319
p 376 533
p 385 255
p 388 504
p 389 504
p 389 505
p 391 209
p 393 111
p 393 112
p 395 75
p 399 114
p 399 296
p 401 29
p 405 396
p 407 387
p 407 388
p 408 387
p 410 252
p 411 395
p 412 395
p 413 478
p 415 216
p 421 486
p 433 104
p 435 130
p 437 1
p 446 78
p 452 77
p 458 16
p 458 48
p 458 217
p 458 218
p 458 358
p 463 288
p 467 125
p 469 560
p 473 544
p 474 347
p 477 147
p 480 469
p 483 131
p 485 10
p 489 556
p 490 97
p 493 280
p 497 367
p 497 368
p 500 8
p 505 296
p 508 93
p 508 461
p 515 289
p 515 432
p 516 32
p 516 33
p 518 284
p 529 146
p 529 147
p 531 171
p 536 263
p 540 143
p 541 143
p 541 300
p 548 538
p 550 97
p 553 265
p 553 549
p 554 403
p 554 404
p 555 362
p 556 105
p 558 409
p 559 114
p 559 345
p 560 113
p 561 214
p 562 308
p 563 308
p 563 309
p 569 192
p 571 109
p 571 193
p 571 251
p 571 312
p 571 313
p 572 108
p 572 109
p 572 110
p 572 251
p 572 263
p 573 108
p 573 109
p 573 366
p 577 422
p 596 150
p 597 135
p 601 363
p 601 364
p 601 490
p 602 62
p 604 136
p 604 310
p 604 311
p 605 13
p 605 310
p 605 311
p 605 414
p 606 258
p 606 259
p 609 553
p 611 213
p 611 307
p 619 111
p 621 254
p 624 301
p 629 135
p 630 378
p 632 548
p 633 267
p 635 257
p 646 192
p 646 193
p 648 119
p 654 156
p 654 157
p 658 81
p 658 143
p 658 144
p 658 154
p 660 276
p 662 332
p 663 226
p 668 382
p 671 80
p 671 519
p 672 80
p 672 131
p 673 200
p 674 200
p 677 137
p 682 110
p 683 110
p 691 108
p 691 136
p 691 137
p 692 107
p 701 17
p 709 156
p 718 216
p 721 8
p 721 175
p 722 8
p 723 419
p 739 296
p 740 110
p 740 233
p 743 206
p 749 348
p 750 348
p 751 124
p 752 23
p 752 113
p 752 366
p 754 153
p 755 153
p 758 171
p 758 172
p 758 173
p 759 171
p 759 172
p 762 170
p 763 170
p 764 246
p 765 109
p 766 148
p 769 145
p 771 251
p 772 2
p 775 153
p 778 396
p 781 93
p 783 108
p 783 109
p 783 132
p 783 153
p 784 93
p 784 108
p 784 109
p 784 153
p 784 505
p 785 108
p 785 109
p 785 160
p 786 408
p 789 415
p 791 493
p 792 440
p 793 339
p 795 143
p 795 198
p 799 188
p 799 504
p 800 308
p 801 129
p 802 6
p 802 113
p 802 419
p 803 79
p 805 299
p 807 189
p 807 190
p 807 356
p 809 294
p 813 550
p 818 130
p 820 34
p 821 115
p 821 312
p 821 434
p 822 116
p 831 370
p 832 242
p 838 41
p 839 152
p 840 493
p 841 30
p 844 159
p 846 203
p 846 291
p 847 110
p 847 111
p 847 295
p 848 110
p 848 139
p 848 140
p 849 102
p 849 103
p 852 103
p 855 156
p 855 210
p 856 145
p 856 210
p 857 129
p 857 130
p 858 129
p 858 130
p 859 143
p 859 145
p 860 145
p 862 181
p 863 43
p 863 44
p 863 228
p 864 44
p 865 245
p 866 118
p 866 468
p 867 118
p 867 507
p 872 49
p 873 49
p 878 341
p 881 379
p 885 472
p 888 418
p 888 534
p 890 200
p 892 416
p 892 457
p 892 473
p 893 457
p 893 472
p 895 194
p 896 235
p 896 370
p 896 371
p 897 514
p 899 57
p 904 325
p 905 105
p 905 205
p 906 104
p 906 105
p 908 164
p 908 204
p 908 205
p 908 217
p 909 204
p 909 205
p 912 413
p 912 414
p 914 118
p 914 122
p 918 146
p 918 242
p 919 338
p 922 56
p 924 192
p 924 193
p 925 146
p 925 339
p 931 528
p 935 142
p 935 143
p 935 226
p 935 401
p 937 302
p 937 574
p 938 477
p 942 273
p 944 31
p 945 149
p 948 457
p 948 508
p 952 263
p 954 397
p 956 315
p 956 471
p 957 381
p 958 518
p 962 260
p 962 456
p 963 456
p 964 128
p 964 354
p 964 355
p 965 43
p 966 158
p 966 255
p 966 287
p 967 277
p 967 366
p 968 421
p 969 136
p 970 239
p 970 364
p 972 243
p 976 370
p 976 371
p 977 101
p 977 370
p 977 371
p 978 129
p 979 169
p 980 153
p 980 303
p 981 49
p 981 111
p 981 224
p 981 357
p 982 111
p 982 282
p 984 73
p 984 74
p 985 73
p 985 74