ATLAS Offline Software
Loading...
Searching...
No Matches
sTGCDetectorDescription.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5
10
11#include <sstream>
12
13
16 AGDDDetector(s,"sTGC"),
17 m_yCutout(0),
18 m_ds (ds)
19{
20}
21
23{
24 m_ds.RegisterDetector(this);
25}
26
27
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}
48
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}
AGDDDetector(const std::string &s)
const std::string & subType() const
virtual void SetDetectorAddress(AGDDDetectorPositioner *) override
sTGCDetectorDescription(const std::string &s, AGDDDetectorStore &ds)
MuonGM::sTGC_Technology * GetTechnology()