32{
33 if(m_MdcTF) m_MdcTF->GetTrack();
34
35 strackNo = 0;
36 ltrackNo = 0;
37 nItrkSL1 = 0;
38 nItrkSL2 = 0;
39 strackId.clear();
40 ltrackId.clear();
41 intrkId1.clear();
42 intrkId2.clear();
43
44 intrkId1 = m_MdcTF->GetintrkSL1();
45 intrkId2 = m_MdcTF->GetintrkSL2();
46 nItrkSL1 = intrkId1.size();
47 nItrkSL2 = intrkId2.size();
48
49
50 for(int i = 0;i<128;i++)
51 {
52 int stId = 0, ltId = 0;
53
54 if(m_MdcTF->GetstrackId(i) != 0) {
55
56
57 for(int j = 1; j < 17; j++) {
58 if((i-j) < 0) stId = m_MdcTF->GetstrackId(128-j+i);
59 else stId = m_MdcTF->GetstrackId(i-j);
60
61 if(stId == 0) {
62 if(j%2 != 0) { strackId.push_back(i); strackNo+=1; }
63 break;
64 }
65 }
66 }
67
68 if(m_MdcTF->GetltrackId(i) != 0) {
69
70 for(int j = 1; j < 17; j++) {
71 if((i-j) < 0) ltId = m_MdcTF->GetltrackId(128-j+i);
72 else ltId = m_MdcTF->GetltrackId(i-j);
73 if(ltId == 0) {
74 if(j%2 != 0) { ltrackId.push_back(i); ltrackNo+=1; }
75 break;
76 }
77 }
78 }
79 }
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94 ISvcLocator* svcLocator = Gaudi::svcLocator();
95 StatusCode sc = svcLocator->service("BesGlobalTrigSvc", m_tmpSvc);
96 m_pIBGT = dynamic_cast<BesGlobalTrigSvc* >(m_tmpSvc);
97
98
99 m_pIBGT->setMdcStrkId(strackId);
100 m_pIBGT->setMdcLtrkId(ltrackId);
101}