37 StatusCode sc = Gaudi::svcLocator()->service(
"BesGlobalTrigSvc", m_tmpSvc);
51 if(!m_MdcTCount) std::cerr<<
"can not initialize mdcTCount"<<std::endl;
52 m_MdcTCount->GetTCount();
53 int nItrk1 = m_MdcTCount->GetnItrkSL1();
54 int nItrk2 = m_MdcTCount->GetnItrkSL2();
59 if((nItrk1 >= 1) || (nItrk2 >= 1)) NItrk1 =
true;
60 if((nItrk1 >= 1) && (nItrk2 >= 1)) NItrk2 =
true;
63 std::vector<int> stmp;
64 std::vector<int>::iterator siter;
66 stmp = m_MdcTCount->GetstrackId();
67 int nstrk = stmp.size();
68 if(nstrk>=1) NStrk1 =
true;
69 if(nstrk>=2) NStrk2 =
true;
70 if(nstrk>=MAXMDCTRACK) NStrkN =
true;
74 for(siter=stmp.begin();siter!=stmp.end();siter++)
78 if(((*siter)+i+57)>127)
81 id = (*siter)+i+57-128;
82 if(find(stmp.begin(),stmp.end(),
id)!=stmp.end()) { STrk_BB =
true;
break; }
88 if(find(stmp.begin(),stmp.end(),
id)!=stmp.end()) { STrk_BB =
true;
break; }
92 if(STrk_BB ==
true)
break;
95 std::vector<int> ltmp;
96 std::vector<int>::iterator liter;
98 ltmp = m_MdcTCount->GetltrackId();
99 int nltrk = ltmp.size();
100 if(nltrk>=1) NLtrk1 =
true;
101 if(nltrk>=2) NLtrk2 =
true;
102 if(nltrk>=MAXMDCTRACK) NLtrkN =
true;
104 for(liter=ltmp.begin();liter!=ltmp.end();liter++)
106 for(
int i=0;i<15;i++)
108 if(((*liter)+i+57)>127)
111 id = (*liter)+i+57-128;
112 if(find(ltmp.begin(),ltmp.end(),
id)!=ltmp.end()) { LTrk_BB =
true;
break; }
118 if(find(ltmp.begin(),ltmp.end(),
id)!=ltmp.end()) { LTrk_BB =
true;
break; }
122 if(LTrk_BB ==
true)
break;
126 m_pIBGT->setSTrk_BB(STrk_BB);
127 m_pIBGT->setNStrkN(NStrkN);
128 m_pIBGT->setNStrk2(NStrk2);
129 m_pIBGT->setNStrk1(NStrk1);
130 m_pIBGT->setLTrk_BB(LTrk_BB);
131 m_pIBGT->setNLtrkN(NLtrkN);
132 m_pIBGT->setNLtrk2(NLtrk2);
133 m_pIBGT->setNLtrk1(NLtrk1);
134 m_pIBGT->setNItrk2(NItrk2);
135 m_pIBGT->setNItrk1(NItrk1);