ATLAS Offline Software
PixelDetectorElementStatus.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 /* Dear emacs, this is -*-c++-*- */
5 #ifndef PIXELDETECTORELEMENTSTATUS_H
6 #define PIXELDETECTORELEMENTSTATUS_H
9 
10 namespace InDet {
14  {
15  public:
16  PixelDetectorElementStatus(const PixelDetectorElementStatus &si_detector_element_status) = default;
18  : InDet::SiDetectorElementStatus(detector_elements) {}
19  protected:
20  virtual unsigned int numberOfChips(const InDetDD::SiDetectorDesign& design) const override {
21  // @TODO eliminate the dynamic cast when not in debug build
22  const InDetDD::PixelModuleDesign &pixel_design=dynamic_cast<const InDetDD::PixelModuleDesign &>(design);
23  // number of circuits reported for FEI3 is only the number of circuits per half-module
24  return pixel_design.numberOfCircuits() * (pixel_design.getReadoutTechnology() == InDetDD::PixelReadoutTechnology::FEI3 ? 2 : 1);
25  }
26 
27  };
28 
29 }
30 #endif
InDet::PixelDetectorElementStatus::numberOfChips
virtual unsigned int numberOfChips(const InDetDD::SiDetectorDesign &design) const override
Definition: PixelDetectorElementStatus.h:20
InDetDD::SiDetectorElementCollection
Definition: SiDetectorElementCollection.h:30
InDetDD::PixelModuleDesign
Definition: PixelModuleDesign.h:48
SiDetectorElementStatus.h
InDet
DUMMY Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDetDD::PixelReadoutTechnology::FEI3
@ FEI3
InDet::PixelDetectorElementStatus
Event data to hold the status information for Pixel modules.
Definition: PixelDetectorElementStatus.h:14
InDet::SiDetectorElementStatus
Definition: SiDetectorElementStatus.h:62
InDetDD::PixelModuleDesign::numberOfCircuits
int numberOfCircuits() const
Total number of circuits:
Definition: PixelModuleDesign.h:297
InDet::PixelDetectorElementStatus::PixelDetectorElementStatus
PixelDetectorElementStatus(const PixelDetectorElementStatus &si_detector_element_status)=default
InDet::PixelDetectorElementStatus::PixelDetectorElementStatus
PixelDetectorElementStatus(const InDetDD::SiDetectorElementCollection &detector_elements)
Definition: PixelDetectorElementStatus.h:17
InDetDD::PixelModuleDesign::getReadoutTechnology
PixelReadoutTechnology getReadoutTechnology() const
Definition: PixelModuleDesign.h:368
PixelModuleDesign.h
InDetDD::SiDetectorDesign
Definition: SiDetectorDesign.h:50