ATLAS Offline Software
Loading...
Searching...
No Matches
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
16typedef std::map<int,G4VPhysicalVolume *, std::less<int> > PVMap;
17
19public:
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&);
24private:
25 G4LogicalVolume* m_theLogicalVolume;
27 G4LogicalVolume *GetLV(const std::string&);
28};
29
30
31#endif
std::map< int, G4VPhysicalVolume *, std::less< int > > PVMap
void SetPhysicalVolumeList(const std::string &)
const G4VPhysicalVolume * GetPhysicalVolume(int) const
G4LogicalVolume * GetLV(const std::string &)
G4LogicalVolume * m_theLogicalVolume
PhysicalVolumeAccessor(const std::string &)