ATLAS Offline Software
Functions
TBCaloCoolPosTool.cxx File Reference
#include "TBCaloCoolPosTool.h"
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/IIncidentSvc.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

now add branches and leaves to the tree

now add branches and leaves to the tree

Definition at line 74 of file TBCaloCoolPosTool.cxx.

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