Install fatal handler with default options.
This is meant to be easy to call from python via ctypes.
62{
63
64 m_StatusNMask = !m_StatusMask;
65
66 StatusCode sc = detStore()->retrieve(m_onlineHelper,
"LArOnlineID");
70 }
71
73
74 std::vector<std::string>::const_iterator
it = m_LArCellCorrNames.begin();
75 std::vector<std::string>::const_iterator it_end = m_LArCellCorrNames.end();
76 for(;
it!=it_end;++
it)
77 {
80 Gaudi::Utils::TypeNameString li(*it);
81 if((toolSvc()->retrieveTool(li.type(), li.name(), tool)).isFailure() )
82 {
84 return StatusCode::FAILURE;
85 }
86
88 if(!corr )
89 {
91 return StatusCode::FAILURE;
92 }
93 m_LArCellCorrTools.push_back(corr);
94 }
95
96
97 if (m_vBEPreselection.size() && m_vPosNegPreselection.size() && m_vFTPreselection.size()) {
99 for (const unsigned BE : m_vBEPreselection) {
100 for (const unsigned PN : m_vPosNegPreselection) {
101 for (const unsigned FT : m_vFTPreselection) {
102 HWIdentifier finalFTId=m_onlineHelper->feedthrough_Id(BE,PN,FT);
104 ATH_MSG_INFO(
"Adding feedthrough Barrel/Endcap=" << BE <<
" pos/neg=" << PN <<
" FT=" << FT
105 << " (0x" << std::hex << finalFTId32 << std::dec << ")");
106 m_vFinalPreselection.push_back(finalFTId32);
107 }
108 }
109 }
110 std::sort(m_vFinalPreselection.begin(),m_vFinalPreselection.end());
111 }
112 else {
113 if (m_vBEPreselection.size() || m_vPosNegPreselection.size() || m_vFTPreselection.size()) {
114 ATH_MSG_ERROR(
"Feedthrough preselection: jobOption inconsistency! ");
115 ATH_MSG_ERROR(
"Need to set all three jobOptions BEPreselection PNPreselecton and FTPreselection");
116 return StatusCode::FAILURE;
117 }
119 }
121}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_ERROR(x,...)
#define ATH_MSG_INFO(x,...)
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.