ATLAS Offline Software
Loading...
Searching...
No Matches
AGDDsTGC.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5
6
12
13#include "GeoModelKernel/GeoTrd.h"
14#include "GeoModelKernel/GeoShape.h"
15#include "GeoModelKernel/GeoLogVol.h"
16#include "GeoModelKernel/GeoPhysVol.h"
17#include "GeoModelKernel/GeoFullPhysVol.h"
18#include "GeoModelKernel/GeoMaterial.h"
19
21#include "GaudiKernel/ISvcLocator.h"
22#include "GaudiKernel/Bootstrap.h"
24
26#include "MuonGeoModel/sTGC.h"
27#include "MuonGeoModel/MYSQL.h"
28
29#include <sstream>
30
31using MuonGM::MYSQL;
32
33
34AGDDsTGC::AGDDsTGC(const std::string& s,
38 : sTGCDetectorDescription(s,ds),AGDDVolume(s,vs,ss,true)
39{
40 Register();
41}
42
43void AGDDsTGC::CreateSolid (const AGDDBuilder& /*builder*/)
44{
45
46}
47
49{
50
51 MuonGM::sTGCComponent stgc_comp;
52 stgc_comp.name=tech;
53 stgc_comp.dx1=small_x();
54 stgc_comp.dx2=large_x();
55 stgc_comp.dy=y();
56 stgc_comp.subType=subType();
57 stgc_comp.yCutout=yCutout();
59
60 MuonGM::sTGC cham(&stgc_comp);
61 // We have IsSensitiveVolume true, so we want a GeoFulPhysVol here.
62 GeoFullPhysVol *vvv=cham.build(builder.GetMaterialManager(), 1);
63
64 CreateSolid (builder);
65
66 if (!GetVolume())
67 {
68 SetVolume(vvv);
69 }
70}
71
static Double_t ss
std::string tech
double small_x() const
double large_x() const
const std::string & subType() const
double y() const
AGDDVolume(const std::string &s, AGDDVolumeStore &vs, AGDDSectionStore &ss, bool v=false)
void * GetVolume()
Definition AGDDVolume.h:32
void SetVolume(void *p)
Definition AGDDVolume.h:35
AGDDsTGC(const std::string &s, AGDDDetectorStore &ds, AGDDVolumeStore &vs, AGDDSectionStore &ss)
Definition AGDDsTGC.cxx:34
virtual void CreateSolid(const AGDDBuilder &builder) override
Definition AGDDsTGC.cxx:43
virtual void CreateVolume(AGDDBuilder &builder) override
Definition AGDDsTGC.cxx:48
std::string name
Definition Component.h:18
GeoFullPhysVol * build(StoredMaterialManager &matManager, int minimalgeo)
Definition sTGC.cxx:52
sTGCDetectorDescription(const std::string &s, AGDDDetectorStore &ds)