ATLAS Offline Software
AtlasGeometryCommon
BeamPipeGeoModel
src
BeamPipeDetectorFactory_Lite.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
BeamPipeDetectorFactory_Lite.h
"
6
7
#include "GeoModelKernel/GeoVolumeCursor.h"
8
#include "GeoModelKernel/GeoPhysVol.h"
9
#include "GeoModelKernel/GeoDefinitions.h"
10
11
12
13
BeamPipeDetectorFactory_Lite::BeamPipeDetectorFactory_Lite
()
14
:m_manager(nullptr)
15
{}
16
17
18
void
BeamPipeDetectorFactory_Lite::create
(GeoPhysVol *world)
19
{
20
m_manager
=
new
BeamPipeDetectorManager
();
21
GeoVolumeCursor
cursor
(world);
22
while
(!
cursor
.atEnd()) {
23
if
(
cursor
.getName()==
"BeamPipe"
)
m_manager
->
addTreeTop
(
cursor
.getVolume());
24
cursor
.next();
25
}
26
}
27
28
const
BeamPipeDetectorManager
*
BeamPipeDetectorFactory_Lite::getDetectorManager
()
const
29
{
30
return
m_manager
;
31
}
32
BeamPipeDetectorFactory_Lite::getDetectorManager
virtual const BeamPipeDetectorManager * getDetectorManager() const override
Definition:
BeamPipeDetectorFactory_Lite.cxx:28
BeamPipeDetectorManager::addTreeTop
void addTreeTop(const PVConstLink &)
Definition:
BeamPipeDetectorManager.cxx:25
BeamPipeDetectorFactory_Lite::m_manager
BeamPipeDetectorManager * m_manager
Definition:
BeamPipeDetectorFactory_Lite.h:30
BeamPipeDetectorFactory_Lite.h
BeamPipeDetectorFactory_Lite::BeamPipeDetectorFactory_Lite
BeamPipeDetectorFactory_Lite()
Definition:
BeamPipeDetectorFactory_Lite.cxx:13
BeamPipeDetectorFactory_Lite::create
virtual void create(GeoPhysVol *world) override
Definition:
BeamPipeDetectorFactory_Lite.cxx:18
query_example.cursor
cursor
Definition:
query_example.py:21
BeamPipeDetectorManager
Definition:
BeamPipeDetectorManager.h:14
Generated on Mon Dec 23 2024 21:07:25 for ATLAS Offline Software by
1.8.18