ATLAS Offline Software
Functions
NSWAGDDTool.cxx File Reference
#include "NSWAGDDTool.h"
#include "MuonAGDDToolHelper.h"
#include "AGDDControl/AGDDController.h"
#include "AGDDControl/AGDD2GeoModelBuilder.h"
#include "AGDDControl/IAGDD2GeoSvc.h"
#include "AGDDModel/AGDDParameterStore.h"
#include "AGDDKernel/AGDDDetector.h"
#include "AGDDKernel/AGDDDetectorStore.h"
#include <fstream>
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. More...
 

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.

Install fatal handler with default options.

getLorentzAngle() Read LorentzAngle from HIST and write out into local DB

getBSErrors() Read BSErrors from Monitoring HIST and write out into local DB

getEfficiency() Read Efficiency from Monitoring HIST and write out into local DB

getRawOccupancy() Read RawOccupancy from Monitoring HIST and write out into local DB

getNoiseOccupancy() Read NoiseOccupancy from HIST and write out into local DB

getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats

beginning of the loop of channels

bad bit newly found

known bad bit

for low noisy cells

for high noisy cells

0.01 is used to scale "PER" to the same order of magnitude to "SIG"

smaller deviation: distorted

checking TmaxAmp, Not mixed with MaxAmp and Width

channel information output

Only dead or distorted, or short known BCs are considered below.

index of bc

Definition at line 25 of file NSWAGDDTool.cxx.

26 {
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 }
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
initialize
void initialize()
Definition: run_EoverP.cxx:894
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
MuonAGDDToolHelper::SetNSWComponents
void SetNSWComponents()
Definition: MuonAGDDToolHelper.cxx:128
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
MuonAGDDToolHelper
Definition: MuonAGDDToolHelper.h:20
python.PyKernel.init
def init(v_theApp, v_rootStream=None)
Definition: PyKernel.py:45
MuonAGDDToolHelper::setAGDDtoGeoSvcName
void setAGDDtoGeoSvcName(const std::string &name)
Definition: MuonAGDDToolHelper.cxx:148
CondAlgsOpts.found
int found
Definition: CondAlgsOpts.py:101