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

getCoefficientMap(label, EigenIdxList)

input value:

  1. label: falvor label in std::string format, could be one of B, C, T, Light
  2. EigenIdxList is user defined vector containing all eigenvector index that user interested in. output: Map of format map<string, map<string, float>> containing decomposition coefficient of the list of eigenvectors defined by EigenIdxList.

getCoefficients(label, evIdx)

input value:

  1. label: falvor label in std::string format, could be one of B, C, T, Light
  2. evIdx: The index of eigenvector user interested in. output value: vector of coefficient values. The order is the same as output given by getListOfOriginalNuisanceParameters()

getListOfOriginalNuisanceParameters(label)

input value:

  1. label: falvor label in std::string format, could be one of B, C, T, Light output value: List of original nuisance parameter names.

getNumEigenVectors(label)

input value:

  1. label: falvor label in std::string format, could be one of B, C, T, Light return value: number of eigen vectors used for chosen label. Return 0 if error occured.

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 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 }
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
IOVDbTestAlg::testCallBack
StatusCode testCallBack(IOVSVC_CALLBACK_ARGS)
Definition: IOVDbTestAlg.cxx:78
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:43