ATLAS Offline Software
Functions
TBCaloCoolPosTool.cxx File Reference
#include "TBCaloCoolPosTool.h"
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/IIncidentSvc.h"
#include "GaudiKernel/ServiceHandle.h"
Include dependency graph for TBCaloCoolPosTool.cxx:

Go to the source code of this file.

Functions

bool TBCaloCoolPosTool::initHandles ATLAS_NOT_THREAD_SAFE ()
 Install fatal handler with default options. More...
 

Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

bool TBCaloCoolPosTool::initHandles 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

note: the declarations must be placed in the "good" order, otherwise the definitions of the SystematicVariations will be different than those obtained with readFromROOT()

now add branches and leaves to the tree

now add branches and leaves to the tree

Definition at line 70 of file TBCaloCoolPosTool.cxx.

71 {
72  ATH_MSG_DEBUG ("in initHandles()" );
73 
74  const EventContext& ctx = Gaudi::Hive::currentContext();
75  int run = ctx.eventID().run_number();
76 
77  std::string etaKey,thetaKey,zKey,deltaKey;
78 
79  if(run<1000454){
80  // this is the period before July 12, folder name is under Tile
81  thetaKey = "/TILE/DCS/SYSTEM1/TABLE/THETA" ;
82  etaKey = "/TILE/DCS/SYSTEM1/TABLE/ETA" ;
83  zKey = "/TILE/DCS/SYSTEM1/TABLE/Z" ;
84  deltaKey = "/TILE/DCS/SYSTEM1/TABLE/DELTA" ;
85  ATH_MSG_DEBUG ( " runs before 1000454, using Folders with SYSTEM1..." );
86 
87  } else
88  { // Folder moved under System:
89  thetaKey = "/TILE/DCS/TILE_LV_62/TABLE/THETA" ;
90  etaKey = "/TILE/DCS/TILE_LV_62/TABLE/ETA" ;
91  zKey = "/TILE/DCS/TILE_LV_62/TABLE/Z" ;
92  deltaKey = "/TILE/DCS/TILE_LV_62/TABLE/DELTA" ;
93  ATH_MSG_DEBUG ( " runs after 1000454, using Folders with TILE_LV_62..." );
94  }
95 
96  ATH_CHECK(detStore()->regHandle(m_deltaTable,deltaKey),false);
97  ATH_CHECK(detStore()->regHandle(m_thetaTable,thetaKey),false);
98  ATH_CHECK(detStore()->regHandle(m_zTable,zKey),false);
99  ATH_CHECK(detStore()->regHandle(m_etaTable,etaKey),false);
100 
101  ATH_MSG_DEBUG ( " eta = " << eta() );
102  ATH_MSG_DEBUG ( " theta = " << theta() );
103  ATH_MSG_DEBUG ( " z = " << z() );
104  ATH_MSG_DEBUG ( " delta = " << delta() );
105 
106  return true;
107 }
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
theta
Scalar theta() const
theta method
Definition: AmgMatrixBasePlugin.h:75
z
#define z
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
run
Definition: run.py:1
python.PyKernel.detStore
detStore
Definition: PyKernel.py:41