36{
37 StatusCode sc = Gaudi::svcLocator()->service("BesGlobalTrigSvc", m_tmpSvc);
39
40 NLtrk1 = false;
41 NLtrk2 = false;
42 NLtrkN = false;
43 LTrk_BB = false;
44 NStrk1 = false;
45 NStrk2 = false;
46 NStrkN = false;
47 STrk_BB = false;
48 NItrk1 = false;
49 NItrk2 = false;
50
51 if(!m_MdcTCount) std::cerr<<"can not initialize mdcTCount"<<std::endl;
55
56
57
59 if((nItrk1 >= 1) || (nItrk2 >= 1)) NItrk1 = true;
60 if((nItrk1 >= 1) && (nItrk2 >= 1)) NItrk2 = true;
61
62
63 std::vector<int> stmp;
64 std::vector<int>::iterator siter;
65 stmp.clear();
67 int nstrk = stmp.size();
68 if(nstrk>=1) NStrk1 = true;
69 if(nstrk>=2) NStrk2 = true;
70 if(nstrk>=MAXMDCTRACK) NStrkN = true;
71
72
73
74 for(siter=stmp.begin();siter!=stmp.end();siter++)
75 {
76 for(int i=0;i<15;i++)
77 {
78 if(((*siter)+i+57)>127)
79 {
80 int id;
81 id = (*siter)+i+57-128;
82 if(find(stmp.begin(),stmp.end(),id)!=stmp.end()) { STrk_BB = true; break; }
83 }
84 else
85 {
86 int id;
87 id = (*siter)+i+57;
88 if(find(stmp.begin(),stmp.end(),id)!=stmp.end()) { STrk_BB = true; break; }
89 }
90 }
91
92 if(STrk_BB == true) break;
93 }
94
95 std::vector<int> ltmp;
96 std::vector<int>::iterator liter;
97 ltmp.clear();
99 int nltrk = ltmp.size();
100 if(nltrk>=1) NLtrk1 = true;
101 if(nltrk>=2) NLtrk2 = true;
102 if(nltrk>=MAXMDCTRACK) NLtrkN = true;
103
104 for(liter=ltmp.begin();liter!=ltmp.end();liter++)
105 {
106 for(int i=0;i<15;i++)
107 {
108 if(((*liter)+i+57)>127)
109 {
110 int id;
111 id = (*liter)+i+57-128;
112 if(find(ltmp.begin(),ltmp.end(),id)!=ltmp.end()) { LTrk_BB = true; break; }
113 }
114 else
115 {
116 int id;
117 id = (*liter)+i+57;
118 if(find(ltmp.begin(),ltmp.end(),id)!=ltmp.end()) { LTrk_BB = true; break; }
119 }
120 }
121
122 if(LTrk_BB == true) break;
123 }
124
125
136}
std::vector< int > & GetstrackId()
std::vector< int > & GetltrackId()