~chris-rogers/maus/emr_mc_digitization

« back to all changes in this revision

Viewing changes to src/common_cpp/DataStructure/Channels.cc

  • Committer: Chris Rogers
  • Date: 2014-04-16 11:48:45 UTC
  • mfrom: (707 merge)
  • mto: This revision was merged to the branch mainline in revision 711.
  • Revision ID: chris.rogers@stfc.ac.uk-20140416114845-h3u3q7pdcxkxvovs
Update to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
333
333
void Channels::SetCh9(int ch9) {
334
334
    _ch9 = ch9;
335
335
}
 
336
 
 
337
void Channels::SetCh(int xCh, int xValue) {
 
338
    switch ( xCh ) {
 
339
        case 0:
 
340
            this->SetCh0(xValue);
 
341
        case 1:
 
342
            this->SetCh1(xValue);
 
343
        case 2:
 
344
            this->SetCh2(xValue);
 
345
        case 3:
 
346
            this->SetCh3(xValue);
 
347
        case 4:
 
348
            this->SetCh4(xValue);
 
349
        case 5:
 
350
            this->SetCh5(xValue);
 
351
        case 6:
 
352
            this->SetCh6(xValue);
 
353
        case 7:
 
354
            this->SetCh7(xValue);
 
355
        case 8:
 
356
            this->SetCh8(xValue);
 
357
        case 9:
 
358
            this->SetCh9(xValue);
 
359
        case 10:
 
360
            this->SetCh10(xValue);
 
361
        case 11:
 
362
            this->SetCh11(xValue);
 
363
        case 12:
 
364
            this->SetCh12(xValue);
 
365
        case 13:
 
366
            this->SetCh13(xValue);
 
367
        case 14:
 
368
            this->SetCh14(xValue);
 
369
        case 15:
 
370
            this->SetCh15(xValue);
 
371
        case 16:
 
372
            this->SetCh16(xValue);
 
373
        case 17:
 
374
            this->SetCh17(xValue);
 
375
        case 18:
 
376
            this->SetCh18(xValue);
 
377
        case 19:
 
378
            this->SetCh19(xValue);
 
379
        case 20:
 
380
            this->SetCh20(xValue);
 
381
        case 21:
 
382
            this->SetCh21(xValue);
 
383
        case 22:
 
384
            this->SetCh22(xValue);
 
385
        case 23:
 
386
            this->SetCh23(xValue);
 
387
        case 24:
 
388
            this->SetCh24(xValue);
 
389
        case 25:
 
390
            this->SetCh25(xValue);
 
391
        case 26:
 
392
            this->SetCh26(xValue);
 
393
        case 27:
 
394
            this->SetCh27(xValue);
 
395
        case 28:
 
396
            this->SetCh28(xValue);
 
397
        case 29:
 
398
            this->SetCh29(xValue);
 
399
        case 30:
 
400
            this->SetCh30(xValue);
 
401
        case 31:
 
402
            this->SetCh31(xValue);
 
403
    }
 
404
}
336
405
}
337
406