ATLAS Offline Software
PhysicalVolumeAccessor.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef PhysicalVolumeAccessor_H
6 #define PhysicalVolumeAccessor_H
7 
8 // Helper class for getting all physical volumes (by name) in a LV
9 // and organise them by copy #
10 
11 #include "G4VPhysicalVolume.hh"
12 
13 #include <map>
14 #include <string>
15 
16 typedef std::map<int,G4VPhysicalVolume *, std::less<int> > PVMap;
17 
19 public:
20  PhysicalVolumeAccessor(const std::string&);
21  PhysicalVolumeAccessor(const std::string&,const std::string&);
22  const G4VPhysicalVolume* GetPhysicalVolume(int) const;
23  void SetPhysicalVolumeList(const std::string&);
24 private:
25  G4LogicalVolume* m_theLogicalVolume;
27  G4LogicalVolume *GetLV(const std::string&);
28 };
29 
30 
31 #endif
PhysicalVolumeAccessor::GetLV
G4LogicalVolume * GetLV(const std::string &)
Definition: PhysicalVolumeAccessor.cxx:10
PVMap
std::map< int, G4VPhysicalVolume *, std::less< int > > PVMap
Definition: PhysicalVolumeAccessor.h:16
PhysicalVolumeAccessor
Definition: PhysicalVolumeAccessor.h:18
PhysicalVolumeAccessor::m_thePhysicalVolumes
PVMap m_thePhysicalVolumes
Definition: PhysicalVolumeAccessor.h:26
PhysicalVolumeAccessor::PhysicalVolumeAccessor
PhysicalVolumeAccessor(const std::string &)
Definition: PhysicalVolumeAccessor.cxx:22
PhysicalVolumeAccessor::SetPhysicalVolumeList
void SetPhysicalVolumeList(const std::string &)
Definition: PhysicalVolumeAccessor.cxx:53
PhysicalVolumeAccessor::GetPhysicalVolume
const G4VPhysicalVolume * GetPhysicalVolume(int) const
Definition: PhysicalVolumeAccessor.cxx:42
PhysicalVolumeAccessor::m_theLogicalVolume
G4LogicalVolume * m_theLogicalVolume
Definition: PhysicalVolumeAccessor.h:25