Install fatal handler with default options.
This is meant to be easy to call from python via ctypes.
75{
76
77 m_StatusNMask = !m_StatusMask;
78
79 StatusCode sc = detStore()->retrieve(m_onlineHelper,
"LArOnlineID");
83 }
84
86
87 std::vector<std::string>::const_iterator
it = m_LArCellCorrNames.begin();
88 std::vector<std::string>::const_iterator it_end = m_LArCellCorrNames.end();
89 for(;
it!=it_end;++
it)
90 {
93 Gaudi::Utils::TypeNameString li(*it);
94 if((toolSvc()->retrieveTool(li.type(), li.name(), tool)).isFailure() )
95 {
97 return StatusCode::FAILURE;
98 }
99
101 if(!corr )
102 {
104 return StatusCode::FAILURE;
105 }
106 m_LArCellCorrTools.push_back(corr);
107 }
108
109
110 if (m_vBEPreselection.size() && m_vPosNegPreselection.size() && m_vFTPreselection.size()) {
112 for (const unsigned BE : m_vBEPreselection) {
113 for (const unsigned PN : m_vPosNegPreselection) {
114 for (const unsigned FT : m_vFTPreselection) {
115 HWIdentifier finalFTId=m_onlineHelper->feedthrough_Id(BE,PN,FT);
117 ATH_MSG_INFO(
"Adding feedthrough Barrel/Endcap=" << BE <<
" pos/neg=" << PN <<
" FT=" << FT
118 << " (0x" << std::hex << finalFTId32 << std::dec << ")");
119 m_vFinalPreselection.push_back(finalFTId32);
120 }
121 }
122 }
123 std::sort(m_vFinalPreselection.begin(),m_vFinalPreselection.end());
124 }
125 else {
126 if (m_vBEPreselection.size() || m_vPosNegPreselection.size() || m_vFTPreselection.size()) {
127 ATH_MSG_ERROR(
"Feedthrough preselection: jobOption inconsistency! ");
128 ATH_MSG_ERROR(
"Need to set all three jobOptions BEPreselection PNPreselecton and FTPreselection");
129 return StatusCode::FAILURE;
130 }
132 }
134}
#define ATH_CHECK
Evaluate an expression and check for errors.
value_type get_compact() const
Get the compact id.
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
::StatusCode StatusCode
StatusCode definition for legacy code.
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.