ATLAS Offline Software
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 
6 
7 #include "GeoModelKernel/GeoVolumeCursor.h"
8 #include "GeoModelKernel/GeoPhysVol.h"
9 #include "GeoModelKernel/GeoDefinitions.h"
10 
11 
12 
14  :m_manager(nullptr)
15 {}
16 
17 
18 void BeamPipeDetectorFactory_Lite::create(GeoPhysVol *world)
19 {
21  GeoVolumeCursor cursor(world);
22  while (!cursor.atEnd()) {
23  if (cursor.getName()=="BeamPipe") m_manager->addTreeTop(cursor.getVolume());
24  cursor.next();
25  }
26 }
27 
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