![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
#include <TGCSector.h>
|
| TGCSector (TGCArguments *, int idIn, TGCRegionType type, TGCForwardBackwardType forwardBackward, const TGCDatabaseManager *db, std::shared_ptr< const LVL1TGC::TGCTMDB > tmdb, std::shared_ptr< const LVL1TGC::TGCNSW > nsw, std::shared_ptr< const LVL1TGC::TGCBIS78 > bis78) |
|
| TGCSector () |
|
virtual | ~TGCSector () |
|
bool | hasHit () const |
|
void | clearNumberOfHit () |
|
int | distributeSignal (const TGCASDOut *asdOut) |
|
TGCPatchPanel * | getPP (int type, int index) const |
|
TGCSlaveBoard * | getSB (int type, int index) const |
|
TGCHighPtBoard * | getHPB (int type, int index) const |
|
TGCSectorLogic * | getSL () |
|
unsigned int | getNumberOfPP (int type) const |
|
unsigned int | getNumberOfSB (int type) const |
|
unsigned int | getNumberOfHPB (int type) const |
|
TGCRegionType | getRegionType () const |
|
int | getId () const |
|
void | dumpModule () |
|
LVL1TGC::TGCSide | getSideId () const |
|
int | getOctantId () const |
|
int | getModuleId () const |
|
TGCArguments * | tgcArgs () |
|
const TGCArguments * | tgcArgs () const |
|
Definition at line 31 of file TGCSector.h.
◆ TGCHighPtBoardType
Enumerator |
---|
WHPB | |
SHPB | |
NumberOfHighPtBoardType | |
Definition at line 34 of file TGCSector.h.
◆ TGCPatchPanelType
Enumerator |
---|
NOPP | |
WTPP | |
WDPP | |
STPP | |
SDPP | |
WIPP | |
SIPP | |
NumberOfPatchPanelType | |
Definition at line 35 of file TGCSector.h.
◆ TGCSector() [1/3]
◆ TGCSector() [2/3]
LVL1TGCTrigger::TGCSector::TGCSector |
( |
| ) |
|
Definition at line 95 of file TGCSector.cxx.
105 m_PP[iPatchPanelType].clear();
108 m_SB[iSlaveBoardType].clear();
111 m_HPB[iHighPtBoardType].clear();
◆ TGCSector() [3/3]
◆ ~TGCSector()
LVL1TGCTrigger::TGCSector::~TGCSector |
( |
| ) |
|
|
virtual |
Definition at line 384 of file TGCSector.cxx.
388 for (
unsigned int j=0; j<
m_PP[
i].size(); j++) {
395 for (
unsigned int j=0; j <
m_SB[
i].size(); j+=1) {
402 for(
unsigned int j=0; j <
m_HPB[
i].size(); j+=1) {
◆ clearNumberOfHit()
void LVL1TGCTrigger::TGCSector::clearNumberOfHit |
( |
| ) |
|
|
inline |
◆ connectAdjacentHPB()
void LVL1TGCTrigger::TGCSector::connectAdjacentHPB |
( |
| ) |
|
|
private |
◆ connectAdjacentPP()
void LVL1TGCTrigger::TGCSector::connectAdjacentPP |
( |
| ) |
|
|
private |
Definition at line 300 of file TGCSector.cxx.
302 for (
unsigned int iPP = 1; iPP <
m_PP[
WDPP].size(); iPP++) {
307 for (
unsigned int iPP = 1; iPP <
m_PP[
WTPP].size(); iPP++) {
312 for (
unsigned int iPP = 1; iPP <
m_PP[
STPP].size(); iPP++) {
317 for (
unsigned int iPP = 1; iPP <
m_PP[
SDPP].size(); iPP++) {
323 for (TGCPatchPanel* ppasic :
m_PP[
i]) {
◆ connectHPBToSL()
Definition at line 351 of file TGCSector.cxx.
356 for (
unsigned int iHPB = 0; iHPB <
m_HPB[
WHPB].size(); iHPB++){
359 for (
unsigned int iHPB = 0; iHPB <
m_HPB[
SHPB].size(); iHPB++) {
◆ connectPPToSB()
Definition at line 261 of file TGCSector.cxx.
264 int startType, endType;
275 for (
int i=startType;
i <= endType;
i++) {
277 std::cerr <<
"connectionPPToSB :"
280 <<
" #PP=" <<
m_PP[
i].size()
281 <<
" #SB=" <<
m_SB[
i].size()
284 for(
unsigned int iPP = 0; iPP <
m_PP[
i].size(); iPP++) {
285 for ( iPort = 0; iPort < connection->getNumberOfPort(); iPort += 1) {
286 m_PP[
i][iPP]->setIdSlaveBoard(iPort,connection->getSBIdToPP(
i,iPort,iPP));
287 for (
unsigned int iSB = 0; iSB <
m_SB[
i].size(); iSB++) {
◆ connectSBToHPB()
Definition at line 329 of file TGCSector.cxx.
332 if (
i==
WISB )
continue;
333 if (
i==
SISB )
continue;
335 for (
unsigned int iSB = 0; iSB <
m_SB[
i].size(); iSB++) {
336 m_SB[
i][iSB]->setIdHighPtBoard(connection->getHPBIdToSB(
i,iSB));
338 for (
unsigned int iHPB = 0; iHPB <
m_HPB[
type].size(); iHPB += 1){
341 m_HPB[
type].at(iHPB)->setDSB(connection->getHPBPortToSB(
i,iSB),
m_SB[
i][iSB]);
343 m_HPB[
type].at(iHPB)->setTSB(connection->getHPBPortToSB(
i,iSB),
m_SB[
i][iSB]);
◆ distributeSignal()
int LVL1TGCTrigger::TGCSector::distributeSignal |
( |
const TGCASDOut * |
asdOut | ) |
|
Definition at line 34 of file TGCSector.cxx.
40 TGCReadoutIndex readoutIndex;
41 readoutIndex = ASDOut->GetTGCReadoutIndex();
43 int layer = readoutIndex.GetLayerNumber();
44 int rNumber = readoutIndex.GetRNumber();
45 int ch = ASDOut->GetHitID();
57 ISvcLocator* svcLocator = Gaudi::svcLocator();
58 if (svcLocator->service(
"MessageSvc",
msgSvc) == StatusCode::FAILURE) {
61 MsgStream
log(
msgSvc,
"LVL1TGCTrigger::TGCSector");
64 <<
"signalType= " << ((signalType ==
WIRE) ?
"Wire" :
"Strip")
65 <<
" layer= " <<
layer <<
" rNumber= " <<rNumber <<
" ch= "<<
ch
66 <<
"id(PP)= " <<idPP <<
" connector(PP)= " <<conPP <<
" ch(PP)= " <<chPP
72 m_PP[PPType][idPP]->setASDOut(chPP,conPP,ASDOut);
◆ dumpModule()
void LVL1TGCTrigger::TGCSector::dumpModule |
( |
| ) |
|
Definition at line 411 of file TGCSector.cxx.
418 std::cout <<
"numberOfPP(index in a type): " <<
m_PP[j].size() << std::endl;
419 for (TGCPatchPanel* ppasic :
m_PP[j]) {
420 std::cout <<
" Type:" << ppasic->getType();
421 std::cout <<
" Id:" << ppasic->getId();
429 std::cout <<
"numberOfSB(index in a type): " <<
m_SB[j].size() << std::endl;
430 for (
unsigned int i=0;
i <
m_SB[j].size();
i++) {
431 std::cout <<
" Type:" <<
m_SB[j][
i]->getType();
432 std::cout <<
" Id:" <<
m_SB[j][
i]->getId();
439 std::cout <<
"numberOfHPB(index in a type):" <<
m_HPB[j].size() << std::endl;
440 for(
unsigned int i=0;
i <
m_HPB[j].size();
i+=1) {
441 std::cout <<
" Type:" <<
m_HPB[j][
i]->getType();
442 std::cout <<
" Id:" <<
m_HPB[j][
i]->getId();
447 std::cout <<
"SectorLogic" << std::endl;
449 std::cout <<
"SL:" <<
m_SL << std::endl;
451 std::cout <<
" Region:";
453 std::cout <<
"Endcap" << std::endl;
455 std::cout <<
"Forward" << std::endl;
458 std::cout <<
"NO SL" << std::endl;
◆ getBIS78()
◆ getHPB()
TGCHighPtBoard * LVL1TGCTrigger::TGCSector::getHPB |
( |
int |
type, |
|
|
int |
index |
|
) |
| const |
|
inline |
◆ getId()
int LVL1TGCTrigger::TGCSector::getId |
( |
| ) |
const |
|
inline |
◆ getModuleId()
int LVL1TGCTrigger::TGCSector::getModuleId |
( |
| ) |
const |
|
inline |
◆ getNSW()
◆ getNumberOfHPB()
unsigned int LVL1TGCTrigger::TGCSector::getNumberOfHPB |
( |
int |
type | ) |
const |
|
inline |
◆ getNumberOfPP()
unsigned int LVL1TGCTrigger::TGCSector::getNumberOfPP |
( |
int |
type | ) |
const |
|
inline |
◆ getNumberOfSB()
unsigned int LVL1TGCTrigger::TGCSector::getNumberOfSB |
( |
int |
type | ) |
const |
|
inline |
◆ getOctantId()
int LVL1TGCTrigger::TGCSector::getOctantId |
( |
| ) |
const |
|
inline |
◆ getPatchPanelType()
int LVL1TGCTrigger::TGCSector::getPatchPanelType |
( |
TGCSignalType |
signal, |
|
|
int |
layer |
|
) |
| const |
|
private |
◆ getPP()
TGCPatchPanel * LVL1TGCTrigger::TGCSector::getPP |
( |
int |
type, |
|
|
int |
index |
|
) |
| const |
|
inline |
◆ getRegionType()
◆ getSB()
TGCSlaveBoard * LVL1TGCTrigger::TGCSector::getSB |
( |
int |
type, |
|
|
int |
index |
|
) |
| const |
|
inline |
◆ getSideId()
◆ getSL()
◆ getTMDB()
◆ hasHit()
bool LVL1TGCTrigger::TGCSector::hasHit |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ setModule()
Definition at line 171 of file TGCSector.cxx.
175 for (
int jpp=0; jpp <=
SDPP; jpp++) {
176 m_PP[jpp].resize(connection->getPPToSB()->getNumber(jpp));
177 for (
unsigned int i=0;
i <
m_PP[jpp].size();
i++) {
182 m_PP[jpp][
i]->setId(connection->getPPToSB()->getId(jpp,
i));
183 m_PP[jpp][
i]->setType(jpp);
192 for (
int jsb=0; jsb <=
SDSB; jsb++) {
193 m_SB[jsb].resize(connection->getSBToHPB()->getNumber(jsb));
194 for (
unsigned int i=0;
i <
m_SB[jsb].size();
i++) {
195 if (jsb ==
WTSB) {
m_SB[jsb][
i] =
new TGCWireTripletSB(); }
196 else if (jsb ==
WDSB) {
m_SB[jsb][
i] =
new TGCWireDoubletSB(); }
197 else if (jsb ==
STSB) {
m_SB[jsb][
i] =
new TGCStripTripletSB();}
198 else if (jsb ==
SDSB) {
m_SB[jsb][
i] =
new TGCStripDoubletSB();}
199 m_SB[jsb][
i]->setId(connection->getSBToHPB()->getId(jsb,
i));
200 m_SB[jsb][
i]->setType(jsb);
210 m_HPB[jhp].resize(connection->getHPBToSL()->getNumber(jhp));
211 for (
unsigned int i=0;
i <
m_HPB[jhp].size();
i++) {
212 if(jhp ==
WHPB)
m_HPB[jhp][
i] =
new TGCWireHighPtBoard;
213 if(jhp ==
SHPB)
m_HPB[jhp][
i] =
new TGCStripHighPtBoard;
214 m_HPB[jhp][
i]->setId(connection->getHPBToSL()->getId(jhp,
i));
215 m_HPB[jhp][
i]->setType(jhp);
225 for (
int jpp=0; jpp <=
SDPP; jpp++) {
229 m_PP[jpp].resize(connection->getPPToSB()->getNumber(jpp));
230 for (
unsigned int i=0;
i <
m_PP[jpp].size();
i++) {
233 m_PP[jpp][
i]->setId(connection->getPPToSB()->getId(jpp,
i));
234 m_PP[jpp][
i]->setType(jpp);
240 for (
int jsb=0; jsb<=
SDSB; jsb+=1) {
245 m_SB[jsb][0] =
new TGCInnerSB();
246 m_SB[jsb][0]->setType(jsb);
248 m_SB[jsb][0]->setId(0);
◆ tgcArgs() [1/2]
◆ tgcArgs() [2/2]
◆ TGCTimingManager::startHighPtBoard
◆ TGCTimingManager::startPatchPanel
◆ TGCTimingManager::startSectorLogic
◆ TGCTimingManager::startSlaveBoard
◆ m_ASDToPP
◆ m_BIS78
◆ m_dbMgr
◆ m_forwardBackward
◆ m_HPB
◆ m_id
int LVL1TGCTrigger::TGCSector::m_id {0} |
|
private |
◆ m_moduleId
int LVL1TGCTrigger::TGCSector::m_moduleId |
|
private |
◆ m_NSW
◆ m_numberOfHit
int LVL1TGCTrigger::TGCSector::m_numberOfHit |
|
private |
◆ m_octantId
int LVL1TGCTrigger::TGCSector::m_octantId |
|
private |
◆ m_PP
◆ m_regionType
◆ m_SB
◆ m_sideId
◆ m_SL
◆ m_tgcArgs
◆ m_TMDB
The documentation for this class was generated from the following files:
TGCRegionType getRegion() const
class TGCPatchPanel TGCWireTripletPP
int getPatchPanelType(TGCSignalType signal, int layer) const
void connectPPToSB(const TGCConnectionPPToSB *connection)
void setBIS78(std::shared_ptr< const LVL1TGC::TGCBIS78 > bis78)
class TGCPatchPanel TGCStripTripletPP
const TGCDatabaseManager * m_dbMgr
class TGCPatchPanel TGCWireDoubletPP
void setNSW(std::shared_ptr< const LVL1TGC::TGCNSW > nsw)
TGCForwardBackwardType m_forwardBackward
std::shared_ptr< const LVL1TGC::TGCTMDB > m_TMDB
void connectHPBToSL(const TGCConnectionHPBToSL *connection)
TGCSSCController * getSSCController()
std::vector< TGCHighPtBoard * > m_HPB[NumberOfHighPtBoardType]
msgSvc
Provide convenience handles for various services.
void setTMDB(std::shared_ptr< const LVL1TGC::TGCTMDB > tmdb)
LVL1TGC::TGCSide m_sideId
std::vector< TGCPatchPanel * > m_PP[NumberOfPatchPanelType]
void setWireHighPtBoard(int port, TGCHighPtBoard *highPtBoard)
void setModule(const TGCConnectionPPToSL *connection)
class TGCPatchPanel TGCStripDoubletPP
void connectSBToHPB(const TGCConnectionSBToHPB *connection)
const TGCConnectionASDToPP * m_ASDToPP[NumberOfPatchPanelType]
std::vector< TGCSlaveBoard * > m_SB[NumberOfSlaveBoardType]
void setNumberOfWireHighPtBoard(int iData)
TGCRegionType m_regionType
class TGCPatchPanel TGCStripInnerPP
void setStripHighPtBoard(TGCHighPtBoard *highPtBoard)
class TGCPatchPanel TGCWireInnerPP
TGCSide
The sides of TGC (A- or C-side)
@ NumberOfHighPtBoardType
void connectAdjacentHPB()
std::shared_ptr< const LVL1TGC::TGCNSW > m_NSW
std::shared_ptr< const LVL1TGC::TGCBIS78 > m_BIS78
int getConnection(const int sideId, const int layer, const int chamber, const int line, int *pp, int *connector, int *channel) const