|
ATLAS Offline Software
|
Go to the documentation of this file.
15 m_highPtChipOut(0), m_highPtBoardOut(0), m_lowPtBoardOut(0),
16 m_id(-1),m_bid(-1),m_idSectorLogic(-1),
m_type(-1),
17 m_priorSign(1),m_maxNumberOfHPBData(2),
18 m_maxDev(0), m_maxDevOred(0),
19 m_nChOfTSBOut(0), m_nChOfDSBOut(0), m_nChOfDSBHit(0), m_nChOfTSBHit(0),
81 std::cout <<
"#TGCHighPtBoard::clockIn collect" << std::endl;
89 std::cout <<
"#TGCHighPtBoard::clockIn BID:" <<
m_bid
90 <<
" TYPE:" << ((
m_type==WHPB) ?
"WHPB" :
"SHPB" )
210 if(dataDSB->
getHit(block%2)){
212 int dev=dataDSB->
getDev(block%2);
237 block[iblock]=iblock;
245 }
else dev[iblock]=99;
254 while((
i>=0)&&((abs(dev[
i])>abs(
a))||((abs(dev[
i])==abs(
a))&&(dev[
i]!=
a)&&(
m_priorSign*dev[
i]<0)))){
277 int highPt1stBlock, highPt2ndBlock;
278 int lowPt1stBlock, lowPt2ndBlock;
288 highPt1stBlock = iblock;
291 highPt2ndBlock = iblock;
305 lowPt1stBlock = iblock;
308 lowPt2ndBlock = iblock;
315 if (highPt1stBlock < 0){
316 if (lowPt1stBlock >= 0){
326 if (lowPt2ndBlock >= 0){
337 }
else if (highPt2ndBlock < 0){
347 if ((lowPt1stBlock >= 0) &&
359 }
else if ((lowPt2ndBlock >= 0) &&
419 int i,j,
k, chip, iBlock, iCandidate;
420 std::cout <<
"#HighPtBoard::showResult()" << std::endl;
421 std::cout<<
"#HPB [Input] bid=" <<
m_bid;
423 std::cout <<
" type=" << ((
m_type==WHPB) ?
"WHPB" :
"SHPB" );
427 std::cout <<
" id=" <<
m_id << std::endl;
441 std::cout <<
" iChip=" <<
i;
443 std::cout <<
" iTSBOut=" << j;
445 std::cout <<
" k=" <<
k;
448 std::cout <<
"]" << std::endl;
462 std::cout <<
" i=" <<
i;
464 std::cout <<
" j=" << j;
466 std::cout <<
" k=" <<
k;
471 std::cout <<
"]" << std::endl;
476 std::cout<<std::endl;
478 std::cout <<
"#HPB [Intermediate] bid=" <<
m_bid;
480 std::cout <<
" type=" << ((
m_type==WHPB) ?
"WHPB" :
"SHPB" );
484 std::cout <<
" id=" <<
m_id << std::endl;
488 std::cout <<
"iChip=" << chip <<
"]" << std::endl;
492 std::cout<<
"\t [highPtBoardOut: ";
494 std::cout <<
"block=" << iBlock;
501 std::cout <<
"]" << std::endl;
506 std::cout<<
"\t [lowPtBoardOut: ";
508 std::cout <<
"block=" << iBlock;
515 std::cout <<
"]" << std::endl;
519 std::cout <<
"#HPB [Output] bid=" <<
m_bid;
521 std::cout <<
" type=" << ((
m_type==WHPB) ?
"WHPB" :
"SHPB" );
525 std::cout <<
" id=" <<
m_id << std::endl;
529 std::cout <<
"iChip=" << chip <<
"]" << std::endl;
530 for( iCandidate=0; iCandidate<2; iCandidate+=1){
537 std::cout<<
" Pt:1[high]";
539 std::cout<<
" Pt:0[low ]";
544 std::cout <<
"]" << std::endl;
void setHitID(int chip, int iCandidate, int hitIdIn)
void setDev(int chip, int iData, int devIn)
void setPos(int chip, int iCandidate, int posIn)
virtual ~TGCHighPtBoard()
int getDev(int iData) const
void deleteSlaveBoardOut()
TGCSlaveBoardOut * m_DSBOut[NumberOfChip][s_NumberOfDSBOut]
void setSel(int chip, int iData, int selIn)
int getDev(int chip, int iData) const
TGCSlaveBoardOut * m_decoderInTSB[NumberOfChip][NDecoderInTSB]
void loadLowPtOutput(int chip, int block, TGCSlaveBoardOut *dataDSB)
void createHighPtChipOut()
TGCHighPtChipOut * m_highPtChipOut
std::string getTypeName(int typeIn) const
int getNumberOfData() const
int getPt(int chip, int iCandidate) const
int getPos(int iData) const
virtual void decodeSlaveBoardOut(int chip, TGCHitPattern *tHit, TGCHitPattern *dHit)=0
TGCHighPtBoard * m_adjacentHPB[NumberOfAdjacentHPB]
void setPos(int chip, int iData, int posIn)
static constexpr int s_NumberOfTSBOut
void createHighPtBoardOut()
TGCSlaveBoardOut * m_decoderInDSB[NumberOfChip][NDecoderInDSB]
void trackSelector(int chip, int ptIn)
int getSel(int chip, int iData) const
int getHitID(int chip, int iCandidate) const
static constexpr int s_NumberOfDSBOut
virtual void clearDecoderIn()=0
void setDev(int chip, int iCandidate, int devIn)
void setPt(int chip, int iCandidate, int ptIn)
bool getHit(int iData) const
bool getHit(int chip, int iData) const
int getDev(int chip, int iCandidate) const
int getSel(int chip, int iCandidate) const
int getPos(int chip, int iData) const
virtual void doCoincidenceMatrix(int chip, int block, const TGCHitPattern *tHit, const TGCHitPattern *dHit)=0
const TGCSlaveBoard * getOrigin() const
const int NumberOfAdjacentHPB
TGCHighPtBoardOut * m_lowPtBoardOut
int getPos(int chip, int iCandidate) const
TGCSlaveBoard * m_DSB[NumberOfChip][s_NumberOfDSBOut]
virtual void setDecoderIn()=0
const int NBlockOfDSBChannel
void setPt(int chip, int iData, int ptIn)
TGCSlaveBoardOut * getOutput()
TGCSlaveBoard * m_TSB[NumberOfChip][s_NumberOfTSBOut]
TGCSlaveBoardOut * getTSBOut(int chip, int port)
TGCHighPtChipOut * getOutput()
TGCSlaveBoardOut * m_TSBOut[NumberOfChip][s_NumberOfTSBOut]
void setSel(int chip, int iCandidate, int selIn)
void createLowPtBoardOut()
virtual void highLowSelector(int chip)
TGCHighPtBoardOut * m_highPtBoardOut
TGCRegionType getRegion() const
void setHit(int chip, int iData, bool hitIn)