ATLAS Offline Software
InnerDetector
InDetConditions
SCT_ConditionsData
SCT_ConditionsData
SCT_PortMap.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
3
/*
4
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5
*/
6
13
#ifndef SCT_ConditionData_SCT_PortMap_h
14
#define SCT_ConditionData_SCT_PortMap_h
15
17
namespace
SCT_Parameters
{
18
enum
ChipType
{
Chip0
=0,
Chip1
,
Chip2
,
Chip3
,
Chip4
,
Chip5
,
Chip6
,
Chip7
,
Chip8
,
Chip9
,
Chip10
,
Chip11
,
NChips
,
None
=-999};
19
}
20
26
class
SCT_PortMap
{
27
28
public
:
29
31
SCT_PortMap
(
SCT_Parameters::ChipType
in0,
SCT_Parameters::ChipType
in1,
SCT_Parameters::ChipType
out0,
SCT_Parameters::ChipType
out1) {
32
m_input
[0] = in0;
33
m_input
[1] = in1;
34
m_output
[0] = out0;
35
m_output
[1] = out1;
36
}
37
38
~SCT_PortMap
() =
default
;
39
41
inline
SCT_Parameters::ChipType
input
(
int
port)
const
{
return
m_input
[port]; }
42
inline
SCT_Parameters::ChipType
output
(
int
port)
const
{
return
m_output
[port]; }
43
44
private
:
45
46
SCT_Parameters::ChipType
m_input
[2];
47
SCT_Parameters::ChipType
m_output
[2];
48
};
49
50
#endif // SCT_ConditionData_SCT_PortMap_h
SCT_Parameters::Chip1
@ Chip1
Definition:
SCT_PortMap.h:18
SCT_Parameters::Chip4
@ Chip4
Definition:
SCT_PortMap.h:18
SCT_PortMap
Helper class to map the input/output ports of a chip.
Definition:
SCT_PortMap.h:26
SCT_Parameters::NChips
@ NChips
Definition:
SCT_PortMap.h:18
SCT_Parameters::Chip11
@ Chip11
Definition:
SCT_PortMap.h:18
SCT_PortMap::output
SCT_Parameters::ChipType output(int port) const
Definition:
SCT_PortMap.h:42
SCT_Parameters::Chip3
@ Chip3
Definition:
SCT_PortMap.h:18
SCT_PortMap::m_input
SCT_Parameters::ChipType m_input[2]
Port type for the chip's two inputs.
Definition:
SCT_PortMap.h:46
SCT_Parameters::Chip0
@ Chip0
Definition:
SCT_PortMap.h:18
SCT_PortMap::~SCT_PortMap
~SCT_PortMap()=default
SCT_PortMap::input
SCT_Parameters::ChipType input(int port) const
Functions to retrieve the chip mapped to the input and output ports.
Definition:
SCT_PortMap.h:41
SCT_Parameters::Chip2
@ Chip2
Definition:
SCT_PortMap.h:18
SCT_Parameters::Chip6
@ Chip6
Definition:
SCT_PortMap.h:18
SCT_PortMap::m_output
SCT_Parameters::ChipType m_output[2]
Port type for the chip's two outputs.
Definition:
SCT_PortMap.h:47
SCT_Parameters::Chip5
@ Chip5
Definition:
SCT_PortMap.h:18
SCT_Parameters::None
@ None
Definition:
SCT_PortMap.h:18
SCT_PortMap::SCT_PortMap
SCT_PortMap(SCT_Parameters::ChipType in0, SCT_Parameters::ChipType in1, SCT_Parameters::ChipType out0, SCT_Parameters::ChipType out1)
Constuctor from input and output chip types.
Definition:
SCT_PortMap.h:31
SCT_Parameters::Chip7
@ Chip7
Definition:
SCT_PortMap.h:18
SCT_Parameters::ChipType
ChipType
Definition:
SCT_PortMap.h:18
SCT_Parameters::Chip9
@ Chip9
Definition:
SCT_PortMap.h:18
SCT_Parameters::Chip10
@ Chip10
Definition:
SCT_PortMap.h:18
SCT_Parameters::Chip8
@ Chip8
Definition:
SCT_PortMap.h:18
SCT_Parameters
Enums for chip type.
Definition:
SCT_PortMap.h:17
Generated on Thu Nov 7 2024 21:25:32 for ATLAS Offline Software by
1.8.18