15 : m_sectorLogic(sL), m_NumberOfWireHighPtBoard(0),
27 if(wire[HPBid]==0)
continue;
29 for(
int iCandidate=1; iCandidate>=0; iCandidate-=1){
30 if(wire[HPBid]->getSel(chip,iCandidate)){
32 if(iCandidate==1 && (wire[HPBid]->getHitID(chip,1)) == (wire[HPBid]->getHitID(chip,0)))
continue;
33 int SSCId =
getSSCId(HPBid,chip,wire[HPBid]->getHitID(chip,iCandidate));
34 if(SSCId<m_sectorLogic->getNumberOfSubSectorCluster()){
35 out->setR(SSCId,wire[HPBid]->getPos(chip,iCandidate));
36 out->setDR(SSCId,wire[HPBid]->getDev(chip,iCandidate));
37 out->setPtR(SSCId,wire[HPBid]->getPt(chip,iCandidate));
38 out->setHitR(SSCId,
true);
40 std::cerr <<
"internal error in TGCSSCController::distribute() bid=" <<
m_sectorLogic->
getBid() <<
" ";
41 std::cerr <<
" SSCId="<<SSCId<<std::endl;
48 if(strip==0)
return out;
51 for(
int iCandidate=1; iCandidate>=0; iCandidate-=1){
52 if( strip->getSel(chip,iCandidate) ){
54 if(iCandidate==1 && (strip->getHitID(chip,1)) == (strip->getHitID(chip,0)))
continue;
55 int chamberNo =
getChamberNo(chip,strip->getHitID(chip,iCandidate));
59 strip->getHitID(chip,iCandidate),
60 strip->getPos(chip,iCandidate) );
61 int PhiPosInSSC =
iPhi;
62 if ( PhiPosInSSC > 3 )
continue;
63 out->setPhi(chamberNo, PhiPosInSSC,
iPhi);
64 out->setDPhi(chamberNo, PhiPosInSSC,strip->getDev(chip,iCandidate));
65 out->setPtPhi(chamberNo, PhiPosInSSC, strip->getPt(chip,iCandidate));
66 out->setHitPhi(chamberNo, PhiPosInSSC,
true);
71 if (chamberNo==4) oredChamber= 3;
72 if (chamberNo==3) oredChamber= 4;
73 if (
tgcArgs()->SHPT_ORED() && (oredChamber>0)) {
74 if(!
out->hasHitPhi(oredChamber, PhiPosInSSC)){
75 out->setPhi(oredChamber, PhiPosInSSC,
iPhi);
76 out->setDPhi(oredChamber, PhiPosInSSC,strip->getDev(chip,iCandidate));
77 out->setPtPhi(oredChamber, PhiPosInSSC, strip->getPt(chip,iCandidate));
78 out->setHitPhi(oredChamber, PhiPosInSSC,
true);
99 return (
pos + (block%2) * 2);