ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloTriggerTool
CaloTriggerTool
CaloTTPpmRxIdMap.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef CALOTRIGGERTOOL_CALOTTPPMRXIDMAP_H
6
#define CALOTRIGGERTOOL_CALOTTPPMRXIDMAP_H
7
8
#include "
CaloTriggerTool/CaloTTPpmRxId.h
"
9
#include "
CaloTriggerTool/CaloTTPpmRxId_P.h
"
10
11
#include "
TrigT1CaloCalibConditions/L1CaloCoolChannelId.h
"
12
#include "
TrigT1CaloCalibConditions/L1CaloRxCoolChannelId.h
"
13
14
#include <map>
15
25
26
class
CaloTTPpmRxIdMap
27
{
28
public
:
29
30
typedef
CaloTTPpmRxId
PDATA
;
31
32
/* Constructor
33
**/
34
CaloTTPpmRxIdMap
() ;
35
36
/* Destructor
37
**/
38
~CaloTTPpmRxIdMap
() ;
39
41
void
set
(
const
PDATA
& t ) ;
42
44
std::vector<L1CaloRxCoolChannelId>
ppmToRxId
(
const
L1CaloCoolChannelId
& ppmChannelId)
const
;
45
47
L1CaloCoolChannelId
rxToPpmId
(
const
L1CaloRxCoolChannelId
& rxChannelId)
const
;
48
50
CaloTTPpmRxId_P
*
getP
() ;
51
53
void
set
(
const
CaloTTPpmRxId_P
& t ) ;
// initialize from POOL
54
55
private
:
56
57
void
convert_to_P
(
const
CaloTTPpmRxId
&t) ;
// from NOVA to POOL
58
void
convert_to_D
(
const
CaloTTPpmRxId_P
&t,
CaloTTPpmRxId
& d) ;
// POOL to NOVA
59
60
/* Ppm to Rx channel mapping */
61
std::map<L1CaloCoolChannelId, std::vector<L1CaloRxCoolChannelId> >
m_mPpmIdToRx
;
62
std::map<L1CaloRxCoolChannelId, L1CaloCoolChannelId >
m_mRxIdToPpm
;
63
64
CaloTTPpmRxId_P
m_persData
;
65
};
66
67
#include "
AthenaKernel/CLASS_DEF.h
"
68
CLASS_DEF
(
CaloTTPpmRxIdMap
,196539089,1)
69
#endif
CaloTTPpmRxId.h
CaloTTPpmRxId
std::vector< CaloTTPpmRxId_t > CaloTTPpmRxId
Definition
CaloTTPpmRxId.h:30
CaloTTPpmRxId_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
L1CaloCoolChannelId.h
L1CaloRxCoolChannelId.h
CaloTTPpmRxIdMap
This is a StoreGate object holding the TT PPM to RX channels map.
Definition
CaloTTPpmRxIdMap.h:27
CaloTTPpmRxIdMap::rxToPpmId
L1CaloCoolChannelId rxToPpmId(const L1CaloRxCoolChannelId &rxChannelId) const
return the corresponfing ppm channel to the Rx input one
Definition
CaloTTPpmRxIdMap.cxx:88
CaloTTPpmRxIdMap::convert_to_P
void convert_to_P(const CaloTTPpmRxId &t)
Definition
CaloTTPpmRxIdMap.cxx:107
CaloTTPpmRxIdMap::m_mRxIdToPpm
std::map< L1CaloRxCoolChannelId, L1CaloCoolChannelId > m_mRxIdToPpm
Definition
CaloTTPpmRxIdMap.h:62
CaloTTPpmRxIdMap::ppmToRxId
std::vector< L1CaloRxCoolChannelId > ppmToRxId(const L1CaloCoolChannelId &ppmChannelId) const
return the corresponding Rx channels to the Ppm input one
Definition
CaloTTPpmRxIdMap.cxx:72
CaloTTPpmRxIdMap::CaloTTPpmRxIdMap
CaloTTPpmRxIdMap()
Definition
CaloTTPpmRxIdMap.cxx:18
CaloTTPpmRxIdMap::m_mPpmIdToRx
std::map< L1CaloCoolChannelId, std::vector< L1CaloRxCoolChannelId > > m_mPpmIdToRx
Definition
CaloTTPpmRxIdMap.h:61
CaloTTPpmRxIdMap::set
void set(const PDATA &t)
initialize from Nova
Definition
CaloTTPpmRxIdMap.cxx:26
CaloTTPpmRxIdMap::convert_to_D
void convert_to_D(const CaloTTPpmRxId_P &t, CaloTTPpmRxId &d)
Definition
CaloTTPpmRxIdMap.cxx:133
CaloTTPpmRxIdMap::~CaloTTPpmRxIdMap
~CaloTTPpmRxIdMap()
Definition
CaloTTPpmRxIdMap.cxx:22
CaloTTPpmRxIdMap::m_persData
CaloTTPpmRxId_P m_persData
Definition
CaloTTPpmRxIdMap.h:64
CaloTTPpmRxIdMap::PDATA
CaloTTPpmRxId PDATA
Definition
CaloTTPpmRxIdMap.h:30
CaloTTPpmRxIdMap::getP
CaloTTPpmRxId_P * getP()
return the persistified map
Definition
CaloTTPpmRxIdMap.cxx:103
CaloTTPpmRxId_P
This is a database object holding the TT PPM to RX channels map.
Definition
CaloTTPpmRxId_P.h:22
L1CaloCoolChannelId
Encapsulates the ID of one channel of conditions data in COOL, ie the ID of a row in a table.
Definition
L1CaloCoolChannelId.h:10
L1CaloRxCoolChannelId
Encapsulates the ID of one Rx channel of conditions data in COOL, ie the ID of a row in a table.
Definition
L1CaloRxCoolChannelId.h:10
Generated on
for ATLAS Offline Software by
1.17.0