ATLAS Offline Software
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 
27 {
28 public:
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 
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 
65 };
66 
67 #include "AthenaKernel/CLASS_DEF.h"
68 CLASS_DEF( CaloTTPpmRxIdMap,196539089,1)
69 #endif
L1CaloCoolChannelId.h
L1CaloRxCoolChannelId.h
CaloTTPpmRxIdMap::getP
CaloTTPpmRxId_P * getP()
return the persistified map
Definition: CaloTTPpmRxIdMap.cxx:103
CaloTTPpmRxId
std::vector< CaloTTPpmRxId_t > CaloTTPpmRxId
Definition: CaloTTPpmRxId.h:30
hist_file_dump.d
d
Definition: hist_file_dump.py:137
CaloTTPpmRxIdMap::~CaloTTPpmRxIdMap
~CaloTTPpmRxIdMap()
Definition: CaloTTPpmRxIdMap.cxx:22
CaloTTPpmRxIdMap::ppmToRxId
std::vector< L1CaloRxCoolChannelId > ppmToRxId(const L1CaloCoolChannelId &ppmChannelId) const
return the corresponding Rx channels to the Ppm input one
Definition: CaloTTPpmRxIdMap.cxx:72
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
CaloTTPpmRxId.h
CaloTTPpmRxIdMap::set
void set(const PDATA &t)
initialize from Nova
Definition: CaloTTPpmRxIdMap.cxx:26
CaloTTPpmRxIdMap::CaloTTPpmRxIdMap
CaloTTPpmRxIdMap()
Definition: CaloTTPpmRxIdMap.cxx:18
CaloTTPpmRxIdMap::convert_to_D
void convert_to_D(const CaloTTPpmRxId_P &t, CaloTTPpmRxId &d)
Definition: CaloTTPpmRxIdMap.cxx:133
L1CaloRxCoolChannelId
Definition: L1CaloRxCoolChannelId.h:10
CaloTTPpmRxIdMap::rxToPpmId
L1CaloCoolChannelId rxToPpmId(const L1CaloRxCoolChannelId &rxChannelId) const
return the corresponfing ppm channel to the Rx input one
Definition: CaloTTPpmRxIdMap.cxx:88
CaloTTPpmRxIdMap::m_persData
CaloTTPpmRxId_P m_persData
Definition: CaloTTPpmRxIdMap.h:64
CaloTTPpmRxIdMap::PDATA
CaloTTPpmRxId PDATA
Definition: CaloTTPpmRxIdMap.h:30
CaloTTPpmRxId_P
This is a database object holding the TT PPM to RX channels map.
Definition: CaloTTPpmRxId_P.h:22
L1CaloCoolChannelId
Definition: L1CaloCoolChannelId.h:10
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:64
CaloTTPpmRxIdMap
This is a StoreGate object holding the TT PPM to RX channels map.
Definition: CaloTTPpmRxIdMap.h:27
CaloTTPpmRxIdMap::convert_to_P
void convert_to_P(const CaloTTPpmRxId &t)
Definition: CaloTTPpmRxIdMap.cxx:107
CaloTTPpmRxIdMap::m_mPpmIdToRx
std::map< L1CaloCoolChannelId, std::vector< L1CaloRxCoolChannelId > > m_mPpmIdToRx
Definition: CaloTTPpmRxIdMap.h:61
CaloTTPpmRxIdMap::m_mRxIdToPpm
std::map< L1CaloRxCoolChannelId, L1CaloCoolChannelId > m_mRxIdToPpm
Definition: CaloTTPpmRxIdMap.h:62
CLASS_DEF.h
macros to associate a CLID to a type
CaloTTPpmRxId_P.h