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

Go to the source code of this file.

Functions

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

Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

bool TBCaloPosTool::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 73 of file TBCaloPosTool.cxx.

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