![]() |
|
|||
File indexing completed on 2025-09-13 08:58:09
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 // G4SensitiveVolumeList 0027 // 0028 // Class description: 0029 // 0030 // This class object can have lists of logical and physical volumes. 0031 // In case a sensitive detector is shared by several logical volumes and/or 0032 // a logical volume is shared by several physical volumes, this class can be 0033 // used by the veto list for individual logical/physical volumes. 0034 // 0035 // Author: S.Piperov, 1996 0036 // -------------------------------------------------------------------- 0037 #ifndef G4SensitiveVolumeList_h 0038 #define G4SensitiveVolumeList_h 1 0039 0040 #include "G4LogicalVolume.hh" 0041 #include "G4VPhysicalVolume.hh" 0042 0043 #include <vector> 0044 0045 class G4SensitiveVolumeList 0046 { 0047 public: 0048 // Equality Operations 0049 G4bool operator==(const G4SensitiveVolumeList& right) const; 0050 G4bool operator!=(const G4SensitiveVolumeList& right) const; 0051 0052 // Return true if given physical volume is in list 0053 G4bool CheckPV(const G4VPhysicalVolume* pvp) const; 0054 0055 // Return true if given logical volume is in list 0056 G4bool CheckLV(const G4LogicalVolume* lvp) const; 0057 0058 // Get and Set Operations for Has Relationships 0059 const std::vector<G4VPhysicalVolume*>& GetThePhysicalVolumeList() const; 0060 void SetThePhysicalVolumeList(const std::vector<G4VPhysicalVolume*> value); 0061 0062 const std::vector<G4LogicalVolume*>& GetTheLogicalVolumeList() const; 0063 void SetTheLogicalVolumeList(const std::vector<G4LogicalVolume*> value); 0064 0065 private: 0066 // Data Members for Has Relationships 0067 0068 std::vector<G4VPhysicalVolume*> thePhysicalVolumeList; 0069 std::vector<G4LogicalVolume*> theLogicalVolumeList; 0070 }; 0071 0072 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |