ATLAS Offline Software
Classes | Namespaces | Macros | Typedefs | Functions
SealSignal.h File Reference

This is the signal handler from SEAL, adapted to build in Atlas, after the drop of that project. More...

#include "CxxUtils/checker_macros.h"
#include "CxxUtils/SealCommon.h"
#include <signal.h>
#include <sys/types.h>
#include <climits>
#include <atomic>
Include dependency graph for SealSignal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  siginfo_t
 
class  Athena::Signal
 Utilities for handling signals and fatal errors. More...
 

Namespaces

 Athena
 Some weak symbol referencing magic...
 

Macros

#define CXXUTILS_SEAL_SIGNAL_H
 
#define si_utime   si_signo ? 0 : 0
 
#define si_stime   si_signo ? 0 : 0
 
#define si_int   si_signo ? 0 : 0
 
#define si_ptr   si_signo ? (void *) 0 : (void *) 0
 
#define sigemptyset(x)   (0)
 
#define sigfillset(x)   (0)
 
#define sigaddset(x, y)   (0)
 
#define sigdelset(x, y)   (0)
 
#define sigismember(x, y)   (0)
 

Typedefs

typedef int sigset_t
 

Functions

void CxxUtils_installFatalHandler ATLAS_NOT_THREAD_SAFE ()
 Install fatal handler with default options. More...
 

Detailed Description

This is the signal handler from SEAL, adapted to build in Atlas, after the drop of that project.

Author
Lassi Tuura (original author)
Wim Lavrijsen WLavr.nosp@m.ijse.nosp@m.n@lbl.nosp@m..gov (responsible in ATLAS)
Date
Oct, 2008 Search for ‘wlav’ or ‘sss’ to find changes from the SEAL version. I also dropped all ASSERT macro's in favor of assert.

Definition in file SealSignal.h.

Macro Definition Documentation

◆ CXXUTILS_SEAL_SIGNAL_H

#define CXXUTILS_SEAL_SIGNAL_H

Definition at line 19 of file SealSignal.h.

◆ si_int

#define si_int   si_signo ? 0 : 0

Definition at line 50 of file SealSignal.h.

◆ si_ptr

#define si_ptr   si_signo ? (void *) 0 : (void *) 0

Definition at line 51 of file SealSignal.h.

◆ si_stime

#define si_stime   si_signo ? 0 : 0

Definition at line 43 of file SealSignal.h.

◆ si_utime

#define si_utime   si_signo ? 0 : 0

Definition at line 42 of file SealSignal.h.

◆ sigaddset

#define sigaddset (   x,
  y 
)    (0)

Definition at line 85 of file SealSignal.h.

◆ sigdelset

#define sigdelset (   x,
  y 
)    (0)

Definition at line 86 of file SealSignal.h.

◆ sigemptyset

#define sigemptyset (   x)    (0)

Definition at line 83 of file SealSignal.h.

◆ sigfillset

#define sigfillset (   x)    (0)

Definition at line 84 of file SealSignal.h.

◆ sigismember

#define sigismember (   x,
  y 
)    (0)

Definition at line 87 of file SealSignal.h.

Typedef Documentation

◆ sigset_t

typedef int sigset_t

Definition at line 80 of file SealSignal.h.

Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

void CxxUtils_installFatalHandler 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

Install fatal handler with default options.

called at the end of each athena event (can be used for eg.

called at the beginning of each athena event (can be used for eg.

return the simulation service ID

resetting dynamic selectors)

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

now add branches and leaves to the tree

now add branches and leaves to the tree

>= 14.2.10 /// -------------------------—

up to 14.2.0 /// -------------------------—

Definition at line 124 of file IOVDbTestAlg.cxx.

124  {
125  ATH_MSG_DEBUG( "in initialize()" );
126 
127  // Get Output Stream tool for writing
128  if (m_writeCondObjs) {
129  m_streamer = "AthenaOutputStreamTool/" + m_streamName;
130  ATH_CHECK( m_streamer.retrieve() );
131  }
132 
133  // Get the IOVRegistrationSvc when needed
134  if (m_regIOV) {
135  ATH_CHECK( m_regSvc.retrieve() );
136  ATH_MSG_DEBUG( "Found IOVRegistrationSvc " );
137  ATH_MSG_INFO( "Tag to be used: " << m_tagID );
138  }
139 
140  if (m_readInInit) {
141  ATH_CHECK( readWithBeginRun() );
142  ATH_MSG_DEBUG( "Read with BeginRun " );
143  }
144 
145  // register callbacks for test of online change of constants
146  if (!m_online) return StatusCode::SUCCESS;
147 
148  const DataHandle<IOVDbTestMDTEleMap> mdtelemap;
149  ATH_CHECK( detStore()->regFcn(&IOVDbTestAlg::testCallBack, this, mdtelemap, "/IOVDbTest/IOVDbTestMDTEleMap") );
150  ATH_MSG_INFO( "Registered callback for IOVDbTestAlg::testCallBack" );
151 
152 
153  return StatusCode::SUCCESS;
154 }
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
IOVDbTestAlg::testCallBack
StatusCode testCallBack(IOVSVC_CALLBACK_ARGS)
Definition: IOVDbTestAlg.cxx:112
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
python.PyKernel.detStore
detStore
Definition: PyKernel.py:41
DataHandle
an iterator over instances of a given type in StoreGateSvc. It d-casts and caches locally the pointed...
Definition: DataHandle.h:42