ATLAS Offline Software
Loading...
Searching...
No Matches
PixelDetectorElementStatusCloneTool.cxx
Go to the documentation of this file.
2
7
8std::unique_ptr<InDet::SiDetectorElementStatus>
11 std::unique_ptr<InDet::SiDetectorElementStatus> element_status( createDetectorElementStatus(ctx, whandle));
12 std::vector<bool> &status=element_status->getElementStatus();
13 if (status.empty()) {
14 status.resize(m_pixelID->wafer_hash_max(),true );
15 }
16 std::vector<InDet::ChipFlags_t> &chip_status=element_status->getElementChipStatus();
17 if (chip_status.empty()) {
18 chip_status.resize(status.size(),0xffff);
19 }
20
21 if (whandle) {
22 ATH_MSG_ERROR("PixelDetectorElementStatusCloneTool is not for use with conditions objects");
24 }
25
26 return element_status;
27}
#define ATH_MSG_ERROR(x)
virtual std::unique_ptr< InDet::SiDetectorElementStatus > getDetectorElementStatus(const EventContext &ctx, SG::WriteCondHandle< InDet::SiDetectorElementStatus > *whandle) const override
std::unique_ptr< InDet::SiDetectorElementStatus > createDetectorElementStatus(const EventContext &ctx, SG::WriteCondHandle< InDet::SiDetectorElementStatus > *whandle) const
Create a new detector element status element container.
void addDependency(const EventIDRange &range)