#include <ToyDetectorTool.h>
Definition at line 11 of file ToyDetectorTool.h.
◆ ToyDetectorTool()
| ToyDetectorTool::ToyDetectorTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
◆ ~ToyDetectorTool()
| ToyDetectorTool::~ToyDetectorTool |
( |
| ) |
|
|
finaloverridevirtual |
◆ ATLAS_NOT_THREAD_SAFE() [1/2]
| virtual StatusCode registerCallback GeoModelTool::ATLAS_NOT_THREAD_SAFE |
( |
| ) |
|
|
inlineoverridevirtualinherited |
◆ ATLAS_NOT_THREAD_SAFE() [2/2]
|
|
inlineoverridevirtualinherited |
◆ clear()
| virtual StatusCode GeoModelTool::clear |
( |
| ) |
|
|
inlineoverridevirtualinherited |
Reimplemented in BCMPrimeDetectorTool, BeamPipeDetectorTool, CavernInfraDetectorTool, ForDetEnvelopeTool, HGTD_DetectorTool, HGTD_GMX_DetectorTool, InDetServMatTool, ITk::PixelDetectorTool, ITk::StripDetectorTool, LArDetectorToolNV, LUCID_DetectorTool, MuonDetectorTool, MuonGMR4::MuonDetectorTool, PixelDetectorTool, PLRDetectorTool, SCT_DetectorTool, TileDetectorTool, and TRT_DetectorTool.
Definition at line 25 of file GeoModelTool.h.
25{return StatusCode::SUCCESS;}
◆ create()
| StatusCode ToyDetectorTool::create |
( |
| ) |
|
|
finaloverridevirtual |
Definition at line 28 of file ToyDetectorTool.cxx.
29{
31
32
33 GeoModelExperiment* theExpt = nullptr;
35
36 ToyDetectorFactory theToyFactory(
detStore().operator->());
38
39 try {
40
41
42
43
45 theToyFactory.create(world);
47 }
48 catch (const std::bad_alloc&) {
50 return StatusCode::FAILURE;
51 }
52
53 theExpt->
addManager(theToyFactory.getDetectorManager());
54 if (
detStore()->record(theToyFactory.getDetectorManager(),theToyFactory.getDetectorManager()->getName()).isSuccess())
return StatusCode::SUCCESS;
55 ATH_MSG_FATAL(
"Failed to record Toy Detector Manager into Detector Store!");
56 }
57 else {
58 ATH_MSG_FATAL(
"Attempt to build Toy Detector Geometry one more time. The geometry can be built only once!");
59 }
60 return StatusCode::FAILURE;
61}
#define ATH_CHECK
Evaluate an expression and check for errors.
GeoPhysVol * getPhysVol()
Destructor.
void addManager(const GeoVDetectorManager *)
retrieve(aClass, aKey=None)
◆ manager() [1/2]
| virtual GeoVDetectorManager * GeoModelTool::manager |
( |
| ) |
|
|
inlinevirtualinherited |
◆ manager() [2/2]
| virtual const GeoVDetectorManager * GeoModelTool::manager |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ printVolume()
| void ToyDetectorTool::printVolume |
( |
GeoPVConstLink | volime, |
|
|
int | level = 0 ) |
|
private |
Definition at line 63 of file ToyDetectorTool.cxx.
64{
65 GeoVolumeCursor
cursor(volume);
67 GeoPVConstLink physChild =
cursor.getVolume();
68 GeoTrf::Transform3D position =
cursor.getTransform();
69 for(
int k{0};
k<
level;++
k) std::cout <<
"... ";
70 std::cout <<
cursor.getName() <<
" " << (
cursor.getId()?std::to_string(
cursor.getId().value()).c_str():
"N/A")
71 << " Transform:" << "\n";
72 for(
int i{0};
i<3;++
i) {
73 for(int j{0};j<4;++j) {
74 std::cout << position(i,j) << " ";
75 }
76 std::cout << "\n";
77 }
80 }
81}
◆ m_detector
| GeoVDetectorManager* GeoModelTool::m_detector {nullptr} |
|
protectedinherited |
The documentation for this class was generated from the following files: