ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
PixelGeoDC2::GeoPixelEndCap Class Reference

#include <PixelDetectorDC1DC2.h>

Inheritance diagram for PixelGeoDC2::GeoPixelEndCap:
Collaboration diagram for PixelGeoDC2::GeoPixelEndCap:

Public Member Functions

virtual GeoVPhysVol * Build () override
 
 GeoVPixelFactory (InDetDD::PixelDetectorManager *ddmgr, PixelGeometryManager *mgr)
 

Protected Attributes

PixelGeometryManagerm_gmt_mgr {}
 
StoredMaterialManagerm_mat_mgr {}
 
InDetDD::PixelDetectorManagerm_DDmgr {}
 
const double m_epsilon {}
 

Detailed Description

Definition at line 176 of file PixelDetectorDC1DC2.h.

Member Function Documentation

◆ Build()

GeoVPhysVol * GeoPixelEndCap::Build ( )
overridevirtual

Implements PixelGeoDC2::GeoVPixelFactory.

Definition at line 449 of file PixelDetectorDC1DC2.cxx.

449  {
450 
451  //
452  // create the Barrel Mother volume
453  //
454  double rmin = m_gmt_mgr->PixelEndcapRMin();
455  double rmax = m_gmt_mgr->PixelEndcapRMax();
456  double halflength = (m_gmt_mgr->PixelEndcapZMax()-m_gmt_mgr->PixelEndcapZMin())/2.;
457  const GeoMaterial* air = m_mat_mgr->getMaterial("std::Air");
458  const GeoTube* ecTube = new GeoTube(rmin,rmax,halflength);
459  const GeoLogVol* ecLog = new GeoLogVol("EndCapLog",ecTube,air);
460  GeoPhysVol* ecPhys = new GeoPhysVol(ecLog);
461 
462  // Set numerology
464 
465  //
466  // Place the disks and cables on both sides
467  //
470  for(int ii = 0; ii < m_gmt_mgr->PixelEndcapNDisk(); ii++) {
471  m_gmt_mgr->SetCurrentLD(ii);
472  if(m_gmt_mgr->isLDPresent()) {
473  //
474  // The position is given w.r.t to the center of the detector!
475  //
476  // position of the endcap
477  double ecz = (m_gmt_mgr->PixelEndcapZMax()+m_gmt_mgr->PixelEndcapZMin())/2.;
478  //position of the disk
479  double zdisk = m_gmt_mgr->PixelDiskPosition()-ecz;
480  // place the disk
481  GeoTrf::Translate3D pos(0.,0.,zdisk);
482  GeoNameTag* tag = new GeoNameTag("Disk");
483  GeoAlignableTransform* xform = new GeoAlignableTransform(pos);
484  GeoVPhysVol * diskPhys = pd.Build();
485  ecPhys->add(tag);
486  ecPhys->add(new GeoIdentifierTag(ii));
487  ecPhys->add(xform);
488  ecPhys->add(diskPhys);
489 
490  // Store the alignable transform
491  int brl_ec = 2*m_gmt_mgr->GetSide();
492  Identifier id = m_gmt_mgr->getIdHelper()->wafer_id(brl_ec,ii,0,0);
493  m_DDmgr->addAlignableTransform(1, id, xform, diskPhys);
494 
495  //
496  // place the cables twice for the two active parts
497  //
498  double dz = pd.Thickness()/2. + m_gmt_mgr->PixelECCablesDistance() ;
499  pos = GeoTrf::Translate3D(0.,0.,zdisk+dz);
500  tag = new GeoNameTag("ECCables");
501  GeoTransform * xformCablesPlus = new GeoTransform(pos);
502  ecPhys->add(tag);
503  ecPhys->add(xformCablesPlus);
504  ecPhys->add(pecc.Build() );
505  pos = GeoTrf::Translate3D(0.,0.,zdisk-dz);
506  tag = new GeoNameTag("ECCables");
507  GeoTransform * xformCablesMinus = new GeoTransform(pos);
508  ecPhys->add(tag);
509  ecPhys->add(xformCablesMinus);
510  ecPhys->add(pecc.Build() );
511  } else {
512  if(m_gmt_mgr->msgLvl(MSG::DEBUG)) m_gmt_mgr->msg(MSG::DEBUG) << "Disk " << ii << " not built" << endmsg;
513 
514  }
515  }
516  if(m_gmt_mgr->DoServices() ) {
517  //
518  // Add the Endcap services inide the EC volume
519  //
520  GeoPixelServices ecsvc = GeoPixelServices(m_DDmgr, m_gmt_mgr, "/Pixel/PixelEndcap");
521  for(int ii =0; ii< ecsvc.NCylinders(); ii++) {
522  ecsvc.SetCylinder(ii);
523  GeoNameTag* tag = new GeoNameTag("Outside Endcap Service");
524  GeoTrf::Translate3D pos(0.,0.,ecsvc.ZPos() );
525  GeoTransform* xform = new GeoTransform(pos);
526  ecPhys->add(tag);
527  ecPhys->add(xform);
528  ecPhys->add(ecsvc.Build() );
529  }
530  }
531  return ecPhys;
532 }

◆ GeoVPixelFactory()

GeoVPixelFactory::GeoVPixelFactory

Definition at line 45 of file PixelDetectorDC1DC2.cxx.

1537  :
1538  m_gmt_mgr (mgr),
1540  m_DDmgr (ddmgr),
1541  m_epsilon(0.0001)
1542 {
1543 }

Member Data Documentation

◆ m_DDmgr

InDetDD::PixelDetectorManager* PixelGeoDC2::GeoVPixelFactory::m_DDmgr {}
protectedinherited

Definition at line 53 of file PixelDetectorDC1DC2.h.

◆ m_epsilon

const double PixelGeoDC2::GeoVPixelFactory::m_epsilon {}
protectedinherited

Definition at line 54 of file PixelDetectorDC1DC2.h.

◆ m_gmt_mgr

PixelGeometryManager* PixelGeoDC2::GeoVPixelFactory::m_gmt_mgr {}
protectedinherited

Definition at line 51 of file PixelDetectorDC1DC2.h.

◆ m_mat_mgr

StoredMaterialManager* PixelGeoDC2::GeoVPixelFactory::m_mat_mgr {}
protectedinherited

Definition at line 52 of file PixelDetectorDC1DC2.h.


The documentation for this class was generated from the following files:
PixelGeoDC2::PixelGeometryManager::DoServices
virtual bool DoServices()=0
PixelGeoDC2::PixelGeometryManager::PixelEndcapRMin
virtual double PixelEndcapRMin()=0
PixelGeoDC2::GeoVPixelFactory::m_gmt_mgr
PixelGeometryManager * m_gmt_mgr
Definition: PixelDetectorDC1DC2.h:51
InDetDD::SiDetectorManager::numerology
const SiNumerology & numerology() const
Access Numerology.
Definition: SiDetectorManager.h:126
PixelGeoDC2::GeoVPixelFactory::m_DDmgr
InDetDD::PixelDetectorManager * m_DDmgr
Definition: PixelDetectorDC1DC2.h:53
PixelGeoDC2::GeoVPixelFactory::m_epsilon
const double m_epsilon
Definition: PixelDetectorDC1DC2.h:54
PixelGeoDC2::GeoPixelServices::Build
virtual GeoVPhysVol * Build() override
Definition: PixelDetectorDC1DC2.cxx:1133
PixelGeoDC2::PixelGeometryManager::PixelECCablesDistance
virtual double PixelECCablesDistance()=0
PixelGeoDC2::GeoVPixelFactory::m_mat_mgr
StoredMaterialManager * m_mat_mgr
Definition: PixelDetectorDC1DC2.h:52
makeDTCalibBlob_pickPhase.pd
pd
Definition: makeDTCalibBlob_pickPhase.py:342
PixelGeoDC2::PixelGeometryManager::PixelEndcapNDisk
virtual int PixelEndcapNDisk()=0
PixelGeoDC2::PixelGeometryManager::SetCurrentLD
virtual void SetCurrentLD(int i)=0
PixelID::wafer_id
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
Definition: PixelID.h:364
BchCleanup.mgr
mgr
Definition: BchCleanup.py:294
PixelGeoDC2::PixelGeometryManager::GetSide
virtual int GetSide()=0
PixelGeoDC2::PixelGeometryManager::isLDPresent
virtual bool isLDPresent()=0
AthMessaging::msgLvl
bool msgLvl(const MSG::Level lvl) const
Test the output level.
Definition: AthMessaging.h:151
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
PixelGeoDC2::PixelGeometryManager::getIdHelper
virtual const PixelID * getIdHelper()=0
PixelGeoDC2::PixelGeometryManager::getMaterialManager
virtual StoredMaterialManager * getMaterialManager()=0
PixelGeoDC2::PixelGeometryManager::PixelEndcapZMin
virtual double PixelEndcapZMin()=0
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition: AthMessaging.h:164
InDetDD::PixelDetectorManager::addAlignableTransform
virtual void addAlignableTransform(int level, const Identifier &id, GeoAlignableTransform *xf, const GeoVFullPhysVol *child)
Add alignable transforms.
Definition: PixelDetectorManager.cxx:262
InDetDD::SiNumerology::setNumDisks
void setNumDisks(int nDisks)
Definition: SiNumerology.cxx:41
PixelGeoDC2::GeoPixelServices::NCylinders
int NCylinders()
Definition: PixelDetectorDC1DC2.h:290
PixelGeoDC2::GeoPixelServices::ZPos
double ZPos()
Definition: PixelDetectorDC1DC2.h:292
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
PixelGeoDC2::GeoPixelDisk
Definition: PixelDetectorDC1DC2.h:115
PixelGeoDC2::GeoPixelECCable
Definition: PixelDetectorDC1DC2.h:158
DEBUG
#define DEBUG
Definition: page_access.h:11
StoredMaterialManager::getMaterial
virtual const GeoMaterial * getMaterial(const std::string &name)=0
PixelGeoDC2::PixelGeometryManager::PixelEndcapZMax
virtual double PixelEndcapZMax()=0
PixelGeoDC2::GeoPixelServices
Definition: PixelDetectorDC1DC2.h:284
CaloCondBlobAlgs_fillNoiseFromASCII.tag
string tag
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:24
PixelGeoDC2::GeoPixelServices::SetCylinder
void SetCylinder(int n)
Definition: PixelDetectorDC1DC2.h:291
PixelGeoDC2::PixelGeometryManager::PixelDiskPosition
virtual double PixelDiskPosition()=0
PixelGeoDC2::PixelGeometryManager::PixelEndcapRMax
virtual double PixelEndcapRMax()=0
Identifier
Definition: IdentifierFieldParser.cxx:14