|
ATLAS Offline Software
|
#include <TGCStripHighPtBoard.h>
Definition at line 17 of file TGCStripHighPtBoard.h.
◆ TGCStripHighPtBoard()
LVL1TGCTrigger::TGCStripHighPtBoard::TGCStripHighPtBoard |
( |
| ) |
|
◆ ~TGCStripHighPtBoard()
virtual LVL1TGCTrigger::TGCStripHighPtBoard::~TGCStripHighPtBoard |
( |
| ) |
|
|
inlinevirtual |
◆ clearDecoderIn()
void LVL1TGCTrigger::TGCStripHighPtBoard::clearDecoderIn |
( |
| ) |
|
|
protectedvirtual |
◆ clockIn()
void LVL1TGCTrigger::TGCHighPtBoard::clockIn |
( |
int |
bidIn | ) |
|
|
inherited |
Definition at line 77 of file TGCHighPtBoard.cxx.
81 std::cout <<
"#TGCHighPtBoard::clockIn collect" << std::endl;
89 std::cout <<
"#TGCHighPtBoard::clockIn BID:" <<
m_bid
90 <<
" TYPE:" << ((
m_type==WHPB) ?
"WHPB" :
"SHPB" )
◆ collectInput()
void LVL1TGCTrigger::TGCHighPtBoard::collectInput |
( |
| ) |
|
|
protectedinherited |
◆ createHighPtBoardOut()
void LVL1TGCTrigger::TGCHighPtBoard::createHighPtBoardOut |
( |
| ) |
|
|
protectedinherited |
◆ createHighPtChipOut()
void LVL1TGCTrigger::TGCHighPtBoard::createHighPtChipOut |
( |
| ) |
|
|
protectedinherited |
◆ createLowPtBoardOut()
void LVL1TGCTrigger::TGCHighPtBoard::createLowPtBoardOut |
( |
| ) |
|
|
protectedinherited |
◆ decodeSlaveBoardOut()
Implements LVL1TGCTrigger::TGCHighPtBoard.
Definition at line 124 of file TGCStripHighPtBoard.cxx.
131 std::cout <<
"#--Strip decodeSlaveBoardOut()" << std::endl;
132 std::cout <<
"Triplet" << std::endl;
138 std::cout <<
"index:" << j <<
"/" <<
NDecoderInSTSB-1 <<
" in a chip ";
139 std::cout<<
"SHPB:decoderInTSB["<<chip<<
"]["<<j<<
"]:";
152 std::cout<<
"decodeSlaveBoardOut ch= "<<
ch<<std::endl;
163 std::cout<<
"decodeSlaveBoardOut ch= "<<
ch<<std::endl;
173 std::cout<<
"decodeSlaveBoardOut ch= "<<
ch<<std::endl;
183 std::cout <<
"Doublet" << std::endl;
188 std::cout <<
"index:" << j <<
"/" <<
NDecoderInDSB-1 <<
" in a chip ";
189 std::cout<<
"SHPB:decoderInDSB["<<chip<<
"]["<<j<<
"]:";
◆ deleteSlaveBoardOut()
void LVL1TGCTrigger::TGCHighPtBoard::deleteSlaveBoardOut |
( |
| ) |
|
|
protectedinherited |
◆ divideTSBOut()
Definition at line 86 of file TGCStripHighPtBoard.cxx.
102 TGCSlaveBoardOut*
out =
103 new TGCSlaveBoardOut(SBOut->getOrigin(), SBOut->getBid());
104 int nData = SBOut->getNumberOfData();
105 out->setNumberOfData(nData/2);
108 for(
i=0;
i<
out->getNumberOfData();
i+=1)
110 out->setDev(
i,SBOut->getDev((nData/2)*iSet+
i));
111 out->setPos(
i,SBOut->getPos((nData/2)*iSet+
i));
112 out->setHit(
i,SBOut->getHit((nData/2)*iSet+
i));
113 out->setbPos(
i,SBOut->getPos((nData/2)*iSet+
i));
◆ doCoincidence()
void LVL1TGCTrigger::TGCHighPtBoard::doCoincidence |
( |
| ) |
|
|
protectedinherited |
◆ doCoincidenceMatrix()
Implements LVL1TGCTrigger::TGCHighPtBoard.
Definition at line 201 of file TGCStripHighPtBoard.cxx.
207 int maxTSBCh=(block+1)*nChUnitOfDSBHit;
208 int minTSBCh=block*nChUnitOfDSBHit;
210 std::cout <<
"# Strip doCoincidenceMatrix() chip:" << chip <<
" block:" << block << std::endl;
212 for(
int dev=0; dev<=
m_maxDev; dev+=1) {
219 for (
int isgn=1; isgn >-2; isgn-=2) {
220 if ( (dev==0) && (isgn==-1) )
continue;
221 for(
int i=0;
i<nChUnitOfDSBHit;
i+=1) {
230 for(
int ior = 0; ior <= Oring; ior++) {
231 DSBCh = nChUnitOfDSBHit*block +
i;
233 if ( ((isgn>0) && ( (block%2==0)||((block%2==1)&&(TSBCh<maxTSBCh)) ) ) ||
234 ((isgn<0) && ( (block%2==1)||((block%2==0)&&(TSBCh>=minTSBCh)) ) ) ){
235 if(tHit->getChannel(TSBCh) && dHit->getChannel(DSBCh)) {
237 std::cout<<
"HighPt" << std::endl
240 <<
" DSBCh:" << DSBCh
241 <<
" TSBCh:" << TSBCh << std::endl;
◆ eraseHighPtOutput()
void LVL1TGCTrigger::TGCHighPtBoard::eraseHighPtOutput |
( |
| ) |
|
|
protectedinherited |
◆ eraseLowPtOutput()
void LVL1TGCTrigger::TGCHighPtBoard::eraseLowPtOutput |
( |
| ) |
|
|
protectedinherited |
◆ eraseOutput()
void LVL1TGCTrigger::TGCHighPtBoard::eraseOutput |
( |
| ) |
|
|
inherited |
◆ getId()
int LVL1TGCTrigger::TGCHighPtBoard::getId |
( |
| ) |
const |
|
inlineinherited |
◆ getNonLinearDelta()
int LVL1TGCTrigger::TGCStripHighPtBoard::getNonLinearDelta |
( |
int |
dev | ) |
const |
|
protected |
Definition at line 384 of file TGCStripHighPtBoard.cxx.
386 if (dev >=12)
return 8;
387 else if (dev >=10)
return 7;
388 else if (dev >=8)
return 6;
389 else if (dev >=6)
return 5;
390 else if (dev >=4)
return 4;
◆ getOutput()
◆ getRegion()
TGCRegionType LVL1TGCTrigger::TGCHighPtBoard::getRegion |
( |
| ) |
const |
|
inlineinherited |
◆ getTSBOut()
TGCSlaveBoardOut * LVL1TGCTrigger::TGCHighPtBoard::getTSBOut |
( |
int |
chip, |
|
|
int |
port |
|
) |
| |
|
inherited |
◆ getType()
int LVL1TGCTrigger::TGCHighPtBoard::getType |
( |
| ) |
const |
|
inlineinherited |
◆ highLowSelector()
void LVL1TGCTrigger::TGCStripHighPtBoard::highLowSelector |
( |
int |
chip | ) |
|
|
protectedvirtual |
Reimplemented from LVL1TGCTrigger::TGCHighPtBoard.
Definition at line 259 of file TGCStripHighPtBoard.cxx.
262 int highPt1stBlock, highPt2ndBlock;
263 int lowPt1stBlock, lowPt2ndBlock;
273 highPt1stBlock = iblock;
276 highPt2ndBlock = iblock;
290 lowPt1stBlock = iblock;
293 lowPt2ndBlock = iblock;
300 if (highPt1stBlock < 0){
301 if (lowPt1stBlock >= 0){
311 if (lowPt2ndBlock >= 0){
322 }
else if (highPt2ndBlock < 0){
326 if ((dev>-8) && (dev<8)) {
334 if ((lowPt1stBlock >= 0) &&
346 }
else if ((lowPt2ndBlock >= 0) &&
364 if ((dev>-8) && (dev<8)) {
374 if ((dev>-8) && (dev<8)) {
◆ loadLowPtOutput()
void LVL1TGCTrigger::TGCHighPtBoard::loadLowPtOutput |
( |
int |
chip, |
|
|
int |
block, |
|
|
TGCSlaveBoardOut * |
dataDSB |
|
) |
| |
|
protectedinherited |
Definition at line 206 of file TGCHighPtBoard.cxx.
210 if(dataDSB->getHit(block%2)){
211 int pos=dataDSB->getPos(block%2);
212 int dev=dataDSB->getDev(block%2);
◆ setAdjacentHPB()
void LVL1TGCTrigger::TGCHighPtBoard::setAdjacentHPB |
( |
int |
side, |
|
|
TGCHighPtBoard * |
hpt |
|
) |
| |
|
inlineinherited |
◆ setDecoderIn()
void LVL1TGCTrigger::TGCStripHighPtBoard::setDecoderIn |
( |
| ) |
|
|
protectedvirtual |
◆ setDSB()
void LVL1TGCTrigger::TGCHighPtBoard::setDSB |
( |
int |
connector, |
|
|
TGCSlaveBoard * |
SBIn |
|
) |
| |
|
inlineinherited |
◆ setId()
void LVL1TGCTrigger::TGCHighPtBoard::setId |
( |
int |
idIn | ) |
|
|
inlineinherited |
◆ setRegion()
◆ setTSB()
void LVL1TGCTrigger::TGCHighPtBoard::setTSB |
( |
int |
connector, |
|
|
TGCSlaveBoard * |
SBIn |
|
) |
| |
|
inlineinherited |
◆ setType()
void LVL1TGCTrigger::TGCHighPtBoard::setType |
( |
int |
typeIn | ) |
|
|
inlineinherited |
◆ showResult()
void LVL1TGCTrigger::TGCHighPtBoard::showResult |
( |
| ) |
const |
|
inherited |
Definition at line 415 of file TGCHighPtBoard.cxx.
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;
◆ trackSelector()
void LVL1TGCTrigger::TGCHighPtBoard::trackSelector |
( |
int |
chip, |
|
|
int |
ptIn |
|
) |
| |
|
protectedinherited |
Definition at line 230 of file TGCHighPtBoard.cxx.
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)))){
◆ m_adjacentHPB
◆ m_bid
int LVL1TGCTrigger::TGCHighPtBoard::m_bid |
|
protectedinherited |
◆ m_decoderInDSB
◆ m_decoderInTSB
◆ m_DSB
◆ m_DSBOut
◆ m_highPtBoardOut
◆ m_highPtChipOut
◆ m_id
int LVL1TGCTrigger::TGCHighPtBoard::m_id |
|
protectedinherited |
◆ m_idSectorLogic
int LVL1TGCTrigger::TGCHighPtBoard::m_idSectorLogic |
|
protectedinherited |
◆ m_lowPtBoardOut
◆ m_maxDev
int LVL1TGCTrigger::TGCHighPtBoard::m_maxDev |
|
protectedinherited |
◆ m_maxDevOred
int LVL1TGCTrigger::TGCHighPtBoard::m_maxDevOred |
|
protectedinherited |
◆ m_maxNumberOfHPBData
int LVL1TGCTrigger::TGCHighPtBoard::m_maxNumberOfHPBData |
|
protectedinherited |
◆ m_nChInTSBRegion
int LVL1TGCTrigger::TGCHighPtBoard::m_nChInTSBRegion |
|
protectedinherited |
◆ m_nChOfDSBHit
int LVL1TGCTrigger::TGCHighPtBoard::m_nChOfDSBHit |
|
protectedinherited |
◆ m_nChOfDSBOut
int LVL1TGCTrigger::TGCHighPtBoard::m_nChOfDSBOut |
|
protectedinherited |
◆ m_nChOfTSBHit
int LVL1TGCTrigger::TGCHighPtBoard::m_nChOfTSBHit |
|
protectedinherited |
◆ m_nChOfTSBOut
int LVL1TGCTrigger::TGCHighPtBoard::m_nChOfTSBOut |
|
protectedinherited |
◆ m_priorSign
int LVL1TGCTrigger::TGCHighPtBoard::m_priorSign |
|
protectedinherited |
◆ m_region
◆ m_TSB
◆ m_TSBOut
◆ m_type
int LVL1TGCTrigger::TGCHighPtBoard::m_type |
|
protectedinherited |
◆ s_NumberOfDSBOut
constexpr int LVL1TGCTrigger::TGCHighPtBoard::s_NumberOfDSBOut = 3 |
|
staticconstexprprivateinherited |
◆ s_NumberOfTSBOut
constexpr int LVL1TGCTrigger::TGCHighPtBoard::s_NumberOfTSBOut = 2 |
|
staticconstexprprivateinherited |
The documentation for this class was generated from the following files:
void setHitID(int chip, int iCandidate, int hitIdIn)
void setDev(int chip, int iData, int devIn)
void setPos(int chip, int iCandidate, int posIn)
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
TGCSlaveBoardOut * divideTSBOut(int iSet, TGCSlaveBoardOut *SBOut)
void setDev(int chip, int iCandidate, int devIn)
void setPt(int chip, int iCandidate, int ptIn)
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
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 * 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
int getNonLinearDelta(int dev) const
void setHit(int chip, int iData, bool hitIn)