ATLAS Offline Software
Loading...
Searching...
No Matches
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
10
13
14#include <map>
15
25
27{
28public:
29
31
32 /* Constructor
33 **/
35
36 /* Destructor
37 **/
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
51
53 void set( const CaloTTPpmRxId_P& t ) ; // initialize from POOL
54
55private:
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
65};
66
68CLASS_DEF( CaloTTPpmRxIdMap,196539089,1)
69#endif
std::vector< CaloTTPpmRxId_t > CaloTTPpmRxId
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
This is a StoreGate object holding the TT PPM to RX channels map.
L1CaloCoolChannelId rxToPpmId(const L1CaloRxCoolChannelId &rxChannelId) const
return the corresponfing ppm channel to the Rx input one
void convert_to_P(const CaloTTPpmRxId &t)
std::map< L1CaloRxCoolChannelId, L1CaloCoolChannelId > m_mRxIdToPpm
std::vector< L1CaloRxCoolChannelId > ppmToRxId(const L1CaloCoolChannelId &ppmChannelId) const
return the corresponding Rx channels to the Ppm input one
std::map< L1CaloCoolChannelId, std::vector< L1CaloRxCoolChannelId > > m_mPpmIdToRx
void set(const PDATA &t)
initialize from Nova
void convert_to_D(const CaloTTPpmRxId_P &t, CaloTTPpmRxId &d)
CaloTTPpmRxId_P m_persData
CaloTTPpmRxId PDATA
CaloTTPpmRxId_P * getP()
return the persistified map
This is a database object holding the TT PPM to RX channels map.
Encapsulates the ID of one channel of conditions data in COOL, ie the ID of a row in a table.
Encapsulates the ID of one Rx channel of conditions data in COOL, ie the ID of a row in a table.