9 #include "St_trg_Maker.h"
10 #include "St_DataSetIter.h"
11 #include "StDAQMaker/StDAQReader.h"
12 #include "StDAQMaker/StTRGReader.h"
13 #include "StDAQMaker/StSSDReader.h"
14 #include "tables/St_dst_L0_Trigger_Table.h"
15 #include "tables/St_dst_L1_Trigger_Table.h"
16 #include "tables/St_dst_L2_Trigger_Table.h"
17 #include "tables/St_dst_TrgDet_Table.h"
18 #include "tables/St_ctu_raw_Table.h"
20 #include "tables/St_mwc_raw_Table.h"
22 #include "tables/St_dst_TrgDet_Table.h"
23 #define PREPOST 11 // CAUTION: this number is also in dst_TrgDet.idl
25 #include "StDaqLib/TRG/trgStructures.h"
35 #include "StDaqLib/TRG/trgStructures2000.h"
47 #define SANITYCheck(name,value) \
48 if (name != value) {LOG_INFO << "Value of "#name" = |" << name << "| instead of expected "#value << endm; return kStErr;}
52 St_trg_Maker::St_trg_Maker(
const char *name):
StMaker(name){
56 St_trg_Maker::~St_trg_Maker(){
59 Int_t St_trg_Maker::Init(){
65 return StMaker::Init();
74 #define LATER_THAN_YEAR_2000
75 #include "St_trg_duplicated.code"
77 #undef LATER_THAN_YEAR_2000
79 #define SWITCH(x) x ## 2000
80 #include "St_trg_duplicated.code"
83 void St_trg_Maker::SecondDstSim(St_dst_L0_Trigger *dst2)
86 dst_L0_Trigger_st *tt = dst2->GetTable();
87 tt->TriggerActionWd = 0;
89 for(i=0;i<32;i++) tt->CPA[i]=0;
91 tt->MWC_CTB_dipole = 0;
92 tt->MWC_CTB_topology = 0;
93 tt->MWC_CTB_moment = 0;
100 StTRGReader *trgReader = fromVictor->getTRGReader();
if(!trgReader)
return 0;
101 if(!trgReader->thereIsTriggerData())
return 0;
102 int y = trgReader->getYear();
117 static char initializationDone=0;
118 St_dst_TrgDet *dst1 =
new St_dst_TrgDet(
"TrgDet",1);
if(!dst1)
return kStWarn; dst1->SetNRows(1);
119 St_dst_L0_Trigger *dst2 =
new St_dst_L0_Trigger(
"L0_Trigger",1);
if(!dst2)
return kStWarn; dst2->SetNRows(1);
120 St_dst_L1_Trigger *dst3 =
new St_dst_L1_Trigger(
"L1_Trigger",1);
if(!dst3)
return kStWarn; dst3->SetNRows(1);
121 St_dst_L2_Trigger *dst4 =
new St_dst_L2_Trigger(
"L2_Trigger",1);
if(!dst4)
return kStWarn; dst4->SetNRows(1);
196 St_DataSet *DAQdset = GetDataSet(
"StDAQReader");
203 int yy=YearOfData(DAQdset);
205 LOG_INFO <<
"trg is obsolete for years " << yy <<
">= 2007" << endm;
211 LOG_INFO <<
"analyzing year 2000 trigger data." << endm;
212 if(!initializationDone) {
213 InitCtbArrays(); initializationDone=7;
215 return Daq2000(DAQdset,dst1,dst2,dst3,dst4);
219 LOG_INFO <<
"analyzing year 2001 trigger data" << endm;
220 if(!initializationDone) {
222 initializationDone=7;
224 return Daq(DAQdset,dst1,dst2,dst3,dst4);
228 LOG_INFO <<
"analyzing year 2003 trigger data"<< endm;
229 if(!initializationDone) {
231 initializationDone=7;
233 return Daq2003(DAQdset,dst1,dst2,dst3,dst4);
239 LOG_INFO <<
"analyzing year 2004/2005 trigger data (using 2003)" << endm;
240 if(!initializationDone) {
242 initializationDone=7;
244 return Daq2003(DAQdset,dst1,dst2,dst3,dst4);
255 if(!initializationDone) { InitCtbArrays2001(); initializationDone=7; }
256 return Sim(dst1,dst2,dst3,dst4);
264 void St_trg_Maker::TakeCareOfL1andL2Sim(St_dst_L1_Trigger *dst3,St_dst_L2_Trigger *dst4) {
266 LOG_INFO <<
"we are in TakeCareOfL1andL2Sim" << endm ;
270 int St_trg_Maker::HandleCtu(St_ctu_raw *ctu_raw,St_dst_TrgDet *dst1) {
272 LOG_INFO <<
"dst1 not found" << endm ;
275 dst_TrgDet_st *tt = 0 ;
276 tt = dst1->GetTable();
278 LOG_INFO <<
"dst1 table not found" << endm ;
288 LOG_INFO <<
"ctu_raw table not found" << endm ;
291 ctu_raw_st* ctbRaw = 0 ;
292 ctbRaw = ctu_raw->GetTable();
294 LOG_INFO <<
"ctbRaw table not found" << endm ;
300 for (
int i = 0 ; i < ctu_raw->GetNRows() ; i++ ) {
304 if ( ctbRaw[i].i_eta < 3 ) {
305 tray = getTrayCtb (
float(6. * (ctbRaw[i].i_phi-1)), -100. ) ;
306 slat = 2 - ctbRaw[i].i_eta ;
309 tray = getTrayCtb (
float(6. * (ctbRaw[i].i_phi-1)), 100. ) ;
310 slat = ctbRaw[i].i_eta - 2 ;
312 tt->nCtb[tray][slat][0] = ctbRaw[i].adc ;
313 tt->timeCtb[tray][slat][0] = 0;
319 int St_trg_Maker::getTrayCtb (
float phi,
float z ) {
320 float phiShift, phiShifted ;
325 phiShifted = (phi - phiShift) ;
326 if ( phiShifted < 0 ) phiShifted += 360 ;
327 iphi = int(phiShifted / 6) ;
329 if ( iPhi == 0 ) iPhi = 60 ;
334 phiShifted = (phi - phiShift) ;
335 if ( phiShifted < 0 ) phiShifted += 360 ;
336 iphi = int(phiShifted / 6) ;
338 if ( iPhi == 121 ) iPhi = 61 ;
343 void St_trg_Maker::Vladimir2Herbert(
int input,
int *sector,
int *subsector) {
345 assert(input>=1&&input<=96);
347 input-=48; offset=0; flip = -1;
348 }
else if(45<=input&&input<=48) {
349 *sector=24; *subsector=input-44;
return;
353 *sector = (input-1)/4 + 1 ;
354 *subsector = 4 + input - 4 * (*sector) ;
355 *sector = flip*(offset - *sector);
358 int St_trg_Maker::HandleMwc(St_mwc_raw *mwc_raw,St_dst_TrgDet *dst1) {
359 int prePost,sector,subsector,index,irow;
360 if(!mwc_raw) { LOG_INFO <<
"Did not find the mwc_raw table mwc."<< endm;
return 7; }
361 mwc_raw_st *vladimir = mwc_raw->GetTable(); assert(vladimir);
362 dst_TrgDet_st *herbert = dst1->GetTable(); assert(herbert);
363 herbert->npre=5; herbert->npost=5;
364 assert(mwc_raw->GetNRows()==96*11);
365 for(irow=0;irow<96;irow++) {
366 for(prePost=0;prePost<11;prePost++) {
367 index=vladimir[96*prePost+irow].sector;
368 Vladimir2Herbert(index,§or,&subsector);
369 assert(sector>=1&§or<=24);
370 assert(subsector>=1&&subsector<=4);
371 herbert[0].nMwc[sector-1][subsector-1][prePost]=vladimir[96*prePost+irow].count;
377 int St_trg_Maker::Sim(St_dst_TrgDet *dst1,St_dst_L0_Trigger *dst2,St_dst_L1_Trigger *dst3,St_dst_L2_Trigger *dst4) {
380 St_DataSet *ctf = GetInputDS(
".make/ctf/.data");
382 St_DataSet *mwc = GetInputDS(
".make/mwc/.data");
383 if (!ctf || !mwc)
return kStWarn;
387 St_ctu_raw *ctu_raw = (St_ctu_raw *) ctf->
Find(
"ctb_raw");
389 St_mwc_raw *mwc_raw = (St_mwc_raw *) mwc->
Find(
"raw");
397 if(!HandleMwc(mwc_raw,dst1)) rv=
kStWarn;
399 if(!HandleCtu(ctu_raw,dst1)) rv=
kStWarn;
401 TakeCareOfL1andL2Sim(dst3,dst4);
405 void St_trg_Maker::VpdSim(St_dst_TrgDet *dst1) {
407 dst_TrgDet_st *tt = dst1->GetTable();
416 void St_trg_Maker::ZdcSim(St_dst_TrgDet *dst1) {
418 dst_TrgDet_st *tt = dst1->GetTable();
427 void St_trg_Maker::InitCtbArrays2001(
void) {
447 ctbmap[1-1][1-1]=109;
448 ctbmap[2-1][1-1]=108;
449 ctbmap[3-1][1-1]=107;
450 ctbmap[4-1][1-1]=106;
451 ctbmap[5-1][1-1]=105;
460 ctbmap[14-1][1-1]=15;
461 ctbmap[15-1][1-1]=14;
462 ctbmap[16-1][1-1]=13;
463 ctbmap[17-1][1-1]=12;
464 ctbmap[18-1][1-1]=11;
465 ctbmap[19-1][1-1]=10;
467 ctbmap[21-1][1-1]=39;
468 ctbmap[22-1][1-1]=38;
469 ctbmap[23-1][1-1]=37;
470 ctbmap[24-1][1-1]=36;
471 ctbmap[25-1][1-1]=35;
472 ctbmap[26-1][1-1]=34;
473 ctbmap[27-1][1-1]=33;
474 ctbmap[28-1][1-1]=32;
475 ctbmap[29-1][1-1]=47;
476 ctbmap[30-1][1-1]=46;
477 ctbmap[31-1][1-1]=45;
478 ctbmap[32-1][1-1]=44;
479 ctbmap[33-1][1-1]=43;
480 ctbmap[34-1][1-1]=42;
481 ctbmap[35-1][1-1]=41;
482 ctbmap[36-1][1-1]=71;
483 ctbmap[37-1][1-1]=70;
484 ctbmap[38-1][1-1]=69;
485 ctbmap[39-1][1-1]=68;
486 ctbmap[40-1][1-1]=67;
487 ctbmap[41-1][1-1]=66;
488 ctbmap[42-1][1-1]=65;
489 ctbmap[43-1][1-1]=64;
490 ctbmap[44-1][1-1]=79;
491 ctbmap[45-1][1-1]=78;
492 ctbmap[46-1][1-1]=77;
493 ctbmap[47-1][1-1]=76;
494 ctbmap[48-1][1-1]=75;
495 ctbmap[49-1][1-1]=74;
496 ctbmap[50-1][1-1]=73;
497 ctbmap[51-1][1-1]=103;
498 ctbmap[52-1][1-1]=102;
499 ctbmap[53-1][1-1]=101;
500 ctbmap[54-1][1-1]=100;
501 ctbmap[55-1][1-1]=99;
502 ctbmap[56-1][1-1]=98;
503 ctbmap[57-1][1-1]=97;
504 ctbmap[58-1][1-1]=96;
505 ctbmap[59-1][1-1]=111;
506 ctbmap[60-1][1-1]=110;
507 ctbmap[1-1][2-1]=125;
508 ctbmap[2-1][2-1]=124;
509 ctbmap[3-1][2-1]=123;
510 ctbmap[4-1][2-1]=122;
511 ctbmap[5-1][2-1]=121;
516 ctbmap[10-1][2-1]=19;
517 ctbmap[11-1][2-1]=18;
518 ctbmap[12-1][2-1]=17;
519 ctbmap[13-1][2-1]=16;
520 ctbmap[14-1][2-1]=31;
521 ctbmap[15-1][2-1]=30;
522 ctbmap[16-1][2-1]=29;
523 ctbmap[17-1][2-1]=28;
524 ctbmap[18-1][2-1]=27;
525 ctbmap[19-1][2-1]=26;
526 ctbmap[20-1][2-1]=25;
527 ctbmap[21-1][2-1]=55;
528 ctbmap[22-1][2-1]=54;
529 ctbmap[23-1][2-1]=53;
530 ctbmap[24-1][2-1]=52;
531 ctbmap[25-1][2-1]=51;
532 ctbmap[26-1][2-1]=50;
533 ctbmap[27-1][2-1]=49;
534 ctbmap[28-1][2-1]=48;
535 ctbmap[29-1][2-1]=63;
536 ctbmap[30-1][2-1]=62;
537 ctbmap[31-1][2-1]=61;
538 ctbmap[32-1][2-1]=60;
539 ctbmap[33-1][2-1]=59;
540 ctbmap[34-1][2-1]=58;
541 ctbmap[35-1][2-1]=57;
542 ctbmap[36-1][2-1]=87;
543 ctbmap[37-1][2-1]=86;
544 ctbmap[38-1][2-1]=85;
545 ctbmap[39-1][2-1]=84;
546 ctbmap[40-1][2-1]=83;
547 ctbmap[41-1][2-1]=82;
548 ctbmap[42-1][2-1]=81;
549 ctbmap[43-1][2-1]=80;
550 ctbmap[44-1][2-1]=95;
551 ctbmap[45-1][2-1]=94;
552 ctbmap[46-1][2-1]=93;
553 ctbmap[47-1][2-1]=92;
554 ctbmap[48-1][2-1]=91;
555 ctbmap[49-1][2-1]=90;
556 ctbmap[50-1][2-1]=89;
557 ctbmap[51-1][2-1]=119;
558 ctbmap[52-1][2-1]=118;
559 ctbmap[53-1][2-1]=117;
560 ctbmap[54-1][2-1]=116;
561 ctbmap[55-1][2-1]=115;
562 ctbmap[56-1][2-1]=114;
563 ctbmap[57-1][2-1]=113;
564 ctbmap[58-1][2-1]=112;
565 ctbmap[59-1][2-1]=127;
566 ctbmap[60-1][2-1]=126;
567 ctbmap[61-1][1-1]=141;
568 ctbmap[62-1][1-1]=140;
569 ctbmap[63-1][1-1]=139;
570 ctbmap[64-1][1-1]=138;
571 ctbmap[65-1][1-1]=137;
572 ctbmap[66-1][1-1]=167;
573 ctbmap[67-1][1-1]=166;
574 ctbmap[68-1][1-1]=165;
575 ctbmap[69-1][1-1]=164;
576 ctbmap[70-1][1-1]=163;
577 ctbmap[71-1][1-1]=162;
578 ctbmap[72-1][1-1]=161;
579 ctbmap[73-1][1-1]=160;
580 ctbmap[74-1][1-1]=175;
581 ctbmap[75-1][1-1]=174;
582 ctbmap[76-1][1-1]=173;
583 ctbmap[77-1][1-1]=172;
584 ctbmap[78-1][1-1]=171;
585 ctbmap[79-1][1-1]=170;
586 ctbmap[80-1][1-1]=169;
587 ctbmap[81-1][1-1]=199;
588 ctbmap[82-1][1-1]=198;
589 ctbmap[83-1][1-1]=197;
590 ctbmap[84-1][1-1]=196;
591 ctbmap[85-1][1-1]=195;
592 ctbmap[86-1][1-1]=194;
593 ctbmap[87-1][1-1]=193;
594 ctbmap[88-1][1-1]=192;
595 ctbmap[89-1][1-1]=207;
596 ctbmap[90-1][1-1]=206;
597 ctbmap[91-1][1-1]=205;
598 ctbmap[92-1][1-1]=204;
599 ctbmap[93-1][1-1]=203;
600 ctbmap[94-1][1-1]=202;
601 ctbmap[95-1][1-1]=201;
602 ctbmap[96-1][1-1]=231;
603 ctbmap[97-1][1-1]=230;
604 ctbmap[98-1][1-1]=229;
605 ctbmap[99-1][1-1]=228;
606 ctbmap[100-1][1-1]=227;
607 ctbmap[101-1][1-1]=226;
608 ctbmap[102-1][1-1]=225;
609 ctbmap[103-1][1-1]=224;
610 ctbmap[104-1][1-1]=239;
611 ctbmap[105-1][1-1]=238;
612 ctbmap[106-1][1-1]=237;
613 ctbmap[107-1][1-1]=236;
614 ctbmap[108-1][1-1]=235;
615 ctbmap[109-1][1-1]=234;
616 ctbmap[110-1][1-1]=233;
617 ctbmap[111-1][1-1]=135;
618 ctbmap[112-1][1-1]=134;
619 ctbmap[113-1][1-1]=133;
620 ctbmap[114-1][1-1]=132;
621 ctbmap[115-1][1-1]=131;
622 ctbmap[116-1][1-1]=130;
623 ctbmap[117-1][1-1]=129;
624 ctbmap[118-1][1-1]=128;
625 ctbmap[119-1][1-1]=143;
626 ctbmap[120-1][1-1]=142;
627 ctbmap[61-1][2-1]=157;
628 ctbmap[62-1][2-1]=156;
629 ctbmap[63-1][2-1]=155;
630 ctbmap[64-1][2-1]=154;
631 ctbmap[65-1][2-1]=153;
632 ctbmap[66-1][2-1]=183;
633 ctbmap[67-1][2-1]=182;
634 ctbmap[68-1][2-1]=181;
635 ctbmap[69-1][2-1]=180;
636 ctbmap[70-1][2-1]=179;
637 ctbmap[71-1][2-1]=178;
638 ctbmap[72-1][2-1]=177;
639 ctbmap[73-1][2-1]=176;
640 ctbmap[74-1][2-1]=191;
641 ctbmap[75-1][2-1]=190;
642 ctbmap[76-1][2-1]=189;
643 ctbmap[77-1][2-1]=188;
644 ctbmap[78-1][2-1]=187;
645 ctbmap[79-1][2-1]=186;
646 ctbmap[80-1][2-1]=185;
647 ctbmap[81-1][2-1]=215;
648 ctbmap[82-1][2-1]=214;
649 ctbmap[83-1][2-1]=213;
650 ctbmap[84-1][2-1]=212;
651 ctbmap[85-1][2-1]=211;
652 ctbmap[86-1][2-1]=210;
653 ctbmap[87-1][2-1]=209;
654 ctbmap[88-1][2-1]=208;
655 ctbmap[89-1][2-1]=223;
656 ctbmap[90-1][2-1]=222;
657 ctbmap[91-1][2-1]=221;
658 ctbmap[92-1][2-1]=220;
659 ctbmap[93-1][2-1]=219;
660 ctbmap[94-1][2-1]=218;
661 ctbmap[95-1][2-1]=217;
662 ctbmap[96-1][2-1]=247;
663 ctbmap[97-1][2-1]=246;
664 ctbmap[98-1][2-1]=245;
665 ctbmap[99-1][2-1]=244;
666 ctbmap[100-1][2-1]=243;
667 ctbmap[101-1][2-1]=242;
668 ctbmap[102-1][2-1]=241;
669 ctbmap[103-1][2-1]=240;
670 ctbmap[104-1][2-1]=255;
671 ctbmap[105-1][2-1]=254;
672 ctbmap[106-1][2-1]=253;
673 ctbmap[107-1][2-1]=252;
674 ctbmap[108-1][2-1]=251;
675 ctbmap[109-1][2-1]=250;
676 ctbmap[110-1][2-1]=249;
677 ctbmap[111-1][2-1]=151;
678 ctbmap[112-1][2-1]=150;
679 ctbmap[113-1][2-1]=149;
680 ctbmap[114-1][2-1]=148;
681 ctbmap[115-1][2-1]=147;
682 ctbmap[116-1][2-1]=146;
683 ctbmap[117-1][2-1]=145;
684 ctbmap[118-1][2-1]=144;
685 ctbmap[119-1][2-1]=159;
686 ctbmap[120-1][2-1]=158;
688 void St_trg_Maker::InitCtbArrays(
void) {
726 ctbmap[10-1][0] = 14;
727 ctbmap[10-1][1] = 30;
728 ctbmap[11-1][0] = 13;
729 ctbmap[11-1][1] = 29;
730 ctbmap[12-1][0] = 12;
731 ctbmap[12-1][1] = 28;
732 ctbmap[13-1][0] = 11;
733 ctbmap[13-1][1] = 27;
734 ctbmap[14-1][0] = 10;
735 ctbmap[14-1][1] = 26;
737 ctbmap[15-1][1] = 25;
738 ctbmap[16-1][0] = 39;
739 ctbmap[16-1][1] = 55;
740 ctbmap[17-1][0] = 38;
741 ctbmap[17-1][1] = 54;
742 ctbmap[18-1][0] = 37;
743 ctbmap[18-1][1] = 53;
744 ctbmap[19-1][0] = 36;
745 ctbmap[19-1][1] = 52;
746 ctbmap[20-1][0] = 35;
747 ctbmap[20-1][1] = 51;
748 ctbmap[21-1][0] = 34;
749 ctbmap[21-1][1] = 50;
750 ctbmap[22-1][0] = 33;
751 ctbmap[22-1][1] = 49;
752 ctbmap[23-1][0] = 32;
753 ctbmap[23-1][1] = 48;
754 ctbmap[24-1][0] = 47;
755 ctbmap[24-1][1] = 63;
756 ctbmap[25-1][0] = 46;
757 ctbmap[25-1][1] = 62;
758 ctbmap[26-1][0] = 45;
759 ctbmap[26-1][1] = 61;
760 ctbmap[27-1][0] = 44;
761 ctbmap[27-1][1] = 60;
762 ctbmap[28-1][0] = 43;
763 ctbmap[28-1][1] = 59;
764 ctbmap[29-1][0] = 42;
765 ctbmap[29-1][1] = 58;
766 ctbmap[30-1][0] = 41;
767 ctbmap[30-1][1] = 57;
768 ctbmap[31-1][0] = 71;
769 ctbmap[31-1][1] = 87;
770 ctbmap[32-1][0] = 70;
771 ctbmap[32-1][1] = 86;
772 ctbmap[33-1][0] = 69;
773 ctbmap[33-1][1] = 85;
774 ctbmap[34-1][0] = 68;
775 ctbmap[34-1][1] = 84;
776 ctbmap[35-1][0] = 67;
777 ctbmap[35-1][1] = 83;
778 ctbmap[36-1][0] = 66;
779 ctbmap[36-1][1] = 82;
780 ctbmap[37-1][0] = 65;
781 ctbmap[37-1][1] = 81;
782 ctbmap[38-1][0] = 64;
783 ctbmap[38-1][1] = 80;
784 ctbmap[39-1][0] = 79;
785 ctbmap[39-1][1] = 95;
786 ctbmap[40-1][0] = 78;
787 ctbmap[40-1][1] = 94;
788 ctbmap[41-1][0] = 77;
789 ctbmap[41-1][1] = 93;
790 ctbmap[42-1][0] = 76;
791 ctbmap[42-1][1] = 92;
792 ctbmap[43-1][0] = 75;
793 ctbmap[43-1][1] = 91;
794 ctbmap[44-1][0] = 74;
795 ctbmap[44-1][1] = 90;
796 ctbmap[45-1][0] = 73;
797 ctbmap[45-1][1] = 89;
798 ctbmap[46-1][0] = 103;
799 ctbmap[46-1][1] = 119;
800 ctbmap[47-1][0] = 102;
801 ctbmap[47-1][1] = 118;
802 ctbmap[48-1][0] = 101;
803 ctbmap[48-1][1] = 117;
804 ctbmap[49-1][0] = 100;
805 ctbmap[49-1][1] = 116;
806 ctbmap[50-1][0] = 99;
807 ctbmap[50-1][1] = 115;
808 ctbmap[51-1][0] = 98;
809 ctbmap[51-1][1] = 114;
810 ctbmap[52-1][0] = 97;
811 ctbmap[52-1][1] = 113;
812 ctbmap[53-1][0] = 96;
813 ctbmap[53-1][1] = 112;
814 ctbmap[54-1][0] = 111;
815 ctbmap[54-1][1] = 127;
816 ctbmap[55-1][0] = 110;
817 ctbmap[55-1][1] = 126;
818 ctbmap[56-1][0] = 109;
819 ctbmap[56-1][1] = 125;
820 ctbmap[57-1][0] = 108;
821 ctbmap[57-1][1] = 124;
822 ctbmap[58-1][0] = 107;
823 ctbmap[58-1][1] = 123;
824 ctbmap[59-1][0] = 106;
825 ctbmap[59-1][1] = 122;
826 ctbmap[60-1][0] = 105;
827 ctbmap[60-1][1] = 121;
828 ctbmap[61-1][0] = 135;
829 ctbmap[61-1][1] = 151;
830 ctbmap[62-1][0] = 134;
831 ctbmap[62-1][1] = 150;
832 ctbmap[63-1][0] = 133;
833 ctbmap[63-1][1] = 149;
834 ctbmap[64-1][0] = 132;
835 ctbmap[64-1][1] = 148;
836 ctbmap[65-1][0] = 131;
837 ctbmap[65-1][1] = 147;
838 ctbmap[66-1][0] = 130;
839 ctbmap[66-1][1] = 146;
840 ctbmap[67-1][0] = 129;
841 ctbmap[67-1][1] = 145;
842 ctbmap[68-1][0] = 128;
843 ctbmap[68-1][1] = 144;
844 ctbmap[69-1][0] = 143;
845 ctbmap[69-1][1] = 159;
846 ctbmap[70-1][0] = 142;
847 ctbmap[70-1][1] = 158;
848 ctbmap[71-1][0] = 141;
849 ctbmap[71-1][1] = 157;
850 ctbmap[72-1][0] = 140;
851 ctbmap[72-1][1] = 156;
852 ctbmap[73-1][0] = 139;
853 ctbmap[73-1][1] = 155;
854 ctbmap[74-1][0] = 138;
855 ctbmap[74-1][1] = 154;
856 ctbmap[75-1][0] = 137;
857 ctbmap[75-1][1] = 153;
858 ctbmap[76-1][0] = 167;
859 ctbmap[76-1][1] = 183;
860 ctbmap[77-1][0] = 166;
861 ctbmap[77-1][1] = 182;
862 ctbmap[78-1][0] = 165;
863 ctbmap[78-1][1] = 181;
864 ctbmap[79-1][0] = 164;
865 ctbmap[79-1][1] = 180;
866 ctbmap[80-1][0] = 163;
867 ctbmap[80-1][1] = 179;
868 ctbmap[81-1][0] = 162;
869 ctbmap[81-1][1] = 178;
870 ctbmap[82-1][0] = 161;
871 ctbmap[82-1][1] = 177;
872 ctbmap[83-1][0] = 160;
873 ctbmap[83-1][1] = 176;
874 ctbmap[84-1][0] = 175;
875 ctbmap[84-1][1] = 191;
876 ctbmap[85-1][0] = 174;
877 ctbmap[85-1][1] = 190;
878 ctbmap[86-1][0] = 173;
879 ctbmap[86-1][1] = 189;
880 ctbmap[87-1][0] = 172;
881 ctbmap[87-1][1] = 188;
882 ctbmap[88-1][0] = 171;
883 ctbmap[88-1][1] = 187;
884 ctbmap[89-1][0] = 170;
885 ctbmap[89-1][1] = 186;
886 ctbmap[90-1][0] = 169;
887 ctbmap[90-1][1] = 185;
888 ctbmap[91-1][0] = 199;
889 ctbmap[91-1][1] = 215;
890 ctbmap[92-1][0] = 198;
891 ctbmap[92-1][1] = 214;
892 ctbmap[93-1][0] = 197;
893 ctbmap[93-1][1] = 213;
894 ctbmap[94-1][0] = 196;
895 ctbmap[94-1][1] = 212;
896 ctbmap[95-1][0] = 195;
897 ctbmap[95-1][1] = 211;
898 ctbmap[96-1][0] = 194;
899 ctbmap[96-1][1] = 210;
900 ctbmap[97-1][0] = 193;
901 ctbmap[97-1][1] = 209;
902 ctbmap[98-1][0] = 192;
903 ctbmap[98-1][1] = 208;
904 ctbmap[99-1][0] = 207;
905 ctbmap[99-1][1] = 223;
906 ctbmap[100-1][0] = 206;
907 ctbmap[100-1][1] = 222;
908 ctbmap[101-1][0] = 205;
909 ctbmap[101-1][1] = 221;
910 ctbmap[102-1][0] = 204;
911 ctbmap[102-1][1] = 220;
912 ctbmap[103-1][0] = 203;
913 ctbmap[103-1][1] = 219;
914 ctbmap[104-1][0] = 202;
915 ctbmap[104-1][1] = 218;
916 ctbmap[105-1][0] = 201;
917 ctbmap[105-1][1] = 217;
918 ctbmap[106-1][0] = 231;
919 ctbmap[106-1][1] = 247;
920 ctbmap[107-1][0] = 230;
921 ctbmap[107-1][1] = 246;
922 ctbmap[108-1][0] = 229;
923 ctbmap[108-1][1] = 245;
924 ctbmap[109-1][0] = 228;
925 ctbmap[109-1][1] = 244;
926 ctbmap[110-1][0] = 227;
927 ctbmap[110-1][1] = 243;
928 ctbmap[111-1][0] = 226;
929 ctbmap[111-1][1] = 242;
930 ctbmap[112-1][0] = 225;
931 ctbmap[112-1][1] = 241;
932 ctbmap[113-1][0] = 224;
933 ctbmap[113-1][1] = 240;
934 ctbmap[114-1][0] = 239;
935 ctbmap[114-1][1] = 255;
936 ctbmap[115-1][0] = 238;
937 ctbmap[115-1][1] = 254;
938 ctbmap[116-1][0] = 237;
939 ctbmap[116-1][1] = 253;
940 ctbmap[117-1][0] = 236;
941 ctbmap[117-1][1] = 252;
942 ctbmap[118-1][0] = 235;
943 ctbmap[118-1][1] = 251;
944 ctbmap[119-1][0] = 234;
945 ctbmap[119-1][1] = 250;
946 ctbmap[120-1][0] = 233;
947 ctbmap[120-1][1] = 249;
950 void St_trg_Maker::InitMwcArrays(
void) {
954 mwcmap[ 1-1][0] = 71;
955 mwcmap[ 1-1][1] = 70;
956 mwcmap[ 1-1][2] = 69;
957 mwcmap[ 1-1][3] = 68;
958 mwcmap[ 2-1][0] = 67;
959 mwcmap[ 2-1][1] = 66;
960 mwcmap[ 2-1][2] = 65;
961 mwcmap[ 2-1][3] = 64;
962 mwcmap[ 3-1][0] = 79;
963 mwcmap[ 3-1][1] = 78;
964 mwcmap[ 3-1][2] = 77;
965 mwcmap[ 3-1][3] = 76;
966 mwcmap[ 4-1][0] = 95;
967 mwcmap[ 4-1][1] = 94;
968 mwcmap[ 4-1][2] = 93;
969 mwcmap[ 4-1][3] = 92;
970 mwcmap[ 5-1][0] = 87;
971 mwcmap[ 5-1][1] = 86;
972 mwcmap[ 5-1][2] = 85;
973 mwcmap[ 5-1][3] = 84;
974 mwcmap[ 6-1][0] = 83;
975 mwcmap[ 6-1][1] = 82;
976 mwcmap[ 6-1][2] = 81;
977 mwcmap[ 6-1][3] = 80;
978 mwcmap[ 7-1][0] = 99;
979 mwcmap[ 7-1][1] = 98;
980 mwcmap[ 7-1][2] = 97;
981 mwcmap[ 7-1][3] = 96;
982 mwcmap[ 8-1][0] = 111;
983 mwcmap[ 8-1][1] = 110;
984 mwcmap[ 8-1][2] = 109;
985 mwcmap[ 8-1][3] = 108;
986 mwcmap[ 9-1][0] = 103;
987 mwcmap[ 9-1][1] = 102;
988 mwcmap[ 9-1][2] = 101;
989 mwcmap[ 9-1][3] = 100;
990 mwcmap[10-1][0] = 119;
991 mwcmap[10-1][1] = 118;
992 mwcmap[10-1][2] = 117;
993 mwcmap[10-1][3] = 116;
994 mwcmap[11-1][0] = 115;
995 mwcmap[11-1][1] = 114;
996 mwcmap[11-1][2] = 113;
997 mwcmap[11-1][3] = 112;
998 mwcmap[12-1][0] = 127;
999 mwcmap[12-1][1] = 126;
1000 mwcmap[12-1][2] = 125;
1001 mwcmap[12-1][3] = 124;
1002 mwcmap[13-1][0] = 7;
1003 mwcmap[13-1][1] = 6;
1004 mwcmap[13-1][2] = 5;
1005 mwcmap[13-1][3] = 4;
1006 mwcmap[14-1][0] = 3;
1007 mwcmap[14-1][1] = 2;
1008 mwcmap[14-1][2] = 1;
1009 mwcmap[14-1][3] = 0;
1010 mwcmap[15-1][0] = 15;
1011 mwcmap[15-1][1] = 14;
1012 mwcmap[15-1][2] = 13;
1013 mwcmap[15-1][3] = 12;
1014 mwcmap[16-1][0] = 31;
1015 mwcmap[16-1][1] = 30;
1016 mwcmap[16-1][2] = 29;
1017 mwcmap[16-1][3] = 28;
1018 mwcmap[17-1][0] = 23;
1019 mwcmap[17-1][1] = 22;
1020 mwcmap[17-1][2] = 21;
1021 mwcmap[17-1][3] = 20;
1022 mwcmap[18-1][0] = 19;
1023 mwcmap[18-1][1] = 18;
1024 mwcmap[18-1][2] = 17;
1025 mwcmap[18-1][3] = 16;
1026 mwcmap[19-1][0] = 35;
1027 mwcmap[19-1][1] = 34;
1028 mwcmap[19-1][2] = 33;
1029 mwcmap[19-1][3] = 32;
1030 mwcmap[20-1][0] = 47;
1031 mwcmap[20-1][1] = 46;
1032 mwcmap[20-1][2] = 45;
1033 mwcmap[20-1][3] = 44;
1034 mwcmap[21-1][0] = 39;
1035 mwcmap[21-1][1] = 38;
1036 mwcmap[21-1][2] = 37;
1037 mwcmap[21-1][3] = 36;
1038 mwcmap[22-1][0] = 55;
1039 mwcmap[22-1][1] = 54;
1040 mwcmap[22-1][2] = 53;
1041 mwcmap[22-1][3] = 52;
1042 mwcmap[23-1][0] = 51;
1043 mwcmap[23-1][1] = 50;
1044 mwcmap[23-1][2] = 49;
1045 mwcmap[23-1][3] = 48;
1046 mwcmap[24-1][0] = 63;
1047 mwcmap[24-1][1] = 62;
1048 mwcmap[24-1][2] = 61;
1049 mwcmap[24-1][3] = 60;
1058 auxmwcmap[ 8] = 107;
1059 auxmwcmap[ 9] = 106;
1060 auxmwcmap[10] = 105;
1061 auxmwcmap[11] = 104;
1062 auxmwcmap[12] = 123;
1063 auxmwcmap[13] = 122;
1064 auxmwcmap[14] = 121;
1065 auxmwcmap[15] = 120;
virtual void AddData(TDataSet *data, const char *dir=".data")
User methods.
virtual TObject * GetObject() const
The depricated method (left here for the sake of the backward compatibility)
virtual TDataSet * Find(const char *path) const