ATLAS Offline Software
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
TileDddbManager Class Reference

This class provides access to constants in the Geometry DB. More...

#include <TileDddbManager.h>

Inheritance diagram for TileDddbManager:
Collaboration diagram for TileDddbManager:

Public Types

enum  TileSections {
  TILE_BARREL =1, TILE_EBARREL =2, TILE_PLUG1 =3, TILE_PLUG2 =4,
  TILE_PLUG3 =5, TILE_PLUG4 =6
}
 

Public Member Functions

 TileDddbManager (IRDBAccessSvc *access, const std::string &version_tag, const std::string &version_node, bool sqliteInput=false)
 
 TileDddbManager (const TileDddbManager &)=delete
 
TileDddbManageroperator= (const TileDddbManager &)=delete
 
virtual ~TileDddbManager ()
 
int TILEnmodul () const
 
double TILErmim () const
 
double TILErmam () const
 
double TILEzmam () const
 
double TILErmin () const
 
double TILErmax () const
 
double TILEzshift () const
 
int GetNumberOfEnv () const
 
int GetEnvType () const
 
int SetCurrentEnvByType (unsigned int envelope)
 
int SetCurrentEnvByIndex (unsigned int envelope)
 
int GetEnvSide () const
 
int GetEnvNModules () const
 
double GetEnvRin () const
 
double GetEnvRout () const
 
double GetEnvZLength () const
 
double GetEnvDPhi () const
 
double GetEnvDZ () const
 
double GetEnvDX () const
 
double GetEnvDY () const
 
double GetEnvDPsi () const
 
double GetEnvDTheta () const
 
double GetEnvZShift () const
 
int SetCurrentModuleByIndex (unsigned int Id)
 
int SetCurrentModuleByNumber (unsigned int Number)
 
int GetModNumber () const
 
int GetModType () const
 
double GetModDX () const
 
double GetModDY () const
 
double GetModDZ () const
 
double GetModDPhi () const
 
double GetModDPsi () const
 
double GetModDTheta () const
 
int SetCurrentTypeByIndex (unsigned int Id)
 
int SetCurrentTypeByNumber (unsigned int Number)
 
unsigned int GetModType (unsigned int Id) const
 
unsigned int GetModTypeSize () const
 
unsigned int GetNumTilb () const
 
int SetCurrentSectionByIndex (unsigned int IdSection)
 
int SetCurrentSectionByNumber (unsigned int section)
 
int SetCurrentSection (unsigned int section, bool print=true)
 
int TILBsection () const
 
int TILBnperiod () const
 
int TILBnmodul () const
 
double TILBrmin () const
 
double TILBrmax () const
 
double TILBrminimal () const
 
double TILBrmaximal () const
 
double TILBdzperio () const
 
double TILBdrfront () const
 
double TILBdzend () const
 
double TILBflangex () const
 
double TILBflangey () const
 
double TILBzoffset () const
 
double TILBphigap () const
 
double TILBisci_st () const
 
double TILBdzmodul () const
 
double TILBdzmast () const
 
double TILBdzspac () const
 
double TILBdzend1 () const
 
double TILBdzend2 () const
 
int TILBngirder () const
 
int TILBnscin () const
 
int TILBfingpattern () const
 
int TILBnpercutpos () const
 
int TILBnpercutneg () const
 
int TILBcurscint () const
 
double TILBdzgir () const
 
int SetCurrentScin (int item)
 
int SCNTitem () const
 Fields of SCNT structure (see also Oracle comments): More...
 
double SCNTdr () const
 
double SCNTrc () const
 
double SCNTzp () const
 
double SCNTdrw () const
 
double SCNTdt () const
 
double SCNTdtw () const
 
double SCNTdphi () const
 
int SetCurrentCuts (const std::string &input)
 Fields of CUTS structure (see also Oracle comments): More...
 
bool BoolCuts ()
 
std::string CutsName () const
 
double CutsDX1 () const
 
double CutsDX2 () const
 
double CutsDY1 () const
 
double CutsDY2 () const
 
double CutsDZ1 () const
 
double CutsXpos () const
 
double CutsYpos () const
 
int SetCurrentSaddle (unsigned int index)
 Fields of SADDLE structure (see also Oracle comments): More...
 
bool BoolSaddle ()
 
double DzSaddleSupport () const
 
double RadiusSaddle () const
 
int SetCurrentGird (int item)
 
int TIGRitem () const
 
int TIGRmaterial () const
 
double TIGRrc () const
 
double TIGRdr () const
 
double TIGRdw () const
 
double TIGRoff () const
 
int SetCurrentTifg (int section)
 
int TIFGsection () const
 
int TIFGnelem () const
 
double TIFGdz () const
 
int SetCurrentTicg (int item)
 
int TICGitem () const
 
int TICGmaterial () const
 
int TICGshape () const
 
double TICGrc () const
 
double TICGdr () const
 
double TICGdx1 () const
 
double TICGdx2 () const
 
double TICGoff () const
 
double TICGdz () const
 
double TICGzc () const
 
unsigned int GetNumTicl () const
 
int SetCurrentTicl (int detector, double sample, double tower)
 
int SetCurrentTicl (unsigned int index)
 
int SetFirstTiclInDet (int detector)
 
int SetFirstTiclInDetSamp (int detector, double sample)
 
int SetNextTiclInDet ()
 
int SetNextTiclInDetSamp ()
 
int TICLdetector () const
 
double TICLncell () const
 
double TICLtower () const
 
double TICLsample () const
 
double TICLeta () const
 
double TICLdeta () const
 
double TICLfirstrow () const
 
double TICLlastrow () const
 
double TICLntilesrow (unsigned int ind) const
 
double TICLnpmt () const
 
double TICLholes (unsigned int ind) const
 
int getSwitch (const char *name, int def_val) const
 
int addPlatesToCell () const
 
int uShape () const
 
int glue () const
 
int PVT () const
 
int steel () const
 
int csTube () const
 
bool msgLvl (const MSG::Level lvl) const
 Test the output level. More...
 
MsgStream & msg () const
 The standard message stream. More...
 
MsgStream & msg (const MSG::Level lvl) const
 The standard message stream. More...
 
void setLevel (MSG::Level lvl)
 Change the current logging level. More...
 

Private Member Functions

void FillModTypes ()
 
void initMessaging () const
 Initialize our message level and MessageSvc. More...
 

Private Attributes

IRDBRecordset_ptr m_tiglob
 
IRDBRecordset_ptr m_timod
 
IRDBRecordset_ptr m_tile
 
IRDBRecordset_ptr m_tilb
 
IRDBRecordset_ptr m_tigr
 
IRDBRecordset_ptr m_scnt
 
IRDBRecordset_ptr m_tifg
 
IRDBRecordset_ptr m_ticg
 
IRDBRecordset_ptr m_ticl
 
IRDBRecordset_ptr m_cuts
 
IRDBRecordset_ptr m_saddle
 
IRDBRecordset_ptr m_tileSwitches
 
unsigned int m_n_tiglob
 
unsigned int m_n_timod
 
unsigned int m_n_tilb
 
unsigned int m_n_tigr
 
unsigned int m_n_scnt
 
unsigned int m_n_tifg
 
unsigned int m_n_ticg
 
unsigned int m_n_ticl
 
unsigned int m_EnvNum
 
unsigned int m_EnvSize
 
unsigned int m_EnvBegin
 
unsigned int m_n_cuts
 
unsigned int m_n_saddle
 
unsigned int m_n_tileSwitches
 
const IRDBRecordm_currentTileGlob
 
const IRDBRecordm_currentTileMod
 
const IRDBRecordm_currentSection
 
const IRDBRecordm_currentGird
 
const IRDBRecordm_currentScin
 
const IRDBRecordm_currentTifg
 
const IRDBRecordm_currentTicg
 
const IRDBRecordm_currentTicl
 
const IRDBRecordm_currentCuts
 
const IRDBRecordm_currentSaddle
 
int m_currentTiclInd
 
std::string m_tag
 
std::string m_node
 
bool m_sqliteInput
 
std::vector< unsigned int > m_modTypes
 
bool m_buildCuts
 
bool m_buildSaddle
 
std::string m_nm
 Message source name. More...
 
boost::thread_specific_ptr< MsgStream > m_msg_tls
 MsgStream instance (a std::cout like with print-out levels) More...
 
std::atomic< IMessageSvc * > m_imsg { nullptr }
 MessageSvc pointer. More...
 
std::atomic< MSG::Level > m_lvl { MSG::NIL }
 Current logging level. More...
 
std::atomic_flag m_initialized ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT
 Messaging initialized (initMessaging) More...
 

Detailed Description

This class provides access to constants in the Geometry DB.

We have following tables:

See also
TILE
GLOBALS
MODULES Modules
TILB Modules
SCNT Scintillator
TIGR Girder
TIFG Finger
CUTS Extended Barrel cutouts
TICG

Definition at line 36 of file TileDddbManager.h.

Member Enumeration Documentation

◆ TileSections

Enumerator
TILE_BARREL 
TILE_EBARREL 
TILE_PLUG1 
TILE_PLUG2 
TILE_PLUG3 
TILE_PLUG4 

Definition at line 40 of file TileDddbManager.h.

41  {
42  TILE_BARREL=1,
43  TILE_EBARREL=2,
44  TILE_PLUG1=3,
45  TILE_PLUG2=4,
46  TILE_PLUG3=5,
47  TILE_PLUG4=6
48  };

Constructor & Destructor Documentation

◆ TileDddbManager() [1/2]

TileDddbManager::TileDddbManager ( IRDBAccessSvc access,
const std::string &  version_tag,
const std::string &  version_node,
bool  sqliteInput = false 
)

Definition at line 22 of file TileDddbManager.cxx.

26  : AthMessaging ("TileDddbManager")
27  , m_n_cuts(0)
28  , m_n_saddle(0)
30  , m_currentTileMod(0)
31  , m_currentSection(0)
32  , m_currentGird(0)
33  , m_currentScin(0)
34  , m_currentTifg(0)
35  , m_currentTicg(0)
36  , m_currentTicl(0)
37  , m_currentCuts(0)
38  , m_currentSaddle(0)
39  , m_currentTiclInd(-1)
40  , m_tag(version_tag)
41  , m_node(version_node)
42  , m_sqliteInput(sqliteInput)
43 {
44  ATH_MSG_INFO( "m_tag = " << m_tag );
45 
46  m_tiglob = access->getRecordsetPtr("TileGlobals",m_tag,m_node);
47  m_n_tiglob = m_tiglob->size();
48  ATH_MSG_INFO( "n_tiglob = " << m_n_tiglob );
49 
50  if (m_sqliteInput) {
51  m_timod = access->getRecordsetPtr("TileModule",m_tag,m_node);
52  } else {
53  if (access->getChildTag("TileModule",m_tag,m_node)!="") {
54  m_timod = access->getRecordsetPtr("TileModule",m_tag,m_node);
55  } else {
56  m_timod = access->getRecordsetPtr("TileModules",m_tag,m_node);
57  }
58  }
59  m_n_timod = m_timod->size();
60  ATH_MSG_INFO( "n_timod = " << m_n_timod );
61 
62  if (access->getChildTag("TileCuts",m_tag,m_node)!="")
63  { m_buildCuts = true;
64  m_cuts = access->getRecordsetPtr("TileCuts",m_tag,m_node);
65  m_n_cuts = m_cuts->size();
66  ATH_MSG_INFO( "n_cuts = " << m_n_cuts );
67 
68  } else {
69  m_buildCuts = false;
70  }
71 
72 
73  if (access->getChildTag("TileSaddleSup",m_tag,m_node)!="")
74  { m_buildSaddle = true;
75  m_saddle = access->getRecordsetPtr("TileSaddleSup",m_tag,m_node);
76  m_n_saddle = m_saddle->size();
77  ATH_MSG_INFO( "n_saddle = " << m_n_saddle );
78 
79  } else {
80  m_buildSaddle = false;
81  }
82 
83  m_tile = access->getRecordsetPtr("TILE",m_tag,m_node);
84 
85  m_tilb = access->getRecordsetPtr("TILB",m_tag,m_node);
86  m_n_tilb = m_tilb->size();
87  ATH_MSG_INFO( "n_tilb = " << m_n_tilb );
88 
89  m_tigr = access->getRecordsetPtr("TIGR",m_tag,m_node);
90  m_n_tigr = m_tigr->size();
91 
92  m_scnt = access->getRecordsetPtr("SCNT",m_tag,m_node);
93  m_n_scnt = m_scnt->size();
94 
95  m_tifg = access->getRecordsetPtr("TIFG",m_tag,m_node);
96  m_n_tifg = m_tifg->size();
97 
98  m_ticg = access->getRecordsetPtr("TICG",m_tag,m_node);
99  m_n_ticg = m_ticg->size();
100 
101  m_ticl = access->getRecordsetPtr("TICL",m_tag,m_node);
102  m_n_ticl = m_ticl->size();
103 
104  m_tileSwitches = access->getRecordsetPtr("TileSwitches",m_tag,m_node);
106  ATH_MSG_INFO( "n_tileSwitches = " << m_n_tileSwitches );
107 
108 
109  m_EnvNum = 0;
110  m_EnvSize = 0;
111  m_EnvBegin = 0;
112  m_modTypes.clear();
113 }

◆ TileDddbManager() [2/2]

TileDddbManager::TileDddbManager ( const TileDddbManager )
delete

◆ ~TileDddbManager()

virtual TileDddbManager::~TileDddbManager ( )
inlinevirtual

Definition at line 58 of file TileDddbManager.h.

58 {}

Member Function Documentation

◆ addPlatesToCell()

int TileDddbManager::addPlatesToCell ( ) const
inline

Definition at line 270 of file TileDddbManager.h.

270 { return getSwitch("ADDPLATESTOCELL",1); }

◆ BoolCuts()

bool TileDddbManager::BoolCuts ( )

Definition at line 1071 of file TileDddbManager.cxx.

1072 { if (m_buildCuts)
1073  { return m_buildCuts;
1074  } else
1075  { ATH_MSG_DEBUG( "TileDddbManager::BoolCuts() - return false" );
1076  return false;
1077  }
1078 }

◆ BoolSaddle()

bool TileDddbManager::BoolSaddle ( )

Definition at line 1177 of file TileDddbManager.cxx.

1178 { if (m_buildSaddle)
1179  { return m_buildSaddle;
1180  } else
1181  { ATH_MSG_DEBUG( "TileDddbManager::BoolSaddle() - return false" );
1182  return false;
1183  }
1184 }

◆ csTube()

int TileDddbManager::csTube ( ) const
inline

Definition at line 275 of file TileDddbManager.h.

275 { return getSwitch("CSTUBE",0); }

◆ CutsDX1()

double TileDddbManager::CutsDX1 ( ) const

Definition at line 1090 of file TileDddbManager.cxx.

1091 {
1092  if (m_currentCuts)
1093  return (double)m_currentCuts->getFloat("DX1");
1094  else
1095  { ATH_MSG_ERROR( "TileDddbManager::CutsDX1() - Current dX1 dimension not set, returning -999.9" );
1096  return -999.9;
1097  }
1098 }

◆ CutsDX2()

double TileDddbManager::CutsDX2 ( ) const

Definition at line 1100 of file TileDddbManager.cxx.

1101 {
1102  if (m_currentCuts)
1103  return (double)m_currentCuts->getFloat("DX2");
1104  else
1105  { ATH_MSG_ERROR( "TileDddbManager::CutsDX2() - Current dX2 dimension not set, returning -999.9" );
1106  return -999.9;
1107  }
1108 }

◆ CutsDY1()

double TileDddbManager::CutsDY1 ( ) const

Definition at line 1110 of file TileDddbManager.cxx.

1111 {
1112  if (m_currentCuts)
1113  return (double)m_currentCuts->getFloat("DY1");
1114  else
1115  { ATH_MSG_ERROR( "TileDddbManager::CutsDY1() - Current dY1 dimension not set, returning -999.9" );
1116  return -999.9;
1117  }
1118 }

◆ CutsDY2()

double TileDddbManager::CutsDY2 ( ) const

Definition at line 1120 of file TileDddbManager.cxx.

1121 {
1122  if (m_currentCuts)
1123  return (double)m_currentCuts->getFloat("DY2");
1124  else
1125  { ATH_MSG_ERROR( "TileDddbManager::CutsDY2() - Current dY2 dimension not set, returning -999.9" );
1126  return -999.9;
1127  }
1128 }

◆ CutsDZ1()

double TileDddbManager::CutsDZ1 ( ) const

Definition at line 1130 of file TileDddbManager.cxx.

1131 {
1132  if (m_currentCuts)
1133  return (double)m_currentCuts->getFloat("DZ1");
1134  else
1135  { ATH_MSG_ERROR( "TileDddbManager::CutsDZ1() - Current dZ1 dimension not set, returning -999.9" );
1136  return -999.9;
1137  }
1138 }

◆ CutsName()

std::string TileDddbManager::CutsName ( ) const

Definition at line 1080 of file TileDddbManager.cxx.

1081 {std::string output ="-999.9";
1082  if (m_currentCuts)
1083  return m_currentCuts->getString("VOLUME");
1084  else
1085  { ATH_MSG_ERROR( "TileDddbManager::CutsName() - Current VOLUME dimension not set, returning -999.9" );
1086  return output;
1087  }
1088 }

◆ CutsXpos()

double TileDddbManager::CutsXpos ( ) const

Definition at line 1140 of file TileDddbManager.cxx.

1141 {
1142  if (m_currentCuts)
1143  return (double)m_currentCuts->getFloat("XPOS");
1144  else
1145  { ATH_MSG_ERROR( "TileDddbManager::CutsXpos() - Current Xpos dimension not set, returning -999.9" );
1146  return -999.9;
1147  }
1148 }

◆ CutsYpos()

double TileDddbManager::CutsYpos ( ) const

Definition at line 1150 of file TileDddbManager.cxx.

1151 {
1152  if (m_currentCuts)
1153  return (double)m_currentCuts->getFloat("YPOS");
1154  else
1155  { ATH_MSG_ERROR( "TileDddbManager::CutsYpos() - Current Ypos dimension not set, returning -999.9" );
1156  return -999.9;
1157  }
1158 }

◆ DzSaddleSupport()

double TileDddbManager::DzSaddleSupport ( ) const

Definition at line 1186 of file TileDddbManager.cxx.

1187 {
1188  if (m_currentSaddle)
1189  return (double)m_currentSaddle->getFloat("DZSADDLESUPPORT");
1190  else
1191  { ATH_MSG_ERROR( "TileDddbManager::DzSaddleSupport() - dimension not set, returning -999.9" );
1192  return -999.9;
1193  }
1194 }

◆ FillModTypes()

void TileDddbManager::FillModTypes ( )
private

Definition at line 580 of file TileDddbManager.cxx.

581 {
582  m_modTypes.clear();
583 
584  int fullType = GetModType();
585 
586  while (fullType > 0) {
587  unsigned int subType = fullType%100;
588  m_modTypes.push_back(subType);
589  fullType /= 100;
590  }
592 }

◆ GetEnvDPhi()

double TileDddbManager::GetEnvDPhi ( ) const

Definition at line 314 of file TileDddbManager.cxx.

315 {
316  if (m_currentTileGlob) {
317  // return m_currentTileGlob->getDouble("DPHI");
318  // FIXME: temporary fix for wrong dphi in table
319  double dphi = m_currentTileGlob->getDouble("DPHI");
320  if ( dphi != 0 && m_tag == "TileCal-02") {
321  dphi -= 360.0/64.0/2.;
322  }
323  return dphi;
324  }
325  else {
326  ATH_MSG_ERROR( "TileDddbManager::GetEnvDPhi() - Current Envelope not set, returning -999" );
327  return -999;
328  }
329 }

◆ GetEnvDPsi()

double TileDddbManager::GetEnvDPsi ( ) const

Definition at line 371 of file TileDddbManager.cxx.

372 {
373  if (m_currentTileGlob) {
374  return m_currentTileGlob->getDouble("DPSI");
375  }
376  else {
377  ATH_MSG_ERROR( "TileDddbManager::GetEnvDPsi() - Current Envelope not set, returning -999" );
378  return -999;
379  }
380 }

◆ GetEnvDTheta()

double TileDddbManager::GetEnvDTheta ( ) const

Definition at line 382 of file TileDddbManager.cxx.

383 {
384  if (m_currentTileGlob) {
385  return m_currentTileGlob->getDouble("DTHETA");
386  }
387  else {
388  ATH_MSG_ERROR( "TileDddbManager::GetEnvDTheta() - Current Envelope not set, returning -999" );
389  return -999;
390  }
391 }

◆ GetEnvDX()

double TileDddbManager::GetEnvDX ( ) const

Definition at line 349 of file TileDddbManager.cxx.

350 {
351  if (m_currentTileGlob) {
352  return m_currentTileGlob->getDouble("DX");
353  }
354  else {
355  ATH_MSG_ERROR( "TileDddbManager::GetEnvDX() - Current Envelope not set, returning -999" );
356  return -999;
357  }
358 }

◆ GetEnvDY()

double TileDddbManager::GetEnvDY ( ) const

Definition at line 360 of file TileDddbManager.cxx.

361 {
362  if (m_currentTileGlob) {
363  return m_currentTileGlob->getDouble("DY");
364  }
365  else {
366  ATH_MSG_ERROR( "TileDddbManager::GetEnvDY() - Current Envelope not set, returning -999" );
367  return -999;
368  }
369 }

◆ GetEnvDZ()

double TileDddbManager::GetEnvDZ ( ) const

Definition at line 331 of file TileDddbManager.cxx.

332 {
333  if (m_currentTileGlob) {
334  // return m_currentTileGlob->getDouble("DZ");
335  // FIXME: temporary correction for finger length
336  // all fingers for the testbeam are "small fingers"
337  double dz = m_currentTileGlob->getDouble("DZ");
338  if ( dz > 20 && m_tag == "TileCal-02") {
339  dz += 43.05 - 37.7;
340  }
341  return dz;
342  }
343  else {
344  ATH_MSG_ERROR( "TileDddbManager::GetEnvDZ() - Current Envelope not set, returning -999" );
345  return -999;
346  }
347 }

◆ GetEnvNModules()

int TileDddbManager::GetEnvNModules ( ) const

Definition at line 262 of file TileDddbManager.cxx.

263 {
264  if (m_currentTileGlob) {
265  return m_currentTileGlob->getInt("NMODULES");
266  //sb return 1;
267  }
268  else {
269  ATH_MSG_ERROR( "TileDddbManager::GetEnvNModules() - Current Envelope not set, returning -999" );
270  return -999;
271  }
272 }

◆ GetEnvRin()

double TileDddbManager::GetEnvRin ( ) const

Definition at line 274 of file TileDddbManager.cxx.

275 {
276  if (m_currentTileGlob) {
277  return m_currentTileGlob->getDouble("RIN");
278  }
279  else {
280  ATH_MSG_ERROR( "TileDddbManager::GetEnvRin() - Current Envelope not set, returning -999" );
281  return -999;
282  }
283 }

◆ GetEnvRout()

double TileDddbManager::GetEnvRout ( ) const

Definition at line 285 of file TileDddbManager.cxx.

286 {
287  if (m_currentTileGlob) {
288  return m_currentTileGlob->getDouble("ROUT");
289  }
290  else {
291  ATH_MSG_ERROR( "TileDddbManager::GetEnvRout() - Current Envelope not set, returning -999" );
292  return -999;
293  }
294 }

◆ GetEnvSide()

int TileDddbManager::GetEnvSide ( ) const

Definition at line 251 of file TileDddbManager.cxx.

252 {
253  if (m_currentTileGlob) {
254  return m_currentTileGlob->getInt("SIDE");
255  }
256  else {
257  ATH_MSG_ERROR( "TileDddbManager::GetEnvSide() - Current Section not set, returning -999" );
258  return -999;
259  }
260 }

◆ GetEnvType()

int TileDddbManager::GetEnvType ( ) const

Definition at line 163 of file TileDddbManager.cxx.

164 {
165  if (m_currentTileGlob) {
166  return m_currentTileGlob->getInt("PART");
167  }
168  else {
169  ATH_MSG_ERROR( "TileDddbManager::GetEnvType() - Current Envelope not set, returning -999" );
170  return -999;
171  }
172 }

◆ GetEnvZLength()

double TileDddbManager::GetEnvZLength ( ) const

Definition at line 296 of file TileDddbManager.cxx.

297 {
298  if (m_currentTileGlob) {
299  // return m_currentTileGlob->getDouble("ZLENGTH");
300  // FIXME: temporary correction for finger length
301  // all fingers for the testbeam are "small fingers"
302  double len =m_currentTileGlob->getDouble("ZLENGTH");
303  if (len > 564 + 37.7*2 && m_tag == "TileCal-02") {
304  len = 564 + 37.7*2;
305  }
306  return len;
307  }
308  else {
309  ATH_MSG_ERROR( "TileDddbManager::GetEnvZLength() - Current Envelope not set, returning -999" );
310  return -999;
311  }
312 }

◆ GetEnvZShift()

double TileDddbManager::GetEnvZShift ( ) const

Definition at line 393 of file TileDddbManager.cxx.

394 {
395  if (m_currentTileGlob) {
396  return m_currentTileGlob->getDouble("ZSHIFT");
397  }
398  else {
399  ATH_MSG_ERROR( "TileDddbManager::GetEnvZShift() - Current Envelope not set, returning -999" );
400  return -999;
401  }
402 }

◆ GetModDPhi()

double TileDddbManager::GetModDPhi ( ) const

Definition at line 515 of file TileDddbManager.cxx.

516 {
517  if (m_currentTileMod) {
518  return m_currentTileMod->getDouble("DPHI");
519  }
520  else {
521  ATH_MSG_ERROR( "TileDddbManager::GetModDPhi() - Current Module not set, returning -999" );
522  return -999;
523  }
524 }

◆ GetModDPsi()

double TileDddbManager::GetModDPsi ( ) const

Definition at line 526 of file TileDddbManager.cxx.

527 {
528  if (m_currentTileMod) {
529  return m_currentTileMod->getDouble("DPSI");
530  }
531  else {
532  ATH_MSG_ERROR( "TileDddbManager::GetModDPsi() - Current Module not set, returning -999" );
533  return -999;
534  }
535 }

◆ GetModDTheta()

double TileDddbManager::GetModDTheta ( ) const

Definition at line 537 of file TileDddbManager.cxx.

538 {
539  if (m_currentTileMod) {
540  return m_currentTileMod->getDouble("DTHETA");
541  }
542  else {
543  ATH_MSG_ERROR( "TileDddbManager::GetModDTheta() - Current Module not set, returning -999" );
544  return -999;
545  }
546 }

◆ GetModDX()

double TileDddbManager::GetModDX ( ) const

Definition at line 482 of file TileDddbManager.cxx.

483 {
484  if (m_currentTileMod) {
485  return m_currentTileMod->getDouble("DX");
486  }
487  else {
488  ATH_MSG_ERROR( "TileDddbManager::GetModDX() - Current Module not set, returning -999" );
489  return -999;
490  }
491 }

◆ GetModDY()

double TileDddbManager::GetModDY ( ) const

Definition at line 493 of file TileDddbManager.cxx.

494 {
495  if (m_currentTileMod) {
496  return m_currentTileMod->getDouble("DY");
497  }
498  else {
499  ATH_MSG_ERROR( "TileDddbManager::GetModDY() - Current Module not set, returning -999" );
500  return -999;
501  }
502 }

◆ GetModDZ()

double TileDddbManager::GetModDZ ( ) const

Definition at line 504 of file TileDddbManager.cxx.

505 {
506  if (m_currentTileMod) {
507  return m_currentTileMod->getDouble("DZ");
508  }
509  else {
510  ATH_MSG_ERROR( "TileDddbManager::GetModDZ() - Current Module not set, returning -999" );
511  return -999;
512  }
513 }

◆ GetModNumber()

int TileDddbManager::GetModNumber ( ) const

Definition at line 460 of file TileDddbManager.cxx.

461 {
462  if (m_currentTileMod) {
463  return m_currentTileMod->getInt("MODNUM");
464  }
465  else {
466  ATH_MSG_ERROR( "TileDddbManager::GetModNumber() - Current Module not set, returning -999" );
467  return -999;
468  }
469 }

◆ GetModType() [1/2]

int TileDddbManager::GetModType ( ) const

Definition at line 471 of file TileDddbManager.cxx.

472 {
473  if (m_currentTileMod) {
474  return m_currentTileMod->getInt("TYP");
475  }
476  else {
477  ATH_MSG_ERROR( "TileDddbManager::GetModType() - Current Module not set, returning -999" );
478  return -999;
479  }
480 }

◆ GetModType() [2/2]

unsigned int TileDddbManager::GetModType ( unsigned int  Id) const

Definition at line 566 of file TileDddbManager.cxx.

567 {
568  if (Id < m_modTypes.size()) {
569  return m_modTypes[Id];
570  } else {
571  return 999;
572  }
573 }

◆ GetModTypeSize()

unsigned int TileDddbManager::GetModTypeSize ( ) const

Definition at line 575 of file TileDddbManager.cxx.

576 {
577  return m_modTypes.size();
578 }

◆ GetNumberOfEnv()

int TileDddbManager::GetNumberOfEnv ( ) const

Definition at line 158 of file TileDddbManager.cxx.

159 {
160  return m_n_tiglob;
161 }

◆ GetNumTicl()

unsigned int TileDddbManager::GetNumTicl ( ) const

Definition at line 1478 of file TileDddbManager.cxx.

1479 {
1480  return m_n_ticl;
1481 }

◆ GetNumTilb()

unsigned int TileDddbManager::GetNumTilb ( ) const

Definition at line 152 of file TileDddbManager.cxx.

153 {
154  return m_n_tilb;
155 }

◆ getSwitch()

int TileDddbManager::getSwitch ( const char *  name,
int  def_val 
) const

Definition at line 1756 of file TileDddbManager.cxx.

1757 {
1758  if (m_tileSwitches) {
1759  try {
1760  if ((*m_tileSwitches)[0]->isFieldNull(name)) {
1761  ATH_MSG_DEBUG( "TileDddbManager::getSwitch() - TileSwitches(" << name << ") is EMPTY, returning " << name << " = " << val );
1762  return val;
1763  } else {
1764  return (*m_tileSwitches)[0]->getInt(name);
1765  }
1766  } catch (std::exception& e) {
1767  ATH_MSG_WARNING( "TileDddbManager::getSwitch() - TileSwitches table does not contain field " << name << ", returning " << name << " = " << val );
1768  return val;
1769  }
1770  } else {
1771  ATH_MSG_ERROR( "TileDddbManager::getSwitch() - TileSwitches is not set, returning " << name << " = " << val );
1772  return val;
1773  }
1774 }

◆ glue()

int TileDddbManager::glue ( ) const
inline

Definition at line 272 of file TileDddbManager.h.

272 { return getSwitch("GLUE",1); }

◆ initMessaging()

void AthMessaging::initMessaging ( ) const
privateinherited

Initialize our message level and MessageSvc.

This method should only be called once.

Definition at line 39 of file AthMessaging.cxx.

40 {
42  m_lvl = m_imsg ?
43  static_cast<MSG::Level>( m_imsg.load()->outputLevel(m_nm) ) :
44  MSG::INFO;
45 }

◆ msg() [1/2]

MsgStream & AthMessaging::msg ( ) const
inlineinherited

The standard message stream.

Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.

Definition at line 164 of file AthMessaging.h.

165 {
166  MsgStream* ms = m_msg_tls.get();
167  if (!ms) {
168  if (!m_initialized.test_and_set()) initMessaging();
169  ms = new MsgStream(m_imsg,m_nm);
170  m_msg_tls.reset( ms );
171  }
172 
173  ms->setLevel (m_lvl);
174  return *ms;
175 }

◆ msg() [2/2]

MsgStream & AthMessaging::msg ( const MSG::Level  lvl) const
inlineinherited

The standard message stream.

Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.

Definition at line 179 of file AthMessaging.h.

180 { return msg() << lvl; }

◆ msgLvl()

bool AthMessaging::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Test the output level.

Parameters
lvlThe message level to test against
Returns
boolean Indicating if messages at given level will be printed
Return values
trueMessages at level "lvl" will be printed

Definition at line 151 of file AthMessaging.h.

152 {
153  if (!m_initialized.test_and_set()) initMessaging();
154  if (m_lvl <= lvl) {
155  msg() << lvl;
156  return true;
157  } else {
158  return false;
159  }
160 }

◆ operator=()

TileDddbManager& TileDddbManager::operator= ( const TileDddbManager )
delete

◆ PVT()

int TileDddbManager::PVT ( ) const
inline

Definition at line 273 of file TileDddbManager.h.

273 { return getSwitch("PVT",0); }

◆ RadiusSaddle()

double TileDddbManager::RadiusSaddle ( ) const

Definition at line 1196 of file TileDddbManager.cxx.

1197 {
1198  if (m_currentSaddle)
1199  return (double)m_currentSaddle->getFloat("RADIUSSADDLE");
1200  else
1201  { ATH_MSG_ERROR( "TileDddbManager::RadiusSaddle() - dimension not set, returning -999.9" );
1202  return -999.9;
1203  }
1204 }

◆ SCNTdphi()

double TileDddbManager::SCNTdphi ( ) const

Definition at line 1034 of file TileDddbManager.cxx.

1035 {
1036  if (m_currentScin)
1037  return m_currentScin->getDouble("DPHI");
1038  else
1039  {
1040  ATH_MSG_ERROR( "TileDddbManager::SCNTdphi() - Current Scintillator not set, returning -999.9" );
1041  return -999.9;
1042  }
1043 }

◆ SCNTdr()

double TileDddbManager::SCNTdr ( ) const

Definition at line 968 of file TileDddbManager.cxx.

969 {
970  if (m_currentScin)
971  return m_currentScin->getDouble("DR");
972  else
973  {
974  ATH_MSG_ERROR( "TileDddbManager::SCNTdr() - Current Scintillator not set, returning -999.9" );
975  return -999.9;
976  }
977 }

◆ SCNTdrw()

double TileDddbManager::SCNTdrw ( ) const

Definition at line 1001 of file TileDddbManager.cxx.

1002 {
1003  if (m_currentScin)
1004  return m_currentScin->getDouble("DRW");
1005  else
1006  {
1007  ATH_MSG_ERROR( "TileDddbManager::SCNTdrw() - Current Scintillator not set, returning -999.9" );
1008  return -999.9;
1009  }
1010 }

◆ SCNTdt()

double TileDddbManager::SCNTdt ( ) const

Definition at line 1012 of file TileDddbManager.cxx.

1013 {
1014  if (m_currentScin)
1015  return m_currentScin->getDouble("DT");
1016  else
1017  {
1018  ATH_MSG_ERROR( "TileDddbManager::SCNTdt() - Current Scintillator not set, returning -999.9" );
1019  return -999.9;
1020  }
1021 }

◆ SCNTdtw()

double TileDddbManager::SCNTdtw ( ) const

Definition at line 1023 of file TileDddbManager.cxx.

1024 {
1025  if (m_currentScin)
1026  return m_currentScin->getDouble("DTW");
1027  else
1028  {
1029  ATH_MSG_ERROR( "TileDddbManager::SCNTdtw() - Current Scintillator not set, returning -999.9" );
1030  return -999.9;
1031  }
1032 }

◆ SCNTitem()

int TileDddbManager::SCNTitem ( ) const

Fields of SCNT structure (see also Oracle comments):

Parameters
SCNTitemScintillator number:1-bar,2-ext,3-ITC1(7,8 special ITC),4-ITC2,5-Gap,6-Crack
SCNTdrDimension along R
SCNTrcR position with respect to the lower edge of module
SCNTzpZ position
SCNTdrwRadial space for wrapping
SCNTdtScintillator thickness in Z
SCNTdtwWrapping thickness in Z
SCNTdphiDistance between scintillator and absorber edge in Phi

Definition at line 957 of file TileDddbManager.cxx.

958 {
959  if (m_currentScin)
960  return m_currentScin->getInt("ITEM");
961  else
962  {
963  ATH_MSG_ERROR( "TileDddbManager::SCNTitem() - Current Scintillator not set, returning -999" );
964  return -999;
965  }
966 }

◆ SCNTrc()

double TileDddbManager::SCNTrc ( ) const

Definition at line 979 of file TileDddbManager.cxx.

980 {
981  if (m_currentScin)
982  return m_currentScin->getDouble("RC");
983  else
984  {
985  ATH_MSG_ERROR( "TileDddbManager::SCNTrc() - Current Scintillator not set, returning -999.9" );
986  return -999.9;
987  }
988 }

◆ SCNTzp()

double TileDddbManager::SCNTzp ( ) const

Definition at line 990 of file TileDddbManager.cxx.

991 {
992  if (m_currentScin)
993  return m_currentScin->getDouble("ZP");
994  else
995  {
996  ATH_MSG_ERROR( "TileDddbManager::SCNTzp() - Current Scintillator not set, returning -999.9" );
997  return -999.9;
998  }
999 }

◆ SetCurrentCuts()

int TileDddbManager::SetCurrentCuts ( const std::string &  input)

Fields of CUTS structure (see also Oracle comments):

Parameters
CUTSNameCuts volume name
CutsDX1TRD shape, dX1/2
CutsDX2TRD shape, dX2/2
CutsDY1TRD shape, dY1/2
CutsDY2TRD shape, dY2/2
CutsDZ1TRD shape, dZ1/2
CutsXposX Position
CutsYposY Position

Definition at line 1048 of file TileDddbManager.cxx.

1049 {
1050  if (m_buildCuts)
1051  {std::string name(input);
1052  unsigned int ind = 0;
1053 
1054  while (((*m_cuts)[ind]->getString("VOLUME") != name) && (++ind < m_n_cuts))
1055  {
1056  }
1057 
1058  if (ind >= m_n_cuts)
1059  { ATH_MSG_ERROR( "TileDddbManager::SetCurrentCuts() - Unable to find the m_currentCuts volume name = " << name );
1060  return 0;
1061  }
1062  else
1063  { m_currentCuts = (*m_cuts)[ind];
1064  return 1;
1065  }
1066  }
1067  ATH_MSG_WARNING( "TileDddbManager::SetCurrentCuts() - SetCuts Ext.Barrel Cuts unavailable in touched DB" );
1068  return 1;
1069 }

◆ SetCurrentEnvByIndex()

int TileDddbManager::SetCurrentEnvByIndex ( unsigned int  envelope)

Definition at line 209 of file TileDddbManager.cxx.

210 {
211  m_currentTileGlob = 0;
212  m_currentTileMod = 0;
213  m_currentSection = 0;
214  m_modTypes.clear();
215 
216  if (envelopeI < m_n_tiglob) {
217  m_currentTileGlob = (*m_tiglob)[envelopeI];
218  m_EnvNum = m_currentTileGlob->getInt("PART");
219  m_EnvSize = m_currentTileGlob->getInt("NMODULES");
220  unsigned int ind1 = 0;
221 // while (((*m_timod)[ind1]->getInt("PART") != static_cast<int>(m_EnvNum)) && (++ind1 < m_n_timod))
222 // {
223 // }
224  // FIXME: temporary fix for wrong PART in modules table
225  for ( ; ind1 < m_n_timod; ++ind1) {
226  int part = (*m_timod)[ind1]->getInt("PART");
227  if ( m_tag == "TileCal-02" ) {
228  if (part == 3) part = 5;
229  else if (part == 2) part = 3;
230  }
231  if ( part == static_cast<int>(m_EnvNum)) break;
232  }
233  if (ind1 < m_n_timod) {
234  m_EnvBegin = ind1;
235  return 1;
236  }
237  else {
238  m_EnvSize = 0;
239  m_EnvBegin = 0;
240  ATH_MSG_ERROR( "TileDddbManager::SetCurrentEnvByIndex() - Couldn't return begin of modules" );
241  return 0;
242  }
243  } else {
244  m_currentTileGlob = 0;
245  ATH_MSG_ERROR( "TileDddbManager::SetCurrentEnvByIndex() - Couldn't return Envelope" );
246  return 0;
247  }
248 }

◆ SetCurrentEnvByType()

int TileDddbManager::SetCurrentEnvByType ( unsigned int  envelope)

Definition at line 174 of file TileDddbManager.cxx.

175 {
176  m_currentTileGlob = 0;
177  m_currentTileMod = 0;
178  m_currentSection = 0;
179  m_modTypes.clear();
180 
181  unsigned int ind2 = 0;
182  while (((*m_tiglob)[ind2]->getInt("PART") != static_cast<int>(envelopeT)) && (++ind2 < m_n_tiglob))
183  {
184  }
185  if (ind2 < m_n_tiglob) {
186  m_currentTileGlob = (*m_tiglob)[ind2];
187  m_EnvSize = m_currentTileGlob->getInt("NMODULES");
188  unsigned int ind3 = 0;
189  while (((*m_timod)[ind3]->getInt("PART") != static_cast<int>(envelopeT)) && (++ind3 < m_n_timod))
190  {
191  }
192  if (ind3 < m_n_timod) {
193  m_EnvBegin = ind3;
194  return 1;
195  }
196  else {
197  m_EnvSize = 0;
198  m_EnvBegin = 0;
199  ATH_MSG_ERROR( "TileDddbManager::SetCurrentEnvByType() - Couldn't return begin of modules" );
200  return 0;
201  }
202  } else {
203  m_currentTileGlob = 0;
204  ATH_MSG_ERROR( "TileDddbManager::SetCurrentEnvByType() - Couldn't return Envelope" );
205  return 0;
206  }
207 }

◆ SetCurrentGird()

int TileDddbManager::SetCurrentGird ( int  item)

Definition at line 1207 of file TileDddbManager.cxx.

1208 {
1209  unsigned int ind = 0;
1210 
1211  while (((*m_tigr)[ind]->getInt("ITEM") != item) && (++ind < m_n_tigr))
1212  {
1213  }
1214 
1215  if (ind >= m_n_tigr)
1216  {
1217  ATH_MSG_DEBUG( "TileDddbManager::SetCurrentGird() - Unable to find the girder element, item= " << item );
1218  return 0;
1219  }
1220  else
1221  {
1222  m_currentGird = (*m_tigr)[ind];
1223  return 1;
1224  }
1225 }

◆ SetCurrentModuleByIndex()

int TileDddbManager::SetCurrentModuleByIndex ( unsigned int  Id)

Definition at line 406 of file TileDddbManager.cxx.

407 {
408  m_currentTileMod = 0;
409  m_currentSection = 0;
410  m_modTypes.clear();
411 
412  if (m_currentTileGlob) {
413  // Modules enumerated from zero, so SetCurrentModuleByIndex(0) gives the first module in the Envelope
414  if (Id >= m_EnvSize) {
415  ATH_MSG_ERROR( "TileDddbManager::SetCurrentModuleByIndex() - Module number " << Id << " is out of range" );
416  return 0;
417  }
418  else {
419  m_currentTileMod = (*m_timod)[Id + m_EnvBegin];
420  FillModTypes();
421  return 1;
422  }
423  }
424  else {
425  ATH_MSG_ERROR( "TileDddbManager::SetCurrentModuleByIndex() - Current Envelope not set, returning -999" );
426  return -999;
427  }
428 }

◆ SetCurrentModuleByNumber()

int TileDddbManager::SetCurrentModuleByNumber ( unsigned int  Number)

Definition at line 430 of file TileDddbManager.cxx.

431 {
432  m_currentTileMod = 0;
433  m_currentSection = 0;
434  m_modTypes.clear();
435 
436  if (m_currentTileGlob) {
437  // Input here number from column "MODNUM"
438  unsigned int ind4 = m_EnvBegin;
439  unsigned int EnvEnd = m_EnvBegin + m_EnvSize;
440  while (((*m_timod)[ind4]->getInt("MODNUM") != static_cast<int>(Number))&&(++ind4 < EnvEnd))
441  {
442  }
443  if (ind4 < EnvEnd) {
444  m_currentTileMod = (*m_timod)[ind4];
445  FillModTypes();
446  return 1;
447  }
448  else{
449  m_currentTileMod = 0;
450  ATH_MSG_ERROR( "TileDddbManager::SetCurrentModuleByNumber() - Couldn't return Module" );
451  return 0;
452  }
453  }
454  else {
455  ATH_MSG_ERROR( "TileDddbManager::SetCurrentModuleByNumber() - Current Envelope not set, returning -999" );
456  return -999;
457  }
458 }

◆ SetCurrentSaddle()

int TileDddbManager::SetCurrentSaddle ( unsigned int  index)

Fields of SADDLE structure (see also Oracle comments):

Parameters
DzSaddleSupportWidth of Saddle Support [cm]
RadiusSaddleRadius of Saddle Support [cm]

Definition at line 1162 of file TileDddbManager.cxx.

1163 {
1164  if (m_buildSaddle)
1165  { if (index >= m_n_saddle)
1166  { return 0;
1167  }
1168  else
1169  { m_currentSaddle = (*m_saddle)[index];
1170  return 1;
1171  }
1172  }
1173  ATH_MSG_WARNING( "TileDddbManager::SetCurrentSaddle() - Saddle unavailable in touched DB");
1174  return 1;
1175 }

◆ SetCurrentScin()

int TileDddbManager::SetCurrentScin ( int  item)

Definition at line 937 of file TileDddbManager.cxx.

938 {
939  unsigned int ind = 0;
940 
941  while (((*m_scnt)[ind]->getInt("ITEM") != item) && (++ind < m_n_scnt))
942  {
943  }
944 
945  if (ind >= m_n_scnt)
946  {
947  ATH_MSG_ERROR( "TileDddbManager::SetCurrentScin() - Unable to find the scintillator, item = " << item );
948  return 0;
949  }
950  else
951  {
952  m_currentScin = (*m_scnt)[ind];
953  return 1;
954  }
955 }

◆ SetCurrentSection()

int TileDddbManager::SetCurrentSection ( unsigned int  section,
bool  print = true 
)

Definition at line 616 of file TileDddbManager.cxx.

617 {
618  unsigned int ind = 0;
619 
620  while (((*m_tilb)[ind]->getInt("SECTION") != static_cast<int>(section)) && (++ind < m_n_tilb))
621  {
622  }
623 
624  if (ind >= m_n_tilb) {
625  if (print) ATH_MSG_ERROR( "TileDddbManager::SetCurrentSection() - Unable to find the section" );
626  m_currentSection = 0;
627  return 0;
628  }
629  else {
630  m_currentSection = (*m_tilb)[ind];
631  return 1;
632  }
633 }

◆ SetCurrentSectionByIndex()

int TileDddbManager::SetCurrentSectionByIndex ( unsigned int  IdSection)

Definition at line 598 of file TileDddbManager.cxx.

599 {
600  if (IdSection < m_n_tilb) {
601  m_currentSection = (*m_tilb)[IdSection];
602  return 1;
603  }
604  else {
605  ATH_MSG_ERROR( "TileDddbManager::SetCurrentSectionByIndex() - Section index (" << IdSection << ") is out of range (" << m_n_tilb << ")" );
606  m_currentSection = 0;
607  return 0;
608  }
609 }

◆ SetCurrentSectionByNumber()

int TileDddbManager::SetCurrentSectionByNumber ( unsigned int  section)

Definition at line 611 of file TileDddbManager.cxx.

612 {
613  return SetCurrentSection(section);
614 }

◆ SetCurrentTicg()

int TileDddbManager::SetCurrentTicg ( int  item)

Definition at line 1348 of file TileDddbManager.cxx.

1349 {
1350  unsigned int ind = 0;
1351 
1352  while (((*m_ticg)[ind]->getInt("ITEM") != item) && (++ind < m_n_ticg))
1353  {
1354  }
1355 
1356  if (ind >= m_n_ticg)
1357  {
1358  ATH_MSG_DEBUG( "TileDddbManager::SetCurrentTicg() - Unable to find the finger element, item = " << item );
1359  return 0;
1360  }
1361  else
1362  {
1363  m_currentTicg = (*m_ticg)[ind];
1364  return 1;
1365  }
1366 }

◆ SetCurrentTicl() [1/2]

int TileDddbManager::SetCurrentTicl ( int  detector,
double  sample,
double  tower 
)

Definition at line 1484 of file TileDddbManager.cxx.

1485 {
1486  unsigned int detector_ind = 0;
1487 
1488  // Looking for the first cell of given detector
1489  while (((*m_ticl)[detector_ind]->getInt("DETECTOR") != detector) && (++detector_ind < m_n_ticl))
1490  {
1491  }
1492 
1493  if (detector_ind >= m_n_ticl)
1494  {
1495  ATH_MSG_DEBUG( "TileDddbManager::SetCurrentTicl() - Unable to find any cell for the detector = " << detector );
1496  return 0;
1497  }
1498  else
1499  {
1500  // Looking for the first cell in given sample of given detector
1501  unsigned int sample_ind = detector_ind;
1502 
1503  while (((*m_ticl)[sample_ind]->getInt("SAMPLE") != sample) && (++sample_ind < m_n_ticl))
1504  {
1505  }
1506 
1507  if (sample_ind >= m_n_ticl)
1508  {
1509  ATH_MSG_DEBUG( "TileDddbManager::SetCurrentTicl() - Unable to find any cell for sample = "
1510  << sample << " in the detector = " << detector );
1511  return 0;
1512  }
1513  else
1514  {
1515  // Looking for the cell with give tower inside found sample
1516  unsigned int ind = sample_ind;
1517 
1518  while (((*m_ticl)[ind]->getInt("TOWER") != tower) && (++ind < m_n_ticl))
1519  {
1520  }
1521 
1522  if (ind >= m_n_ticl)
1523  {
1524  ATH_MSG_DEBUG( "TileDddbManager::SetCurrentTicl() - Unable to find any cell for tower = "
1525  << tower << " in the detector = " << detector << " and sample = " << sample );
1526  return 0;
1527  }
1528  else
1529  {
1530  m_currentTicl = (*m_ticl)[ind];
1532  return 1;
1533  }
1534  }
1535  }
1536 }

◆ SetCurrentTicl() [2/2]

int TileDddbManager::SetCurrentTicl ( unsigned int  index)

Definition at line 1538 of file TileDddbManager.cxx.

1539 {
1540  if (index >= m_n_ticl)
1541  {
1542  ATH_MSG_DEBUG( "TileDddbManager::SetCurrentTicl() - The requested index = " << index << " out of range." );
1543  return 0;
1544  }
1545  else
1546  {
1547  m_currentTicl = (*m_ticl)[index];
1549  return 1;
1550  }
1551 }

◆ SetCurrentTifg()

int TileDddbManager::SetCurrentTifg ( int  section)

Definition at line 1294 of file TileDddbManager.cxx.

1295 {
1296  unsigned int ind = 0;
1297 
1298  while (((*m_tifg)[ind]->getInt("SECTION") != section) && (++ind < m_n_tifg))
1299  {
1300  }
1301 
1302  if (ind >= m_n_tifg)
1303  {
1304  ATH_MSG_DEBUG( "TileDddbManager::SetCurrentTifg() - Unable to find the finger, section = " << section );
1305  return 0;
1306  }
1307  else
1308  {
1309  m_currentTifg = (*m_tifg)[ind];
1310  return 1;
1311  }
1312 }

◆ SetCurrentTypeByIndex()

int TileDddbManager::SetCurrentTypeByIndex ( unsigned int  Id)

Definition at line 550 of file TileDddbManager.cxx.

551 {
552  if (Id < m_modTypes.size()) {
553  return SetCurrentSection(m_modTypes[Id]);
554  } else {
555  ATH_MSG_ERROR( "TileDddbManager::SetCurrentTypeByIndex() - Type index (" << Id << ") is out of range (" << m_modTypes.size() << ")" );
556  m_currentSection = 0;
557  return 0;
558  }
559 }

◆ SetCurrentTypeByNumber()

int TileDddbManager::SetCurrentTypeByNumber ( unsigned int  Number)

Definition at line 561 of file TileDddbManager.cxx.

562 {
563  return SetCurrentSection(Number);
564 }

◆ SetFirstTiclInDet()

int TileDddbManager::SetFirstTiclInDet ( int  detector)

Definition at line 1553 of file TileDddbManager.cxx.

1554 {
1555  unsigned int ind = 0;
1556 
1557  // Looking for the first cell of given detector
1558  while (((*m_ticl)[ind]->getInt("DETECTOR") != detector) && (++ind < m_n_ticl))
1559  {
1560  }
1561 
1562  if (ind >= m_n_ticl)
1563  return 0; // FAILURE
1564 
1565  m_currentTicl = (*m_ticl)[ind];
1567  return 1; // SUCCESS
1568 
1569 }

◆ SetFirstTiclInDetSamp()

int TileDddbManager::SetFirstTiclInDetSamp ( int  detector,
double  sample 
)

Definition at line 1571 of file TileDddbManager.cxx.

1572 {
1573  unsigned int detector_ind = 0;
1574 
1575  // Looking for the first cell of given detector
1576  while (((*m_ticl)[detector_ind]->getInt("DETECTOR") != detector) && (++detector_ind < m_n_ticl))
1577  {
1578  }
1579 
1580  if (detector_ind >= m_n_ticl)
1581  return 0; // FAILURE
1582  else
1583  {
1584  // Looking for the first cell in given sample of given detector
1585  unsigned int sample_ind = detector_ind;
1586 
1587  while (((*m_ticl)[sample_ind]->getInt("SAMPLE") != sample) && (++sample_ind < m_n_ticl))
1588  {
1589  }
1590 
1591  if (sample_ind >= m_n_ticl)
1592  return 0; // FAILURE
1593 
1594  m_currentTicl = (*m_ticl)[sample_ind];
1596  return 1; // SUCCESS
1597  }
1598 }

◆ setLevel()

void AthMessaging::setLevel ( MSG::Level  lvl)
inherited

Change the current logging level.

Use this rather than msg().setLevel() for proper operation with MT.

Definition at line 28 of file AthMessaging.cxx.

29 {
30  m_lvl = lvl;
31 }

◆ SetNextTiclInDet()

int TileDddbManager::SetNextTiclInDet ( )

Definition at line 1600 of file TileDddbManager.cxx.

1601 {
1602  if (m_currentTiclInd<0) return 0; // FAILURE
1603 
1604  int currentDetector = (*m_ticl)[m_currentTiclInd]->getInt("DETECTOR");
1605 
1606  if ((++m_currentTiclInd == static_cast<int>(m_n_ticl))||((*m_ticl)[m_currentTiclInd]->getInt("DETECTOR") != currentDetector))
1607  {
1608  m_currentTiclInd--;
1609  return 0; // FAILURE
1610  }
1611 
1612  m_currentTicl = (*m_ticl)[m_currentTiclInd];
1613  return 1;
1614 }

◆ SetNextTiclInDetSamp()

int TileDddbManager::SetNextTiclInDetSamp ( )

Definition at line 1616 of file TileDddbManager.cxx.

1617 {
1618  if (m_currentTiclInd<0) return 0; // FAILURE
1619 
1620  int currentDetector = (*m_ticl)[m_currentTiclInd]->getInt("DETECTOR");
1621  float currentSample = (*m_ticl)[m_currentTiclInd]->getInt("SAMPLE");
1622 
1623  if ((++m_currentTiclInd == static_cast<int>(m_n_ticl))||
1624  ((*m_ticl)[m_currentTiclInd]->getInt("DETECTOR") != currentDetector)||
1625  ((*m_ticl)[m_currentTiclInd]->getInt("SAMPLE") != currentSample))
1626  {
1627  m_currentTiclInd--;
1628  return 0; // FAILURE
1629  }
1630 
1631  m_currentTicl = (*m_ticl)[m_currentTiclInd];
1632  return 1;
1633 }

◆ steel()

int TileDddbManager::steel ( ) const
inline

Definition at line 274 of file TileDddbManager.h.

274 { return getSwitch("STEEL",0); }

◆ TICGdr()

double TileDddbManager::TICGdr ( ) const

Definition at line 1412 of file TileDddbManager.cxx.

1413 {
1414  if (m_currentTicg)
1415  return m_currentTicg->getDouble("DR");
1416  else
1417  {
1418  ATH_MSG_ERROR( "TileDddbManager::TICGdr() - Current TICG not set, returning -999.9" );
1419  return -999.9;
1420  }
1421 }

◆ TICGdx1()

double TileDddbManager::TICGdx1 ( ) const

Definition at line 1423 of file TileDddbManager.cxx.

1424 {
1425  if (m_currentTicg)
1426  return m_currentTicg->getDouble("DX1");
1427  else
1428  {
1429  ATH_MSG_ERROR( "TileDddbManager::TICGdx1() - Current TICG not set, returning -999.9" );
1430  return -999.9;
1431  }
1432 }

◆ TICGdx2()

double TileDddbManager::TICGdx2 ( ) const

Definition at line 1434 of file TileDddbManager.cxx.

1435 {
1436  if (m_currentTicg)
1437  return m_currentTicg->getDouble("DX2");
1438  else
1439  {
1440  ATH_MSG_ERROR( "TileDddbManager::TICGdx2() - Current TICG not set, returning -999.9" );
1441  return -999.9;
1442  }
1443 }

◆ TICGdz()

double TileDddbManager::TICGdz ( ) const

Definition at line 1456 of file TileDddbManager.cxx.

1457 {
1458  if (m_currentTicg)
1459  return m_currentTicg->getDouble("DZ");
1460  else
1461  {
1462  ATH_MSG_ERROR( "TileDddbManager::TICGdz() - Current TICG not set, returning -999.9" );
1463  return -999.9;
1464  }
1465 }

◆ TICGitem()

int TileDddbManager::TICGitem ( ) const

Definition at line 1368 of file TileDddbManager.cxx.

1369 {
1370  if (m_currentTicg)
1371  return m_currentTicg->getInt("ITEM");
1372  else
1373  {
1374  ATH_MSG_ERROR( "TileDddbManager::TICGitem() - Current TICG not set, returning -999" );
1375  return -999;
1376  }
1377 }

◆ TICGmaterial()

int TileDddbManager::TICGmaterial ( ) const

Definition at line 1379 of file TileDddbManager.cxx.

1380 {
1381  if (m_currentTicg)
1382  return m_currentTicg->getInt("MATERIAL");
1383  else
1384  {
1385  ATH_MSG_ERROR( "TileDddbManager::TICGmaterial() - Current TICG not set, returning -999" );
1386  return -999;
1387  }
1388 }

◆ TICGoff()

double TileDddbManager::TICGoff ( ) const

Definition at line 1445 of file TileDddbManager.cxx.

1446 {
1447  if (m_currentTicg)
1448  return m_currentTicg->getDouble("OFF");
1449  else
1450  {
1451  ATH_MSG_ERROR( "TileDddbManager::TICGoff() - Current TICG not set, returning -999.9" );
1452  return -999.9;
1453  }
1454 }

◆ TICGrc()

double TileDddbManager::TICGrc ( ) const

Definition at line 1401 of file TileDddbManager.cxx.

1402 {
1403  if (m_currentTicg)
1404  return m_currentTicg->getDouble("RC");
1405  else
1406  {
1407  ATH_MSG_ERROR( "TileDddbManager::TICGrc() - Current TICG not set, returning -999.9" );
1408  return -999.9;
1409  }
1410 }

◆ TICGshape()

int TileDddbManager::TICGshape ( ) const

Definition at line 1390 of file TileDddbManager.cxx.

1391 {
1392  if (m_currentTicg)
1393  return m_currentTicg->getInt("SHAPE");
1394  else
1395  {
1396  ATH_MSG_ERROR( "TileDddbManager::TICGshape() - Current TICG not set, returning -999" );
1397  return -999;
1398  }
1399 }

◆ TICGzc()

double TileDddbManager::TICGzc ( ) const

Definition at line 1467 of file TileDddbManager.cxx.

1468 {
1469  if (m_currentTicg)
1470  return m_currentTicg->getDouble("ZC");
1471  else
1472  {
1473  ATH_MSG_ERROR( "TileDddbManager::TICGzc() - Current TICG not set, returning -999.9" );
1474  return -999.9;
1475  }
1476 }

◆ TICLdeta()

double TileDddbManager::TICLdeta ( ) const

Definition at line 1690 of file TileDddbManager.cxx.

1691 {
1692  if (m_currentTicl)
1693  return m_currentTicl->getDouble("DETA");
1694  else
1695  {
1696  ATH_MSG_ERROR( "TileDddbManager::TICLdeta() - Current TICL not set, returning -999.9" );
1697  return -999.9;
1698  }
1699 }

◆ TICLdetector()

int TileDddbManager::TICLdetector ( ) const

Definition at line 1635 of file TileDddbManager.cxx.

1636 {
1637  if (m_currentTicl)
1638  return m_currentTicl->getInt("DETECTOR");
1639  else
1640  {
1641  ATH_MSG_ERROR( "TileDddbManager::TICLdetector() - Current TICL not set, returning -999" );
1642  return -999;
1643  }
1644 }

◆ TICLeta()

double TileDddbManager::TICLeta ( ) const

Definition at line 1679 of file TileDddbManager.cxx.

1680 {
1681  if (m_currentTicl)
1682  return m_currentTicl->getDouble("ETA");
1683  else
1684  {
1685  ATH_MSG_ERROR( "TileDddbManager::TICLeta() - Current TICL not set, returning -999.9" );
1686  return -999.9;
1687  }
1688 }

◆ TICLfirstrow()

double TileDddbManager::TICLfirstrow ( ) const

Definition at line 1701 of file TileDddbManager.cxx.

1702 {
1703  if (m_currentTicl)
1704  return m_currentTicl->getInt("FIRSTROW");
1705  else
1706  {
1707  ATH_MSG_ERROR( "TileDddbManager::TICLfirstrow() - Current TICL not set, returning -999.9" );
1708  return -999.9;
1709  }
1710 }

◆ TICLholes()

double TileDddbManager::TICLholes ( unsigned int  ind) const

Definition at line 1745 of file TileDddbManager.cxx.

1746 {
1747  if (m_currentTicl)
1748  return m_currentTicl->getInt("HOLES",ind);
1749  else
1750  {
1751  ATH_MSG_ERROR( "TileDddbManager::TICLholes() - Current TICL not set, returning 9999" );
1752  return 9999;
1753  }
1754 }

◆ TICLlastrow()

double TileDddbManager::TICLlastrow ( ) const

Definition at line 1712 of file TileDddbManager.cxx.

1713 {
1714  if (m_currentTicl)
1715  return m_currentTicl->getInt("LASTROW");
1716  else
1717  {
1718  ATH_MSG_ERROR( "TileDddbManager::TICLlastrow() - Current TICL not set, returning -999.9" );
1719  return -999.9;
1720  }
1721 }

◆ TICLncell()

double TileDddbManager::TICLncell ( ) const

Definition at line 1646 of file TileDddbManager.cxx.

1647 {
1648  if (m_currentTicl)
1649  return m_currentTicl->getInt("NCELL");
1650  else
1651  {
1652  ATH_MSG_ERROR( "TileDddbManager::TICLncell() - Current TICL not set, returning -999.9" );
1653  return -999.9;
1654  }
1655 }

◆ TICLnpmt()

double TileDddbManager::TICLnpmt ( ) const

Definition at line 1734 of file TileDddbManager.cxx.

1735 {
1736  if (m_currentTicl)
1737  return m_currentTicl->getInt("NPMT");
1738  else
1739  {
1740  ATH_MSG_ERROR( "TileDddbManager::TICLnpmt() - Current TICL not set, returning -999.9" );
1741  return -999.9;
1742  }
1743 }

◆ TICLntilesrow()

double TileDddbManager::TICLntilesrow ( unsigned int  ind) const

Definition at line 1723 of file TileDddbManager.cxx.

1724 {
1725  if (m_currentTicl)
1726  return m_currentTicl->getInt("NTILESROW",ind);
1727  else
1728  {
1729  ATH_MSG_ERROR( "TileDddbManager::TICLntilesrow() - Current TICL not set, returning 9999" );
1730  return 9999;
1731  }
1732 }

◆ TICLsample()

double TileDddbManager::TICLsample ( ) const

Definition at line 1668 of file TileDddbManager.cxx.

1669 {
1670  if (m_currentTicl)
1671  return m_currentTicl->getInt("SAMPLE");
1672  else
1673  {
1674  ATH_MSG_ERROR( "TileDddbManager::TICLsample() - Current TICL not set, returning -999.9" );
1675  return -999.9;
1676  }
1677 }

◆ TICLtower()

double TileDddbManager::TICLtower ( ) const

Definition at line 1657 of file TileDddbManager.cxx.

1658 {
1659  if (m_currentTicl)
1660  return m_currentTicl->getInt("TOWER");
1661  else
1662  {
1663  ATH_MSG_ERROR( "TileDddbManager::TICLtower() - Current TICL not set, returning -999.9" );
1664  return -999.9;
1665  }
1666 }

◆ TIFGdz()

double TileDddbManager::TIFGdz ( ) const

Definition at line 1336 of file TileDddbManager.cxx.

1337 {
1338  if (m_currentTifg)
1339  return m_currentTifg->getDouble("DZ");
1340  else
1341  {
1342  ATH_MSG_ERROR( "TileDddbManager::TIFGdz() - Current TIFG not set, returning -999.9" );
1343  return -999.9;
1344  }
1345 }

◆ TIFGnelem()

int TileDddbManager::TIFGnelem ( ) const

Definition at line 1325 of file TileDddbManager.cxx.

1326 {
1327  if (m_currentTifg)
1328  return m_currentTifg->getInt("NELEM");
1329  else
1330  {
1331  ATH_MSG_ERROR( "TileDddbManager::TIFGnelem() - Current TIFG not set, returning -999" );
1332  return -999;
1333  }
1334 }

◆ TIFGsection()

int TileDddbManager::TIFGsection ( ) const

Definition at line 1314 of file TileDddbManager.cxx.

1315 {
1316  if (m_currentTifg)
1317  return m_currentTifg->getInt("SECTION");
1318  else
1319  {
1320  ATH_MSG_ERROR( "TileDddbManager::TIFGsection() - Current TIFG not set, returning -999" );
1321  return -999;
1322  }
1323 }

◆ TIGRdr()

double TileDddbManager::TIGRdr ( ) const

Definition at line 1260 of file TileDddbManager.cxx.

1261 {
1262  if (m_currentGird)
1263  return m_currentGird->getDouble("DR");
1264  else
1265  {
1266  ATH_MSG_ERROR( "TileDddbManager::TIGRdr() - Current Girder element not set, returning -999.9" );
1267  return -999.9;
1268  }
1269 }

◆ TIGRdw()

double TileDddbManager::TIGRdw ( ) const

Definition at line 1271 of file TileDddbManager.cxx.

1272 {
1273  if (m_currentGird)
1274  return m_currentGird->getDouble("DW");
1275  else
1276  {
1277  ATH_MSG_ERROR( "TileDddbManager::TIGRdw() - Current Girder element not set, returning -999.9" );
1278  return -999.9;
1279  }
1280 }

◆ TIGRitem()

int TileDddbManager::TIGRitem ( ) const

Definition at line 1227 of file TileDddbManager.cxx.

1228 {
1229  if (m_currentGird)
1230  return m_currentGird->getInt("ITEM");
1231  else
1232  {
1233  ATH_MSG_ERROR( "TileDddbManager::TIGRitem() - Current Girder element not set, returning -999" );
1234  return -999;
1235  }
1236 }

◆ TIGRmaterial()

int TileDddbManager::TIGRmaterial ( ) const

Definition at line 1238 of file TileDddbManager.cxx.

1239 {
1240  if (m_currentGird)
1241  return m_currentGird->getInt("MATERIAL");
1242  else
1243  {
1244  ATH_MSG_ERROR( "TileDddbManager::TIGRmaterial() - Current Girder element not set, returning -999" );
1245  return -999;
1246  }
1247 }

◆ TIGRoff()

double TileDddbManager::TIGRoff ( ) const

Definition at line 1282 of file TileDddbManager.cxx.

1283 {
1284  if (m_currentGird)
1285  return m_currentGird->getDouble("OFF");
1286  else
1287  {
1288  ATH_MSG_ERROR( "TileDddbManager::TIGRoff() - Current Girder element not set, returning -999.9" );
1289  return -999.9;
1290  }
1291 }

◆ TIGRrc()

double TileDddbManager::TIGRrc ( ) const

Definition at line 1249 of file TileDddbManager.cxx.

1250 {
1251  if (m_currentGird)
1252  return m_currentGird->getDouble("RC");
1253  else
1254  {
1255  ATH_MSG_ERROR( "TileDddbManager::TIGRrc() - Current Girder element not set, returning -999.9" );
1256  return -999.9;
1257  }
1258 }

◆ TILBcurscint()

int TileDddbManager::TILBcurscint ( ) const

Definition at line 911 of file TileDddbManager.cxx.

912 {
913  if (m_currentSection) {
914  if (m_currentSection->isFieldNull("CURSCINT"))
915  return 0;
916  else
917  return m_currentSection->getInt("CURSCINT");
918  }
919  else {
920  ATH_MSG_ERROR( "TileDddbManager::TILBcurscint() - Current Section not set, returning -999" );
921  return -999;
922  }
923 }

◆ TILBdrfront()

double TileDddbManager::TILBdrfront ( ) const

Definition at line 723 of file TileDddbManager.cxx.

724 {
725  if (m_currentSection) {
726  return m_currentSection->getDouble("DRFRONT");
727  }
728  else {
729  ATH_MSG_ERROR( "TileDddbManager::TILBdrfront() - Current Section not set, returning -999.9" );
730  return -999.9;
731  }
732 }

◆ TILBdzend()

double TileDddbManager::TILBdzend ( ) const

Definition at line 734 of file TileDddbManager.cxx.

735 {
736  if (m_currentSection) {
737  return m_currentSection->getDouble("DZEND");
738  }
739  else {
740  ATH_MSG_ERROR( "TileDddbManager::TILBdzend() - Current Section not set, returning -999.9" );
741  return -999.9;
742  }
743 }

◆ TILBdzend1()

double TileDddbManager::TILBdzend1 ( ) const

Definition at line 833 of file TileDddbManager.cxx.

834 {
835  if (m_currentSection) {
836  return m_currentSection->getDouble("DZEND1");
837  }
838  else {
839  ATH_MSG_ERROR( "TileDddbManager::TILBdzend1() - Current Section not set, returning -999.9" );
840  return -999.9;
841  }
842 }

◆ TILBdzend2()

double TileDddbManager::TILBdzend2 ( ) const

Definition at line 844 of file TileDddbManager.cxx.

845 {
846  if (m_currentSection) {
847  return m_currentSection->getDouble("DZEND2");
848  }
849  else {
850  ATH_MSG_ERROR( "TileDddbManager::TILBdzend2() - Current Section not set, returning -999.9" );
851  return -999.9;
852  }
853 }

◆ TILBdzgir()

double TileDddbManager::TILBdzgir ( ) const

Definition at line 925 of file TileDddbManager.cxx.

926 {
927  if (m_currentSection) {
928  return m_currentSection->getDouble("DZGIR");
929  }
930  else {
931  ATH_MSG_ERROR( "TileDddbManager::TILBdzgir() - Current Section not set, returning -999" );
932  return -999;
933  }
934 }

◆ TILBdzmast()

double TileDddbManager::TILBdzmast ( ) const

Definition at line 811 of file TileDddbManager.cxx.

812 {
813  if (m_currentSection) {
814  return m_currentSection->getDouble("DZMAST");
815  }
816  else {
817  ATH_MSG_ERROR( "TileDddbManager::TILBdzmast() - Current Section not set, returning -999.9" );
818  return -999.9;
819  }
820 }

◆ TILBdzmodul()

double TileDddbManager::TILBdzmodul ( ) const

Definition at line 800 of file TileDddbManager.cxx.

801 {
802  if (m_currentSection) {
803  return m_currentSection->getDouble("DZMODUL");
804  }
805  else {
806  ATH_MSG_ERROR( "TileDddbManager::TILBdzmodul() - Current Section not set, returning -999.9" );
807  return -999.9;
808  }
809 }

◆ TILBdzperio()

double TileDddbManager::TILBdzperio ( ) const

Definition at line 712 of file TileDddbManager.cxx.

713 {
714  if (m_currentSection) {
715  return m_currentSection->getDouble("DZPERIO");
716  }
717  else {
718  ATH_MSG_ERROR( "TileDddbManager::TILBdzperio() - Current Section not set, returning -999.9" );
719  return -999.9;
720  }
721 }

◆ TILBdzspac()

double TileDddbManager::TILBdzspac ( ) const

Definition at line 822 of file TileDddbManager.cxx.

823 {
824  if (m_currentSection) {
825  return m_currentSection->getDouble("DZSPAC");
826  }
827  else {
828  ATH_MSG_ERROR( "TileDddbManager::TILBdzspac() - Current Section not set, returning -999.9" );
829  return -999.9;
830  }
831 }

◆ TILBfingpattern()

int TileDddbManager::TILBfingpattern ( ) const

Definition at line 877 of file TileDddbManager.cxx.

878 {
879  if (m_currentSection) {
880  return m_currentSection->getInt("FINGPATTERN");
881  }
882  else {
883  ATH_MSG_ERROR( "TileDddbManager::TILBfingpattern() - Current Section not set, returning -999" );
884  return -999;
885  }
886 }

◆ TILBflangex()

double TileDddbManager::TILBflangex ( ) const

Definition at line 745 of file TileDddbManager.cxx.

746 {
747  if (m_currentSection) {
748  return m_currentSection->getDouble("FLANGEX");
749  }
750  else {
751  ATH_MSG_ERROR( "TileDddbManager::TILBflangex() - Current Section not set, returning -999.9" );
752  return -999.9;
753  }
754 }

◆ TILBflangey()

double TileDddbManager::TILBflangey ( ) const

Definition at line 756 of file TileDddbManager.cxx.

757 {
758  if (m_currentSection) {
759  return m_currentSection->getDouble("FLANGEY");
760  }
761  else {
762  ATH_MSG_ERROR( "TileDddbManager::TILBflangey() - Current Section not set, returning -999.9" );
763  return -999.9;
764  }
765 }

◆ TILBisci_st()

double TileDddbManager::TILBisci_st ( ) const

Definition at line 789 of file TileDddbManager.cxx.

790 {
791  if (m_currentSection) {
792  return m_currentSection->getInt("ISCI_ST");
793  }
794  else {
795  ATH_MSG_ERROR( "TileDddbManager::TILBisci_st() - Current Section not set, returning -999.9" );
796  return -999.9;
797  }
798 }

◆ TILBngirder()

int TileDddbManager::TILBngirder ( ) const

Definition at line 855 of file TileDddbManager.cxx.

856 {
857  if (m_currentSection) {
858  return m_currentSection->getInt("NGIRDER");
859  }
860  else {
861  ATH_MSG_ERROR( "TileDddbManager::TILBngirder() - Current Section not set, returning -999" );
862  return -999;
863  }
864 }

◆ TILBnmodul()

int TileDddbManager::TILBnmodul ( ) const

Definition at line 657 of file TileDddbManager.cxx.

658 {
659  if (m_currentSection) {
660  return m_currentSection->getInt("NMODUL");
661  }
662  else {
663  ATH_MSG_ERROR( "TileDddbManager::TILBnmodul() - Current Section not set, returning -999" );
664  return -999;
665  }
666 }

◆ TILBnpercutneg()

int TileDddbManager::TILBnpercutneg ( ) const

Definition at line 899 of file TileDddbManager.cxx.

900 {
901  if (m_currentSection) {
902  return m_currentSection->getInt("NPERCUTNEG");
903  }
904  else {
905  ATH_MSG_ERROR( "TileDddbManager::TILBnpercutneg() - Current Section not set, returning -999" );
906  return -999;
907  }
908 }

◆ TILBnpercutpos()

int TileDddbManager::TILBnpercutpos ( ) const

Definition at line 888 of file TileDddbManager.cxx.

889 {
890  if (m_currentSection) {
891  return m_currentSection->getInt("NPERCUTPOS");
892  }
893  else {
894  ATH_MSG_ERROR( "TileDddbManager::TILBnpercutpos() - Current Section not set, returning -999" );
895  return -999;
896  }
897 }

◆ TILBnperiod()

int TileDddbManager::TILBnperiod ( ) const

Definition at line 646 of file TileDddbManager.cxx.

647 {
648  if (m_currentSection) {
649  return m_currentSection->getInt("NPERIOD");
650  }
651  else {
652  ATH_MSG_ERROR( "TileDddbManager::TILBnperiod() - Current Section not set, returning -999" );
653  return -999;
654  }
655 }

◆ TILBnscin()

int TileDddbManager::TILBnscin ( ) const

Definition at line 866 of file TileDddbManager.cxx.

867 {
868  if (m_currentSection) {
869  return m_currentSection->getInt("NSCIN");
870  }
871  else {
872  ATH_MSG_ERROR( "TileDddbManager::TILBnscin() - Current Section not set, returning -999" );
873  return -999;
874  }
875 }

◆ TILBphigap()

double TileDddbManager::TILBphigap ( ) const

Definition at line 778 of file TileDddbManager.cxx.

779 {
780  if (m_currentSection) {
781  return m_currentSection->getDouble("PHIGAP");
782  }
783  else {
784  ATH_MSG_ERROR( "TileDddbManager::TILBphigap() - Current Section not set, returning -999.9" );
785  return -999.9;
786  }
787 }

◆ TILBrmax()

double TileDddbManager::TILBrmax ( ) const

Definition at line 679 of file TileDddbManager.cxx.

680 {
681  if (m_currentSection) {
682  return m_currentSection->getDouble("RMAX");
683  }
684  else {
685  ATH_MSG_ERROR( "TileDddbManager::TILBrmax() - Current Section not set, returning -999.9" );
686  return -999.9;
687  }
688 }

◆ TILBrmaximal()

double TileDddbManager::TILBrmaximal ( ) const

Definition at line 701 of file TileDddbManager.cxx.

702 {
703  if (m_currentSection) {
704  return m_currentSection->getDouble("RMAXIMAL");
705  }
706  else {
707  ATH_MSG_ERROR( "TileDddbManager::TILBrmaximal() - Current Section not set, returning -999.9" );
708  return -999.9;
709  }
710 }

◆ TILBrmin()

double TileDddbManager::TILBrmin ( ) const

Definition at line 668 of file TileDddbManager.cxx.

669 {
670  if (m_currentSection) {
671  return m_currentSection->getDouble("RMIN");
672  }
673  else {
674  ATH_MSG_ERROR( "TileDddbManager::TILBrmin() - Current Section not set, returning -999.9" );
675  return -999.9;
676  }
677 }

◆ TILBrminimal()

double TileDddbManager::TILBrminimal ( ) const

Definition at line 690 of file TileDddbManager.cxx.

691 {
692  if (m_currentSection) {
693  return m_currentSection->getDouble("RMINIMAL");
694  }
695  else {
696  ATH_MSG_ERROR( "TileDddbManager::TILBrminimal() - Current Section not set, returning -999.9" );
697  return -999.9;
698  }
699 }

◆ TILBsection()

int TileDddbManager::TILBsection ( ) const

Definition at line 635 of file TileDddbManager.cxx.

636 {
637  if (m_currentSection) {
638  return m_currentSection->getInt("SECTION");
639  }
640  else {
641  ATH_MSG_ERROR( "TileDddbManager::TILBsection() - Current Section not set, returning -999" );
642  return -999;
643  }
644 }

◆ TILBzoffset()

double TileDddbManager::TILBzoffset ( ) const

Definition at line 767 of file TileDddbManager.cxx.

768 {
769  if (m_currentSection) {
770  return m_currentSection->getDouble("ZOFFSET");
771  }
772  else {
773  ATH_MSG_ERROR( "TileDddbManager::TILBzoffset() - Current Section not set, returning -999.9" );
774  return -999.9;
775  }
776 }

◆ TILEnmodul()

int TileDddbManager::TILEnmodul ( ) const

Definition at line 117 of file TileDddbManager.cxx.

118 {
119  return (*m_tile)[0]->getInt("NMODUL");
120 }

◆ TILErmam()

double TileDddbManager::TILErmam ( ) const

Definition at line 127 of file TileDddbManager.cxx.

128 {
129  return (*m_tile)[0]->getDouble("RMAM");
130 }

◆ TILErmax()

double TileDddbManager::TILErmax ( ) const

Definition at line 142 of file TileDddbManager.cxx.

143 {
144  return (*m_tile)[0]->getDouble("RMAX");
145 }

◆ TILErmim()

double TileDddbManager::TILErmim ( ) const

Definition at line 122 of file TileDddbManager.cxx.

123 {
124  return (*m_tile)[0]->getDouble("RMIM");
125 }

◆ TILErmin()

double TileDddbManager::TILErmin ( ) const

Definition at line 137 of file TileDddbManager.cxx.

138 {
139  return (*m_tile)[0]->getDouble("RMIN");
140 }

◆ TILEzmam()

double TileDddbManager::TILEzmam ( ) const

Definition at line 132 of file TileDddbManager.cxx.

133 {
134  return (*m_tile)[0]->getDouble("ZMAM");
135 }

◆ TILEzshift()

double TileDddbManager::TILEzshift ( ) const

Definition at line 147 of file TileDddbManager.cxx.

148 {
149  return (*m_tile)[0]->getDouble("ZSHIFT");
150 }

◆ uShape()

int TileDddbManager::uShape ( ) const
inline

Definition at line 271 of file TileDddbManager.h.

271 { return getSwitch("USHAPE",0); }

Member Data Documentation

◆ ATLAS_THREAD_SAFE

std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT
mutableprivateinherited

Messaging initialized (initMessaging)

Definition at line 141 of file AthMessaging.h.

◆ m_buildCuts

bool TileDddbManager::m_buildCuts
private

Definition at line 329 of file TileDddbManager.h.

◆ m_buildSaddle

bool TileDddbManager::m_buildSaddle
private

Definition at line 330 of file TileDddbManager.h.

◆ m_currentCuts

const IRDBRecord* TileDddbManager::m_currentCuts
private

Definition at line 316 of file TileDddbManager.h.

◆ m_currentGird

const IRDBRecord* TileDddbManager::m_currentGird
private

Definition at line 311 of file TileDddbManager.h.

◆ m_currentSaddle

const IRDBRecord* TileDddbManager::m_currentSaddle
private

Definition at line 317 of file TileDddbManager.h.

◆ m_currentScin

const IRDBRecord* TileDddbManager::m_currentScin
private

Definition at line 312 of file TileDddbManager.h.

◆ m_currentSection

const IRDBRecord* TileDddbManager::m_currentSection
private

Definition at line 310 of file TileDddbManager.h.

◆ m_currentTicg

const IRDBRecord* TileDddbManager::m_currentTicg
private

Definition at line 314 of file TileDddbManager.h.

◆ m_currentTicl

const IRDBRecord* TileDddbManager::m_currentTicl
private

Definition at line 315 of file TileDddbManager.h.

◆ m_currentTiclInd

int TileDddbManager::m_currentTiclInd
private

Definition at line 319 of file TileDddbManager.h.

◆ m_currentTifg

const IRDBRecord* TileDddbManager::m_currentTifg
private

Definition at line 313 of file TileDddbManager.h.

◆ m_currentTileGlob

const IRDBRecord* TileDddbManager::m_currentTileGlob
private

Definition at line 308 of file TileDddbManager.h.

◆ m_currentTileMod

const IRDBRecord* TileDddbManager::m_currentTileMod
private

Definition at line 309 of file TileDddbManager.h.

◆ m_cuts

IRDBRecordset_ptr TileDddbManager::m_cuts
private

Definition at line 288 of file TileDddbManager.h.

◆ m_EnvBegin

unsigned int TileDddbManager::m_EnvBegin
private

Definition at line 303 of file TileDddbManager.h.

◆ m_EnvNum

unsigned int TileDddbManager::m_EnvNum
private

Definition at line 301 of file TileDddbManager.h.

◆ m_EnvSize

unsigned int TileDddbManager::m_EnvSize
private

Definition at line 302 of file TileDddbManager.h.

◆ m_imsg

std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr }
mutableprivateinherited

MessageSvc pointer.

Definition at line 135 of file AthMessaging.h.

◆ m_lvl

std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL }
mutableprivateinherited

Current logging level.

Definition at line 138 of file AthMessaging.h.

◆ m_modTypes

std::vector<unsigned int> TileDddbManager::m_modTypes
private

Definition at line 326 of file TileDddbManager.h.

◆ m_msg_tls

boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls
mutableprivateinherited

MsgStream instance (a std::cout like with print-out levels)

Definition at line 132 of file AthMessaging.h.

◆ m_n_cuts

unsigned int TileDddbManager::m_n_cuts
private

Definition at line 304 of file TileDddbManager.h.

◆ m_n_saddle

unsigned int TileDddbManager::m_n_saddle
private

Definition at line 305 of file TileDddbManager.h.

◆ m_n_scnt

unsigned int TileDddbManager::m_n_scnt
private

Definition at line 297 of file TileDddbManager.h.

◆ m_n_ticg

unsigned int TileDddbManager::m_n_ticg
private

Definition at line 299 of file TileDddbManager.h.

◆ m_n_ticl

unsigned int TileDddbManager::m_n_ticl
private

Definition at line 300 of file TileDddbManager.h.

◆ m_n_tifg

unsigned int TileDddbManager::m_n_tifg
private

Definition at line 298 of file TileDddbManager.h.

◆ m_n_tiglob

unsigned int TileDddbManager::m_n_tiglob
private

Definition at line 293 of file TileDddbManager.h.

◆ m_n_tigr

unsigned int TileDddbManager::m_n_tigr
private

Definition at line 296 of file TileDddbManager.h.

◆ m_n_tilb

unsigned int TileDddbManager::m_n_tilb
private

Definition at line 295 of file TileDddbManager.h.

◆ m_n_tileSwitches

unsigned int TileDddbManager::m_n_tileSwitches
private

Definition at line 306 of file TileDddbManager.h.

◆ m_n_timod

unsigned int TileDddbManager::m_n_timod
private

Definition at line 294 of file TileDddbManager.h.

◆ m_nm

std::string AthMessaging::m_nm
privateinherited

Message source name.

Definition at line 129 of file AthMessaging.h.

◆ m_node

std::string TileDddbManager::m_node
private

Definition at line 322 of file TileDddbManager.h.

◆ m_saddle

IRDBRecordset_ptr TileDddbManager::m_saddle
private

Definition at line 289 of file TileDddbManager.h.

◆ m_scnt

IRDBRecordset_ptr TileDddbManager::m_scnt
private

Definition at line 284 of file TileDddbManager.h.

◆ m_sqliteInput

bool TileDddbManager::m_sqliteInput
private

Definition at line 324 of file TileDddbManager.h.

◆ m_tag

std::string TileDddbManager::m_tag
private

Definition at line 321 of file TileDddbManager.h.

◆ m_ticg

IRDBRecordset_ptr TileDddbManager::m_ticg
private

Definition at line 286 of file TileDddbManager.h.

◆ m_ticl

IRDBRecordset_ptr TileDddbManager::m_ticl
private

Definition at line 287 of file TileDddbManager.h.

◆ m_tifg

IRDBRecordset_ptr TileDddbManager::m_tifg
private

Definition at line 285 of file TileDddbManager.h.

◆ m_tiglob

IRDBRecordset_ptr TileDddbManager::m_tiglob
private

Definition at line 279 of file TileDddbManager.h.

◆ m_tigr

IRDBRecordset_ptr TileDddbManager::m_tigr
private

Definition at line 283 of file TileDddbManager.h.

◆ m_tilb

IRDBRecordset_ptr TileDddbManager::m_tilb
private

Definition at line 282 of file TileDddbManager.h.

◆ m_tile

IRDBRecordset_ptr TileDddbManager::m_tile
private

Definition at line 281 of file TileDddbManager.h.

◆ m_tileSwitches

IRDBRecordset_ptr TileDddbManager::m_tileSwitches
private

Definition at line 290 of file TileDddbManager.h.

◆ m_timod

IRDBRecordset_ptr TileDddbManager::m_timod
private

Definition at line 280 of file TileDddbManager.h.


The documentation for this class was generated from the following files:
IRDBRecord::getInt
virtual int getInt(const std::string &fieldName) const =0
Get int field value.
LArG4FSStartPointFilter.part
part
Definition: LArG4FSStartPointFilter.py:21
AthMessaging::m_lvl
std::atomic< MSG::Level > m_lvl
Current logging level.
Definition: AthMessaging.h:138
TileDddbManager::TILE_PLUG3
@ TILE_PLUG3
Definition: TileDddbManager.h:46
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
TileDddbManager::m_currentSection
const IRDBRecord * m_currentSection
Definition: TileDddbManager.h:310
TileDddbManager::m_currentTileMod
const IRDBRecord * m_currentTileMod
Definition: TileDddbManager.h:309
TileDddbManager::m_n_cuts
unsigned int m_n_cuts
Definition: TileDddbManager.h:304
TileDddbManager::TILE_BARREL
@ TILE_BARREL
Definition: TileDddbManager.h:42
TileDddbManager::SetCurrentSection
int SetCurrentSection(unsigned int section, bool print=true)
Definition: TileDddbManager.cxx:616
TileDddbManager::m_currentTileGlob
const IRDBRecord * m_currentTileGlob
Definition: TileDddbManager.h:308
TileDddbManager::FillModTypes
void FillModTypes()
Definition: TileDddbManager.cxx:580
TileDddbManager::TILE_PLUG1
@ TILE_PLUG1
Definition: TileDddbManager.h:44
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
TileDddbManager::m_node
std::string m_node
Definition: TileDddbManager.h:322
index
Definition: index.py:1
TRTCalib_cfilter.detector
detector
Definition: TRTCalib_cfilter.py:241
TileDddbManager::TILE_PLUG4
@ TILE_PLUG4
Definition: TileDddbManager.h:47
IRDBRecord::getString
virtual const std::string & getString(const std::string &fieldName) const =0
Get string field value.
TileDddbManager::m_tile
IRDBRecordset_ptr m_tile
Definition: TileDddbManager.h:281
TileDddbManager::m_modTypes
std::vector< unsigned int > m_modTypes
Definition: TileDddbManager.h:326
TileDddbManager::m_currentTicg
const IRDBRecord * m_currentTicg
Definition: TileDddbManager.h:314
TileDddbManager::GetModType
int GetModType() const
Definition: TileDddbManager.cxx:471
TileDddbManager::m_n_ticl
unsigned int m_n_ticl
Definition: TileDddbManager.h:300
TileDddbManager::m_currentGird
const IRDBRecord * m_currentGird
Definition: TileDddbManager.h:311
TileDddbManager::m_buildSaddle
bool m_buildSaddle
Definition: TileDddbManager.h:330
TileDddbManager::m_currentTicl
const IRDBRecord * m_currentTicl
Definition: TileDddbManager.h:315
AthMessaging::m_imsg
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
Definition: AthMessaging.h:135
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
TileDddbManager::m_currentCuts
const IRDBRecord * m_currentCuts
Definition: TileDddbManager.h:316
TileDddbManager::TILE_PLUG2
@ TILE_PLUG2
Definition: TileDddbManager.h:45
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
TileDddbManager::m_EnvSize
unsigned int m_EnvSize
Definition: TileDddbManager.h:302
TileDddbManager::SetCurrentTypeByIndex
int SetCurrentTypeByIndex(unsigned int Id)
Definition: TileDddbManager.cxx:550
TileDddbManager::m_n_timod
unsigned int m_n_timod
Definition: TileDddbManager.h:294
TileDddbManager::m_currentTiclInd
int m_currentTiclInd
Definition: TileDddbManager.h:319
AthMessaging::AthMessaging
AthMessaging()
Default constructor:
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
TileDddbManager::m_n_saddle
unsigned int m_n_saddle
Definition: TileDddbManager.h:305
TileDddbManager::m_n_tilb
unsigned int m_n_tilb
Definition: TileDddbManager.h:295
FullCPAlgorithmsTest_eljob.sample
sample
Definition: FullCPAlgorithmsTest_eljob.py:116
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
TileDddbManager::m_n_tileSwitches
unsigned int m_n_tileSwitches
Definition: TileDddbManager.h:306
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
TileDddbManager::m_EnvNum
unsigned int m_EnvNum
Definition: TileDddbManager.h:301
calibdata.exception
exception
Definition: calibdata.py:496
TileDddbManager::m_tifg
IRDBRecordset_ptr m_tifg
Definition: TileDddbManager.h:285
TileDddbManager::m_n_tifg
unsigned int m_n_tifg
Definition: TileDddbManager.h:298
TileDddbManager::getSwitch
int getSwitch(const char *name, int def_val) const
Definition: TileDddbManager.cxx:1756
TileDddbManager::m_scnt
IRDBRecordset_ptr m_scnt
Definition: TileDddbManager.h:284
python.dummyaccess.access
def access(filename, mode)
Definition: dummyaccess.py:18
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition: AthMessaging.h:164
TileDddbManager::m_tileSwitches
IRDBRecordset_ptr m_tileSwitches
Definition: TileDddbManager.h:290
TileDddbManager::m_tiglob
IRDBRecordset_ptr m_tiglob
Definition: TileDddbManager.h:279
TileDddbManager::m_ticl
IRDBRecordset_ptr m_ticl
Definition: TileDddbManager.h:287
merge.output
output
Definition: merge.py:17
TileDddbManager::m_currentSaddle
const IRDBRecord * m_currentSaddle
Definition: TileDddbManager.h:317
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TileDddbManager::m_currentTifg
const IRDBRecord * m_currentTifg
Definition: TileDddbManager.h:313
TileDddbManager::m_timod
IRDBRecordset_ptr m_timod
Definition: TileDddbManager.h:280
item
Definition: ItemListSvc.h:43
TileDddbManager::TILE_EBARREL
@ TILE_EBARREL
Definition: TileDddbManager.h:43
TileDddbManager::m_tilb
IRDBRecordset_ptr m_tilb
Definition: TileDddbManager.h:282
TileDddbManager::m_ticg
IRDBRecordset_ptr m_ticg
Definition: TileDddbManager.h:286
TileDddbManager::m_n_ticg
unsigned int m_n_ticg
Definition: TileDddbManager.h:299
DeMoScan.index
string index
Definition: DeMoScan.py:364
TileDddbManager::m_tigr
IRDBRecordset_ptr m_tigr
Definition: TileDddbManager.h:283
TileDddbManager::m_n_scnt
unsigned int m_n_scnt
Definition: TileDddbManager.h:297
TileDddbManager::m_EnvBegin
unsigned int m_EnvBegin
Definition: TileDddbManager.h:303
TileDddbManager::m_currentScin
const IRDBRecord * m_currentScin
Definition: TileDddbManager.h:312
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
TileDddbManager::m_cuts
IRDBRecordset_ptr m_cuts
Definition: TileDddbManager.h:288
IRDBRecord::isFieldNull
virtual bool isFieldNull(const std::string &fieldName) const =0
Check if the field value is NULL.
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
AthMessaging::m_nm
std::string m_nm
Message source name.
Definition: AthMessaging.h:129
TileDddbManager::m_n_tigr
unsigned int m_n_tigr
Definition: TileDddbManager.h:296
TileDddbManager::m_saddle
IRDBRecordset_ptr m_saddle
Definition: TileDddbManager.h:289
IRDBRecord::getDouble
virtual double getDouble(const std::string &fieldName) const =0
Get double field value.
dbg::print
void print(std::FILE *stream, std::format_string< Args... > fmt, Args &&... args)
Definition: SGImplSvc.cxx:70
TileDddbManager::m_tag
std::string m_tag
Definition: TileDddbManager.h:321
AthMessaging::initMessaging
void initMessaging() const
Initialize our message level and MessageSvc.
Definition: AthMessaging.cxx:39
section
void section(const std::string &sec)
Definition: TestTriggerMenuAccess.cxx:22
AthMessaging::m_msg_tls
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
Definition: AthMessaging.h:132
sample_ind
#define sample_ind(r, m, c, i)
Definition: TileAANtuple.cxx:102
IRDBRecord::getFloat
virtual float getFloat(const std::string &fieldName) const =0
Get float field value.
TileDddbManager::m_sqliteInput
bool m_sqliteInput
Definition: TileDddbManager.h:324
TileDddbManager::m_n_tiglob
unsigned int m_n_tiglob
Definition: TileDddbManager.h:293
checkFileSG.ind
list ind
Definition: checkFileSG.py:118
TileDddbManager::m_buildCuts
bool m_buildCuts
Definition: TileDddbManager.h:329