ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloTriggerTool
CaloTriggerTool
CaloTTOnAttrIdMap.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef CALOTRIGGERTOOL_CALOTTONATTRIDMAP_H
6
#define CALOTRIGGERTOOL_CALOTTONATTRIDMAP_H
7
8
#include "
CaloTriggerTool/CaloTTOnAttrId.h
"
9
#include "
CaloTriggerTool/CaloTTOnAttrId_P.h
"
10
#include "
CaloIdentifier/TTOnlineID.h
"
11
#include "Identifier/Identifier.h"
12
13
#include <map>
14
24
25
struct
AttrStruct
{
26
unsigned
int
em_had
;
27
unsigned
int
pos_neg
;
28
unsigned
int
barrel_endcap_fcal
;
29
unsigned
int
module_type
;
30
};
31
32
class
CaloTTOnAttrIdMap
33
{
34
public
:
35
36
typedef
CaloTTOnAttrId
PDATA
;
37
38
/* Constructor
39
**/
40
CaloTTOnAttrIdMap
( ) ;
41
42
/* Destructor
43
**/
44
~CaloTTOnAttrIdMap
() ;
45
47
void
set
(
const
PDATA
& t ) ;
48
54
unsigned
int
em_had
(
HWIdentifier
channelId )
const
;
55
57
unsigned
int
pos_neg
(
HWIdentifier
channelId )
const
;
58
65
unsigned
int
barrel_endcap_fcal
(
HWIdentifier
channelId )
const
;
66
73
unsigned
int
module_type
(
HWIdentifier
channelId )
const
;
74
76
CaloTTOnAttrId_P
*
getP
() ;
77
79
void
set
(
const
CaloTTOnAttrId_P
& t ) ;
// initialize from POOL
80
81
private
:
82
83
void
convert_to_P
(
const
CaloTTOnAttrId
&t) ;
// from NOVA to POOL
84
void
convert_to_D
(
const
CaloTTOnAttrId_P
&t,
CaloTTOnAttrId
& d) ;
// POOL to NOVA
85
86
/* Online Identifier to Attribute mapping */
87
std::map<HWIdentifier,AttrStruct>
m_on2attrIdMap
;
88
89
CaloTTOnAttrId_P
m_persData
;
90
91
};
92
93
#include "
AthenaKernel/CLASS_DEF.h
"
94
CLASS_DEF
(
CaloTTOnAttrIdMap
,167960877,1)
95
#endif
CaloTTOnAttrId.h
CaloTTOnAttrId
std::vector< CaloTTOnAttrId_t > CaloTTOnAttrId
Definition
CaloTTOnAttrId.h:27
CaloTTOnAttrId_P.h
CLASS_DEF.h
macros to associate a CLID to a type
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
TTOnlineID.h
CaloTTOnAttrIdMap
Definition
CaloTTOnAttrIdMap.h:33
CaloTTOnAttrIdMap::pos_neg
unsigned int pos_neg(HWIdentifier channelId) const
return 0 for z<0 channels and 1 for z>0 channels
Definition
CaloTTOnAttrIdMap.cxx:103
CaloTTOnAttrIdMap::convert_to_P
void convert_to_P(const CaloTTOnAttrId &t)
Definition
CaloTTOnAttrIdMap.cxx:146
CaloTTOnAttrIdMap::getP
CaloTTOnAttrId_P * getP()
return the persistified map
Definition
CaloTTOnAttrIdMap.cxx:142
CaloTTOnAttrIdMap::m_on2attrIdMap
std::map< HWIdentifier, AttrStruct > m_on2attrIdMap
Definition
CaloTTOnAttrIdMap.h:87
CaloTTOnAttrIdMap::set
void set(const PDATA &t)
initialize from Nova
Definition
CaloTTOnAttrIdMap.cxx:27
CaloTTOnAttrIdMap::barrel_endcap_fcal
unsigned int barrel_endcap_fcal(HWIdentifier channelId) const
To know if a channel belongs to the barrel, end cap or fcal parts.
Definition
CaloTTOnAttrIdMap.cxx:116
CaloTTOnAttrIdMap::PDATA
CaloTTOnAttrId PDATA
Definition
CaloTTOnAttrIdMap.h:36
CaloTTOnAttrIdMap::module_type
unsigned int module_type(HWIdentifier channelId) const
To get the type of the module connected to the channel:
Definition
CaloTTOnAttrIdMap.cxx:129
CaloTTOnAttrIdMap::CaloTTOnAttrIdMap
CaloTTOnAttrIdMap()
Definition
CaloTTOnAttrIdMap.cxx:19
CaloTTOnAttrIdMap::~CaloTTOnAttrIdMap
~CaloTTOnAttrIdMap()
Definition
CaloTTOnAttrIdMap.cxx:23
CaloTTOnAttrIdMap::convert_to_D
void convert_to_D(const CaloTTOnAttrId_P &t, CaloTTOnAttrId &d)
Definition
CaloTTOnAttrIdMap.cxx:170
CaloTTOnAttrIdMap::m_persData
CaloTTOnAttrId_P m_persData
Definition
CaloTTOnAttrIdMap.h:89
CaloTTOnAttrIdMap::em_had
unsigned int em_had(HWIdentifier channelId) const
return the corresponding sampling of channelId:
Definition
CaloTTOnAttrIdMap.cxx:90
CaloTTOnAttrId_P
This is a database object holding the TT online-attribute map.
Definition
CaloTTOnAttrId_P.h:22
HWIdentifier
Definition
HWIdentifier.h:13
AttrStruct
This is a StoreGate object holding the TT online-attribute map.
Definition
CaloTTOnAttrIdMap.h:25
AttrStruct::pos_neg
unsigned int pos_neg
Definition
CaloTTOnAttrIdMap.h:27
AttrStruct::barrel_endcap_fcal
unsigned int barrel_endcap_fcal
Definition
CaloTTOnAttrIdMap.h:28
AttrStruct::module_type
unsigned int module_type
Definition
CaloTTOnAttrIdMap.h:29
AttrStruct::em_had
unsigned int em_had
Definition
CaloTTOnAttrIdMap.h:26
Generated on
for ATLAS Offline Software by
1.17.0