ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloTriggerTool
CaloTriggerTool
LArTTCellMap.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef CALOTRIGGERTOOL_LARTTCELLMAP_H
6
#define CALOTRIGGERTOOL_LARTTCELLMAP_H
7
8
#include "Identifier/Identifier.h"
9
#include "
CaloTriggerTool/LArTTCell.h
"
10
#include "
CaloTriggerTool/LArTTCell_P.h
"
11
#include "
CaloIdentifier/LArID_Exception.h
"
12
#include "
AthenaBaseComps/AthMessaging.h
"
13
14
#include <vector>
15
#include <map>
16
17
26
27
class
LArTTCellMap
28
:
public
AthMessaging
29
{
30
public
:
31
32
typedef
LArTTCell
PDATA
;
33
34
/* Constructor
35
**/
36
LArTTCellMap
( ) ;
37
38
/* Destructor
39
**/
40
~LArTTCellMap
() ;
41
43
void
set
(
const
PDATA
& t ) ;
44
49
const
std::vector<Identifier>&
createCellIDvec
(
const
Identifier
&
id
)
const
;
50
54
Identifier
whichTTID
(
const
Identifier
&
id
)
const
;
55
57
const
LArTTCell_P
*
getP
()
const
;
58
60
LArTTCell_P
*
getP
() ;
61
63
void
set
(
const
LArTTCell_P
& t ) ;
64
65
private
:
66
67
void
convert_to_P
(
const
LArTTCell
&t) ;
// from NOVA to POOL
68
void
convert_to_D
(
const
LArTTCell_P
&t,
LArTTCell
& d) ;
// POOL to NOVA
69
70
/* Offline TT Identifier to Offline cell Identifier mapping */
71
std::map<Identifier,Identifier>
m_cell2ttIdMap
;
72
std::map<Identifier,std::vector<Identifier> >
m_tt2cellIdMap
;
73
74
// std::map<HWIdentifier,Identifier> m_on2offIdMap;
75
76
LArTTCell_P
m_persData
;
77
};
78
79
#include "
AthenaKernel/CLASS_DEF.h
"
80
CLASS_DEF
(
LArTTCellMap
,174159653,1)
81
#endif
AthMessaging.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
LArID_Exception.h
LArTTCell.h
LArTTCell
std::vector< LArTTCell_t > LArTTCell
Definition
LArTTCell.h:35
LArTTCell_P.h
AthMessaging::AthMessaging
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Definition
AthMessaging.cxx:13
LArTTCellMap
This is a StoreGate object holding the offline TT-cell map.
Definition
LArTTCellMap.h:29
LArTTCellMap::whichTTID
Identifier whichTTID(const Identifier &id) const
return the offline id (CaloLVL1_ID) of the TT to which a cell (CaloCell_ID) belongs
Definition
LArTTCellMap.cxx:162
LArTTCellMap::m_cell2ttIdMap
std::map< Identifier, Identifier > m_cell2ttIdMap
Definition
LArTTCellMap.h:71
LArTTCellMap::m_persData
LArTTCell_P m_persData
Definition
LArTTCellMap.h:76
LArTTCellMap::PDATA
LArTTCell PDATA
Definition
LArTTCellMap.h:32
LArTTCellMap::createCellIDvec
const std::vector< Identifier > & createCellIDvec(const Identifier &id) const
Return a vector of offline Identifiers (corresponding helpers = LArEM_ID, LArHEC_ID,...
Definition
LArTTCellMap.cxx:182
LArTTCellMap::LArTTCellMap
LArTTCellMap()
Definition
LArTTCellMap.cxx:17
LArTTCellMap::getP
const LArTTCell_P * getP() const
return the persistified map
Definition
LArTTCellMap.cxx:199
LArTTCellMap::convert_to_P
void convert_to_P(const LArTTCell &t)
Definition
LArTTCellMap.cxx:209
LArTTCellMap::set
void set(const PDATA &t)
initialize from Nova
Definition
LArTTCellMap.cxx:29
LArTTCellMap::m_tt2cellIdMap
std::map< Identifier, std::vector< Identifier > > m_tt2cellIdMap
Definition
LArTTCellMap.h:72
LArTTCellMap::convert_to_D
void convert_to_D(const LArTTCell_P &t, LArTTCell &d)
Definition
LArTTCellMap.cxx:239
LArTTCellMap::~LArTTCellMap
~LArTTCellMap()
Definition
LArTTCellMap.cxx:23
LArTTCell_P
This is a database object holding the offline TT-cell map.
Definition
LArTTCell_P.h:23
Identifier
Definition
IdentifierFieldParser.cxx:14
Generated on
for ATLAS Offline Software by
1.17.0