ATLAS Offline Software
Public Types | Public Member Functions | Protected Attributes | List of all members
TGCIdBase Class Reference

#include <TGCIdBase.h>

Inheritance diagram for TGCIdBase:
Collaboration diagram for TGCIdBase:

Public Types

enum  IdType { NoIdType =-1, Channel, Module, MaxIdType }
 
enum  SideType { NoSideType =-1, Aside, Cside, MaxSideType }
 
enum  ModuleType {
  NoModuleType =-1, WD, SD, WT,
  ST, WI, SI, MaxModuleType
}
 
enum  SignalType { NoSignalType =-1, Wire, Strip, MaxSignalType }
 
enum  MultipletType {
  NoMultipletType =-1, Doublet, Triplet, Inner,
  MaxChamberType
}
 
enum  RegionType { NoRegionType =-1, Endcap, Forward, MaxRegionType }
 
enum  ChannelIdType {
  NoChannelIdType =-1, ASDIn, ASDOut, PPIn,
  PPOut, SLBIn, SLBOut, HPBIn,
  MaxChannelIdType
}
 

Public Member Functions

 TGCIdBase (IdType vtype=NoIdType)
 
virtual ~TGCIdBase (void)
 
IdType getIdType (void) const
 
ChannelIdType getChannelIdType (void) const
 
SideType getSideType (void) const
 
ModuleType getModuleType (void) const
 
SignalType getSignalType (void) const
 
MultipletType getMultipletType (void) const
 
RegionType getRegionType (void) const
 
int getStation (void) const
 
int getOctant (void) const
 
virtual int getSector (void) const
 
int getLayer (void) const
 
int getChamber (void) const
 
int getId (void) const
 
int getBlock (void) const
 
virtual int getChannel (void) const
 
int getEvent (void) const
 
int getBunch (void) const
 
bool isAside (void) const
 
bool isCside (void) const
 
bool isStrip (void) const
 
bool isWire (void) const
 
bool isTriplet (void) const
 
bool isDoublet (void) const
 
bool isInner (void) const
 
bool isForward (void) const
 
bool isEndcap (void) const
 
bool isBackward (void) const
 
void setIdType (IdType vtype)
 
void setChannelIdType (ChannelIdType vtype)
 
virtual void setSideType (SideType vside)
 
virtual void setModuleType (ModuleType vmodule)
 
virtual void setSignalType (SignalType vsignal)
 
virtual void setMultipletType (MultipletType vmultiplet)
 
virtual void setRegionType (RegionType vregion)
 
virtual void setStation (int vstation)
 
virtual void setOctant (int voctant)
 
virtual void setSector (int vsector)
 
virtual void setLayer (int vlayer)
 
virtual void setChamber (int vchamber)
 
virtual void setId (int vid)
 
virtual void setBlock (int vblock)
 
virtual void setChannel (int vchannel)
 
virtual void setEvent (int vevent)
 
virtual void setBunch (int vbunch)
 
virtual bool isValid () const
 
virtual int getGasGap (void) const
 
virtual int getSectorInOctant (void) const
 
virtual int getSectorModule (void) const
 

Protected Attributes

IdType m_idType
 
ChannelIdType m_channelType
 
SideType m_side
 
ModuleType m_module
 
SignalType m_signal
 
MultipletType m_multiplet
 
RegionType m_region
 
int m_station
 
int m_octant
 
int m_sector
 
int m_layer
 
int m_chamber
 
int m_id
 
int m_block
 
int m_channel
 
int m_event
 
int m_bunch
 

Detailed Description

Definition at line 17 of file TGCIdBase.h.

Member Enumeration Documentation

◆ ChannelIdType

Enumerator
NoChannelIdType 
ASDIn 
ASDOut 
PPIn 
PPOut 
SLBIn 
SLBOut 
HPBIn 
MaxChannelIdType 

Definition at line 42 of file TGCIdBase.h.

44  :

◆ IdType

Enumerator
NoIdType 
Channel 
Module 
MaxIdType 

Definition at line 27 of file TGCIdBase.h.

28  {NoSignalType=-1, Wire,Strip,

◆ ModuleType

Enumerator
NoModuleType 
WD 
SD 
WT 
ST 
WI 
SI 
MaxModuleType 

Definition at line 33 of file TGCIdBase.h.

35  {NoChannelIdType=-1,

◆ MultipletType

Enumerator
NoMultipletType 
Doublet 
Triplet 
Inner 
MaxChamberType 

Definition at line 37 of file TGCIdBase.h.

44  :

◆ RegionType

Enumerator
NoRegionType 
Endcap 
Forward 
MaxRegionType 

Definition at line 39 of file TGCIdBase.h.

44  :

◆ SideType

Enumerator
NoSideType 
Aside 
Cside 
MaxSideType 

Definition at line 31 of file TGCIdBase.h.

◆ SignalType

Enumerator
NoSignalType 
Wire 
Strip 
MaxSignalType 

Definition at line 35 of file TGCIdBase.h.

Constructor & Destructor Documentation

◆ TGCIdBase()

TGCIdBase::TGCIdBase ( TGCIdBase::IdType  vtype = NoIdType)

Definition at line 8 of file TGCIdBase.cxx.

8  :
15  m_station(-1),
16  m_octant(-1),
17  m_sector(-1),
18  m_layer(-1),
19  m_chamber(-1),
20  m_id(-1),
21  m_block(-1),
22  m_channel(-1),
23  m_event(-1),
24  m_bunch(-1)
25 {
26  m_idType = vtype;
27 }

◆ ~TGCIdBase()

TGCIdBase::~TGCIdBase ( void  )
virtual

Definition at line 29 of file TGCIdBase.cxx.

29 {}

Member Function Documentation

◆ getBlock()

int TGCIdBase::getBlock ( void  ) const

Definition at line 49 of file TGCIdBase.cxx.

49 { return m_block; }

◆ getBunch()

int TGCIdBase::getBunch ( void  ) const

Definition at line 52 of file TGCIdBase.cxx.

52 { return m_bunch; }

◆ getChamber()

int TGCIdBase::getChamber ( void  ) const

Definition at line 47 of file TGCIdBase.cxx.

47 { return m_chamber; }

◆ getChannel()

int TGCIdBase::getChannel ( void  ) const
virtual

Definition at line 50 of file TGCIdBase.cxx.

50 { return m_channel; }

◆ getChannelIdType()

TGCIdBase::ChannelIdType TGCIdBase::getChannelIdType ( void  ) const

Definition at line 36 of file TGCIdBase.cxx.

36 { return m_channelType; }

◆ getEvent()

int TGCIdBase::getEvent ( void  ) const

Definition at line 51 of file TGCIdBase.cxx.

51 { return m_event; }

◆ getGasGap()

int TGCIdBase::getGasGap ( void  ) const
virtual

Reimplemented in MuonTGC_Cabling::TGCId.

Definition at line 113 of file TGCIdBase.cxx.

113 {return -1;}

◆ getId()

int TGCIdBase::getId ( void  ) const

Definition at line 48 of file TGCIdBase.cxx.

48 { return m_id; }

◆ getIdType()

TGCIdBase::IdType TGCIdBase::getIdType ( void  ) const

Definition at line 34 of file TGCIdBase.cxx.

34 { return m_idType; }

◆ getLayer()

int TGCIdBase::getLayer ( void  ) const

Definition at line 46 of file TGCIdBase.cxx.

46 { return m_layer; }

◆ getModuleType()

TGCIdBase::ModuleType TGCIdBase::getModuleType ( void  ) const

Definition at line 38 of file TGCIdBase.cxx.

38 { return m_module; }

◆ getMultipletType()

TGCIdBase::MultipletType TGCIdBase::getMultipletType ( void  ) const

Definition at line 40 of file TGCIdBase.cxx.

40 { return m_multiplet; }

◆ getOctant()

int TGCIdBase::getOctant ( void  ) const

Definition at line 44 of file TGCIdBase.cxx.

44 { return m_octant; }

◆ getRegionType()

TGCIdBase::RegionType TGCIdBase::getRegionType ( void  ) const

Definition at line 41 of file TGCIdBase.cxx.

41 { return m_region; }

◆ getSector()

int TGCIdBase::getSector ( void  ) const
virtual

Reimplemented in MuonTGC_Cabling::TGCChannelASDIn.

Definition at line 45 of file TGCIdBase.cxx.

45 { return m_sector; }

◆ getSectorInOctant()

int TGCIdBase::getSectorInOctant ( void  ) const
virtual

Reimplemented in MuonTGC_Cabling::TGCId.

Definition at line 114 of file TGCIdBase.cxx.

114 {return -1;}

◆ getSectorModule()

int TGCIdBase::getSectorModule ( void  ) const
virtual

Reimplemented in MuonTGC_Cabling::TGCId.

Definition at line 115 of file TGCIdBase.cxx.

115 {return -1;}

◆ getSideType()

TGCIdBase::SideType TGCIdBase::getSideType ( void  ) const

Definition at line 37 of file TGCIdBase.cxx.

37 { return m_side; }

◆ getSignalType()

TGCIdBase::SignalType TGCIdBase::getSignalType ( void  ) const

Definition at line 39 of file TGCIdBase.cxx.

39 { return m_signal; }

◆ getStation()

int TGCIdBase::getStation ( void  ) const

Definition at line 43 of file TGCIdBase.cxx.

43 { return m_station; }

◆ isAside()

bool TGCIdBase::isAside ( void  ) const

Definition at line 54 of file TGCIdBase.cxx.

54 { return (m_side==Aside); }

◆ isBackward()

bool TGCIdBase::isBackward ( void  ) const

Definition at line 63 of file TGCIdBase.cxx.

63  {
64  if (isEndcap()){
65  if ( !isInner() ) {
66  if(isAside()) return (m_sector%2==1);
67  else return (m_sector%2==0);
68  } else {
69  // EI
70  // Special case of EI11
71  if (m_sector == 15) {
72  if(isAside()) return false;
73  else return true;
74  } else if (m_sector == 16) {
75  if(isAside()) return true;
76  else return false;
77  } else {
78  // A-m_side phi0 F: phi1 F: phi2 B
79  // C-m_side phi0 B: phi1 B: phi2 F
80  if(isAside()) return (m_sector%3==2);
81  else return (m_sector%3!=2);
82  }
83  }
84  } else {
85  if(isAside()) return true; // all Backward
86  else return false; // all Forward
87  }
88 }

◆ isCside()

bool TGCIdBase::isCside ( void  ) const

Definition at line 55 of file TGCIdBase.cxx.

55 { return (m_side==Cside); }

◆ isDoublet()

bool TGCIdBase::isDoublet ( void  ) const

Definition at line 59 of file TGCIdBase.cxx.

59 { return (m_multiplet==Doublet); }

◆ isEndcap()

bool TGCIdBase::isEndcap ( void  ) const

Definition at line 62 of file TGCIdBase.cxx.

62 { return (m_region==Endcap); }

◆ isForward()

bool TGCIdBase::isForward ( void  ) const

Definition at line 61 of file TGCIdBase.cxx.

61 { return (m_region==Forward); }

◆ isInner()

bool TGCIdBase::isInner ( void  ) const

Definition at line 60 of file TGCIdBase.cxx.

60 { return (m_multiplet==Inner); }

◆ isStrip()

bool TGCIdBase::isStrip ( void  ) const

Definition at line 56 of file TGCIdBase.cxx.

56 { return (m_signal==Strip); }

◆ isTriplet()

bool TGCIdBase::isTriplet ( void  ) const

Definition at line 58 of file TGCIdBase.cxx.

58 { return (m_multiplet==Triplet); }

◆ isValid()

bool TGCIdBase::isValid ( ) const
virtual

◆ isWire()

bool TGCIdBase::isWire ( void  ) const

Definition at line 57 of file TGCIdBase.cxx.

57 { return (m_signal==Wire); }

◆ setBlock()

void TGCIdBase::setBlock ( int  vblock)
virtual

Reimplemented in MuonTGC_Cabling::TGCId.

Definition at line 106 of file TGCIdBase.cxx.

106 { m_block = vblock;}

◆ setBunch()

void TGCIdBase::setBunch ( int  vbunch)
virtual

Reimplemented in MuonTGC_Cabling::TGCId.

Definition at line 109 of file TGCIdBase.cxx.

109 {m_bunch = vbunch;}

◆ setChamber()

void TGCIdBase::setChamber ( int  vchamber)
virtual

Reimplemented in MuonTGC_Cabling::TGCId.

Definition at line 104 of file TGCIdBase.cxx.

104 {m_chamber = vchamber;}

◆ setChannel()

void TGCIdBase::setChannel ( int  vchannel)
virtual

Reimplemented in MuonTGC_Cabling::TGCId, and MuonTGC_Cabling::TGCChannelSLBIn.

Definition at line 107 of file TGCIdBase.cxx.

107 {m_channel = vchannel;}

◆ setChannelIdType()

void TGCIdBase::setChannelIdType ( ChannelIdType  vtype)

Definition at line 90 of file TGCIdBase.cxx.

90 {m_channelType = vtype;}

◆ setEvent()

void TGCIdBase::setEvent ( int  vevent)
virtual

Reimplemented in MuonTGC_Cabling::TGCId.

Definition at line 108 of file TGCIdBase.cxx.

108 {m_event = vevent;}

◆ setId()

void TGCIdBase::setId ( int  vid)
virtual

Reimplemented in MuonTGC_Cabling::TGCId.

Definition at line 105 of file TGCIdBase.cxx.

105 { m_id = vid;}

◆ setIdType()

void TGCIdBase::setIdType ( IdType  vtype)

Definition at line 89 of file TGCIdBase.cxx.

89 {m_idType = vtype;}

◆ setLayer()

void TGCIdBase::setLayer ( int  vlayer)
virtual

Reimplemented in MuonTGC_Cabling::TGCId.

Definition at line 103 of file TGCIdBase.cxx.

103 {m_layer=vlayer;}

◆ setModuleType()

void TGCIdBase::setModuleType ( ModuleType  vmodule)
virtual

Reimplemented in MuonTGC_Cabling::TGCId.

Definition at line 94 of file TGCIdBase.cxx.

94 {m_module = vmodule;}

◆ setMultipletType()

void TGCIdBase::setMultipletType ( MultipletType  vmultiplet)
virtual

Reimplemented in MuonTGC_Cabling::TGCId.

Definition at line 96 of file TGCIdBase.cxx.

96 {m_multiplet=vmultiplet;}

◆ setOctant()

void TGCIdBase::setOctant ( int  voctant)
virtual

Reimplemented in MuonTGC_Cabling::TGCId.

Definition at line 100 of file TGCIdBase.cxx.

100 {m_octant = voctant;}

◆ setRegionType()

void TGCIdBase::setRegionType ( RegionType  vregion)
virtual

Reimplemented in MuonTGC_Cabling::TGCId.

Definition at line 97 of file TGCIdBase.cxx.

97 {m_region=vregion;}

◆ setSector()

void TGCIdBase::setSector ( int  vsector)
virtual

Reimplemented in MuonTGC_Cabling::TGCId, and MuonTGC_Cabling::TGCChannelASDIn.

Definition at line 101 of file TGCIdBase.cxx.

101 {m_sector = vsector;}

◆ setSideType()

void TGCIdBase::setSideType ( SideType  vside)
virtual

Reimplemented in MuonTGC_Cabling::TGCId.

Definition at line 93 of file TGCIdBase.cxx.

93 {m_side = vside;}

◆ setSignalType()

void TGCIdBase::setSignalType ( SignalType  vsignal)
virtual

Reimplemented in MuonTGC_Cabling::TGCId.

Definition at line 95 of file TGCIdBase.cxx.

95 {m_signal = vsignal;}

◆ setStation()

void TGCIdBase::setStation ( int  vstation)
virtual

Reimplemented in MuonTGC_Cabling::TGCId.

Definition at line 98 of file TGCIdBase.cxx.

98 {m_station=vstation;}

Member Data Documentation

◆ m_block

int TGCIdBase::m_block
protected

Definition at line 127 of file TGCIdBase.h.

◆ m_bunch

int TGCIdBase::m_bunch
protected

Definition at line 130 of file TGCIdBase.h.

◆ m_chamber

int TGCIdBase::m_chamber
protected

Definition at line 125 of file TGCIdBase.h.

◆ m_channel

int TGCIdBase::m_channel
protected

Definition at line 128 of file TGCIdBase.h.

◆ m_channelType

ChannelIdType TGCIdBase::m_channelType
protected

Definition at line 113 of file TGCIdBase.h.

◆ m_event

int TGCIdBase::m_event
protected

Definition at line 129 of file TGCIdBase.h.

◆ m_id

int TGCIdBase::m_id
protected

Definition at line 126 of file TGCIdBase.h.

◆ m_idType

IdType TGCIdBase::m_idType
protected

Definition at line 112 of file TGCIdBase.h.

◆ m_layer

int TGCIdBase::m_layer
protected

Definition at line 124 of file TGCIdBase.h.

◆ m_module

ModuleType TGCIdBase::m_module
protected

Definition at line 117 of file TGCIdBase.h.

◆ m_multiplet

MultipletType TGCIdBase::m_multiplet
protected

Definition at line 119 of file TGCIdBase.h.

◆ m_octant

int TGCIdBase::m_octant
protected

Definition at line 122 of file TGCIdBase.h.

◆ m_region

RegionType TGCIdBase::m_region
protected

Definition at line 120 of file TGCIdBase.h.

◆ m_sector

int TGCIdBase::m_sector
protected

Definition at line 123 of file TGCIdBase.h.

◆ m_side

SideType TGCIdBase::m_side
protected

Definition at line 116 of file TGCIdBase.h.

◆ m_signal

SignalType TGCIdBase::m_signal
protected

Definition at line 118 of file TGCIdBase.h.

◆ m_station

int TGCIdBase::m_station
protected

Definition at line 121 of file TGCIdBase.h.


The documentation for this class was generated from the following files:
TGCIdBase::m_idType
IdType m_idType
Definition: TGCIdBase.h:112
TGCIdBase::m_bunch
int m_bunch
Definition: TGCIdBase.h:130
TGCIdBase::m_chamber
int m_chamber
Definition: TGCIdBase.h:125
TGCIdBase::Endcap
@ Endcap
Definition: TGCIdBase.h:39
TGCIdBase::NoRegionType
@ NoRegionType
Definition: TGCIdBase.h:39
TGCIdBase::isInner
bool isInner(void) const
Definition: TGCIdBase.cxx:60
TGCIdBase::Wire
@ Wire
Definition: TGCIdBase.h:35
TGCIdBase::m_multiplet
MultipletType m_multiplet
Definition: TGCIdBase.h:119
TGCIdBase::Inner
@ Inner
Definition: TGCIdBase.h:37
TGCIdBase::Strip
@ Strip
Definition: TGCIdBase.h:35
TGCIdBase::Aside
@ Aside
Definition: TGCIdBase.h:31
TGCIdBase::NoChannelIdType
@ NoChannelIdType
Definition: TGCIdBase.h:42
TGCIdBase::m_octant
int m_octant
Definition: TGCIdBase.h:122
TGCIdBase::PPIn
@ PPIn
Definition: TGCIdBase.h:43
TGCIdBase::m_sector
int m_sector
Definition: TGCIdBase.h:123
TGCIdBase::m_signal
SignalType m_signal
Definition: TGCIdBase.h:118
TGCIdBase::SLBIn
@ SLBIn
Definition: TGCIdBase.h:43
TGCIdBase::m_channelType
ChannelIdType m_channelType
Definition: TGCIdBase.h:113
TGCIdBase::PPOut
@ PPOut
Definition: TGCIdBase.h:43
TGCIdBase::m_module
ModuleType m_module
Definition: TGCIdBase.h:117
TGCIdBase::NoModuleType
@ NoModuleType
Definition: TGCIdBase.h:33
TGCIdBase::HPBIn
@ HPBIn
Definition: TGCIdBase.h:43
TGCIdBase::ASDOut
@ ASDOut
Definition: TGCIdBase.h:43
TGCIdBase::ASDIn
@ ASDIn
Definition: TGCIdBase.h:43
TGCIdBase::isAside
bool isAside(void) const
Definition: TGCIdBase.cxx:54
TGCIdBase::isEndcap
bool isEndcap(void) const
Definition: TGCIdBase.cxx:62
TGCIdBase::m_layer
int m_layer
Definition: TGCIdBase.h:124
TGCIdBase::NoMultipletType
@ NoMultipletType
Definition: TGCIdBase.h:37
TGCIdBase::Doublet
@ Doublet
Definition: TGCIdBase.h:37
TGCIdBase::m_station
int m_station
Definition: TGCIdBase.h:121
TGCIdBase::m_event
int m_event
Definition: TGCIdBase.h:129
TGCIdBase::SLBOut
@ SLBOut
Definition: TGCIdBase.h:43
TGCIdBase::NoSignalType
@ NoSignalType
Definition: TGCIdBase.h:35
TGCIdBase::m_side
SideType m_side
Definition: TGCIdBase.h:116
TGCIdBase::m_id
int m_id
Definition: TGCIdBase.h:126
TGCIdBase::MaxSignalType
@ MaxSignalType
Definition: TGCIdBase.h:36
TGCIdBase::Cside
@ Cside
Definition: TGCIdBase.h:31
TGCIdBase::NoSideType
@ NoSideType
Definition: TGCIdBase.h:31
TGCIdBase::m_block
int m_block
Definition: TGCIdBase.h:127
TGCIdBase::Forward
@ Forward
Definition: TGCIdBase.h:39
TGCIdBase::m_region
RegionType m_region
Definition: TGCIdBase.h:120
TGCIdBase::Triplet
@ Triplet
Definition: TGCIdBase.h:37
TGCIdBase::m_channel
int m_channel
Definition: TGCIdBase.h:128