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

#include <InDetServMatGeometryManager.h>

Collaboration diagram for InDetServMatGeometryManager:

Public Member Functions

 InDetServMatGeometryManager (InDetDD::AthenaComps *athenaComps)
 
 ~InDetServMatGeometryManager ()
 
InDetServMatGeometryManageroperator= (const InDetServMatGeometryManager &)=delete
 Delete assignment. More...
 
 InDetServMatGeometryManager (const InDetServMatGeometryManager &)=delete
 Delete copy c'tor. More...
 
const IGeometryDBSvcdb () const
 
InDetMaterialManagermatMgr ()
 
MsgStream & msg (MSG::Level lvl) const
 
bool msgLvl (MSG::Level lvl) const
 
bool buildServices () const
 
IRDBRecordset_ptr simpleServiceTable () const
 
int pixelNumLayers () const
 
double pixelLayerRadius (int layer) const
 
double pixelLayerLength (int layer) const
 
int pixelNumSectorsForLayer (int layer) const
 
int pixelModulesPerStave (int layer) const
 
double pixelLadderBentStaveAngle (int layer) const
 
int pixelBentStaveNModule (int layer) const
 
double pixelLadderModuleDeltaZ (int layer) const
 
int pixelEndcapNumSectorsForLayer (int layer) const
 
int pixelModulesPerRing (int ring) const
 
int pixelModulesPerEndcapSector (int disk) const
 
int pixelNumDisks () const
 
double pixelDiskZ (int disk) const
 
double pixelDiskRMin (int disk) const
 
double pixelDiskRMax (int disk) const
 
double pixelDiskEOSZOffset (int disk) const
 
std::string pixelDiskServiceRoute (int disk) const
 
double pixelEnvelopeRMax () const
 
int pixelBarrelModuleType (int layer) const
 
int pixelDesignType (int moduleType) const
 
int pixelChipsPerModule (int moduleType) const
 
int pixelChipsPerModuleForDisk (int disk) const
 
int sctNumLayers () const
 
double sctLayerRadius (int layer) const
 
double sctLayerLength (int layer) const
 
int sctLayerType (int layer) const
 
int sctNumSectorsForLayer (int layer) const
 
int sctModulesPerLadder (int layer) const
 
int sctEndcapNumSectorsForLayer (int layer) const
 
int sctNumDisks () const
 
double sctDiskZ (int disk) const
 
double sctDiskRMax (int disk) const
 
double sctInnerSupport () const
 
double SupportTubeRMin (const std::string &name) const
 
double SupportTubeRMax (const std::string &name) const
 
double SupportTubeZMin (const std::string &name) const
 
double SupportTubeZMax (const std::string &name) const
 
int SupportTubeExists (const std::string &name) const
 

Private Member Functions

int SupportTubeIndex (const std::string &name) const
 

Private Attributes

IRDBRecordset_ptr m_InDetWeights
 
IRDBRecordset_ptr m_PixelBarrelGeneral
 
IRDBRecordset_ptr m_PixelEndcapGeneral
 
IRDBRecordset_ptr m_PixelLayer
 
IRDBRecordset_ptr m_PixelDisk
 
IRDBRecordset_ptr m_PixelDiskRing
 
IRDBRecordset_ptr m_PixelStave
 
IRDBRecordset_ptr m_PixelRing
 
IRDBRecordset_ptr m_PixelModule
 
IRDBRecordset_ptr m_PixelReadout
 
IRDBRecordset_ptr m_PixelWeights
 
IRDBRecordset_ptr m_PixelEnvelope
 
IRDBRecordset_ptr m_PixelSvcRoute
 
IRDBRecordset_ptr m_SctBrlGeneral
 
IRDBRecordset_ptr m_SctBrlLayer
 
IRDBRecordset_ptr m_SctBrlLadder
 
IRDBRecordset_ptr m_SctFwdGeneral
 
IRDBRecordset_ptr m_SctFwdWheel
 
IRDBRecordset_ptr m_SctFwdDiscSupport
 
IRDBRecordset_ptr m_SctBrlServPerLayer
 
IRDBRecordset_ptr m_SctWeights
 
IRDBRecordset_ptr m_InDetSimpleServices
 
IRDBRecordset_ptr m_switches
 
IRDBRecordset_ptr m_scalingTable
 
InDetDD::AthenaCompsm_athenaComps
 
InDetMaterialManagerm_matMgr
 

Detailed Description

Definition at line 16 of file InDetServMatGeometryManager.h.

Constructor & Destructor Documentation

◆ InDetServMatGeometryManager() [1/2]

InDetServMatGeometryManager::InDetServMatGeometryManager ( InDetDD::AthenaComps athenaComps)

Definition at line 15 of file InDetServMatGeometryManager.cxx.

16  : m_athenaComps(athenaComps),
17  m_matMgr(nullptr)
18 {
19 
20  if (msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Initializing InDetServMatGeometryManager" << endmsg;
21 
22  const IGeoDbTagSvc *geoDbTag = m_athenaComps->geoDbTagSvc();
24 
25  // Get version tag and node for Pixel.
26  DecodeVersionKey pixelVersionKey(geoDbTag,"Pixel");
27  const std::string& pixelDetectorKey = pixelVersionKey.tag();
28  const std::string& pixelDetectorNode = pixelVersionKey.node();
29 
30  // Get version tag and node for SCT.
31  DecodeVersionKey sctVersionKey(geoDbTag,"SCT");
32  const std::string& sctDetectorKey = sctVersionKey.tag();
33  const std::string& sctDetectorNode = sctVersionKey.node();
34 
36  DecodeVersionKey indetVersionKey(geoDbTag,"InnerDetector");
37  const std::string& indetDetectorKey = indetVersionKey.tag();
38  const std::string& indetDetectorNode = indetVersionKey.node();
39 
41 //
42 // Gets the record sets
43 //
45 
46  if(msgLvl(MSG::DEBUG)) {
47  msg(MSG::DEBUG) << "Retrieving Pixel Record Sets from database ..." << endmsg;
48  msg(MSG::DEBUG) << "Pixel: Key = " << pixelDetectorKey << " Node = " << pixelDetectorNode << endmsg;
49  msg(MSG::DEBUG) << "SCT: Key = " << sctDetectorKey << " Node = " << sctDetectorNode << endmsg;
50  msg(MSG::DEBUG) << "InDet: Key = " << indetDetectorKey << " Node = " << indetDetectorNode << endmsg;
51  }
52 
53  m_InDetWeights = rdbSvc->getRecordsetPtr("InDetWeights", indetDetectorKey, indetDetectorNode);
54 
55  m_PixelBarrelGeneral = rdbSvc->getRecordsetPtr("PixelBarrelGeneral", pixelDetectorKey, pixelDetectorNode);
56  m_PixelEndcapGeneral = rdbSvc->getRecordsetPtr("PixelEndcapGeneral", pixelDetectorKey, pixelDetectorNode);
57  m_PixelLayer = rdbSvc->getRecordsetPtr("PixelLayer", pixelDetectorKey, pixelDetectorNode);
58  m_PixelDisk = rdbSvc->getRecordsetPtr("PixelDisk", pixelDetectorKey, pixelDetectorNode);
59  m_PixelDiskRing = rdbSvc->getRecordsetPtr("PixelDiskRing", pixelDetectorKey, pixelDetectorNode);
60  m_PixelStave = rdbSvc->getRecordsetPtr("PixelStave", pixelDetectorKey, pixelDetectorNode);
61  m_PixelRing = rdbSvc->getRecordsetPtr("PixelRing", pixelDetectorKey, pixelDetectorNode);
62  m_PixelModule = rdbSvc->getRecordsetPtr("PixelModule", pixelDetectorKey, pixelDetectorNode);
63  m_PixelReadout = rdbSvc->getRecordsetPtr("PixelReadout", pixelDetectorKey, pixelDetectorNode);
64  m_PixelWeights = rdbSvc->getRecordsetPtr("PixelWeights", pixelDetectorKey, pixelDetectorNode);
65  m_PixelEnvelope = rdbSvc->getRecordsetPtr("PixelEnvelope", pixelDetectorKey, pixelDetectorNode);
66  m_PixelSvcRoute = rdbSvc->getRecordsetPtr("PixelServiceRoute", pixelDetectorKey, pixelDetectorNode);
67 
68  m_SctBrlGeneral = rdbSvc->getRecordsetPtr("SSctBrlGeneral", sctDetectorKey, sctDetectorNode);
69  m_SctBrlLayer = rdbSvc->getRecordsetPtr("SSctBrlLayer", sctDetectorKey, sctDetectorNode);
70  m_SctBrlLadder = rdbSvc->getRecordsetPtr("SSctBrlLadder", sctDetectorKey, sctDetectorNode);
71  m_SctFwdGeneral = rdbSvc->getRecordsetPtr("SSctFwdGeneral", sctDetectorKey, sctDetectorNode);
72  m_SctFwdWheel = rdbSvc->getRecordsetPtr("SSctFwdWheel", sctDetectorKey, sctDetectorNode);
73  m_SctFwdDiscSupport = rdbSvc->getRecordsetPtr("SSctFwdDiscSupport", sctDetectorKey, sctDetectorNode);
74  m_SctBrlServPerLayer = rdbSvc->getRecordsetPtr("SSctBrlServPerLayer", sctDetectorKey, sctDetectorNode);
75  m_SctWeights = rdbSvc->getRecordsetPtr("SctWeights", sctDetectorKey, sctDetectorNode);
76 
77  m_InDetSimpleServices = rdbSvc->getRecordsetPtr("InDetSimpleServices", indetDetectorKey, indetDetectorNode);
78 
79  m_scalingTable = rdbSvc->getRecordsetPtr("InDetServMatScaling", indetDetectorKey, indetDetectorNode);
80 
81  m_switches = rdbSvc->getRecordsetPtr("InDetServSwitches", indetDetectorKey, indetDetectorNode);
82 
83  m_matMgr = new InDetMaterialManager("InDetServMatMaterialManager", m_athenaComps);
88 
89 }

◆ ~InDetServMatGeometryManager()

InDetServMatGeometryManager::~InDetServMatGeometryManager ( )

Definition at line 91 of file InDetServMatGeometryManager.cxx.

92 {
93  delete m_matMgr;
94 }

◆ InDetServMatGeometryManager() [2/2]

InDetServMatGeometryManager::InDetServMatGeometryManager ( const InDetServMatGeometryManager )
delete

Delete copy c'tor.

Member Function Documentation

◆ buildServices()

bool InDetServMatGeometryManager::buildServices ( ) const

Definition at line 97 of file InDetServMatGeometryManager.cxx.

98 {
99  if (db()->testField("","BUILDSERVICES")) {
100  return db()->getInt("","BUILDSERVICES");
101  }
102  if (db()->testField(m_switches,"BUILDSERVICES")) {
103  return db()->getInt(m_switches,"BUILDSERVICES");
104  }
105  return false;
106 }

◆ db()

const IGeometryDBSvc* InDetServMatGeometryManager::db ( ) const
inline

Definition at line 30 of file InDetServMatGeometryManager.h.

30 {return std::as_const(*m_athenaComps).geomDB();}

◆ matMgr()

InDetMaterialManager* InDetServMatGeometryManager::matMgr ( )
inline

Definition at line 33 of file InDetServMatGeometryManager.h.

33 {return m_matMgr;}

◆ msg()

MsgStream& InDetServMatGeometryManager::msg ( MSG::Level  lvl) const
inline

Definition at line 37 of file InDetServMatGeometryManager.h.

37 { return m_athenaComps->msg(lvl); }

◆ msgLvl()

bool InDetServMatGeometryManager::msgLvl ( MSG::Level  lvl) const
inline

Definition at line 40 of file InDetServMatGeometryManager.h.

40 { return m_athenaComps->msgLvl(lvl); }

◆ operator=()

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

Delete assignment.

◆ pixelBarrelModuleType()

int InDetServMatGeometryManager::pixelBarrelModuleType ( int  layer) const

Definition at line 316 of file InDetServMatGeometryManager.cxx.

317 {
318  return db()->getInt( m_PixelLayer, "MODULETYPE", layer);
319 }

◆ pixelBentStaveNModule()

int InDetServMatGeometryManager::pixelBentStaveNModule ( int  layer) const

Definition at line 199 of file InDetServMatGeometryManager.cxx.

200 {
201  if (!db()->testFieldTxt(m_PixelStave,"BENTSTAVENMODULE")) return 0;
202  int staveIndex = db()->getInt(m_PixelLayer, "STAVEINDEX", layer);
203  return db()->getInt(m_PixelStave, "BENTSTAVENMODULE", staveIndex);
204 }

◆ pixelChipsPerModule()

int InDetServMatGeometryManager::pixelChipsPerModule ( int  moduleType) const

Definition at line 336 of file InDetServMatGeometryManager.cxx.

337 {
338  int nChipsEta = db()->getInt( m_PixelReadout, "NCHIPSETA", moduleType);
339  int nChipsPhi = db()->getInt( m_PixelReadout, "NCHIPSPHI", moduleType);
340  return nChipsEta*nChipsPhi;
341 }

◆ pixelChipsPerModuleForDisk()

int InDetServMatGeometryManager::pixelChipsPerModuleForDisk ( int  disk) const

Definition at line 239 of file InDetServMatGeometryManager.cxx.

240 {
241  int sumChips = 0;
242  int sumModules = 0;
243  for (unsigned int indexTmp = 0; indexTmp < db()->getTableSize(m_PixelDiskRing); ++indexTmp) {
244  int disk = db()->getInt(m_PixelDiskRing,"DISK",indexTmp);
245  if ( disk == layer) {
246  int ring = db()->getInt(m_PixelDiskRing,"RING",indexTmp);
247  int moduleType = db()->getInt(m_PixelRing,"MODULETYPE",ring);
248  int nModules = pixelModulesPerRing( ring);
249  sumModules += nModules;
250  sumChips += nModules * pixelChipsPerModule( moduleType);
251  }
252  }
253  if(sumModules==0) return 0;
254  if (sumChips % sumModules == 0) return sumChips/sumModules;
255  else return 1 + sumChips/sumModules; // round to larger integer
256 }

◆ pixelDesignType()

int InDetServMatGeometryManager::pixelDesignType ( int  moduleType) const

Definition at line 331 of file InDetServMatGeometryManager.cxx.

332 {
333  return db()->getInt( m_PixelModule, "DESIGNTYPE", moduleType);
334 }

◆ pixelDiskEOSZOffset()

double InDetServMatGeometryManager::pixelDiskEOSZOffset ( int  disk) const

Definition at line 295 of file InDetServMatGeometryManager.cxx.

296 {
297  if (!db()->testField(m_PixelSvcRoute, "EOSZOFFSET"))
298  return 0.0;
299  else
300  return db()->getDouble(m_PixelSvcRoute,"EOSZOFFSET",disk) * Gaudi::Units::mm;
301 }

◆ pixelDiskRMax()

double InDetServMatGeometryManager::pixelDiskRMax ( int  disk) const

Definition at line 283 of file InDetServMatGeometryManager.cxx.

284 {
285  std::string route = pixelDiskServiceRoute(disk);
286  if(route=="StdRoute")
287  return db()->getDouble(m_PixelDisk,"RMAX",disk) * Gaudi::Units::mm + 11*Gaudi::Units::mm;
288 
289  // support structures - SUP3RMAX is always furthest from centre
290  return db()->getDouble(m_PixelDisk,"SUP3RMAX",disk) * Gaudi::Units::mm;
291 
292 }

◆ pixelDiskRMin()

double InDetServMatGeometryManager::pixelDiskRMin ( int  disk) const

Definition at line 271 of file InDetServMatGeometryManager.cxx.

272 {
273  std::string route = pixelDiskServiceRoute(disk);
274  if(route=="StdRoute")
275  return db()->getDouble(m_PixelDisk,"RMIN",disk) * Gaudi::Units::mm - 11*Gaudi::Units::mm;
276 
277  // support structures - SUP1RMIN is always closest to centre
278  return db()->getDouble(m_PixelDisk,"SUP1RMIN",disk) * Gaudi::Units::mm;
279 
280 }

◆ pixelDiskServiceRoute()

std::string InDetServMatGeometryManager::pixelDiskServiceRoute ( int  disk) const

Definition at line 304 of file InDetServMatGeometryManager.cxx.

305 {
306  if(db()->testField(m_PixelSvcRoute,"SERVICEROUTE"))
307  return db()->getString(m_PixelSvcRoute,"SERVICEROUTE",disk);
308  return "StdRoute";
309 }

◆ pixelDiskZ()

double InDetServMatGeometryManager::pixelDiskZ ( int  disk) const

Definition at line 265 of file InDetServMatGeometryManager.cxx.

266 {
267  return db()->getDouble(m_PixelDisk,"ZDISK",disk) * Gaudi::Units::mm;
268 }

◆ pixelEndcapNumSectorsForLayer()

int InDetServMatGeometryManager::pixelEndcapNumSectorsForLayer ( int  layer) const

Definition at line 214 of file InDetServMatGeometryManager.cxx.

215 {
216  return db()->getInt(m_PixelDisk,"NSECTORS",layer); // FIXME: not yet in DB?
217 }

◆ pixelEnvelopeRMax()

double InDetServMatGeometryManager::pixelEnvelopeRMax ( ) const

Definition at line 311 of file InDetServMatGeometryManager.cxx.

312 {
313  return db()->getDouble(m_PixelEnvelope,"RMAX") * Gaudi::Units::mm;
314 }

◆ pixelLadderBentStaveAngle()

double InDetServMatGeometryManager::pixelLadderBentStaveAngle ( int  layer) const

Definition at line 192 of file InDetServMatGeometryManager.cxx.

193 {
194  if (!db()->testFieldTxt(m_PixelStave, "BENTSTAVEANGLE")) return 0;
195  int staveIndex = db()->getInt(m_PixelLayer,"STAVEINDEX", layer);
196  return db()->getDouble(m_PixelStave,"BENTSTAVEANGLE", staveIndex);
197 }

◆ pixelLadderModuleDeltaZ()

double InDetServMatGeometryManager::pixelLadderModuleDeltaZ ( int  layer) const

Definition at line 206 of file InDetServMatGeometryManager.cxx.

207 {
208  int staveIndex = db()->getInt(m_PixelLayer, "STAVEINDEX", layer);
209  return db()->getDouble(m_PixelStave, "MODULEDZ", staveIndex);
210 }

◆ pixelLayerLength()

double InDetServMatGeometryManager::pixelLayerLength ( int  layer) const

Definition at line 165 of file InDetServMatGeometryManager.cxx.

166 {
167  int staveIndex = db()->getInt(m_PixelLayer,"STAVEINDEX",layer);
168  return db()->getDouble(m_PixelStave,"ENVLENGTH",staveIndex) * Gaudi::Units::mm;
169 }

◆ pixelLayerRadius()

double InDetServMatGeometryManager::pixelLayerRadius ( int  layer) const

Definition at line 159 of file InDetServMatGeometryManager.cxx.

160 {
161  return db()->getDouble(m_PixelLayer,"RLAYER",layer) * Gaudi::Units::mm;
162 }

◆ pixelModulesPerEndcapSector()

int InDetServMatGeometryManager::pixelModulesPerEndcapSector ( int  disk) const

Definition at line 224 of file InDetServMatGeometryManager.cxx.

225 {
226  int nModulesDisk = 0;
227  for (unsigned int indexTmp = 0; indexTmp < db()->getTableSize(m_PixelDiskRing); ++indexTmp) {
228  int disk = db()->getInt(m_PixelDiskRing,"DISK",indexTmp);
229  if ( disk == layer) {
230  int ring = db()->getInt(m_PixelDiskRing,"RING",indexTmp);
231  nModulesDisk += pixelModulesPerRing( ring);
232  //msg(MSG::INFO) << "Pixel Ring " << ring << " on disk " << disk << " has " << pixelModulesPerRing( ring) << " modules" << endmsg;
233  }
234  }
235  if(pixelEndcapNumSectorsForLayer(layer)==0) return 0;
236  return nModulesDisk / pixelEndcapNumSectorsForLayer(layer);
237 }

◆ pixelModulesPerRing()

int InDetServMatGeometryManager::pixelModulesPerRing ( int  ring) const

Definition at line 219 of file InDetServMatGeometryManager.cxx.

220 {
221  return db()->getInt( m_PixelRing, "NMODULE", ring);
222 }

◆ pixelModulesPerStave()

int InDetServMatGeometryManager::pixelModulesPerStave ( int  layer) const

Definition at line 178 of file InDetServMatGeometryManager.cxx.

179 {
180  //msg(MSG::INFO) << "Entering InDetServMatGeometryManager::pixelModulesPerStave for layer " << layer << endmsg;
181 
182  int staveIndex = db()->getInt(m_PixelLayer,"STAVEINDEX",layer);
183 
184  //msg(MSG::INFO) << "staveIndex for the layer is " << staveIndex << endmsg;
185  //msg(MSG::INFO) << "modules per stave is " << db()->getInt(m_PixelStave,"NMODULE",staveIndex) << endmsg;
186 
187  return db()->getInt(m_PixelStave,"NMODULE",staveIndex);
188 }

◆ pixelNumDisks()

int InDetServMatGeometryManager::pixelNumDisks ( ) const

Definition at line 259 of file InDetServMatGeometryManager.cxx.

260 {
261  return db()->getInt(m_PixelEndcapGeneral,"NDISK");
262 }

◆ pixelNumLayers()

int InDetServMatGeometryManager::pixelNumLayers ( ) const

Definition at line 153 of file InDetServMatGeometryManager.cxx.

154 {
155  return db()->getInt(m_PixelBarrelGeneral,"NLAYER");
156 }

◆ pixelNumSectorsForLayer()

int InDetServMatGeometryManager::pixelNumSectorsForLayer ( int  layer) const

Definition at line 172 of file InDetServMatGeometryManager.cxx.

173 {
174  return db()->getInt(m_PixelLayer,"NSECTORS",layer);
175 }

◆ sctDiskRMax()

double InDetServMatGeometryManager::sctDiskRMax ( int  disk) const

Definition at line 402 of file InDetServMatGeometryManager.cxx.

403 {
404  return db()->getDouble(m_SctFwdDiscSupport,"OUTERRADIUS",disk) * Gaudi::Units::mm;
405 }

◆ sctDiskZ()

double InDetServMatGeometryManager::sctDiskZ ( int  disk) const

Definition at line 396 of file InDetServMatGeometryManager.cxx.

397 {
398  return db()->getDouble(m_SctFwdWheel,"ZPOSITION",disk) * Gaudi::Units::mm;
399 }

◆ sctEndcapNumSectorsForLayer()

int InDetServMatGeometryManager::sctEndcapNumSectorsForLayer ( int  layer) const

Definition at line 383 of file InDetServMatGeometryManager.cxx.

384 {
385  return 32; // FIXME: hardwired number, should go to text file and DB
386  //return db()->getInt(m_SctFwdWheel,"NSECTORS",layer); // FIXME: not yet in DB or text file
387 }

◆ sctInnerSupport()

double InDetServMatGeometryManager::sctInnerSupport ( ) const

Definition at line 407 of file InDetServMatGeometryManager.cxx.

408 {
409  return db()->getDouble(m_SctBrlServPerLayer,"SUPPORTCYLINNERRAD",0) * Gaudi::Units::mm;
410 }

◆ sctLayerLength()

double InDetServMatGeometryManager::sctLayerLength ( int  layer) const

Definition at line 358 of file InDetServMatGeometryManager.cxx.

359 {
360  return db()->getDouble(m_SctBrlLayer,"CYLLENGTH",layer) * Gaudi::Units::mm;
361 }

◆ sctLayerRadius()

double InDetServMatGeometryManager::sctLayerRadius ( int  layer) const

Definition at line 352 of file InDetServMatGeometryManager.cxx.

353 {
354  return db()->getDouble(m_SctBrlLayer,"RADIUS",layer) * Gaudi::Units::mm;
355 }

◆ sctLayerType()

int InDetServMatGeometryManager::sctLayerType ( int  layer) const

Definition at line 364 of file InDetServMatGeometryManager.cxx.

365 {
366  int ladType = db()->getInt(m_SctBrlLayer,"LADDERTYPE",layer);
367  return db()->getInt(m_SctBrlLadder,"MODTYPE",ladType);
368 }

◆ sctModulesPerLadder()

int InDetServMatGeometryManager::sctModulesPerLadder ( int  layer) const

Definition at line 376 of file InDetServMatGeometryManager.cxx.

377 {
378  int ladType = db()->getInt(m_SctBrlLayer,"LADDERTYPE",layer);
379  return db()->getInt(m_SctBrlLadder,"NUMPERLADDER",ladType);
380 }

◆ sctNumDisks()

int InDetServMatGeometryManager::sctNumDisks ( ) const

Definition at line 390 of file InDetServMatGeometryManager.cxx.

391 {
392  return db()->getInt(m_SctFwdGeneral,"NUMWHEELS");
393 }

◆ sctNumLayers()

int InDetServMatGeometryManager::sctNumLayers ( ) const

Definition at line 346 of file InDetServMatGeometryManager.cxx.

347 {
348  return db()->getInt(m_SctBrlGeneral,"NUMLAYERS");
349 }

◆ sctNumSectorsForLayer()

int InDetServMatGeometryManager::sctNumSectorsForLayer ( int  layer) const

Definition at line 371 of file InDetServMatGeometryManager.cxx.

372 {
373  return db()->getInt(m_SctBrlLayer,"SKISPERLAYER",layer);
374 }

◆ simpleServiceTable()

IRDBRecordset_ptr InDetServMatGeometryManager::simpleServiceTable ( ) const
inline

Definition at line 50 of file InDetServMatGeometryManager.h.

50 {return m_InDetSimpleServices;}

◆ SupportTubeExists()

int InDetServMatGeometryManager::SupportTubeExists ( const std::string &  name) const

Definition at line 145 of file InDetServMatGeometryManager.cxx.

146 {
147  if (SupportTubeIndex(name) != -1) return 1;
148  return 0;
149 }

◆ SupportTubeIndex()

int InDetServMatGeometryManager::SupportTubeIndex ( const std::string &  name) const
private

Definition at line 108 of file InDetServMatGeometryManager.cxx.

109 {
110  for (unsigned int i = 0; i < db()->getTableSize(m_InDetSimpleServices); i++)
111  {
112  if (db()->getString(m_InDetSimpleServices,"NAME",i) == name) return i;
113  }
114  return -1;
115 }

◆ SupportTubeRMax()

double InDetServMatGeometryManager::SupportTubeRMax ( const std::string &  name) const

Definition at line 124 of file InDetServMatGeometryManager.cxx.

125 {
126  int ind = SupportTubeIndex(name);
127  if (ind >= 0) return db()->getDouble(m_InDetSimpleServices, "RMAX", ind);
128  return 0;
129 }

◆ SupportTubeRMin()

double InDetServMatGeometryManager::SupportTubeRMin ( const std::string &  name) const

Definition at line 117 of file InDetServMatGeometryManager.cxx.

118 {
119  int ind = SupportTubeIndex(name);
120  if (ind >= 0) return db()->getDouble(m_InDetSimpleServices, "RMIN", ind);
121  return 0;
122 }

◆ SupportTubeZMax()

double InDetServMatGeometryManager::SupportTubeZMax ( const std::string &  name) const

Definition at line 138 of file InDetServMatGeometryManager.cxx.

139 {
140  int ind = SupportTubeIndex(name);
141  if (ind >= 0) return db()->getDouble(m_InDetSimpleServices, "ZMAX", ind);
142  return 0;
143 }

◆ SupportTubeZMin()

double InDetServMatGeometryManager::SupportTubeZMin ( const std::string &  name) const

Definition at line 131 of file InDetServMatGeometryManager.cxx.

132 {
133  int ind = SupportTubeIndex(name);
134  if (ind >= 0) return db()->getDouble(m_InDetSimpleServices, "ZMIN", ind);
135  return 0;
136 }

Member Data Documentation

◆ m_athenaComps

InDetDD::AthenaComps* InDetServMatGeometryManager::m_athenaComps
private

Definition at line 186 of file InDetServMatGeometryManager.h.

◆ m_InDetSimpleServices

IRDBRecordset_ptr InDetServMatGeometryManager::m_InDetSimpleServices
private

Definition at line 179 of file InDetServMatGeometryManager.h.

◆ m_InDetWeights

IRDBRecordset_ptr InDetServMatGeometryManager::m_InDetWeights
private

Definition at line 155 of file InDetServMatGeometryManager.h.

◆ m_matMgr

InDetMaterialManager* InDetServMatGeometryManager::m_matMgr
private

Definition at line 189 of file InDetServMatGeometryManager.h.

◆ m_PixelBarrelGeneral

IRDBRecordset_ptr InDetServMatGeometryManager::m_PixelBarrelGeneral
private

Definition at line 157 of file InDetServMatGeometryManager.h.

◆ m_PixelDisk

IRDBRecordset_ptr InDetServMatGeometryManager::m_PixelDisk
private

Definition at line 160 of file InDetServMatGeometryManager.h.

◆ m_PixelDiskRing

IRDBRecordset_ptr InDetServMatGeometryManager::m_PixelDiskRing
private

Definition at line 161 of file InDetServMatGeometryManager.h.

◆ m_PixelEndcapGeneral

IRDBRecordset_ptr InDetServMatGeometryManager::m_PixelEndcapGeneral
private

Definition at line 158 of file InDetServMatGeometryManager.h.

◆ m_PixelEnvelope

IRDBRecordset_ptr InDetServMatGeometryManager::m_PixelEnvelope
private

Definition at line 167 of file InDetServMatGeometryManager.h.

◆ m_PixelLayer

IRDBRecordset_ptr InDetServMatGeometryManager::m_PixelLayer
private

Definition at line 159 of file InDetServMatGeometryManager.h.

◆ m_PixelModule

IRDBRecordset_ptr InDetServMatGeometryManager::m_PixelModule
private

Definition at line 164 of file InDetServMatGeometryManager.h.

◆ m_PixelReadout

IRDBRecordset_ptr InDetServMatGeometryManager::m_PixelReadout
private

Definition at line 165 of file InDetServMatGeometryManager.h.

◆ m_PixelRing

IRDBRecordset_ptr InDetServMatGeometryManager::m_PixelRing
private

Definition at line 163 of file InDetServMatGeometryManager.h.

◆ m_PixelStave

IRDBRecordset_ptr InDetServMatGeometryManager::m_PixelStave
private

Definition at line 162 of file InDetServMatGeometryManager.h.

◆ m_PixelSvcRoute

IRDBRecordset_ptr InDetServMatGeometryManager::m_PixelSvcRoute
private

Definition at line 168 of file InDetServMatGeometryManager.h.

◆ m_PixelWeights

IRDBRecordset_ptr InDetServMatGeometryManager::m_PixelWeights
private

Definition at line 166 of file InDetServMatGeometryManager.h.

◆ m_scalingTable

IRDBRecordset_ptr InDetServMatGeometryManager::m_scalingTable
private

Definition at line 183 of file InDetServMatGeometryManager.h.

◆ m_SctBrlGeneral

IRDBRecordset_ptr InDetServMatGeometryManager::m_SctBrlGeneral
private

Definition at line 170 of file InDetServMatGeometryManager.h.

◆ m_SctBrlLadder

IRDBRecordset_ptr InDetServMatGeometryManager::m_SctBrlLadder
private

Definition at line 172 of file InDetServMatGeometryManager.h.

◆ m_SctBrlLayer

IRDBRecordset_ptr InDetServMatGeometryManager::m_SctBrlLayer
private

Definition at line 171 of file InDetServMatGeometryManager.h.

◆ m_SctBrlServPerLayer

IRDBRecordset_ptr InDetServMatGeometryManager::m_SctBrlServPerLayer
private

Definition at line 176 of file InDetServMatGeometryManager.h.

◆ m_SctFwdDiscSupport

IRDBRecordset_ptr InDetServMatGeometryManager::m_SctFwdDiscSupport
private

Definition at line 175 of file InDetServMatGeometryManager.h.

◆ m_SctFwdGeneral

IRDBRecordset_ptr InDetServMatGeometryManager::m_SctFwdGeneral
private

Definition at line 173 of file InDetServMatGeometryManager.h.

◆ m_SctFwdWheel

IRDBRecordset_ptr InDetServMatGeometryManager::m_SctFwdWheel
private

Definition at line 174 of file InDetServMatGeometryManager.h.

◆ m_SctWeights

IRDBRecordset_ptr InDetServMatGeometryManager::m_SctWeights
private

Definition at line 177 of file InDetServMatGeometryManager.h.

◆ m_switches

IRDBRecordset_ptr InDetServMatGeometryManager::m_switches
private

Definition at line 181 of file InDetServMatGeometryManager.h.


The documentation for this class was generated from the following files:
InDetMaterialManager::addWeightTable
void addWeightTable(const IRDBRecordset_ptr &weightTable, const std::string &space="")
Definition: InDetMaterialManager.cxx:321
InDetServMatGeometryManager::pixelModulesPerRing
int pixelModulesPerRing(int ring) const
Definition: InDetServMatGeometryManager.cxx:219
InDetServMatGeometryManager::m_SctWeights
IRDBRecordset_ptr m_SctWeights
Definition: InDetServMatGeometryManager.h:177
InDetServMatGeometryManager::m_matMgr
InDetMaterialManager * m_matMgr
Definition: InDetServMatGeometryManager.h:189
IRDBAccessSvc::getRecordsetPtr
virtual IRDBRecordset_ptr getRecordsetPtr(const std::string &node, const std::string &tag, const std::string &tag2node="", const std::string &connName="ATLASDD")=0
Provides access to the Recordset object containing HVS-tagged data.
InDetServMatGeometryManager::m_SctBrlLadder
IRDBRecordset_ptr m_SctBrlLadder
Definition: InDetServMatGeometryManager.h:172
InDetServMatGeometryManager::m_InDetSimpleServices
IRDBRecordset_ptr m_InDetSimpleServices
Definition: InDetServMatGeometryManager.h:179
InDetServMatGeometryManager::SupportTubeIndex
int SupportTubeIndex(const std::string &name) const
Definition: InDetServMatGeometryManager.cxx:108
InDetServMatGeometryManager::m_PixelDisk
IRDBRecordset_ptr m_PixelDisk
Definition: InDetServMatGeometryManager.h:160
InDetServMatGeometryManager::m_PixelEnvelope
IRDBRecordset_ptr m_PixelEnvelope
Definition: InDetServMatGeometryManager.h:167
InDetServMatGeometryManager::m_PixelReadout
IRDBRecordset_ptr m_PixelReadout
Definition: InDetServMatGeometryManager.h:165
PixelModuleFeMask_create_db.nModules
nModules
Definition: PixelModuleFeMask_create_db.py:47
InDetServMatGeometryManager::m_PixelStave
IRDBRecordset_ptr m_PixelStave
Definition: InDetServMatGeometryManager.h:162
InDetServMatGeometryManager::pixelChipsPerModule
int pixelChipsPerModule(int moduleType) const
Definition: InDetServMatGeometryManager.cxx:336
InDetServMatGeometryManager::msg
MsgStream & msg(MSG::Level lvl) const
Definition: InDetServMatGeometryManager.h:37
IGeometryDBSvc::getTableSize
virtual unsigned int getTableSize(IRDBRecordset_ptr recordSet) const =0
InDetServMatGeometryManager::m_athenaComps
InDetDD::AthenaComps * m_athenaComps
Definition: InDetServMatGeometryManager.h:186
InDetServMatGeometryManager::m_PixelEndcapGeneral
IRDBRecordset_ptr m_PixelEndcapGeneral
Definition: InDetServMatGeometryManager.h:158
AthMessaging::msgLvl
bool msgLvl(const MSG::Level lvl) const
Test the output level.
Definition: AthMessaging.h:151
lumiFormat.i
int i
Definition: lumiFormat.py:92
InDetServMatGeometryManager::m_SctBrlServPerLayer
IRDBRecordset_ptr m_SctBrlServPerLayer
Definition: InDetServMatGeometryManager.h:176
IRDBAccessSvc
IRDBAccessSvc is an abstract interface to the athena service that provides the following functionalit...
Definition: IRDBAccessSvc.h:45
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
DecodeVersionKey
This is a helper class to query the version tags from GeoModelSvc and determine the appropriate tag a...
Definition: DecodeVersionKey.h:18
InDetServMatGeometryManager::m_scalingTable
IRDBRecordset_ptr m_scalingTable
Definition: InDetServMatGeometryManager.h:183
InDetServMatGeometryManager::m_PixelSvcRoute
IRDBRecordset_ptr m_PixelSvcRoute
Definition: InDetServMatGeometryManager.h:168
InDetServMatGeometryManager::m_InDetWeights
IRDBRecordset_ptr m_InDetWeights
Definition: InDetServMatGeometryManager.h:155
IGeoDbTagSvc
Definition: IGeoDbTagSvc.h:26
InDetServMatGeometryManager::pixelDiskServiceRoute
std::string pixelDiskServiceRoute(int disk) const
Definition: InDetServMatGeometryManager.cxx:304
InDetDD::AthenaComps::geoDbTagSvc
const IGeoDbTagSvc * geoDbTagSvc() const
Definition: InDetDDAthenaComps.h:58
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition: AthMessaging.h:164
InDetServMatGeometryManager::m_SctBrlGeneral
IRDBRecordset_ptr m_SctBrlGeneral
Definition: InDetServMatGeometryManager.h:170
IGeometryDBSvc::getDouble
virtual double getDouble(IRDBRecordset_ptr recordSet, const std::string &name, int index=0) const =0
The following methods will first look in the text file if provided and then look in the database.
InDetServMatGeometryManager::m_SctFwdDiscSupport
IRDBRecordset_ptr m_SctFwdDiscSupport
Definition: InDetServMatGeometryManager.h:175
InDetMaterialManager
InDetMaterialManager.
Definition: InDetMaterialManager.h:34
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
InDetMaterialManager::addScalingTable
void addScalingTable(const IRDBRecordset_ptr &scalingTable)
Definition: InDetMaterialManager.cxx:431
InDetServMatGeometryManager::msgLvl
bool msgLvl(MSG::Level lvl) const
Definition: InDetServMatGeometryManager.h:40
InDetServMatGeometryManager::m_SctFwdWheel
IRDBRecordset_ptr m_SctFwdWheel
Definition: InDetServMatGeometryManager.h:174
python.SystemOfUnits.mm
int mm
Definition: SystemOfUnits.py:83
InDetServMatGeometryManager::pixelEndcapNumSectorsForLayer
int pixelEndcapNumSectorsForLayer(int layer) const
Definition: InDetServMatGeometryManager.cxx:214
InDetServMatGeometryManager::m_PixelWeights
IRDBRecordset_ptr m_PixelWeights
Definition: InDetServMatGeometryManager.h:166
InDetServMatGeometryManager::m_PixelBarrelGeneral
IRDBRecordset_ptr m_PixelBarrelGeneral
Definition: InDetServMatGeometryManager.h:157
InDetServMatGeometryManager::db
const IGeometryDBSvc * db() const
Definition: InDetServMatGeometryManager.h:30
InDetServMatGeometryManager::m_PixelDiskRing
IRDBRecordset_ptr m_PixelDiskRing
Definition: InDetServMatGeometryManager.h:161
DEBUG
#define DEBUG
Definition: page_access.h:11
IGeometryDBSvc::getInt
virtual int getInt(IRDBRecordset_ptr recordSet, const std::string &name, int index=0) const =0
InDetServMatGeometryManager::m_PixelModule
IRDBRecordset_ptr m_PixelModule
Definition: InDetServMatGeometryManager.h:164
IGeometryDBSvc::getString
virtual std::string getString(IRDBRecordset_ptr recordSet, const std::string &name, int index=0) const =0
InDetServMatGeometryManager::m_PixelRing
IRDBRecordset_ptr m_PixelRing
Definition: InDetServMatGeometryManager.h:163
InDetServMatGeometryManager::m_switches
IRDBRecordset_ptr m_switches
Definition: InDetServMatGeometryManager.h:181
InDetServMatGeometryManager::m_SctFwdGeneral
IRDBRecordset_ptr m_SctFwdGeneral
Definition: InDetServMatGeometryManager.h:173
InDetDD::AthenaComps::rdbAccessSvc
IRDBAccessSvc * rdbAccessSvc()
Definition: InDetDDAthenaComps.h:74
InDetServMatGeometryManager::m_PixelLayer
IRDBRecordset_ptr m_PixelLayer
Definition: InDetServMatGeometryManager.h:159
checkFileSG.ind
list ind
Definition: checkFileSG.py:118
InDetServMatGeometryManager::m_SctBrlLayer
IRDBRecordset_ptr m_SctBrlLayer
Definition: InDetServMatGeometryManager.h:171