ATLAS Offline Software
Loading...
Searching...
No Matches
NSWAGDDTool.cxx File Reference
Include dependency graph for NSWAGDDTool.cxx:

Go to the source code of this file.

Functions

StatusCode NSWAGDDTool::initialize ATLAS_NOT_THREAD_SAFE ()
 Install fatal handler with default options.

Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

StatusCode NSWAGDDTool::initialize ATLAS_NOT_THREAD_SAFE ( )
inline

Install fatal handler with default options.

This is meant to be easy to call from python via ctypes.

Definition at line 25 of file NSWAGDDTool.cxx.

26{
27 ATH_CHECK(AGDDToolBase::initialize());
28 ATH_MSG_INFO("NSWAGDDTool::initialize");
29
30 if( m_xmlFiles.size() == 1 && m_writeDBfile )
31 {
32 std::size_t found = m_xmlFiles[0].find_last_of('/');
33 m_outFileInName = m_xmlFiles[0].substr(found+1);
34 }
35 else if ( m_writeDBfile ) ATH_MSG_ERROR("writing data base files currently only supported if just a single input XML is given!");
36
37 m_outFileName = "Out.AmdcOracle.AM." + m_outFileType + "temp.data";
38 m_outPREsqlName = "Out.AmdcOracle.AM." + m_outFileType + ".PREsql";
39
40 if (m_DBFileName.empty()) {
41 m_DBFileName = "Generated_" + m_outFileType + "_pool.txt";
42 }
43
44 static std::once_flag init;
45 std::call_once (init, [&]()
46 {
47 MuonAGDDToolHelper theHelper;
48 theHelper.setAGDDtoGeoSvcName(m_agdd2GeoSvcName);
49 theHelper.SetNSWComponents();
50 });
51
52 ATH_CHECK(construct());
53 return StatusCode::SUCCESS;
54}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x,...)
#define ATH_MSG_INFO(x,...)
void setAGDDtoGeoSvcName(const std::string &name)
bool init(S_t &s, const float xlo, const float xhi, const unsigned int nbins)
Initialize a map to be used as a histogram.