ATLAS Offline Software
CaloTTOnOffIdMap.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_CALOTTONOFFIDMAP_H
6 #define CALOTRIGGERTOOL_CALOTTONOFFIDMAP_H
7 
11 #include "Identifier/Identifier.h"
12 
13 #include <map>
14 
26 {
27 public:
28 
30 
31  /* Constructor
32  **/
34 
35  /* Destructor
36  **/
38 
40  void set( const PDATA& t ) ;
41 
43  HWIdentifier createSignalChannelID(const Identifier& id, bool bQuiet=false) const ;
44 
46  Identifier cnvToIdentifier(const HWIdentifier & sid, bool bQuiet=false) const;
47 
50 
52  void set( const CaloTTOnOffId_P& t ) ; // initialize from POOL
53 
54 private:
55 
56  void convert_to_P(const CaloTTOnOffId &t) ; // from NOVA to POOL
57  void convert_to_D(const CaloTTOnOffId_P &t, CaloTTOnOffId& d) ; // POOL to NOVA
58 
59  /* Offline Identifier to HWIdentifier mapping */
60  std::map<Identifier,HWIdentifier> m_off2onIdMap;
61  std::map<HWIdentifier,Identifier> m_on2offIdMap;
62 
64 };
65 
66 #include "AthenaKernel/CLASS_DEF.h"
67 CLASS_DEF( CaloTTOnOffIdMap,267570070,1)
68 #endif
CaloTTOnOffIdMap::m_persData
CaloTTOnOffId_P m_persData
Definition: CaloTTOnOffIdMap.h:63
hist_file_dump.d
d
Definition: hist_file_dump.py:137
CaloTTOnOffIdMap::convert_to_P
void convert_to_P(const CaloTTOnOffId &t)
Definition: CaloTTOnOffIdMap.cxx:142
CaloTTOnOffId.h
CaloTTOnOffIdMap::~CaloTTOnOffIdMap
~CaloTTOnOffIdMap()
Definition: CaloTTOnOffIdMap.cxx:24
CaloTTOnOffIdMap::createSignalChannelID
HWIdentifier createSignalChannelID(const Identifier &id, bool bQuiet=false) const
return the corresponfing online Id of an offline one
Definition: CaloTTOnOffIdMap.cxx:95
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
HWIdentifier
Definition: HWIdentifier.h:13
CaloTTOnOffIdMap
This is a StoreGate object holding the TT offline-online map.
Definition: CaloTTOnOffIdMap.h:26
CaloTTOnOffIdMap::cnvToIdentifier
Identifier cnvToIdentifier(const HWIdentifier &sid, bool bQuiet=false) const
return the corresponfing offline Id of an online one
Definition: CaloTTOnOffIdMap.cxx:117
CaloTTOnOffIdMap::m_off2onIdMap
std::map< Identifier, HWIdentifier > m_off2onIdMap
Definition: CaloTTOnOffIdMap.h:60
CaloTTOnOffIdMap::PDATA
CaloTTOnOffId PDATA
Definition: CaloTTOnOffIdMap.h:29
TTOnlineID.h
CaloTTOnOffIdMap::CaloTTOnOffIdMap
CaloTTOnOffIdMap()
Definition: CaloTTOnOffIdMap.cxx:20
CaloTTOnOffIdMap::convert_to_D
void convert_to_D(const CaloTTOnOffId_P &t, CaloTTOnOffId &d)
Definition: CaloTTOnOffIdMap.cxx:168
CaloTTOnOffId_P
This is a database object holding the TT online-offline map.
Definition: CaloTTOnOffId_P.h:22
CaloTTOnOffIdMap::set
void set(const PDATA &t)
initialize from Nova
Definition: CaloTTOnOffIdMap.cxx:28
CaloTTOnOffIdMap::m_on2offIdMap
std::map< HWIdentifier, Identifier > m_on2offIdMap
Definition: CaloTTOnOffIdMap.h:61
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
CaloTTOnOffId_P.h
CaloTTOnOffIdMap::getP
CaloTTOnOffId_P * getP()
return the persistified map
Definition: CaloTTOnOffIdMap.cxx:138
CLASS_DEF.h
macros to associate a CLID to a type
CaloTTOnOffId
std::vector< CaloTTOnOffId_t > CaloTTOnOffId
Definition: CaloTTOnOffId.h:30
Identifier
Definition: IdentifierFieldParser.cxx:14