ATLAS Offline Software
Loading...
Searching...
No Matches
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

namespace  Athena
 Some weak symbol referencing magic... These are declared in AthenaKernel/getMessageSvc.h and will be non-nullptr in case the GaudiSvc/AthenaKernel shared libraries have been loaded.

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)
#define sigfillset(x)
#define sigaddset(x, y)
#define sigdelset(x, y)
#define sigismember(x, y)

Typedefs

typedef int sigset_t

Functions

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

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 18 of file SealSignal.h.

◆ si_int

#define si_int   si_signo ? 0 : 0

Definition at line 49 of file SealSignal.h.

◆ si_ptr

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

Definition at line 50 of file SealSignal.h.

◆ si_stime

#define si_stime   si_signo ? 0 : 0

Definition at line 42 of file SealSignal.h.

◆ si_utime

#define si_utime   si_signo ? 0 : 0

Definition at line 41 of file SealSignal.h.

◆ sigaddset

#define sigaddset ( x,
y )
Value:
(0)

Definition at line 84 of file SealSignal.h.

◆ sigdelset

#define sigdelset ( x,
y )
Value:
(0)

Definition at line 85 of file SealSignal.h.

◆ sigemptyset

#define sigemptyset ( x)
Value:
(0)

Definition at line 82 of file SealSignal.h.

◆ sigfillset

#define sigfillset ( x)
Value:
(0)

Definition at line 83 of file SealSignal.h.

◆ sigismember

#define sigismember ( x,
y )
Value:
(0)

Definition at line 86 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 ( void )
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

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

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

Definition at line 90 of file IOVDbTestAlg.cxx.

90 {
91 ATH_MSG_DEBUG( "in initialize()" );
92
93 // Get Output Stream tool for writing
94 if (m_writeCondObjs) {
95 m_streamer = "AthenaOutputStreamTool/" + m_streamName;
96 ATH_CHECK( m_streamer.retrieve() );
97 }
98
99 // Get the IOVRegistrationSvc when needed
100 if (m_regIOV) {
101 ATH_CHECK( m_regSvc.retrieve() );
102 ATH_MSG_DEBUG( "Found IOVRegistrationSvc " );
103 ATH_MSG_INFO( "Tag to be used: " << m_tagID.value() );
104 }
105
106 if (m_readInInit) {
107 ATH_CHECK( readWithBeginRun() );
108 ATH_MSG_DEBUG( "Read with BeginRun " );
109 }
110
111 // register callbacks for test of online change of constants
112 if (!m_online) return StatusCode::SUCCESS;
113
114 const DataHandle<IOVDbTestMDTEleMap> mdtelemap;
115 ATH_CHECK( detStore()->regFcn(&IOVDbTestAlg::testCallBack, this, mdtelemap, "/IOVDbTest/IOVDbTestMDTEleMap") );
116 ATH_MSG_INFO( "Registered callback for IOVDbTestAlg::testCallBack" );
117
118
119 return StatusCode::SUCCESS;
120}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
an iterator over instances of a given type in StoreGateSvc.
Definition DataHandle.h:43
StatusCode testCallBack(IOVSVC_CALLBACK_ARGS)