ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1CaloCalibConditions
TrigT1CaloCalibConditions
L1CaloRxCoolChannelId.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef L1CALORXCOOLCHANNELID_H
6
#define L1CALORXCOOLCHANNELID_H
7
8
#include <ostream>
9
10
class
L1CaloRxCoolChannelId
final {
11
friend
std::ostream&
operator<<
(std::ostream& output,
const
L1CaloRxCoolChannelId
&
r
);
12
13
public
:
14
15
L1CaloRxCoolChannelId
();
16
L1CaloRxCoolChannelId
(
unsigned
int
crate
,
unsigned
int
module
,
unsigned
int
inputConn
,
unsigned
int
inputPair
);
17
L1CaloRxCoolChannelId
(
unsigned
int
crate
,
unsigned
int
module
,
unsigned
int
inputConn
,
unsigned
int
inputPair
,
unsigned
int
outputConn
,
unsigned
int
outputPair
);
18
L1CaloRxCoolChannelId
(
unsigned
int
id
);
19
L1CaloRxCoolChannelId
(
const
L1CaloRxCoolChannelId
&
id
);
20
~L1CaloRxCoolChannelId
() =
default
;
21
22
unsigned
int
crate
()
const
{
return
(
unsigned
int
)
m_id
/1024; };
23
unsigned
int
module
()
const
{
return
(
unsigned
int
)
m_id
%1024/64; };
24
unsigned
int
inputConn
()
const
{
return
(
unsigned
int
)
m_id
%64/16; };
25
unsigned
int
inputPair
()
const
{
return
(
unsigned
int
)
m_id
%16; };
26
27
unsigned
int
id
()
const
{
return
m_id
; };
28
29
unsigned
int
outputConn
()
const
;
30
unsigned
int
outputPair
()
const
;
31
32
void
outputAttributes
(
unsigned
int
conn,
unsigned
int
pair
);
33
34
L1CaloRxCoolChannelId
&
operator=
(
const
L1CaloRxCoolChannelId
&
id
) =
default
;
35
bool
operator==
(
const
L1CaloRxCoolChannelId
&
id
)
const
;
36
bool
operator<
(
const
L1CaloRxCoolChannelId
&
id
)
const
;
37
38
private
:
39
40
void
setId
(
unsigned
int
crate
,
41
unsigned
int
module
,
42
unsigned
int
inputConn
,
43
unsigned
int
inputPair
);
44
45
unsigned
int
m_id
;
46
47
bool
m_bOutputIsSet
;
48
unsigned
int
m_outputConn
;
49
unsigned
int
m_outputPair
;
50
51
};
52
53
#endif
L1CaloRxCoolChannelId::m_id
unsigned int m_id
Definition
L1CaloRxCoolChannelId.h:45
L1CaloRxCoolChannelId::outputPair
unsigned int outputPair() const
Definition
L1CaloRxCoolChannelId.cxx:129
L1CaloRxCoolChannelId::operator<<
friend std::ostream & operator<<(std::ostream &output, const L1CaloRxCoolChannelId &r)
Definition
L1CaloRxCoolChannelId.cxx:136
L1CaloRxCoolChannelId::operator<
bool operator<(const L1CaloRxCoolChannelId &id) const
Definition
L1CaloRxCoolChannelId.cxx:103
L1CaloRxCoolChannelId::id
unsigned int id() const
Definition
L1CaloRxCoolChannelId.h:27
L1CaloRxCoolChannelId::outputAttributes
void outputAttributes(unsigned int conn, unsigned int pair)
Definition
L1CaloRxCoolChannelId.cxx:112
L1CaloRxCoolChannelId::operator==
bool operator==(const L1CaloRxCoolChannelId &id) const
Definition
L1CaloRxCoolChannelId.cxx:107
L1CaloRxCoolChannelId::module
unsigned int module() const
Definition
L1CaloRxCoolChannelId.h:23
L1CaloRxCoolChannelId::m_bOutputIsSet
bool m_bOutputIsSet
Definition
L1CaloRxCoolChannelId.h:47
L1CaloRxCoolChannelId::~L1CaloRxCoolChannelId
~L1CaloRxCoolChannelId()=default
L1CaloRxCoolChannelId::operator=
L1CaloRxCoolChannelId & operator=(const L1CaloRxCoolChannelId &id)=default
L1CaloRxCoolChannelId::inputConn
unsigned int inputConn() const
Definition
L1CaloRxCoolChannelId.h:24
L1CaloRxCoolChannelId::m_outputConn
unsigned int m_outputConn
Definition
L1CaloRxCoolChannelId.h:48
L1CaloRxCoolChannelId::inputPair
unsigned int inputPair() const
Definition
L1CaloRxCoolChannelId.h:25
L1CaloRxCoolChannelId::outputConn
unsigned int outputConn() const
Definition
L1CaloRxCoolChannelId.cxx:122
L1CaloRxCoolChannelId::setId
void setId(unsigned int crate, unsigned int module, unsigned int inputConn, unsigned int inputPair)
Set the CoolChannelId value from its component fields.
Definition
L1CaloRxCoolChannelId.cxx:93
L1CaloRxCoolChannelId::crate
unsigned int crate() const
Definition
L1CaloRxCoolChannelId.h:22
L1CaloRxCoolChannelId::L1CaloRxCoolChannelId
L1CaloRxCoolChannelId()
Create a L1CaloRxCoolChannelId from the integer ID field.
Definition
L1CaloRxCoolChannelId.cxx:23
L1CaloRxCoolChannelId::m_outputPair
unsigned int m_outputPair
Definition
L1CaloRxCoolChannelId.h:49
pair
STL class.
r
int r
Definition
globals.cxx:22
Generated on
for ATLAS Offline Software by
1.17.0