![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
10 #include "GaudiKernel/ISvcLocator.h"
11 #include "GaudiKernel/Bootstrap.h"
12 #include "GaudiKernel/MsgStream.h"
13 #include "GaudiKernel/IMessageSvc.h"
34 std::cout <<
"Cannot locate MessageSvc" << std::endl;
36 MsgStream
log(
msgSvc,
"CaloTTOnOffIdMap");
47 log << MSG::ERROR <<
"Cannot locate DetectorStore" <<
endmsg;
55 log << MSG::ERROR <<
"Cannot retrieve online_id" <<
endmsg;
59 log << MSG::ERROR <<
"Cannot retrieve offline_id" <<
endmsg;
62 CaloTTOnOffId::const_iterator
it =
m.begin();
63 CaloTTOnOffId::const_iterator it_e =
m.end();
66 for (;
it!=it_e; ++
it) {
75 <<
" pn="<<
t.pn<<
" sampling="<<
t.sampling
76 <<
" region="<<
t.region
77 <<
" eta="<<
t.eta<<
" phi="<<
t.phi<<
" layer="<<
t.layer<<
" | "
78 <<
" crate="<<
t.crate<<
" module="<<
t.module
79 <<
" submodule="<<
t.submodule
80 <<
" channel="<<
t.channel
91 log<<MSG::ERROR<<
" Failed in CaloTTOnOffIdMap::set " <<
endmsg;
92 log<<MSG::ERROR<< (std::string) except <<
endmsg ;
100 std::map<Identifier,HWIdentifier>::const_iterator
it =
m_off2onIdMap.find(
id);
114 std::cout <<
"Cannot locate MessageSvc" << std::endl;
117 MsgStream
log(
msgSvc,
"CaloTTOnOffIdMap");
118 log<<MSG::ERROR<<
" Offline ID not found "<<
id <<
endmsg;
128 std::map<HWIdentifier,Identifier>::const_iterator
it=
m_on2offIdMap.find(sid);
143 std::cout <<
"Cannot locate MessageSvc" << std::endl;
146 MsgStream
log(
msgSvc,
"CaloTTOnOffIdMap");
159 CaloTTOnOffId::const_iterator
it =
d.begin();
160 CaloTTOnOffId::const_iterator it_e =
d.end();
162 for ( ;
it!=it_e;++
it){
167 t2.sampling =
t.sampling;
168 t2.region =
t.region;
174 t2.module =
t.module;
175 t2.submodule=
t.submodule;
176 t2.channel =
t.channel;
185 std::vector<CaloTTOnOffId_P::__t>::const_iterator
it =
p.m_v.begin();
186 std::vector<CaloTTOnOffId_P::__t>::const_iterator it_e =
p.m_v.end();
189 for ( ;
it!=it_e;++
it){
194 t2.sampling =
t.sampling;
195 t2.region =
t.region;
201 t2.module =
t.module;
202 t2.submodule=
t.submodule;
203 t2.channel =
t.channel;
CaloTTOnOffId_P m_persData
Exception class for Calo Identifiers.
Helper class for Calo TT online identifiers.
void convert_to_P(const CaloTTOnOffId &t)
Structure definition of the LArTTOnOffIdMap.
HWIdentifier createSignalChannelID(const Identifier &id, bool bQuiet=false) const
return the corresponfing online Id of an offline one
The Athena Transient Store API.
Identifier cnvToIdentifier(const HWIdentifier &sid, bool bQuiet=false) const
return the corresponfing offline Id of an online one
msgSvc
Provide convenience handles for various services.
std::map< Identifier, HWIdentifier > m_off2onIdMap
::StatusCode StatusCode
StatusCode definition for legacy code.
void convert_to_D(const CaloTTOnOffId_P &t, CaloTTOnOffId &d)
def dump(buf, stdout=sys.stdout)
Helper class for offline TT identifiers.
This is a database object holding the TT online-offline map.
std::vector< ALFA_RawDataContainer_p1 > t2
void set(const PDATA &t)
initialize from Nova
value_type get_compact(void) const
Get the compact id.
std::map< HWIdentifier, Identifier > m_on2offIdMap
HWIdentifier channelId(int crate, int module, int submodule, int channel) const
(1) create towerId from fields
CaloTTOnOffId_P * getP()
return the persistified map
Identifier tower_id(int pos_neg_z, int sampling, int region, int eta, int phi) const
build a tower identifier
std::vector< CaloTTOnOffId_t > CaloTTOnOffId