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 75 of file TBCaloPosTool.cxx.

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