ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetDetDescr
TRT_ReadoutGeometry
TRT_ReadoutGeometry
TRT_DetElementLink_xk.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// Header file for class TRT_DetElementLink_xk
8
// (c) ATLAS Detector software
10
// Class for detector elements links
12
// Version 1.0 3/10/2004 I.Gavrilenko
14
15
#ifndef TRT_DetElementLink_xk_H
16
#define TRT_DetElementLink_xk_H
17
18
#include <array>
19
#include <vector>
20
21
#include "
TRT_ReadoutGeometry/TRT_BaseElement.h
"
22
23
namespace
InDet
{
24
25
class
TRT_DetElementLink_xk
{
27
// Public methods:
29
30
public
:
31
class
Used_t
{
32
public
:
33
Used_t
() :
m_used
(false) {}
34
35
bool
used
()
const
{
return
m_used
; }
36
37
void
setUsed
() {
m_used
=
true
; }
38
39
private
:
40
bool
m_used
;
41
};
42
using
TRT_DetElemUsedMap
= std::array<std::vector<std::vector<Used_t> >, 3>;
43
44
TRT_DetElementLink_xk
();
45
TRT_DetElementLink_xk
(
const
InDetDD::TRT_BaseElement
*&,
const
double
*);
46
47
TRT_DetElementLink_xk
(
const
TRT_DetElementLink_xk
&) =
default
;
48
TRT_DetElementLink_xk
(
TRT_DetElementLink_xk
&&) =
default
;
49
50
TRT_DetElementLink_xk
&
operator=
(
const
TRT_DetElementLink_xk
&) =
default
;
51
TRT_DetElementLink_xk
&
operator=
(
TRT_DetElementLink_xk
&&) =
default
;
52
54
// Main methods
56
57
const
InDetDD::TRT_BaseElement
*
detElement
()
const
{
return
m_detelement
; }
58
const
float
&
phi
()
const
{
return
m_phi
; }
59
const
float
&
sin
()
const
{
return
m_sin
; }
60
const
float
&
cos
()
const
{
return
m_cos
; }
61
const
float
&
centerf
()
const
{
return
m_centerf
; }
62
63
protected
:
65
// Protected Data
67
68
const
InDetDD::TRT_BaseElement
*
m_detelement
;
69
float
m_phi
;
70
float
m_sin
;
71
float
m_cos
;
72
float
m_centerf
;
73
75
// Methods
77
};
78
80
// Inline methods
82
83
inline
TRT_DetElementLink_xk::TRT_DetElementLink_xk
() {
84
m_detelement
= 0;
85
m_phi
= 0.;
86
m_sin
= 0.;
87
m_cos
= 0.;
88
m_centerf
= 0.;
89
}
90
91
inline
InDet::TRT_DetElementLink_xk::TRT_DetElementLink_xk
(
92
const
InDetDD::TRT_BaseElement
*& el,
const
double
*
P
) {
93
m_detelement
= el;
// det elements
94
m_phi
= float(
P
[2]);
// azimuthal angle
95
m_sin
= float(
P
[5]);
// sin(phi)
96
m_cos
= float(
P
[6]);
// cos(phi)
97
m_centerf
= float(
P
[18]);
//
98
}
99
100
}
// namespace InDet
101
102
#endif
// TRT_DetElementLink_xk
103
P
static Double_t P(Double_t *tt, Double_t *par)
Definition
LArPhysWaveHECTool.cxx:280
TRT_BaseElement.h
InDetDD::TRT_BaseElement
Virtual base class of TRT readout elements.
Definition
TRT_BaseElement.h:56
InDet::TRT_DetElementLink_xk::Used_t::m_used
bool m_used
Definition
TRT_DetElementLink_xk.h:40
InDet::TRT_DetElementLink_xk::Used_t::Used_t
Used_t()
Definition
TRT_DetElementLink_xk.h:33
InDet::TRT_DetElementLink_xk::Used_t::setUsed
void setUsed()
Definition
TRT_DetElementLink_xk.h:37
InDet::TRT_DetElementLink_xk::Used_t::used
bool used() const
Definition
TRT_DetElementLink_xk.h:35
InDet::TRT_DetElementLink_xk::cos
const float & cos() const
Definition
TRT_DetElementLink_xk.h:60
InDet::TRT_DetElementLink_xk::m_detelement
const InDetDD::TRT_BaseElement * m_detelement
Definition
TRT_DetElementLink_xk.h:68
InDet::TRT_DetElementLink_xk::m_cos
float m_cos
Definition
TRT_DetElementLink_xk.h:71
InDet::TRT_DetElementLink_xk::sin
const float & sin() const
Definition
TRT_DetElementLink_xk.h:59
InDet::TRT_DetElementLink_xk::operator=
TRT_DetElementLink_xk & operator=(TRT_DetElementLink_xk &&)=default
InDet::TRT_DetElementLink_xk::operator=
TRT_DetElementLink_xk & operator=(const TRT_DetElementLink_xk &)=default
InDet::TRT_DetElementLink_xk::TRT_DetElementLink_xk
TRT_DetElementLink_xk(const TRT_DetElementLink_xk &)=default
InDet::TRT_DetElementLink_xk::m_phi
float m_phi
Definition
TRT_DetElementLink_xk.h:69
InDet::TRT_DetElementLink_xk::TRT_DetElementLink_xk
TRT_DetElementLink_xk()
Definition
TRT_DetElementLink_xk.h:83
InDet::TRT_DetElementLink_xk::TRT_DetElemUsedMap
std::array< std::vector< std::vector< Used_t > >, 3 > TRT_DetElemUsedMap
Definition
TRT_DetElementLink_xk.h:42
InDet::TRT_DetElementLink_xk::phi
const float & phi() const
Definition
TRT_DetElementLink_xk.h:58
InDet::TRT_DetElementLink_xk::detElement
const InDetDD::TRT_BaseElement * detElement() const
Definition
TRT_DetElementLink_xk.h:57
InDet::TRT_DetElementLink_xk::TRT_DetElementLink_xk
TRT_DetElementLink_xk(TRT_DetElementLink_xk &&)=default
InDet::TRT_DetElementLink_xk::m_centerf
float m_centerf
Definition
TRT_DetElementLink_xk.h:72
InDet::TRT_DetElementLink_xk::centerf
const float & centerf() const
Definition
TRT_DetElementLink_xk.h:61
InDet::TRT_DetElementLink_xk::m_sin
float m_sin
Definition
TRT_DetElementLink_xk.h:70
InDet
Primary Vertex Finder.
Definition
VP1ErrorUtils.h:36
Generated on
for ATLAS Offline Software by
1.17.0