#include <CaloTTOnAttrIdMap.h>
Definition at line 32 of file CaloTTOnAttrIdMap.h.
◆ PDATA
◆ CaloTTOnAttrIdMap()
CaloTTOnAttrIdMap::CaloTTOnAttrIdMap |
( |
| ) |
|
◆ ~CaloTTOnAttrIdMap()
CaloTTOnAttrIdMap::~CaloTTOnAttrIdMap |
( |
| ) |
|
◆ barrel_endcap_fcal()
unsigned int CaloTTOnAttrIdMap::barrel_endcap_fcal |
( |
HWIdentifier |
channelId | ) |
const |
To know if a channel belongs to the barrel, end cap or fcal parts.
- Returns
- 0: barrel
-
1: end cap
-
2: fcal
-
999: error
Definition at line 116 of file CaloTTOnAttrIdMap.cxx.
120 return ((*it).second).barrel_endcap_fcal;
125 "Online ID not found, channelId = " <<
channelId.get_compact() <<
endmsg;
◆ convert_to_D()
Definition at line 170 of file CaloTTOnAttrIdMap.cxx.
172 std::vector<CaloTTOnAttrId_P::__t>::const_iterator
it =
p.m_v.begin();
173 std::vector<CaloTTOnAttrId_P::__t>::const_iterator it_e =
p.m_v.end();
176 for ( ;
it!=it_e;++
it){
181 t2.module =
t.module;
182 t2.submodule=
t.submodule;
183 t2.channel =
t.channel;
185 t2.em_had =
t.em_had;
186 t2.pos_neg =
t.pos_neg;
187 t2.barrel_endcap_fcal =
t.barrel_endcap_fcal;
188 t2.module_type =
t.module_type;
◆ convert_to_P()
Definition at line 146 of file CaloTTOnAttrIdMap.cxx.
148 CaloTTOnAttrId::const_iterator
it =
d.begin();
149 CaloTTOnAttrId::const_iterator it_e =
d.end();
151 for ( ;
it!=it_e;++
it){
156 t2.module =
t.module;
157 t2.submodule=
t.submodule;
158 t2.channel =
t.channel;
160 t2.em_had =
t.em_had;
161 t2.pos_neg =
t.pos_neg;
162 t2.barrel_endcap_fcal =
t.barrel_endcap_fcal;
163 t2.module_type =
t.module_type;
◆ em_had()
unsigned int CaloTTOnAttrIdMap::em_had |
( |
HWIdentifier |
channelId | ) |
const |
return the corresponding sampling of channelId:
- Returns
- 0: for EM calorimeter
-
1: for HAD calorimeter
-
999: error
Definition at line 90 of file CaloTTOnAttrIdMap.cxx.
94 return ((*it).second).em_had;
99 "Online ID not found, channelId = " <<
channelId.get_compact() <<
endmsg;
◆ getP()
◆ module_type()
unsigned int CaloTTOnAttrIdMap::module_type |
( |
HWIdentifier |
channelId | ) |
const |
To get the type of the module connected to the channel:
- Returns
- 1: PPM
-
2: CPM
-
3: JEM
-
999: error
Definition at line 129 of file CaloTTOnAttrIdMap.cxx.
133 return ((*it).second).module_type;
138 "Online ID not found, channelId = " <<
channelId.get_compact() <<
endmsg;
◆ pos_neg()
unsigned int CaloTTOnAttrIdMap::pos_neg |
( |
HWIdentifier |
channelId | ) |
const |
return 0 for z<0 channels and 1 for z>0 channels
Definition at line 103 of file CaloTTOnAttrIdMap.cxx.
107 return ((*it).second).pos_neg;
112 "Online ID not found, channelId = " <<
channelId.get_compact() <<
endmsg;
◆ set() [1/2]
◆ set() [2/2]
initialize from Nova
Definition at line 27 of file CaloTTOnAttrIdMap.cxx.
31 SmartIF<IMessageSvc>
msgSvc{Gaudi::svcLocator()->service(
"MessageSvc")};
33 throw std::runtime_error(
"Cannot locate MessageSvc");
35 MsgStream
log(
msgSvc,
"CaloTTOnAttrIdMap");
39 SmartIF<StoreGateSvc>
detStore{Gaudi::svcLocator()->service(
"DetectorStore")};
41 log << MSG::ERROR <<
"Cannot locate DetectorStore" <<
endmsg;
45 if(
detStore->retrieve(online_id).isFailure()){
46 log << MSG::ERROR <<
"Cannot retrieve online_id" <<
endmsg;
49 CaloTTOnAttrId::const_iterator
it =
m.begin();
50 CaloTTOnAttrId::const_iterator it_e =
m.end();
53 for (;
it!=it_e; ++
it) {
61 <<
" crate="<<
t.crate<<
" module="<<
t.module
62 <<
" submodule="<<
t.submodule
63 <<
" channel="<<
t.channel
64 <<
" em_had="<<
t.em_had
65 <<
" pos_neg="<<
t.pos_neg
66 <<
" barrel_endcap_fcal"<<
t.barrel_endcap_fcal
84 log<<MSG::ERROR<<
" Failed in CaloTTOnAttrIdMap::set " <<
endmsg;
85 log<<MSG::ERROR<< (std::string) except <<
endmsg ;
◆ m_on2attrIdMap
◆ m_persData
The documentation for this class was generated from the following files:
HWIdentifier channelId(int crate, int module, int submodule, int channel) const
(1) create towerId from fields