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

#include <sTGCDetectorDescription.h>

Inheritance diagram for sTGCDetectorDescription:
Collaboration diagram for sTGCDetectorDescription:

Public Member Functions

 sTGCDetectorDescription (const std::string &s, AGDDDetectorStore &ds)
 
void Register ()
 
virtual void SetXYZ (const std::vector< double > &v) override
 
double sWidth () const
 
double lWidth () const
 
double Length () const
 
double Tck () const
 
void yCutout (double y)
 
double yCutout () const
 
void stripPitch (double y)
 
double stripPitch () const
 
void wirePitch (double y)
 
double wirePitch () const
 
void stripWidth (double y)
 
double stripWidth () const
 
void yCutoutCathode (double y)
 
double yCutoutCathode () const
 
void xFrame (double y)
 
double xFrame () const
 
void ysFrame (double y)
 
double ysFrame () const
 
void ylFrame (double y)
 
double ylFrame () const
 
sTGCReadoutParametersGetReadoutParameters ()
 
MuonGM::sTGC_TechnologyGetTechnology ()
 
void small_x (double x)
 
double small_x () const
 
void large_x (double x)
 
double large_x () const
 
void y (double yval)
 
double y () const
 
void z (double zval)
 
double z () const
 
void subType (const std::string &s)
 
const std::string & subType () const
 
const std::string & GetName () const
 
const std::string & DetectorType () const
 
const std::string & DetectorID () const
 
void SetAddressAndPosition (AGDDDetectorPositioner *)
 
std::vector< AGDDDetectorPositioner * > & GetDetectorPositioners ()
 

Public Attributes

sTGCReadoutParameters roParameters
 
std::string tech
 

Protected Member Functions

virtual void SetDetectorAddress (AGDDDetectorPositioner *) override
 
GeoMaterial * GetMMMaterial (std::string)
 
void AddDetectorPosition (AGDDDetectorPositioner *p)
 

Protected Attributes

double m_yCutout {0.}
 
double m_stripPitch {0.}
 
double m_wirePitch {0.}
 
double m_stripWidth {0.}
 
double m_yCutoutCathode {0.}
 
double m_xFrame {0.}
 
double m_ysFrame {0.}
 
double m_ylFrame {0.}
 
AGDDDetectorStorem_ds
 
double m_small_x
 
double m_large_x
 
double m_y
 
double m_z
 
std::string m_detectorType
 
std::string m_detectorID
 
std::string m_sType
 
std::vector< AGDDDetectorPositioner * > m_detectorPositions
 
std::string m_name
 

Detailed Description

Definition at line 51 of file sTGCDetectorDescription.h.

Constructor & Destructor Documentation

◆ sTGCDetectorDescription()

sTGCDetectorDescription::sTGCDetectorDescription ( const std::string &  s,
AGDDDetectorStore ds 
)

Definition at line 14 of file sTGCDetectorDescription.cxx.

15  :
16  AGDDDetector(s,"sTGC"),
17  m_yCutout(0),
18  m_ds (ds)
19 {
20 }

Member Function Documentation

◆ AddDetectorPosition()

void AGDDDetector::AddDetectorPosition ( AGDDDetectorPositioner p)
protectedinherited

Definition at line 19 of file AGDDDetector.cxx.

20 {
21  m_detectorPositions.push_back(p);
22 }

◆ DetectorID()

const std::string& AGDDDetector::DetectorID ( ) const
inlineinherited

Definition at line 43 of file AGDDDetector.h.

43 {return m_detectorID;}

◆ DetectorType()

const std::string& AGDDDetector::DetectorType ( ) const
inlineinherited

Definition at line 42 of file AGDDDetector.h.

42 {return m_detectorType;}

◆ GetDetectorPositioners()

std::vector< AGDDDetectorPositioner * > & AGDDDetector::GetDetectorPositioners ( )
inherited

Definition at line 14 of file AGDDDetector.cxx.

15 {
16  return m_detectorPositions;
17 }

◆ GetMMMaterial()

GeoMaterial* AGDDDetector::GetMMMaterial ( std::string  )
protectedinherited

◆ GetName()

const std::string& AGDDDetector::GetName ( ) const
inlineinherited

Definition at line 40 of file AGDDDetector.h.

40 {return m_name;}

◆ GetReadoutParameters()

sTGCReadoutParameters& sTGCDetectorDescription::GetReadoutParameters ( )
inline

Definition at line 101 of file sTGCDetectorDescription.h.

101 {return roParameters;}

◆ GetTechnology()

MuonGM::sTGC_Technology * sTGCDetectorDescription::GetTechnology ( )

Definition at line 49 of file sTGCDetectorDescription.cxx.

50 {
52  dynamic_cast<MuonGM::sTGC_Technology*>(m_ds.GetTechnology("sTGC_1")); //This needs to be the tech name not the chamber name
53 
54  return t;
55 }

◆ large_x() [1/2]

double AGDDDetector::large_x ( ) const
inlineinherited

Definition at line 34 of file AGDDDetector.h.

34 {return m_large_x;}

◆ large_x() [2/2]

void AGDDDetector::large_x ( double  x)
inlineinherited

Definition at line 29 of file AGDDDetector.h.

29 {m_large_x=x;}

◆ Length()

double sTGCDetectorDescription::Length ( ) const
inline

Definition at line 72 of file sTGCDetectorDescription.h.

72 {return y();}

◆ lWidth()

double sTGCDetectorDescription::lWidth ( ) const
inline

Definition at line 71 of file sTGCDetectorDescription.h.

71 {return large_x();}

◆ Register()

void sTGCDetectorDescription::Register ( )

Definition at line 22 of file sTGCDetectorDescription.cxx.

23 {
24  m_ds.RegisterDetector(this);
25 }

◆ SetAddressAndPosition()

void AGDDDetector::SetAddressAndPosition ( AGDDDetectorPositioner p)
inherited

Definition at line 8 of file AGDDDetector.cxx.

9 {
12 }

◆ SetDetectorAddress()

void sTGCDetectorDescription::SetDetectorAddress ( AGDDDetectorPositioner p)
overrideprotectedvirtual

Implements AGDDDetector.

Definition at line 28 of file sTGCDetectorDescription.cxx.

29 {
30  //std::cout<<"This is AGDDsTGC::SetDetectorAddress "<<GetName()<<" "<<
31  // m_sType;
32  p->ID.detectorType="sTGC";
33  p->theDetector=this;
34  std::stringstream stringone;
35  char side='A';
36  if (p->ID.sideIndex<0) side='C';
37  int ctype=0;
38  int ml=1;
39  std::string_view subt = subType();
40  if (subt[1]=='S' && subt[3]=='P') ml=2;
41  else if (subt[1]=='L' && subt[3]=='C') ml=2;
42  if (subt[1]=='S') ctype=3;
43  else if (subt[1]=='L') ctype=1;
44  stringone<<"sTG"<<ctype<<'-'<<subt.substr(2,1)<<'-'<<ml<<"-phi"<<p->ID.phiIndex+1<<side<<std::endl;
45  //std::cout<<" stringone "<<stringone.str()<<std::endl;
46  p->ID.detectorAddress=stringone.str();
47 }

◆ SetXYZ()

virtual void sTGCDetectorDescription::SetXYZ ( const std::vector< double > &  v)
inlineoverridevirtual

Reimplemented from AGDDDetector.

Definition at line 57 of file sTGCDetectorDescription.h.

58  {
59  small_x(v[0]);
60  large_x(v[1]);
61  y(v[2]);
62  z(v[3]);
63  m_yCutout=v[4];
64  m_stripPitch=v[5];
65  m_wirePitch=v[6];
66  m_stripWidth=v[7];
68  }

◆ small_x() [1/2]

double AGDDDetector::small_x ( ) const
inlineinherited

Definition at line 33 of file AGDDDetector.h.

33 {return m_small_x;}

◆ small_x() [2/2]

void AGDDDetector::small_x ( double  x)
inlineinherited

Definition at line 28 of file AGDDDetector.h.

28 {m_small_x=x;}

◆ stripPitch() [1/2]

double sTGCDetectorDescription::stripPitch ( ) const
inline

Definition at line 79 of file sTGCDetectorDescription.h.

79 {return m_stripPitch;}

◆ stripPitch() [2/2]

void sTGCDetectorDescription::stripPitch ( double  y)
inline

Definition at line 78 of file sTGCDetectorDescription.h.

78 {m_stripPitch=y;}

◆ stripWidth() [1/2]

double sTGCDetectorDescription::stripWidth ( ) const
inline

Definition at line 85 of file sTGCDetectorDescription.h.

85 {return m_stripWidth;}

◆ stripWidth() [2/2]

void sTGCDetectorDescription::stripWidth ( double  y)
inline

Definition at line 84 of file sTGCDetectorDescription.h.

84 {m_stripWidth=y;}

◆ subType() [1/2]

const std::string& AGDDDetector::subType ( ) const
inlineinherited

Definition at line 37 of file AGDDDetector.h.

37 {return m_sType;}

◆ subType() [2/2]

void AGDDDetector::subType ( const std::string &  s)
inlineinherited

Definition at line 32 of file AGDDDetector.h.

32 {m_sType=s;}

◆ sWidth()

double sTGCDetectorDescription::sWidth ( ) const
inline

Definition at line 70 of file sTGCDetectorDescription.h.

70 {return small_x();}

◆ Tck()

double sTGCDetectorDescription::Tck ( ) const
inline

Definition at line 73 of file sTGCDetectorDescription.h.

73 {return z();}

◆ wirePitch() [1/2]

double sTGCDetectorDescription::wirePitch ( ) const
inline

Definition at line 82 of file sTGCDetectorDescription.h.

82 {return m_wirePitch;}

◆ wirePitch() [2/2]

void sTGCDetectorDescription::wirePitch ( double  y)
inline

Definition at line 81 of file sTGCDetectorDescription.h.

81 {m_wirePitch=y;}

◆ xFrame() [1/2]

double sTGCDetectorDescription::xFrame ( ) const
inline

Definition at line 91 of file sTGCDetectorDescription.h.

91 {return m_xFrame;}

◆ xFrame() [2/2]

void sTGCDetectorDescription::xFrame ( double  y)
inline

Definition at line 90 of file sTGCDetectorDescription.h.

90 {m_xFrame=y;}

◆ y() [1/2]

double AGDDDetector::y ( ) const
inlineinherited

Definition at line 35 of file AGDDDetector.h.

35 {return m_y;}

◆ y() [2/2]

void AGDDDetector::y ( double  yval)
inlineinherited

Definition at line 30 of file AGDDDetector.h.

30 {m_y=yval;}

◆ yCutout() [1/2]

double sTGCDetectorDescription::yCutout ( ) const
inline

Definition at line 76 of file sTGCDetectorDescription.h.

76 {return m_yCutout;}

◆ yCutout() [2/2]

void sTGCDetectorDescription::yCutout ( double  y)
inline

Definition at line 75 of file sTGCDetectorDescription.h.

75 {m_yCutout=y;}

◆ yCutoutCathode() [1/2]

double sTGCDetectorDescription::yCutoutCathode ( ) const
inline

Definition at line 88 of file sTGCDetectorDescription.h.

88 {return m_yCutoutCathode;}

◆ yCutoutCathode() [2/2]

void sTGCDetectorDescription::yCutoutCathode ( double  y)
inline

Definition at line 87 of file sTGCDetectorDescription.h.

◆ ylFrame() [1/2]

double sTGCDetectorDescription::ylFrame ( ) const
inline

Definition at line 97 of file sTGCDetectorDescription.h.

97 {return m_ylFrame;}

◆ ylFrame() [2/2]

void sTGCDetectorDescription::ylFrame ( double  y)
inline

Definition at line 96 of file sTGCDetectorDescription.h.

96 {m_ylFrame=y;}

◆ ysFrame() [1/2]

double sTGCDetectorDescription::ysFrame ( ) const
inline

Definition at line 94 of file sTGCDetectorDescription.h.

94 {return m_ysFrame;}

◆ ysFrame() [2/2]

void sTGCDetectorDescription::ysFrame ( double  y)
inline

Definition at line 93 of file sTGCDetectorDescription.h.

93 {m_ysFrame=y;}

◆ z() [1/2]

double AGDDDetector::z ( ) const
inlineinherited

Definition at line 36 of file AGDDDetector.h.

36 {return m_z;}

◆ z() [2/2]

void AGDDDetector::z ( double  zval)
inlineinherited

Definition at line 31 of file AGDDDetector.h.

31 {m_z=zval;}

Member Data Documentation

◆ m_detectorID

std::string AGDDDetector::m_detectorID
protectedinherited

Definition at line 57 of file AGDDDetector.h.

◆ m_detectorPositions

std::vector<AGDDDetectorPositioner*> AGDDDetector::m_detectorPositions
protectedinherited

Definition at line 66 of file AGDDDetector.h.

◆ m_detectorType

std::string AGDDDetector::m_detectorType
protectedinherited

Definition at line 56 of file AGDDDetector.h.

◆ m_ds

AGDDDetectorStore& sTGCDetectorDescription::m_ds
protected

Definition at line 117 of file sTGCDetectorDescription.h.

◆ m_large_x

double AGDDDetector::m_large_x
protectedinherited

Definition at line 51 of file AGDDDetector.h.

◆ m_name

std::string AGDDDetector::m_name
protectedinherited

Definition at line 68 of file AGDDDetector.h.

◆ m_small_x

double AGDDDetector::m_small_x
protectedinherited

Definition at line 50 of file AGDDDetector.h.

◆ m_stripPitch

double sTGCDetectorDescription::m_stripPitch {0.}
protected

Definition at line 108 of file sTGCDetectorDescription.h.

◆ m_stripWidth

double sTGCDetectorDescription::m_stripWidth {0.}
protected

Definition at line 110 of file sTGCDetectorDescription.h.

◆ m_sType

std::string AGDDDetector::m_sType
protectedinherited

Definition at line 59 of file AGDDDetector.h.

◆ m_wirePitch

double sTGCDetectorDescription::m_wirePitch {0.}
protected

Definition at line 109 of file sTGCDetectorDescription.h.

◆ m_xFrame

double sTGCDetectorDescription::m_xFrame {0.}
protected

Definition at line 113 of file sTGCDetectorDescription.h.

◆ m_y

double AGDDDetector::m_y
protectedinherited

Definition at line 52 of file AGDDDetector.h.

◆ m_yCutout

double sTGCDetectorDescription::m_yCutout {0.}
protected

Definition at line 107 of file sTGCDetectorDescription.h.

◆ m_yCutoutCathode

double sTGCDetectorDescription::m_yCutoutCathode {0.}
protected

Definition at line 111 of file sTGCDetectorDescription.h.

◆ m_ylFrame

double sTGCDetectorDescription::m_ylFrame {0.}
protected

Definition at line 115 of file sTGCDetectorDescription.h.

◆ m_ysFrame

double sTGCDetectorDescription::m_ysFrame {0.}
protected

Definition at line 114 of file sTGCDetectorDescription.h.

◆ m_z

double AGDDDetector::m_z
protectedinherited

Definition at line 53 of file AGDDDetector.h.

◆ roParameters

sTGCReadoutParameters sTGCDetectorDescription::roParameters

Definition at line 99 of file sTGCDetectorDescription.h.

◆ tech

std::string AGDDDetector::tech
inherited

Definition at line 38 of file AGDDDetector.h.


The documentation for this class was generated from the following files:
sTGCDetectorDescription::roParameters
sTGCReadoutParameters roParameters
Definition: sTGCDetectorDescription.h:99
checkxAOD.ds
ds
Definition: Tools/PyUtils/bin/checkxAOD.py:257
sTGCDetectorDescription::m_wirePitch
double m_wirePitch
Definition: sTGCDetectorDescription.h:109
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
AGDDDetector::m_sType
std::string m_sType
Definition: AGDDDetector.h:59
AGDDDetector::m_detectorID
std::string m_detectorID
Definition: AGDDDetector.h:57
sTGCDetectorDescription::m_ylFrame
double m_ylFrame
Definition: sTGCDetectorDescription.h:115
AGDDDetector::m_large_x
double m_large_x
Definition: AGDDDetector.h:51
AGDDDetector::y
double y() const
Definition: AGDDDetector.h:35
AGDDDetectorStore::RegisterDetector
void RegisterDetector(AGDDDetector *)
Definition: AGDDDetectorStore.cxx:17
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
AGDDDetector::m_z
double m_z
Definition: AGDDDetector.h:53
x
#define x
sTGCDetectorDescription::m_ds
AGDDDetectorStore & m_ds
Definition: sTGCDetectorDescription.h:117
sTGCDetectorDescription::m_stripWidth
double m_stripWidth
Definition: sTGCDetectorDescription.h:110
AGDDDetector::m_y
double m_y
Definition: AGDDDetector.h:52
AGDDDetector::large_x
double large_x() const
Definition: AGDDDetector.h:34
TRT::Hit::side
@ side
Definition: HitInfo.h:83
AGDDDetector::m_name
std::string m_name
Definition: AGDDDetector.h:68
MuonGM::sTGC_Technology
Definition: MuonAGDDDescription/MuonAGDDDescription/sTGC_Technology.h:16
AGDDDetector::m_small_x
double m_small_x
Definition: AGDDDetector.h:50
AGDDDetector::z
double z() const
Definition: AGDDDetector.h:36
sTGCDetectorDescription::m_ysFrame
double m_ysFrame
Definition: sTGCDetectorDescription.h:114
sTGCDetectorDescription::m_stripPitch
double m_stripPitch
Definition: sTGCDetectorDescription.h:108
sTGCDetectorDescription::m_xFrame
double m_xFrame
Definition: sTGCDetectorDescription.h:113
AGDDDetector::m_detectorPositions
std::vector< AGDDDetectorPositioner * > m_detectorPositions
Definition: AGDDDetector.h:66
AGDDDetector::subType
const std::string & subType() const
Definition: AGDDDetector.h:37
AGDDDetector::AGDDDetector
AGDDDetector(const std::string &s)
Definition: AGDDDetector.h:17
plotting.yearwise_efficiency.yval
float yval
Definition: yearwise_efficiency.py:43
AGDDDetector::small_x
double small_x() const
Definition: AGDDDetector.h:33
AGDDDetectorStore::GetTechnology
AGDDTechnology * GetTechnology(const std::string &s)
Definition: AGDDDetectorStore.h:22
python.PyAthena.v
v
Definition: PyAthena.py:157
AGDDDetector::AddDetectorPosition
void AddDetectorPosition(AGDDDetectorPositioner *p)
Definition: AGDDDetector.cxx:19
sTGCDetectorDescription::m_yCutout
double m_yCutout
Definition: sTGCDetectorDescription.h:107
sTGCDetectorDescription::m_yCutoutCathode
double m_yCutoutCathode
Definition: sTGCDetectorDescription.h:111
AGDDDetector::m_detectorType
std::string m_detectorType
Definition: AGDDDetector.h:56
AGDDDetector::SetDetectorAddress
virtual void SetDetectorAddress(AGDDDetectorPositioner *)=0