ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_Bracket.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// 14th Aug 2005 S.Mima modified.
7//
8#include "SCT_Bracket.h"
9
10#include "SCT_MaterialManager.h"
11
12#include "SCT_GeometryManager.h"
14
15#include "GeoModelKernel/GeoBox.h"
16#include "GeoModelKernel/GeoLogVol.h"
17#include "GeoModelKernel/GeoPhysVol.h"
18#include "GeoModelKernel/GeoMaterial.h"
19#include "GeoModelKernel/Units.h"
20
21SCT_Bracket::SCT_Bracket(const std::string & name,
22 InDetDD::SCT_DetectorManager* detectorManager,
23 SCT_GeometryManager* geometryManager,
24 SCT_MaterialManager* materials)
25 : SCT_SharedComponentFactory(name, detectorManager, geometryManager, materials)
26{
29}
30
31
32void
34{
35 const SCT_BarrelParameters * parameters = m_geometryManager->barrelParameters();
36
37 m_material = m_materials->getMaterial(parameters->bracketMaterial());
38 m_thickness = parameters->bracketThickness();
39 m_length = parameters->bracketLength();
40 m_width = parameters->bracketWidth();
41}
42
43GeoVPhysVol *
45{
46
47 // Build the Bracket. Just a simple box.
48 // Width is in phi-direction.
49 // Length is in z-direction.
50
51 const GeoBox * bracketShape = new GeoBox(0.5*m_thickness, 0.5*m_width, 0.5*m_length);
52 const GeoLogVol *bracketLog = new GeoLogVol(getName(), bracketShape, m_material);
53 GeoPhysVol * bracket = new GeoPhysVol(bracketLog);
54
55 return bracket;
56}
Dedicated detector manager extending the functionality of the SiDetectorManager with dedicated SCT in...
double m_width
Definition SCT_Bracket.h:38
double m_thickness
Definition SCT_Bracket.h:37
virtual GeoVPhysVol * build()
void getParameters()
double m_length
Definition SCT_Bracket.h:39
SCT_Bracket(const std::string &name, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials)
const GeoMaterial * m_material
Definition SCT_Bracket.h:36
const std::string & getName() const
SCT_GeometryManager * m_geometryManager
SCT_MaterialManager * m_materials
SCT_SharedComponentFactory(const std::string &name, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials=nullptr)