ATLAS Offline Software
InnerDetector
InDetDetDescr
InDetServMatGeoModel
src
InDetServMatFactory_Lite.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
InDetServMatFactory_Lite.h
"
6
7
#include "GeoModelKernel/GeoVolumeCursor.h"
8
#include "GeoModelKernel/GeoPhysVol.h"
9
#include "GeoModelKernel/GeoDefinitions.h"
10
11
void
InDetServMatFactory_Lite::create
(GeoPhysVol *world)
12
{
13
m_manager
=
new
InDetDD::InDetServMatManager
();
14
GeoVolumeCursor
cursor
(world);
15
while
(!
cursor
.atEnd()) {
16
const
GeoVPhysVol *physVol=
cursor
.getVolume().operator->();
17
if
(
cursor
.getName()==
"InDetServMat"
)
m_manager
->
addTreeTop
(physVol);
18
cursor
.next();
19
}
20
}
21
22
const
InDetDD::InDetServMatManager
*
InDetServMatFactory_Lite::getDetectorManager
()
const
23
{
24
return
m_manager
;
25
}
26
query_example.cursor
cursor
Definition:
query_example.py:21
InDetServMatFactory_Lite::getDetectorManager
virtual const InDetDD::InDetServMatManager * getDetectorManager() const override
Definition:
InDetServMatFactory_Lite.cxx:22
InDetDD::InDetServMatManager::addTreeTop
void addTreeTop(const PVConstLink &)
Definition:
InDetServMatManager.cxx:37
InDetServMatFactory_Lite::m_manager
InDetDD::InDetServMatManager * m_manager
Definition:
InDetServMatFactory_Lite.h:30
InDetServMatFactory_Lite.h
InDetServMatFactory_Lite::create
virtual void create(GeoPhysVol *world) override
Definition:
InDetServMatFactory_Lite.cxx:11
InDetDD::InDetServMatManager
Definition:
InDetServMatManager.h:22
Generated on Sun Dec 22 2024 21:11:44 for ATLAS Offline Software by
1.8.18