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

#include <PixelLegacyManager.h>

Collaboration diagram for PixelLegacyManager:

Public Member Functions

 PixelLegacyManager (IRDBAccessSvc *rdbSvc, const std::string &detectorKey, const std::string &detectorNode)
 
void SetDC1Geometry (bool flag)
 
bool isBarrelInSFrame ()
 
void setBarrelInSFrame ()
 
bool isEndcapInSFrame ()
 
void setEndcapInSFrame ()
 
bool isEndConeSFrame ()
 
void setEndConeSFrame ()
 
void setBarrelOutSFrame ()
 
bool oldFrame ()
 
int PixelBarrelNBFrame ()
 
int PixelBarrelNTFrame ()
 
double PixelBarrelBFrameWidth ()
 
double PixelBarrelTFrameWidth ()
 
double PixelBarrelFrameOffset ()
 
double PixelBarrelFrameLength ()
 
int PixelEndcapNBFrame ()
 
int PixelEndcapNTFrame ()
 
double PixelEndcapBFrameWidth ()
 
double PixelEndcapTFrameWidth ()
 
double PixelEndcapFrameOffset ()
 
double PixelEndcapFrameLength ()
 
double PixelBFrameHalfLength ()
 
double PixelBFrameHalfWidth ()
 
double PixelBFrameHalfThickness ()
 
double PixelTFrameHalfLength ()
 
double PixelTFrameHalfWidthY ()
 
double PixelTFrameHalfWidthXzn ()
 
double PixelTFrameHalfWidthXzp ()
 
double PixelTFrameDzDr ()
 
double PixelBarrelFrameECRadius ()
 
double PixelBarrelFrameECZPos ()
 
double PixelBarrelFrameECAlphaX ()
 
double PixelBarrelFrameECAlphaY ()
 
double PixelLadderLength ()
 
double PixelLadderThickness ()
 
double PixelLadderServicesX ()
 
double PixelLadderServicesY ()
 
double PixelLadderCableOffsetX ()
 
double PixelLadderCableOffsetY ()
 
double PixelLadderConnectorOffsetX ()
 
double PixelLadderPigtailOffsetY ()
 
int PixelCableElements ()
 
int PixelCableLayerNum (int index)
 
int PixelCableBiStaveNum (int index)
 
double PixelCableZStart (int index)
 
double PixelCableZEnd (int index)
 
double PixelCableWidth (int index)
 
double PixelCableThickness (int index)
 
double PixelCableStackOffset (int index)
 
double PixelCableWeight (int index)
 
std::string PixelCableLabel (int index)
 
int PixelTMTNumParts ()
 TMT. More...
 
double PixelTMTVariable (int iPart, const std::string &varName)
 
double PixelTMTDzdr (int iPart)
 
double PixelTMTPosX (int iPart)
 
double PixelTMTPosZ (int iPart)
 
double PixelTMTLength (int iPart)
 
double PixelTMTWidthX1 (int iPart)
 
double PixelTMTWidthX2 (int iPart)
 
double PixelTMTWidthY (int iPart)
 
double PixelTMTBaseX1 (int iPart)
 
double PixelTMTBaseX2 (int iPart)
 
double PixelTMTPosY (int iPart)
 
double PixelTMTPosZ1 (int iPart)
 
double PixelTMTPosZ2 (int iPart)
 
bool PixelTMTPerModule (int iPart)
 
double PixelOmegaUpperBendX ()
 
double PixelOmegaUpperBendY ()
 
double PixelOmegaUpperBendRadius ()
 
double PixelOmegaLowerBendX ()
 
double PixelOmegaLowerBendY ()
 
double PixelOmegaLowerBendRadius ()
 
double PixelOmegaWallThickness ()
 
double PixelOmegaLength ()
 
double PixelOmegaStartY ()
 
double PixelOmegaEndY ()
 
double PixelAlTubeUpperBendX ()
 
double PixelAlTubeUpperBendY ()
 
double PixelAlTubeUpperBendRadius ()
 
double PixelAlTubeLowerBendX ()
 
double PixelAlTubeLowerBendY ()
 
double PixelAlTubeLowerBendRadius ()
 
double PixelAlTubeWallThickness ()
 
double PixelAlTubeLength ()
 
int PixelNumOmegaGlueElements ()
 
double PixelOmegaGlueStartX (int index)
 
double PixelOmegaGlueThickness (int index)
 
double PixelOmegaGlueStartY (int index)
 
double PixelOmegaGlueEndY (int index)
 
double PixelOmegaGlueLength (int index)
 
double PixelOmegaGluePosZ (int index)
 
int PixelOmegaGlueTypeNum (int index)
 
double PixelFluidZ1 (int index)
 
double PixelFluidZ2 (int index)
 
double PixelFluidThick1 (int index)
 
double PixelFluidThick2 (int index)
 
double PixelFluidWidth (int index)
 
double PixelFluidX (int index)
 
double PixelFluidY (int index)
 
int PixelFluidType (int index)
 
int PixelFluidNumTypes ()
 
int PixelFluidIndex (int type)
 
int PixelFluidMatType (int index)
 
int PixelFluidOrient (int layer, int phi)
 
double PixelPigtailThickness ()
 
double PixelPigtailStartY ()
 
double PixelPigtailEndY ()
 
double PixelPigtailWidthZ ()
 
double PixelPigtailFlatWidthZ ()
 
double PixelPigtailPosX ()
 
double PixelPigtailPosZ ()
 
double PixelPigtailBendX ()
 
double PixelPigtailBendY ()
 
double PixelPigtailBendRMin ()
 
double PixelPigtailBendRMax ()
 
double PixelPigtailBendPhiMin ()
 
double PixelPigtailBendPhiMax ()
 
double PixelPigtailEnvelopeLength ()
 
int PixelNumConnectorElements ()
 
double PixelConnectorWidthX (int index)
 
double PixelConnectorWidthY (int index)
 
double PixelConnectorWidthZ (int index)
 
double PixelConnectorPosX (int index)
 
double PixelConnectorPosY (int index)
 
double PixelConnectorPosZ (int index)
 
int designType (bool isBlayer)
 
int DesignReadoutSide ()
 
double DesignRPActiveArea ()
 
double DesignZActiveArea ()
 
int DesignCircuitsPhi ()
 
int DesignCircuitsEta ()
 
int DesignNumChipsPhi ()
 
int DesignNumChipsEta ()
 
int DesignDiodesPhiTotal (bool isBLayer)
 
int DesignDiodesEtaTotal (bool isBLayer)
 
int DesignCellColumnsPerCircuit (bool isBLayer)
 
int DesignCellRowsPerCircuit (bool isBLayer)
 
int DesignDiodeColumnsPerCircuit (bool isBLayer)
 
int DesignDiodeRowsPerCircuit (bool isBLayer)
 
int DesignNumRowsPerChip (bool isBLayer)
 
int DesignNumColsPerChip (bool isBLayer)
 
double DesignPitchRP (bool isBLayer)
 
double DesignGapRP ()
 
double DesignPitchZ (bool isBLayer)
 
double DesignPitchZLong (bool isBLayer)
 
double DesignGapZ ()
 
int DesignNumEmptyRowsInGap ()
 
int NumberOfEmptyRows ()
 
int EmptyRows (int index)
 
int EmptyRowConnections (int index)
 

Private Attributes

IRDBRecordset_ptr m_pfba
 
IRDBRecordset_ptr m_pbba
 
IRDBRecordset_ptr m_ptba
 
IRDBRecordset_ptr m_pfec
 
IRDBRecordset_ptr m_pbec
 
IRDBRecordset_ptr m_ptec
 
IRDBRecordset_ptr m_pecn
 
IRDBRecordset_ptr m_pecf
 
IRDBRecordset_ptr m_pecb
 
IRDBRecordset_ptr m_pect
 
IRDBRecordset_ptr m_pxbi
 
IRDBRecordset_ptr m_pdch
 
IRDBRecordset_ptr m_pxbd
 
IRDBRecordset_ptr m_ptla
 
IRDBRecordset_ptr m_pctr
 
IRDBRecordset_ptr m_pftr
 
IRDBRecordset_ptr m_pttr
 
IRDBRecordset_ptr m_pome
 
IRDBRecordset_ptr m_poti
 
IRDBRecordset_ptr m_pobi
 
IRDBRecordset_ptr m_poai
 
IRDBRecordset_ptr m_poci
 
IRDBRecordset_ptr m_posi
 
IRDBRecordset_ptr m_pccf
 
IRDBRecordset_ptr m_pcff
 
bool m_BarrelInSFrame
 
bool m_EndcapInSFrame
 
bool m_EndConeSFrame
 
bool m_dc1Geometry
 

Detailed Description

Definition at line 19 of file PixelLegacyManager.h.

Constructor & Destructor Documentation

◆ PixelLegacyManager()

PixelLegacyManager::PixelLegacyManager ( IRDBAccessSvc rdbSvc,
const std::string &  detectorKey,
const std::string &  detectorNode 
)

Definition at line 20 of file PixelLegacyManager.cxx.

23  :
24  // These are for the new description of the Pixel Frame
25  m_pfba (rdbSvc->getRecordsetPtr("PFBA", detectorKey, detectorNode)),
26  m_pbba (rdbSvc->getRecordsetPtr("PBBA", detectorKey, detectorNode)),
27  m_ptba (rdbSvc->getRecordsetPtr("PTBA", detectorKey, detectorNode)),
28  m_pfec (rdbSvc->getRecordsetPtr("PFEC", detectorKey, detectorNode)),
29  m_pbec (rdbSvc->getRecordsetPtr("PBEC", detectorKey, detectorNode)),
30  m_ptec (rdbSvc->getRecordsetPtr("PTEC", detectorKey, detectorNode)),
31  m_pecn (rdbSvc->getRecordsetPtr("PECN", detectorKey, detectorNode)),
32  m_pecf (rdbSvc->getRecordsetPtr("PECF", detectorKey, detectorNode)),
33  m_pecb (rdbSvc->getRecordsetPtr("PECB", detectorKey, detectorNode)),
34  m_pect (rdbSvc->getRecordsetPtr("PECT", detectorKey, detectorNode)),
35 
36  // These are for the design
37  m_pxbi (rdbSvc->getRecordsetPtr("PXBI", detectorKey, detectorNode)),
38  m_pdch (rdbSvc->getRecordsetPtr("PDCH", detectorKey, detectorNode)),
39  m_pxbd (rdbSvc->getRecordsetPtr("PXBD", detectorKey, detectorNode)),
40 
41  // These are (r a detailed description of the ladders and services on ladde),
42  m_ptla (rdbSvc->getRecordsetPtr("PTLA", detectorKey, detectorNode)),
43  m_pctr (rdbSvc->getRecordsetPtr("PCTR", detectorKey, detectorNode)),
44  m_pftr (rdbSvc->getRecordsetPtr("PFTR", detectorKey, detectorNode)),
45  m_pttr (rdbSvc->getRecordsetPtr("PTTR", detectorKey, detectorNode)),
46  m_pome (rdbSvc->getRecordsetPtr("POME", detectorKey, detectorNode)),
47  m_poti (rdbSvc->getRecordsetPtr("POTI", detectorKey, detectorNode)),
48  m_pobi (rdbSvc->getRecordsetPtr("POBI", detectorKey, detectorNode)),
49  m_poai (rdbSvc->getRecordsetPtr("POAI", detectorKey, detectorNode)),
50  m_poci (rdbSvc->getRecordsetPtr("POCI", detectorKey, detectorNode)),
51  m_posi (rdbSvc->getRecordsetPtr("POSI", detectorKey, detectorNode)),
52  m_pccf (rdbSvc->getRecordsetPtr("PCCF", detectorKey, detectorNode)),
53  m_pcff (rdbSvc->getRecordsetPtr("PCFF", detectorKey, detectorNode)),
54  m_BarrelInSFrame(false),
55  m_EndcapInSFrame(false),
56  m_EndConeSFrame(false),
57  m_dc1Geometry(false)
58 {
59 }

Member Function Documentation

◆ DesignCellColumnsPerCircuit()

int PixelLegacyManager::DesignCellColumnsPerCircuit ( bool  isBLayer)

◆ DesignCellRowsPerCircuit()

int PixelLegacyManager::DesignCellRowsPerCircuit ( bool  isBLayer)

◆ DesignCircuitsEta()

int PixelLegacyManager::DesignCircuitsEta ( )

Definition at line 954 of file PixelLegacyManager.cxx.

955 {
956  return DesignNumChipsEta();
957 }

◆ DesignCircuitsPhi()

int PixelLegacyManager::DesignCircuitsPhi ( )

◆ DesignDiodeColumnsPerCircuit()

int PixelLegacyManager::DesignDiodeColumnsPerCircuit ( bool  isBLayer)

◆ DesignDiodeRowsPerCircuit()

int PixelLegacyManager::DesignDiodeRowsPerCircuit ( bool  isBLayer)

◆ DesignDiodesEtaTotal()

int PixelLegacyManager::DesignDiodesEtaTotal ( bool  isBLayer)

Definition at line 873 of file PixelLegacyManager.cxx.

874 {
875  double ActiveArea = DesignRPActiveArea();
876  double pitchRP = DesignPitchRP(isBLayer);
877  return static_cast<int>((ActiveArea)/pitchRP + 0.5);
878 }

◆ DesignDiodesPhiTotal()

int PixelLegacyManager::DesignDiodesPhiTotal ( bool  isBLayer)

Definition at line 866 of file PixelLegacyManager.cxx.

867 {
868  double ActiveArea = DesignRPActiveArea();
869  double pitchRP = DesignPitchRP(isBLayer);
870  return static_cast<int>((ActiveArea)/pitchRP + 0.5);
871 }

◆ DesignGapRP()

double PixelLegacyManager::DesignGapRP ( )

Definition at line 944 of file PixelLegacyManager.cxx.

945 {
946  return (*m_pdch)[0]->getDouble("GAPRP")*Gaudi::Units::cm;
947 }

◆ DesignGapZ()

double PixelLegacyManager::DesignGapZ ( )

Definition at line 949 of file PixelLegacyManager.cxx.

950 {
951  return (*m_pdch)[0]->getDouble("GAPZ")*Gaudi::Units::cm;
952 }

◆ DesignNumChipsEta()

int PixelLegacyManager::DesignNumChipsEta ( )

Definition at line 845 of file PixelLegacyManager.cxx.

845  {
846  return (*m_pdch)[0]->getInt("NZCHIP");
847 }

◆ DesignNumChipsPhi()

int PixelLegacyManager::DesignNumChipsPhi ( )

Definition at line 839 of file PixelLegacyManager.cxx.

840 {
841  return (*m_pdch)[0]->getInt("NRPCHIP");
842 }

◆ DesignNumColsPerChip()

int PixelLegacyManager::DesignNumColsPerChip ( bool  isBLayer)

Definition at line 857 of file PixelLegacyManager.cxx.

857  {
858  double ActiveArea = DesignZActiveArea();
859  double GapZ = DesignGapZ();
860  double pitchZ = DesignPitchZ(isBLayer);
861  int CPR = DesignCircuitsEta();
862  return static_cast<int>((ActiveArea - GapZ*CPR)/(CPR*pitchZ) + 0.5);
863 }

◆ DesignNumEmptyRowsInGap()

int PixelLegacyManager::DesignNumEmptyRowsInGap ( )

Definition at line 881 of file PixelLegacyManager.cxx.

882 {
883  return static_cast<int>((*m_pdch)[0]->getInt("NYCONNEC"));
884 }

◆ DesignNumRowsPerChip()

int PixelLegacyManager::DesignNumRowsPerChip ( bool  isBLayer)

Definition at line 849 of file PixelLegacyManager.cxx.

849  {
850  double ActiveArea = DesignRPActiveArea();
851  double GapRP = DesignGapRP();
852  double pitchRP = DesignPitchRP(isBLayer);
853  int numTotal = static_cast<int>((ActiveArea - GapRP)/pitchRP + 0.5);
854  return numTotal / DesignNumChipsPhi();
855 }

◆ DesignPitchRP()

double PixelLegacyManager::DesignPitchRP ( bool  isBLayer)

Definition at line 918 of file PixelLegacyManager.cxx.

919 {
920  int type = designType(isBLayer);
921  return (*m_pxbd)[type]->getDouble("PITCHRP")*Gaudi::Units::cm;
922 }

◆ DesignPitchZ()

double PixelLegacyManager::DesignPitchZ ( bool  isBLayer)

Definition at line 925 of file PixelLegacyManager.cxx.

926 {
927  int type = designType(isBLayer);
928  double pitchZ;
929  if(isBLayer && m_dc1Geometry) {
930  // Override NOVA
931  pitchZ = 300 * Gaudi::Units::micrometer;
932  } else {
933  pitchZ = (*m_pxbd)[type]->getDouble("PITCHZ") * Gaudi::Units::cm;
934  }
935  return pitchZ;
936 }

◆ DesignPitchZLong()

double PixelLegacyManager::DesignPitchZLong ( bool  isBLayer)

Definition at line 938 of file PixelLegacyManager.cxx.

939 {
940  return DesignPitchZ(isBLayer) + DesignGapZ()/2;
941 }

◆ DesignReadoutSide()

int PixelLegacyManager::DesignReadoutSide ( )

◆ DesignRPActiveArea()

double PixelLegacyManager::DesignRPActiveArea ( )

Definition at line 907 of file PixelLegacyManager.cxx.

908 {
909  return (*m_pxbi)[0]->getDouble("DYACTIVE")*Gaudi::Units::cm;
910 
911 }

◆ designType()

int PixelLegacyManager::designType ( bool  isBlayer)

Definition at line 834 of file PixelLegacyManager.cxx.

835 {
836  return (isBlayer) ? 0 : 1;
837 }

◆ DesignZActiveArea()

double PixelLegacyManager::DesignZActiveArea ( )

Definition at line 913 of file PixelLegacyManager.cxx.

914 {
915  return (*m_pxbi)[0]->getDouble("DZELEB")*Gaudi::Units::cm;
916 }

◆ EmptyRowConnections()

int PixelLegacyManager::EmptyRowConnections ( int  index)

Definition at line 900 of file PixelLegacyManager.cxx.

901 {
902  std::ostringstream A;
903  A << "_" << index;
904  return static_cast<int>((*m_pdch)[0]->getInt("JYCONNEC"+A.str())) - 1;
905 }

◆ EmptyRows()

int PixelLegacyManager::EmptyRows ( int  index)

Definition at line 893 of file PixelLegacyManager.cxx.

894 {
895  std::ostringstream A;
896  A << "_" << index;
897  return static_cast<int>((*m_pdch)[0]->getInt("JYEMPTY"+A.str())) - 1;
898 }

◆ isBarrelInSFrame()

bool PixelLegacyManager::isBarrelInSFrame ( )
inline

Definition at line 73 of file PixelLegacyManager.h.

73 {return m_BarrelInSFrame;}

◆ isEndcapInSFrame()

bool PixelLegacyManager::isEndcapInSFrame ( )
inline

Definition at line 75 of file PixelLegacyManager.h.

75 {return m_EndcapInSFrame;}

◆ isEndConeSFrame()

bool PixelLegacyManager::isEndConeSFrame ( )
inline

Definition at line 77 of file PixelLegacyManager.h.

77 {return m_EndConeSFrame;}

◆ NumberOfEmptyRows()

int PixelLegacyManager::NumberOfEmptyRows ( )

Definition at line 887 of file PixelLegacyManager.cxx.

888 {
889  return static_cast<int>((*m_pdch)[0]->getInt("NYCONNEC"));
890 
891 }

◆ oldFrame()

bool PixelLegacyManager::oldFrame ( )

Definition at line 62 of file PixelLegacyManager.cxx.

63 {
64  // if m_pfba exists we are using the old frame.
65  return (m_pfba->size());
66 }

◆ PixelAlTubeLength()

double PixelLegacyManager::PixelAlTubeLength ( )

Definition at line 586 of file PixelLegacyManager.cxx.

587 {
588  return 2 * (*m_poti)[3]->getDouble("DZ") * Gaudi::Units::cm;
589 }

◆ PixelAlTubeLowerBendRadius()

double PixelLegacyManager::PixelAlTubeLowerBendRadius ( )

Definition at line 576 of file PixelLegacyManager.cxx.

577 {
578  return (*m_poti)[3]->getDouble("RMAX") * Gaudi::Units::cm;
579 }

◆ PixelAlTubeLowerBendX()

double PixelLegacyManager::PixelAlTubeLowerBendX ( )

Definition at line 566 of file PixelLegacyManager.cxx.

567 {
568  return (*m_poti)[3]->getDouble("X") * Gaudi::Units::cm;
569 }

◆ PixelAlTubeLowerBendY()

double PixelLegacyManager::PixelAlTubeLowerBendY ( )

Definition at line 571 of file PixelLegacyManager.cxx.

572 {
573  return (*m_poti)[3]->getDouble("Y") * Gaudi::Units::cm;
574 }

◆ PixelAlTubeUpperBendRadius()

double PixelLegacyManager::PixelAlTubeUpperBendRadius ( )

Definition at line 561 of file PixelLegacyManager.cxx.

562 {
563  return (*m_poti)[5]->getDouble("RMAX") * Gaudi::Units::cm;
564 }

◆ PixelAlTubeUpperBendX()

double PixelLegacyManager::PixelAlTubeUpperBendX ( )

Definition at line 551 of file PixelLegacyManager.cxx.

552 {
553  return (*m_poti)[5]->getDouble("X") * Gaudi::Units::cm;
554 }

◆ PixelAlTubeUpperBendY()

double PixelLegacyManager::PixelAlTubeUpperBendY ( )

Definition at line 556 of file PixelLegacyManager.cxx.

557 {
558  return (*m_poti)[5]->getDouble("Y") * Gaudi::Units::cm;
559 }

◆ PixelAlTubeWallThickness()

double PixelLegacyManager::PixelAlTubeWallThickness ( )

Definition at line 581 of file PixelLegacyManager.cxx.

582 {
583  return ((*m_poti)[3]->getDouble("RMAX") - (*m_poti)[3]->getDouble("RMIN")) * Gaudi::Units::cm;
584 }

◆ PixelBarrelBFrameWidth()

double PixelLegacyManager::PixelBarrelBFrameWidth ( )

Definition at line 87 of file PixelLegacyManager.cxx.

88 {
89  if (m_BarrelInSFrame) {
90  return (*m_pfba)[0]->getDouble("WIDTH1")*Gaudi::Units::cm;
91  } else {
92  return (*m_pfec)[0]->getDouble("WIDTH1")*Gaudi::Units::cm;
93  }
94 }

◆ PixelBarrelFrameECAlphaX()

double PixelLegacyManager::PixelBarrelFrameECAlphaX ( )

Definition at line 288 of file PixelLegacyManager.cxx.

289 {
290  return (*m_pecn)[0]->getDouble("ANGLEX")*Gaudi::Units::deg;
291 }

◆ PixelBarrelFrameECAlphaY()

double PixelLegacyManager::PixelBarrelFrameECAlphaY ( )

Definition at line 293 of file PixelLegacyManager.cxx.

294 {
295  return (*m_pecn)[0]->getDouble("ANGLEY")*Gaudi::Units::deg;
296 }

◆ PixelBarrelFrameECRadius()

double PixelLegacyManager::PixelBarrelFrameECRadius ( )

Definition at line 278 of file PixelLegacyManager.cxx.

279 {
280  return (*m_pecn)[0]->getDouble("RADIUS")*Gaudi::Units::cm;
281 }

◆ PixelBarrelFrameECZPos()

double PixelLegacyManager::PixelBarrelFrameECZPos ( )

Definition at line 283 of file PixelLegacyManager.cxx.

284 {
285  return (*m_pecn)[0]->getDouble("Z")*Gaudi::Units::cm;
286 }

◆ PixelBarrelFrameLength()

double PixelLegacyManager::PixelBarrelFrameLength ( )

Definition at line 105 of file PixelLegacyManager.cxx.

106 {
107  if (m_BarrelInSFrame) {
108  return (*m_pfba)[0]->getDouble("LENGTH")*Gaudi::Units::cm;
109  } else {
110  return (*m_pfec)[0]->getDouble("LENGTH")*Gaudi::Units::cm;
111  }
112 }

◆ PixelBarrelFrameOffset()

double PixelLegacyManager::PixelBarrelFrameOffset ( )

Definition at line 114 of file PixelLegacyManager.cxx.

115 {
116  if (m_BarrelInSFrame) {
117  return (*m_pfba)[0]->getDouble("OFFSET")*Gaudi::Units::cm;
118  } else {
119  return (*m_pfec)[0]->getDouble("OFFSET")*Gaudi::Units::cm;
120  }
121 }

◆ PixelBarrelNBFrame()

int PixelLegacyManager::PixelBarrelNBFrame ( )

Definition at line 69 of file PixelLegacyManager.cxx.

70 {
71  if (m_BarrelInSFrame) {
72  return (*m_pfba)[0]->getInt("NBOXI");
73  } else {
74  return (*m_pfec)[0]->getInt("NBOXI");
75  }
76 }

◆ PixelBarrelNTFrame()

int PixelLegacyManager::PixelBarrelNTFrame ( )

Definition at line 78 of file PixelLegacyManager.cxx.

79 {
80  if (m_BarrelInSFrame) {
81  return (*m_pfba)[0]->getInt("NTRDI");
82  } else {
83  return (*m_pfec)[0]->getInt("NTRDI");
84  }
85 }

◆ PixelBarrelTFrameWidth()

double PixelLegacyManager::PixelBarrelTFrameWidth ( )

Definition at line 96 of file PixelLegacyManager.cxx.

97 {
98  if (m_BarrelInSFrame) {
99  return (*m_pfba)[0]->getDouble("WIDTH2")*Gaudi::Units::cm;
100  } else {
101  return (*m_pfec)[0]->getDouble("WIDTH2")*Gaudi::Units::cm;
102  }
103 }

◆ PixelBFrameHalfLength()

double PixelLegacyManager::PixelBFrameHalfLength ( )

Definition at line 154 of file PixelLegacyManager.cxx.

155 {
156  if (m_BarrelInSFrame) {
157  return (*m_pbba)[0]->getDouble("DZ")*Gaudi::Units::cm;
158  } else {
159  if (m_EndcapInSFrame) {
160  return (*m_pecb)[0]->getDouble("DZ")*Gaudi::Units::cm;
161  } else {
162  return (*m_pbec)[0]->getDouble("DZ")*Gaudi::Units::cm;
163  }
164  }
165 }

◆ PixelBFrameHalfThickness()

double PixelLegacyManager::PixelBFrameHalfThickness ( )

Definition at line 180 of file PixelLegacyManager.cxx.

181 {
182  if (m_BarrelInSFrame) {
183  return (*m_pbba)[0]->getDouble("DX")*Gaudi::Units::cm;
184  } else {
185  if (m_EndcapInSFrame) {
186  return (*m_pecb)[0]->getDouble("DX")*Gaudi::Units::cm;
187  } else {
188  return (*m_pbec)[0]->getDouble("DX")*Gaudi::Units::cm;
189  }
190  }
191 }

◆ PixelBFrameHalfWidth()

double PixelLegacyManager::PixelBFrameHalfWidth ( )

Definition at line 167 of file PixelLegacyManager.cxx.

168 {
169  if (m_BarrelInSFrame) {
170  return (*m_pbba)[0]->getDouble("DY")*Gaudi::Units::cm;
171  } else {
172  if (m_EndcapInSFrame) {
173  return (*m_pecb)[0]->getDouble("DY")*Gaudi::Units::cm;
174  } else {
175  return (*m_pbec)[0]->getDouble("DY")*Gaudi::Units::cm;
176  }
177  }
178 }

◆ PixelCableBiStaveNum()

int PixelLegacyManager::PixelCableBiStaveNum ( int  index)

◆ PixelCableElements()

int PixelLegacyManager::PixelCableElements ( )

Definition at line 345 of file PixelLegacyManager.cxx.

346 {
347  return (*m_pome)[0]->getInt("NPOCI");
348 }

◆ PixelCableLabel()

std::string PixelLegacyManager::PixelCableLabel ( int  index)

Definition at line 386 of file PixelLegacyManager.cxx.

387 {
388  int label = (int)(*m_poci)[index]->getDouble("IBOX");
389  std::ostringstream o;
390  o << label;
391  return o.str();
392 }

◆ PixelCableLayerNum()

int PixelLegacyManager::PixelCableLayerNum ( int  index)

◆ PixelCableStackOffset()

double PixelLegacyManager::PixelCableStackOffset ( int  index)

Definition at line 379 of file PixelLegacyManager.cxx.

380 {
381  return (*m_poci)[index]->getDouble("X")*Gaudi::Units::cm;
382 }

◆ PixelCableThickness()

double PixelLegacyManager::PixelCableThickness ( int  index)

Definition at line 373 of file PixelLegacyManager.cxx.

374 {
375  return (*m_poci)[index]->getDouble("DX")*Gaudi::Units::cm;
376 }

◆ PixelCableWeight()

double PixelLegacyManager::PixelCableWeight ( int  index)

◆ PixelCableWidth()

double PixelLegacyManager::PixelCableWidth ( int  index)

Definition at line 367 of file PixelLegacyManager.cxx.

368 {
369  return (*m_poci)[index]->getDouble("DY") * Gaudi::Units::cm;
370 }

◆ PixelCableZEnd()

double PixelLegacyManager::PixelCableZEnd ( int  index)

Definition at line 359 of file PixelLegacyManager.cxx.

360 {
361  // In old code two cables were connected to middle. Correction stops them touching.
362  double correction = (index == 7) ? 0.000001*Gaudi::Units::cm : 0;
363  return ((*m_poci)[index]->getDouble("Z") + (*m_poci)[index]->getDouble("DZ")) * Gaudi::Units::cm + correction;
364 }

◆ PixelCableZStart()

double PixelLegacyManager::PixelCableZStart ( int  index)

Definition at line 351 of file PixelLegacyManager.cxx.

352 {
353  // In old code two cables were connected to middle. Correction stops them touching.
354  double correction = (index == 7) ? 0.000001*Gaudi::Units::cm : 0;
355  return ((*m_poci)[index]->getDouble("Z") - (*m_poci)[index]->getDouble("DZ")) * Gaudi::Units::cm + correction;
356 }

◆ PixelConnectorPosX()

double PixelLegacyManager::PixelConnectorPosX ( int  index)

Definition at line 813 of file PixelLegacyManager.cxx.

814 {
815  return (*m_poai)[index+1]->getDouble("X") * Gaudi::Units::cm + PixelLadderConnectorOffsetX();
816 }

◆ PixelConnectorPosY()

double PixelLegacyManager::PixelConnectorPosY ( int  index)

Definition at line 818 of file PixelLegacyManager.cxx.

819 {
820  return 0;
821 }

◆ PixelConnectorPosZ()

double PixelLegacyManager::PixelConnectorPosZ ( int  index)

Definition at line 823 of file PixelLegacyManager.cxx.

824 {
825  // same as (*m_pobi)[0]->getDouble("Z") * Gaudi::Units::cm;
826  return (*m_poai)[index+1]->getDouble("Z") * Gaudi::Units::cm;
827 }

◆ PixelConnectorWidthX()

double PixelLegacyManager::PixelConnectorWidthX ( int  index)

Definition at line 798 of file PixelLegacyManager.cxx.

799 {
800  return (*m_poai)[index+1]->getDouble("DX") * Gaudi::Units::cm;
801 }

◆ PixelConnectorWidthY()

double PixelLegacyManager::PixelConnectorWidthY ( int  index)

Definition at line 803 of file PixelLegacyManager.cxx.

804 {
805  return (*m_poai)[index+1]->getDouble("DY") * Gaudi::Units::cm;
806 }

◆ PixelConnectorWidthZ()

double PixelLegacyManager::PixelConnectorWidthZ ( int  index)

Definition at line 808 of file PixelLegacyManager.cxx.

809 {
810  return 2*(*m_poai)[index+1]->getDouble("DZ") * Gaudi::Units::cm;
811 }

◆ PixelEndcapBFrameWidth()

double PixelLegacyManager::PixelEndcapBFrameWidth ( )

Definition at line 134 of file PixelLegacyManager.cxx.

135 {
136  return (*m_pecf)[0]->getDouble("WIDTH1")*Gaudi::Units::cm;
137 }

◆ PixelEndcapFrameLength()

double PixelLegacyManager::PixelEndcapFrameLength ( )

Definition at line 144 of file PixelLegacyManager.cxx.

145 {
146  return (*m_pecf)[0]->getDouble("LENGTH")*Gaudi::Units::cm;
147 }

◆ PixelEndcapFrameOffset()

double PixelLegacyManager::PixelEndcapFrameOffset ( )

Definition at line 149 of file PixelLegacyManager.cxx.

150 {
151  return (*m_pecf)[0]->getDouble("OFFSET")*Gaudi::Units::cm;
152 }

◆ PixelEndcapNBFrame()

int PixelLegacyManager::PixelEndcapNBFrame ( )

Definition at line 124 of file PixelLegacyManager.cxx.

125 {
126  return (*m_pecf)[0]->getInt("NBOXI");
127 }

◆ PixelEndcapNTFrame()

int PixelLegacyManager::PixelEndcapNTFrame ( )

Definition at line 129 of file PixelLegacyManager.cxx.

130 {
131  return (*m_pecf)[0]->getInt("NTRDI");
132 }

◆ PixelEndcapTFrameWidth()

double PixelLegacyManager::PixelEndcapTFrameWidth ( )

Definition at line 139 of file PixelLegacyManager.cxx.

140 {
141  return (*m_pecf)[0]->getDouble("WIDTH2")*Gaudi::Units::cm;
142 }

◆ PixelFluidIndex()

int PixelLegacyManager::PixelFluidIndex ( int  type)

◆ PixelFluidMatType()

int PixelLegacyManager::PixelFluidMatType ( int  index)

Definition at line 698 of file PixelLegacyManager.cxx.

698  {
699  return (int)(*m_pcff)[index%2]->getDouble("MAT");
700 }

◆ PixelFluidNumTypes()

int PixelLegacyManager::PixelFluidNumTypes ( )

Definition at line 693 of file PixelLegacyManager.cxx.

694 {
695  return 4;
696 }

◆ PixelFluidOrient()

int PixelLegacyManager::PixelFluidOrient ( int  layer,
int  phi 
)

Definition at line 702 of file PixelLegacyManager.cxx.

703 {
704  std::string var = "ORIENT_";
705  std::ostringstream o;
706  o << phi;
707  var = var+o.str();
708  return (int)(*m_pccf)[layer]->getInt(var) - 1;
709 }

◆ PixelFluidThick1()

double PixelLegacyManager::PixelFluidThick1 ( int  index)

Definition at line 653 of file PixelLegacyManager.cxx.

654 {
655  if (index < 2) {
656  return 2*(*m_pcff)[index%2]->getDouble("DX1")*Gaudi::Units::cm;
657  } else {
658  return 2*(*m_pcff)[index%2]->getDouble("DX2")*Gaudi::Units::cm;
659  }
660 }

◆ PixelFluidThick2()

double PixelLegacyManager::PixelFluidThick2 ( int  index)

Definition at line 663 of file PixelLegacyManager.cxx.

664 {
665  if (index < 2) {
666  return 2*(*m_pcff)[index%2]->getDouble("DX2")*Gaudi::Units::cm;
667  } else {
668  return 2*(*m_pcff)[index%2]->getDouble("DX1")*Gaudi::Units::cm;
669  }
670 }

◆ PixelFluidType()

int PixelLegacyManager::PixelFluidType ( int  index)

Definition at line 688 of file PixelLegacyManager.cxx.

689 {
690  return index;
691 }

◆ PixelFluidWidth()

double PixelLegacyManager::PixelFluidWidth ( int  index)

Definition at line 672 of file PixelLegacyManager.cxx.

673 {
674  return 2*(*m_pcff)[index%2]->getDouble("DY")*Gaudi::Units::cm;
675 }

◆ PixelFluidX()

double PixelLegacyManager::PixelFluidX ( int  index)

Definition at line 678 of file PixelLegacyManager.cxx.

679 {
680  return (*m_pcff)[index%2]->getDouble("X")*Gaudi::Units::cm;
681 }

◆ PixelFluidY()

double PixelLegacyManager::PixelFluidY ( int  index)

Definition at line 683 of file PixelLegacyManager.cxx.

684 {
685  return (*m_pcff)[index%2]->getDouble("Y")*Gaudi::Units::cm;
686 }

◆ PixelFluidZ1()

double PixelLegacyManager::PixelFluidZ1 ( int  index)

Definition at line 639 of file PixelLegacyManager.cxx.

640 {
641  double dz = (*m_pcff)[index%2]->getDouble("DZ")*Gaudi::Units::cm;
642  double posz = (*m_pcff)[index%2]->getDouble("Z")*Gaudi::Units::cm;
643  return posz-dz;
644 }

◆ PixelFluidZ2()

double PixelLegacyManager::PixelFluidZ2 ( int  index)

Definition at line 646 of file PixelLegacyManager.cxx.

647 {
648  double dz = (*m_pcff)[index%2]->getDouble("DZ")*Gaudi::Units::cm;
649  double posz = (*m_pcff)[index%2]->getDouble("Z")*Gaudi::Units::cm;
650  return posz+dz;
651 }

◆ PixelLadderCableOffsetX()

double PixelLegacyManager::PixelLadderCableOffsetX ( )

Definition at line 320 of file PixelLegacyManager.cxx.

321 {
322  return 0.099*Gaudi::Units::mm;
323 }

◆ PixelLadderCableOffsetY()

double PixelLegacyManager::PixelLadderCableOffsetY ( )

Definition at line 325 of file PixelLegacyManager.cxx.

326 {
327  return 4*Gaudi::Units::mm;
328 }

◆ PixelLadderConnectorOffsetX()

double PixelLegacyManager::PixelLadderConnectorOffsetX ( )

Definition at line 330 of file PixelLegacyManager.cxx.

331 {
332  return -5.8*Gaudi::Units::mm;
333 }

◆ PixelLadderLength()

double PixelLegacyManager::PixelLadderLength ( )

Definition at line 304 of file PixelLegacyManager.cxx.

305 {
306  return 2 * (*m_pxbi)[0]->getDouble("DZLADDER")*Gaudi::Units::cm;
307 }

◆ PixelLadderPigtailOffsetY()

double PixelLegacyManager::PixelLadderPigtailOffsetY ( )

Definition at line 335 of file PixelLegacyManager.cxx.

336 {
338 }

◆ PixelLadderServicesX()

double PixelLegacyManager::PixelLadderServicesX ( )

Definition at line 309 of file PixelLegacyManager.cxx.

310 {
311  return 0.5*PixelLadderThickness();
312 }

◆ PixelLadderServicesY()

double PixelLegacyManager::PixelLadderServicesY ( )

Definition at line 314 of file PixelLegacyManager.cxx.

315 {
316  return 3*Gaudi::Units::mm;
317 }

◆ PixelLadderThickness()

double PixelLegacyManager::PixelLadderThickness ( )

Definition at line 299 of file PixelLegacyManager.cxx.

300 {
301  return 2 * 1.48972*Gaudi::Units::mm;
302 }

◆ PixelNumConnectorElements()

int PixelLegacyManager::PixelNumConnectorElements ( )

Definition at line 793 of file PixelLegacyManager.cxx.

794 {
795  return (*m_pome)[0]->getInt("NPOAI") - 1;
796 }

◆ PixelNumOmegaGlueElements()

int PixelLegacyManager::PixelNumOmegaGlueElements ( )

Definition at line 595 of file PixelLegacyManager.cxx.

596 {
597  return 3;
598 }

◆ PixelOmegaEndY()

double PixelLegacyManager::PixelOmegaEndY ( )

Definition at line 542 of file PixelLegacyManager.cxx.

543 {
544  return ((*m_posi)[1]->getDouble("Y") - 0.5*(*m_posi)[1]->getDouble("DY")) * Gaudi::Units::cm;
545 }

◆ PixelOmegaGlueEndY()

double PixelLegacyManager::PixelOmegaGlueEndY ( int  index)

Definition at line 615 of file PixelLegacyManager.cxx.

616 {
617  return ((*m_posi)[index+2]->getDouble("Y") + 0.5*(*m_posi)[index+2]->getDouble("DY")) * Gaudi::Units::cm;
618 }

◆ PixelOmegaGlueLength()

double PixelLegacyManager::PixelOmegaGlueLength ( int  index)

Definition at line 620 of file PixelLegacyManager.cxx.

621 {
622  return 2 * (*m_posi)[index+2]->getDouble("DZ") * Gaudi::Units::cm;
623 }

◆ PixelOmegaGluePosZ()

double PixelLegacyManager::PixelOmegaGluePosZ ( int  index)

Definition at line 625 of file PixelLegacyManager.cxx.

626 {
627  return (*m_posi)[index+2]->getDouble("Z") * Gaudi::Units::cm;
628 }

◆ PixelOmegaGlueStartX()

double PixelLegacyManager::PixelOmegaGlueStartX ( int  index)

Definition at line 600 of file PixelLegacyManager.cxx.

601 {
602  return ((*m_posi)[index+2]->getDouble("X") - 0.5*(*m_posi)[index+2]->getDouble("DX")) * Gaudi::Units::cm;
603 }

◆ PixelOmegaGlueStartY()

double PixelLegacyManager::PixelOmegaGlueStartY ( int  index)

Definition at line 610 of file PixelLegacyManager.cxx.

611 {
612  return ((*m_posi)[index+2]->getDouble("Y") - 0.5*(*m_posi)[index+2]->getDouble("DY")) * Gaudi::Units::cm;
613 }

◆ PixelOmegaGlueThickness()

double PixelLegacyManager::PixelOmegaGlueThickness ( int  index)

Definition at line 605 of file PixelLegacyManager.cxx.

606 {
607  return (*m_posi)[index+2]->getDouble("DX") * Gaudi::Units::cm;
608 }

◆ PixelOmegaGlueTypeNum()

int PixelLegacyManager::PixelOmegaGlueTypeNum ( int  index)

Definition at line 630 of file PixelLegacyManager.cxx.

631 {
632  return index;
633 }

◆ PixelOmegaLength()

double PixelLegacyManager::PixelOmegaLength ( )

Definition at line 532 of file PixelLegacyManager.cxx.

533 {
534  return 2. * (*m_poti)[0]->getDouble("DZ") * Gaudi::Units::cm;
535 }

◆ PixelOmegaLowerBendRadius()

double PixelLegacyManager::PixelOmegaLowerBendRadius ( )

Definition at line 522 of file PixelLegacyManager.cxx.

523 {
524  return (*m_poti)[0]->getDouble("RMAX") * Gaudi::Units::cm;
525 }

◆ PixelOmegaLowerBendX()

double PixelLegacyManager::PixelOmegaLowerBendX ( )

Definition at line 512 of file PixelLegacyManager.cxx.

513 {
514  return (*m_poti)[0]->getDouble("X") * Gaudi::Units::cm;
515 }

◆ PixelOmegaLowerBendY()

double PixelLegacyManager::PixelOmegaLowerBendY ( )

Definition at line 517 of file PixelLegacyManager.cxx.

518 {
519  return (*m_poti)[0]->getDouble("Y") * Gaudi::Units::cm;
520 }

◆ PixelOmegaStartY()

double PixelLegacyManager::PixelOmegaStartY ( )

Definition at line 537 of file PixelLegacyManager.cxx.

538 {
539  return ((*m_posi)[0]->getDouble("Y") + 0.5*(*m_posi)[0]->getDouble("DY")) * Gaudi::Units::cm;
540 }

◆ PixelOmegaUpperBendRadius()

double PixelLegacyManager::PixelOmegaUpperBendRadius ( )

Definition at line 507 of file PixelLegacyManager.cxx.

508 {
509  return (*m_poti)[2]->getDouble("RMAX") * Gaudi::Units::cm;
510 }

◆ PixelOmegaUpperBendX()

double PixelLegacyManager::PixelOmegaUpperBendX ( )

Definition at line 497 of file PixelLegacyManager.cxx.

498 {
499  return (*m_poti)[2]->getDouble("X") * Gaudi::Units::cm;
500 }

◆ PixelOmegaUpperBendY()

double PixelLegacyManager::PixelOmegaUpperBendY ( )

Definition at line 502 of file PixelLegacyManager.cxx.

503 {
504  return (*m_poti)[2]->getDouble("Y") * Gaudi::Units::cm;
505 }

◆ PixelOmegaWallThickness()

double PixelLegacyManager::PixelOmegaWallThickness ( )

Definition at line 527 of file PixelLegacyManager.cxx.

528 {
529  return ((*m_poti)[0]->getDouble("RMAX") - (*m_poti)[0]->getDouble("RMIN")) * Gaudi::Units::cm;
530 }

◆ PixelPigtailBendPhiMax()

double PixelLegacyManager::PixelPigtailBendPhiMax ( )

Definition at line 779 of file PixelLegacyManager.cxx.

780 {
781  return (*m_pobi)[0]->getDouble("PHI2") * Gaudi::Units::deg;
782 }

◆ PixelPigtailBendPhiMin()

double PixelLegacyManager::PixelPigtailBendPhiMin ( )

Definition at line 774 of file PixelLegacyManager.cxx.

775 {
776  return (*m_pobi)[0]->getDouble("PHI1") * Gaudi::Units::deg;
777 }

◆ PixelPigtailBendRMax()

double PixelLegacyManager::PixelPigtailBendRMax ( )

Definition at line 769 of file PixelLegacyManager.cxx.

770 {
771  return (*m_pobi)[0]->getDouble("RMAX") * Gaudi::Units::cm;
772 }

◆ PixelPigtailBendRMin()

double PixelLegacyManager::PixelPigtailBendRMin ( )

Definition at line 764 of file PixelLegacyManager.cxx.

765 {
766  return (*m_pobi)[0]->getDouble("RMIN") * Gaudi::Units::cm;
767 }

◆ PixelPigtailBendX()

double PixelLegacyManager::PixelPigtailBendX ( )

Definition at line 754 of file PixelLegacyManager.cxx.

755 {
756  return (*m_pobi)[0]->getDouble("X") * Gaudi::Units::cm + PixelLadderConnectorOffsetX();
757 }

◆ PixelPigtailBendY()

double PixelLegacyManager::PixelPigtailBendY ( )

Definition at line 759 of file PixelLegacyManager.cxx.

760 {
761  return (*m_pobi)[0]->getDouble("Y") * Gaudi::Units::cm + PixelLadderPigtailOffsetY();
762 }

◆ PixelPigtailEndY()

double PixelLegacyManager::PixelPigtailEndY ( )

Definition at line 725 of file PixelLegacyManager.cxx.

726 {
727  return 0.5*(*m_poai)[0]->getDouble("DY") * Gaudi::Units::cm;
728 }

◆ PixelPigtailEnvelopeLength()

double PixelLegacyManager::PixelPigtailEnvelopeLength ( )

Definition at line 784 of file PixelLegacyManager.cxx.

785 {
786  // FIXME Check
787  return 2*(*m_posi)[9]->getDouble("DZ") * Gaudi::Units::cm;
788 }

◆ PixelPigtailFlatWidthZ()

double PixelLegacyManager::PixelPigtailFlatWidthZ ( )

Definition at line 730 of file PixelLegacyManager.cxx.

731 {
732  // Assume its actually the full width but in old geometry it was interpreted as a half width so we
733  // multiply by 2. This gives the flat section twice the width of the curved section which I don't think was the
734  // intention.
735  return 2*(*m_poai)[0]->getDouble("DZ") * Gaudi::Units::cm;
736 }

◆ PixelPigtailPosX()

double PixelLegacyManager::PixelPigtailPosX ( )

Definition at line 744 of file PixelLegacyManager.cxx.

745 {
746  return (*m_poai)[0]->getDouble("X") * Gaudi::Units::cm + PixelLadderConnectorOffsetX();
747 }

◆ PixelPigtailPosZ()

double PixelLegacyManager::PixelPigtailPosZ ( )

Definition at line 749 of file PixelLegacyManager.cxx.

750 {
751  return (*m_poai)[0]->getDouble("Z") * Gaudi::Units::cm;
752 }

◆ PixelPigtailStartY()

double PixelLegacyManager::PixelPigtailStartY ( )

Definition at line 720 of file PixelLegacyManager.cxx.

721 {
722  return -0.5*(*m_poai)[0]->getDouble("DY") * Gaudi::Units::cm;
723 }

◆ PixelPigtailThickness()

double PixelLegacyManager::PixelPigtailThickness ( )

Definition at line 715 of file PixelLegacyManager.cxx.

716 {
717  return (*m_poai)[0]->getDouble("DX") * Gaudi::Units::cm;
718 }

◆ PixelPigtailWidthZ()

double PixelLegacyManager::PixelPigtailWidthZ ( )

Definition at line 738 of file PixelLegacyManager.cxx.

739 {
740  return 2*(*m_pobi)[0]->getDouble("DZ") * Gaudi::Units::cm;
741 }

◆ PixelTFrameDzDr()

double PixelLegacyManager::PixelTFrameDzDr ( )

Definition at line 261 of file PixelLegacyManager.cxx.

262 {
263  if (m_BarrelInSFrame) {
264  return (*m_ptba)[0]->getDouble("DZDR")*Gaudi::Units::deg;
265  } else {
266  if (m_EndcapInSFrame) {
267  return (*m_pect)[0]->getDouble("DZDR")*Gaudi::Units::cm;
268  } else {
269  if (m_EndConeSFrame) {
270  return (*m_pecn)[0]->getDouble("DZDR")*Gaudi::Units::deg;
271  } else {
272  return (*m_ptec)[0]->getDouble("DZDR")*Gaudi::Units::deg;
273  }
274  }
275  }
276 }

◆ PixelTFrameHalfLength()

double PixelLegacyManager::PixelTFrameHalfLength ( )

Definition at line 193 of file PixelLegacyManager.cxx.

194 {
195  if (m_BarrelInSFrame) {
196  return (*m_ptba)[0]->getDouble("DZ")*Gaudi::Units::cm;
197  } else {
198  if (m_EndcapInSFrame) {
199  return (*m_pect)[0]->getDouble("DZ")*Gaudi::Units::cm;
200  } else {
201  if (m_EndConeSFrame) {
202  return (*m_pecn)[0]->getDouble("DZ")*Gaudi::Units::cm;
203  } else {
204  return (*m_ptec)[0]->getDouble("DZ")*Gaudi::Units::cm;
205  }
206  }
207  }
208 }

◆ PixelTFrameHalfWidthXzn()

double PixelLegacyManager::PixelTFrameHalfWidthXzn ( )

Definition at line 227 of file PixelLegacyManager.cxx.

228 {
229  if (m_BarrelInSFrame) {
230  return (*m_ptba)[0]->getDouble("DX1")*Gaudi::Units::cm;
231  } else {
232  if (m_EndcapInSFrame) {
233  return (*m_pect)[0]->getDouble("DX1")*Gaudi::Units::cm;
234  } else {
235  if (m_EndConeSFrame) {
236  return (*m_pecn)[0]->getDouble("DX1")*Gaudi::Units::cm;
237  } else {
238  return (*m_ptec)[0]->getDouble("DX1")*Gaudi::Units::cm;
239  }
240  }
241  }
242 }

◆ PixelTFrameHalfWidthXzp()

double PixelLegacyManager::PixelTFrameHalfWidthXzp ( )

Definition at line 244 of file PixelLegacyManager.cxx.

245 {
246  if (m_BarrelInSFrame) {
247  return (*m_ptba)[0]->getDouble("DX2")*Gaudi::Units::cm;
248  } else {
249  if (m_EndcapInSFrame) {
250  return (*m_pect)[0]->getDouble("DX2")*Gaudi::Units::cm;
251  } else {
252  if (m_EndConeSFrame) {
253  return (*m_pecn)[0]->getDouble("DX2")*Gaudi::Units::cm;
254  } else {
255  return (*m_ptec)[0]->getDouble("DX2")*Gaudi::Units::cm;
256  }
257  }
258  }
259 }

◆ PixelTFrameHalfWidthY()

double PixelLegacyManager::PixelTFrameHalfWidthY ( )

Definition at line 210 of file PixelLegacyManager.cxx.

211 {
212  if (m_BarrelInSFrame) {
213  return (*m_ptba)[0]->getDouble("DY")*Gaudi::Units::cm;
214  } else {
215  if (m_EndcapInSFrame) {
216  return (*m_pect)[0]->getDouble("DY")*Gaudi::Units::cm;
217  } else {
218  if (m_EndConeSFrame) {
219  return (*m_pecn)[0]->getDouble("DY")*Gaudi::Units::cm;
220  } else {
221  return (*m_ptec)[0]->getDouble("DY")*Gaudi::Units::cm;
222  }
223  }
224  }
225 }

◆ PixelTMTBaseX1()

double PixelLegacyManager::PixelTMTBaseX1 ( int  iPart)

Definition at line 452 of file PixelLegacyManager.cxx.

453 {
454  double theta = PixelTMTDzdr(iPart);
455  if (theta == 0) {
456  return PixelTMTVariable(iPart, "X")*Gaudi::Units::cm + 0.25*(PixelTMTWidthX1(iPart)+PixelTMTWidthX2(iPart));
457  } else {
458  return PixelTMTVariable(iPart, "X")*Gaudi::Units::cm - 0.5*PixelTMTLength(iPart) * tan(theta) + 0.5*PixelTMTWidthX1(iPart);
459  }
460 }

◆ PixelTMTBaseX2()

double PixelLegacyManager::PixelTMTBaseX2 ( int  iPart)

Definition at line 462 of file PixelLegacyManager.cxx.

463 {
464  double theta = PixelTMTDzdr(iPart);
465  if (theta == 0) {
466  return PixelTMTVariable(iPart, "X")*Gaudi::Units::cm + 0.25*(PixelTMTWidthX1(iPart)+PixelTMTWidthX2(iPart));
467  } else {
468  return PixelTMTVariable(iPart, "X")*Gaudi::Units::cm + 0.5*PixelTMTLength(iPart) * tan(theta) + 0.5*PixelTMTWidthX2(iPart);
469  }
470 }

◆ PixelTMTDzdr()

double PixelLegacyManager::PixelTMTDzdr ( int  iPart)

Definition at line 416 of file PixelLegacyManager.cxx.

417 {
418  return PixelTMTVariable(iPart, "DZDR") * Gaudi::Units::deg;
419 }

◆ PixelTMTLength()

double PixelLegacyManager::PixelTMTLength ( int  iPart)

Definition at line 432 of file PixelLegacyManager.cxx.

433 {
434  return 2 * PixelTMTVariable(iPart, "DZ") * Gaudi::Units::cm;
435 }

◆ PixelTMTNumParts()

int PixelLegacyManager::PixelTMTNumParts ( )

TMT.

Definition at line 398 of file PixelLegacyManager.cxx.

399 {
400  return (*m_ptla)[0]->getInt("NCENT") + (*m_ptla)[0]->getInt("NEND") + (*m_ptla)[0]->getInt("NTRAP");
401 }

◆ PixelTMTPerModule()

bool PixelLegacyManager::PixelTMTPerModule ( int  iPart)

Definition at line 487 of file PixelLegacyManager.cxx.

488 {
489  int ncent = (*m_ptla)[0]->getInt("NCENT");
490  int nend = (*m_ptla)[0]->getInt("NEND");
491  return (iPart >= ncent+nend);
492 }

◆ PixelTMTPosX()

double PixelLegacyManager::PixelTMTPosX ( int  iPart)

Definition at line 422 of file PixelLegacyManager.cxx.

423 {
424  return PixelTMTVariable(iPart, "X") * Gaudi::Units::cm;
425 }

◆ PixelTMTPosY()

double PixelLegacyManager::PixelTMTPosY ( int  iPart)

Definition at line 472 of file PixelLegacyManager.cxx.

473 {
474  return PixelTMTVariable(iPart, "Y") * Gaudi::Units::cm;
475 }

◆ PixelTMTPosZ()

double PixelLegacyManager::PixelTMTPosZ ( int  iPart)

Definition at line 427 of file PixelLegacyManager.cxx.

428 {
429  return PixelTMTVariable(iPart, "Z") * Gaudi::Units::cm;
430 }

◆ PixelTMTPosZ1()

double PixelLegacyManager::PixelTMTPosZ1 ( int  iPart)

Definition at line 477 of file PixelLegacyManager.cxx.

478 {
479  return PixelTMTPosZ(iPart) - 0.5*PixelTMTLength(iPart);
480 }

◆ PixelTMTPosZ2()

double PixelLegacyManager::PixelTMTPosZ2 ( int  iPart)

Definition at line 482 of file PixelLegacyManager.cxx.

483 {
484  return PixelTMTPosZ(iPart) + 0.5*PixelTMTLength(iPart);
485 }

◆ PixelTMTVariable()

double PixelLegacyManager::PixelTMTVariable ( int  iPart,
const std::string &  varName 
)

Definition at line 403 of file PixelLegacyManager.cxx.

404 {
405  int ncent = (*m_ptla)[0]->getInt("NCENT");
406  int nend = (*m_ptla)[0]->getInt("NEND");
407  if (iPart < ncent) {
408  return (*m_pctr)[iPart]->getDouble(varName);
409  } else if (iPart < nend+ncent) {
410  return (*m_pftr)[iPart-ncent]->getDouble(varName);
411  } else {
412  return (*m_pttr)[iPart-ncent-nend]->getDouble(varName);
413  }
414 }

◆ PixelTMTWidthX1()

double PixelLegacyManager::PixelTMTWidthX1 ( int  iPart)

Definition at line 442 of file PixelLegacyManager.cxx.

443 {
444  return 2 * PixelTMTVariable(iPart, "DX1") * Gaudi::Units::cm;
445 }

◆ PixelTMTWidthX2()

double PixelLegacyManager::PixelTMTWidthX2 ( int  iPart)

Definition at line 437 of file PixelLegacyManager.cxx.

438 {
439  return 2 * PixelTMTVariable(iPart, "DX2") * Gaudi::Units::cm;
440 }

◆ PixelTMTWidthY()

double PixelLegacyManager::PixelTMTWidthY ( int  iPart)

Definition at line 447 of file PixelLegacyManager.cxx.

448 {
449  return 2 * PixelTMTVariable(iPart, "DY") * Gaudi::Units::cm;
450 }

◆ setBarrelInSFrame()

void PixelLegacyManager::setBarrelInSFrame ( )
inline

Definition at line 74 of file PixelLegacyManager.h.

74 {m_BarrelInSFrame = true; m_EndcapInSFrame = false; m_EndConeSFrame = false;}

◆ setBarrelOutSFrame()

void PixelLegacyManager::setBarrelOutSFrame ( )
inline

Definition at line 79 of file PixelLegacyManager.h.

79 {m_BarrelInSFrame = false; m_EndcapInSFrame = false; m_EndConeSFrame = false;}

◆ SetDC1Geometry()

void PixelLegacyManager::SetDC1Geometry ( bool  flag)
inline

Definition at line 70 of file PixelLegacyManager.h.

◆ setEndcapInSFrame()

void PixelLegacyManager::setEndcapInSFrame ( )
inline

Definition at line 76 of file PixelLegacyManager.h.

76 {m_BarrelInSFrame = false; m_EndcapInSFrame = true; m_EndConeSFrame = false;}

◆ setEndConeSFrame()

void PixelLegacyManager::setEndConeSFrame ( )
inline

Definition at line 78 of file PixelLegacyManager.h.

78 {m_BarrelInSFrame = false; m_EndcapInSFrame = false; m_EndConeSFrame = true;}

Member Data Documentation

◆ m_BarrelInSFrame

bool PixelLegacyManager::m_BarrelInSFrame
private

Definition at line 59 of file PixelLegacyManager.h.

◆ m_dc1Geometry

bool PixelLegacyManager::m_dc1Geometry
private

Definition at line 63 of file PixelLegacyManager.h.

◆ m_EndcapInSFrame

bool PixelLegacyManager::m_EndcapInSFrame
private

Definition at line 60 of file PixelLegacyManager.h.

◆ m_EndConeSFrame

bool PixelLegacyManager::m_EndConeSFrame
private

Definition at line 61 of file PixelLegacyManager.h.

◆ m_pbba

IRDBRecordset_ptr PixelLegacyManager::m_pbba
private

Definition at line 28 of file PixelLegacyManager.h.

◆ m_pbec

IRDBRecordset_ptr PixelLegacyManager::m_pbec
private

Definition at line 31 of file PixelLegacyManager.h.

◆ m_pccf

IRDBRecordset_ptr PixelLegacyManager::m_pccf
private

Definition at line 56 of file PixelLegacyManager.h.

◆ m_pcff

IRDBRecordset_ptr PixelLegacyManager::m_pcff
private

Definition at line 57 of file PixelLegacyManager.h.

◆ m_pctr

IRDBRecordset_ptr PixelLegacyManager::m_pctr
private

Definition at line 47 of file PixelLegacyManager.h.

◆ m_pdch

IRDBRecordset_ptr PixelLegacyManager::m_pdch
private

Definition at line 41 of file PixelLegacyManager.h.

◆ m_pecb

IRDBRecordset_ptr PixelLegacyManager::m_pecb
private

Definition at line 35 of file PixelLegacyManager.h.

◆ m_pecf

IRDBRecordset_ptr PixelLegacyManager::m_pecf
private

Definition at line 34 of file PixelLegacyManager.h.

◆ m_pecn

IRDBRecordset_ptr PixelLegacyManager::m_pecn
private

Definition at line 33 of file PixelLegacyManager.h.

◆ m_pect

IRDBRecordset_ptr PixelLegacyManager::m_pect
private

Definition at line 36 of file PixelLegacyManager.h.

◆ m_pfba

IRDBRecordset_ptr PixelLegacyManager::m_pfba
private

Definition at line 27 of file PixelLegacyManager.h.

◆ m_pfec

IRDBRecordset_ptr PixelLegacyManager::m_pfec
private

Definition at line 30 of file PixelLegacyManager.h.

◆ m_pftr

IRDBRecordset_ptr PixelLegacyManager::m_pftr
private

Definition at line 48 of file PixelLegacyManager.h.

◆ m_poai

IRDBRecordset_ptr PixelLegacyManager::m_poai
private

Definition at line 53 of file PixelLegacyManager.h.

◆ m_pobi

IRDBRecordset_ptr PixelLegacyManager::m_pobi
private

Definition at line 52 of file PixelLegacyManager.h.

◆ m_poci

IRDBRecordset_ptr PixelLegacyManager::m_poci
private

Definition at line 54 of file PixelLegacyManager.h.

◆ m_pome

IRDBRecordset_ptr PixelLegacyManager::m_pome
private

Definition at line 50 of file PixelLegacyManager.h.

◆ m_posi

IRDBRecordset_ptr PixelLegacyManager::m_posi
private

Definition at line 55 of file PixelLegacyManager.h.

◆ m_poti

IRDBRecordset_ptr PixelLegacyManager::m_poti
private

Definition at line 51 of file PixelLegacyManager.h.

◆ m_ptba

IRDBRecordset_ptr PixelLegacyManager::m_ptba
private

Definition at line 29 of file PixelLegacyManager.h.

◆ m_ptec

IRDBRecordset_ptr PixelLegacyManager::m_ptec
private

Definition at line 32 of file PixelLegacyManager.h.

◆ m_ptla

IRDBRecordset_ptr PixelLegacyManager::m_ptla
private

Definition at line 46 of file PixelLegacyManager.h.

◆ m_pttr

IRDBRecordset_ptr PixelLegacyManager::m_pttr
private

Definition at line 49 of file PixelLegacyManager.h.

◆ m_pxbd

IRDBRecordset_ptr PixelLegacyManager::m_pxbd
private

Definition at line 42 of file PixelLegacyManager.h.

◆ m_pxbi

IRDBRecordset_ptr PixelLegacyManager::m_pxbi
private

Definition at line 40 of file PixelLegacyManager.h.


The documentation for this class was generated from the following files:
PixelLegacyManager::m_dc1Geometry
bool m_dc1Geometry
Definition: PixelLegacyManager.h:63
PixelLegacyManager::m_pbba
IRDBRecordset_ptr m_pbba
Definition: PixelLegacyManager.h:28
beamspotnt.var
var
Definition: bin/beamspotnt.py:1394
PixelLegacyManager::DesignGapRP
double DesignGapRP()
Definition: PixelLegacyManager.cxx:944
PixelLegacyManager::m_poti
IRDBRecordset_ptr m_poti
Definition: PixelLegacyManager.h:51
PixelLegacyManager::m_pccf
IRDBRecordset_ptr m_pccf
Definition: PixelLegacyManager.h:56
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
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.
PixelLegacyManager::DesignNumChipsEta
int DesignNumChipsEta()
Definition: PixelLegacyManager.cxx:845
PixelLegacyManager::PixelLadderThickness
double PixelLadderThickness()
Definition: PixelLegacyManager.cxx:299
PixelLegacyManager::m_ptec
IRDBRecordset_ptr m_ptec
Definition: PixelLegacyManager.h:32
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
PixelLegacyManager::PixelLadderCableOffsetY
double PixelLadderCableOffsetY()
Definition: PixelLegacyManager.cxx:325
index
Definition: index.py:1
PixelLegacyManager::m_pftr
IRDBRecordset_ptr m_pftr
Definition: PixelLegacyManager.h:48
PlotCalibFromCool.label
label
Definition: PlotCalibFromCool.py:78
theta
Scalar theta() const
theta method
Definition: AmgMatrixBasePlugin.h:75
PixelLegacyManager::PixelTMTWidthX1
double PixelTMTWidthX1(int iPart)
Definition: PixelLegacyManager.cxx:442
PixelLegacyManager::PixelLadderPigtailOffsetY
double PixelLadderPigtailOffsetY()
Definition: PixelLegacyManager.cxx:335
deg
#define deg
Definition: SbPolyhedron.cxx:17
PixelLegacyManager::m_pome
IRDBRecordset_ptr m_pome
Definition: PixelLegacyManager.h:50
PixelLegacyManager::PixelTMTDzdr
double PixelTMTDzdr(int iPart)
Definition: PixelLegacyManager.cxx:416
PixelLegacyManager::PixelLadderConnectorOffsetX
double PixelLadderConnectorOffsetX()
Definition: PixelLegacyManager.cxx:330
PixelLegacyManager::m_ptla
IRDBRecordset_ptr m_ptla
Definition: PixelLegacyManager.h:46
PixelLegacyManager::m_pttr
IRDBRecordset_ptr m_pttr
Definition: PixelLegacyManager.h:49
dqt_zlumi_alleff_HIST.A
A
Definition: dqt_zlumi_alleff_HIST.py:110
cm
const double cm
Definition: Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/tools/FCAL_ChannelMap.cxx:25
tools.zlumi_mc_cf.correction
def correction(mu, runmode, campaign, run=None)
Definition: zlumi_mc_cf.py:4
A
PixelLegacyManager::m_pobi
IRDBRecordset_ptr m_pobi
Definition: PixelLegacyManager.h:52
PixelLegacyManager::m_pfba
IRDBRecordset_ptr m_pfba
Definition: PixelLegacyManager.h:27
PixelLegacyManager::m_pecb
IRDBRecordset_ptr m_pecb
Definition: PixelLegacyManager.h:35
PixelAthClusterMonAlgCfg.varName
string varName
end cluster ToT and charge
Definition: PixelAthClusterMonAlgCfg.py:125
PixelLegacyManager::m_pect
IRDBRecordset_ptr m_pect
Definition: PixelLegacyManager.h:36
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
PixelLegacyManager::m_pecn
IRDBRecordset_ptr m_pecn
Definition: PixelLegacyManager.h:33
PixelLegacyManager::PixelTMTWidthX2
double PixelTMTWidthX2(int iPart)
Definition: PixelLegacyManager.cxx:437
master.flag
bool flag
Definition: master.py:29
PixelLegacyManager::DesignPitchRP
double DesignPitchRP(bool isBLayer)
Definition: PixelLegacyManager.cxx:918
PixelLegacyManager::m_pctr
IRDBRecordset_ptr m_pctr
Definition: PixelLegacyManager.h:47
PixelLegacyManager::m_EndConeSFrame
bool m_EndConeSFrame
Definition: PixelLegacyManager.h:61
PixelLegacyManager::PixelTMTLength
double PixelTMTLength(int iPart)
Definition: PixelLegacyManager.cxx:432
PixelLegacyManager::DesignZActiveArea
double DesignZActiveArea()
Definition: PixelLegacyManager.cxx:913
drawFromPickle.tan
tan
Definition: drawFromPickle.py:36
python.SystemOfUnits.micrometer
int micrometer
Definition: SystemOfUnits.py:71
PixelLegacyManager::DesignGapZ
double DesignGapZ()
Definition: PixelLegacyManager.cxx:949
PixelLegacyManager::m_pecf
IRDBRecordset_ptr m_pecf
Definition: PixelLegacyManager.h:34
PixelLegacyManager::m_pdch
IRDBRecordset_ptr m_pdch
Definition: PixelLegacyManager.h:41
PixelLegacyManager::PixelTMTVariable
double PixelTMTVariable(int iPart, const std::string &varName)
Definition: PixelLegacyManager.cxx:403
PixelLegacyManager::m_pxbi
IRDBRecordset_ptr m_pxbi
Definition: PixelLegacyManager.h:40
PixelLegacyManager::m_pbec
IRDBRecordset_ptr m_pbec
Definition: PixelLegacyManager.h:31
PixelLegacyManager::m_poci
IRDBRecordset_ptr m_poci
Definition: PixelLegacyManager.h:54
PixelLegacyManager::designType
int designType(bool isBlayer)
Definition: PixelLegacyManager.cxx:834
python.SystemOfUnits.mm
int mm
Definition: SystemOfUnits.py:83
DeMoScan.index
string index
Definition: DeMoScan.py:364
PixelLegacyManager::m_pcff
IRDBRecordset_ptr m_pcff
Definition: PixelLegacyManager.h:57
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
PixelLegacyManager::DesignCircuitsEta
int DesignCircuitsEta()
Definition: PixelLegacyManager.cxx:954
PixelLegacyManager::m_pfec
IRDBRecordset_ptr m_pfec
Definition: PixelLegacyManager.h:30
PixelLegacyManager::DesignNumChipsPhi
int DesignNumChipsPhi()
Definition: PixelLegacyManager.cxx:839
PixelLegacyManager::DesignRPActiveArea
double DesignRPActiveArea()
Definition: PixelLegacyManager.cxx:907
PixelLegacyManager::m_pxbd
IRDBRecordset_ptr m_pxbd
Definition: PixelLegacyManager.h:42
PixelLegacyManager::m_poai
IRDBRecordset_ptr m_poai
Definition: PixelLegacyManager.h:53
PixelLegacyManager::DesignPitchZ
double DesignPitchZ(bool isBLayer)
Definition: PixelLegacyManager.cxx:925
PixelLegacyManager::PixelTMTPosZ
double PixelTMTPosZ(int iPart)
Definition: PixelLegacyManager.cxx:427
PixelLegacyManager::m_BarrelInSFrame
bool m_BarrelInSFrame
Definition: PixelLegacyManager.h:59
PixelLegacyManager::m_posi
IRDBRecordset_ptr m_posi
Definition: PixelLegacyManager.h:55
PixelLegacyManager::m_ptba
IRDBRecordset_ptr m_ptba
Definition: PixelLegacyManager.h:29
PixelLegacyManager::m_EndcapInSFrame
bool m_EndcapInSFrame
Definition: PixelLegacyManager.h:60