ATLAS Offline Software
Loading...
Searching...
No Matches
SiCluster.icc
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5namespace InDet {
6// return width:
7inline const InDet::SiWidth&
8SiCluster::width() const
9{
10 return m_width;
11}
12// return globalPosition:
13inline const Amg::Vector3D&
14SiCluster::globalPosition() const
15{
16 return m_globalPosition;
17}
18// set gangedPixel:
19inline void
20SiCluster::setGangedPixel(bool ganged)
21{
22 m_gangedPixel = ganged;
23}
24// get gangedPixel:
25inline bool
26SiCluster::gangedPixel() const
27{
28 return m_gangedPixel;
29}
30
31inline Trk::PrepRawDataType
32SiCluster::prdType() const
33{
34 return Trk::PrepRawDataType::SiCluster;
35}
36
37inline const InDetDD::SiDetectorElement*
38SiCluster::detectorElement() const
39{
40 return m_detEl;
41}
42
43inline void
44SiCluster::setDetectorElement(const InDetDD::SiDetectorElement* detEl)
45{
46 m_detEl = detEl;
47 if (m_detEl) {
48 m_globalPosition =
49 m_detEl->surface(identify()).localToGlobal(localPosition());
50 }
51}
52
53
54}