#include <PixelDetectorElementStatusToolBase.h>
◆ PixelDetectorElementStatusToolBase()
| PixelDetectorElementStatusToolBase::PixelDetectorElementStatusToolBase |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
◆ ~PixelDetectorElementStatusToolBase()
| PixelDetectorElementStatusToolBase::~PixelDetectorElementStatusToolBase |
( |
| ) |
|
|
virtualdefault |
◆ createDetectorElementStatus()
Create a new detector element status element container.
Depending on the properties the container may be a copy of an event data or conditions data element status container.
Definition at line 34 of file PixelDetectorElementStatusToolBase.cxx.
35 {
38 if (whandle) {
40 }
41
42 return std::make_unique<InDet::PixelDetectorElementStatus>(*castToDerived(input_element_status.
cptr()));
43 }
44 else {
45 SG::ReadCondHandle<InDetDD::SiDetectorElementCollection> pixelDetEleHandle(
m_pixelDetEleCollKey, ctx);
46 if (not pixelDetEleHandle.isValid() ) {
47 std::stringstream
msg;
49 throw std::runtime_error(
msg.str());
50 }
51 if (whandle) {
53 }
54 const InDetDD::SiDetectorElementCollection* elements(*pixelDetEleHandle);
55 return std::make_unique<InDet::PixelDetectorElementStatus>(*elements);
56 }
57}
const_pointer_type cptr()
void addDependency(const EventIDRange &range)
◆ initialize()
| StatusCode PixelDetectorElementStatusToolBase::initialize |
( |
| ) |
|
|
overridevirtual |
◆ m_pixelDetEleCollKey
◆ m_pixelDetElStatusCondKey
Definition at line 44 of file PixelDetectorElementStatusToolBase.h.
45{this, "PixelDetElStatusCondDataBaseKey", "" , "Optional conditions data key of an input SiDetectorElementStatus on which the newly created object will be based."};
◆ m_pixelID
| const PixelID* PixelDetectorElementStatusToolBase::m_pixelID {} |
|
protected |
The documentation for this class was generated from the following files: