21#include "GaudiKernel/ISvcLocator.h"
22#include "GaudiKernel/Bootstrap.h"
23#include "GaudiKernel/IDataProviderSvc.h"
33 if(m_MdcTCount)
delete m_MdcTCount;
37 StatusCode sc = Gaudi::svcLocator()->service(
"BesGlobalTrigSvc", m_tmpSvc);
51 if(!m_MdcTCount) std::cerr<<
"can not initialize mdcTCount"<<std::endl;
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;
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;
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;
std::vector< int > & GetstrackId()
std::vector< int > & GetltrackId()