ATLAS Offline Software
Loading...
Searching...
No Matches
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
24
26{
27public:
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
54private:
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
67CLASS_DEF( CaloTTOnOffIdMap,267570070,1)
68#endif
std::vector< CaloTTOnOffId_t > CaloTTOnOffId
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 offline-online map.
CaloTTOnOffId_P * getP()
return the persistified map
std::map< Identifier, HWIdentifier > m_off2onIdMap
CaloTTOnOffId_P m_persData
void convert_to_D(const CaloTTOnOffId_P &t, CaloTTOnOffId &d)
void set(const PDATA &t)
initialize from Nova
std::map< HWIdentifier, Identifier > m_on2offIdMap
Identifier cnvToIdentifier(const HWIdentifier &sid, bool bQuiet=false) const
return the corresponfing offline Id of an online one
HWIdentifier createSignalChannelID(const Identifier &id, bool bQuiet=false) const
return the corresponfing online Id of an offline one
CaloTTOnOffId PDATA
void convert_to_P(const CaloTTOnOffId &t)
This is a database object holding the TT online-offline map.