|
||||
File indexing completed on 2025-01-18 09:59:05
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 // 0027 // 0028 // ------------------------------------------------------------ 0029 // GEANT 4 class header file --- Copyright CERN 1996 0030 // CERN Geneva Switzerland 0031 // 0032 // History: first implementation, based on Hits+Digi domain 0033 // object model of April 1996, S.Piperov 0034 // 0035 // ---------------- G4SensitiveVolumeList ----------------- 0036 0037 #ifndef G4SensitiveVolumeList_h 0038 #define G4SensitiveVolumeList_h 1 0039 0040 // #include "g4rw/tpordvec.h" 0041 // #include "g4rw/tvordvec.h" 0042 #include "G4LogicalVolume.hh" 0043 #include "G4VPhysicalVolume.hh" 0044 0045 #include <vector> 0046 0047 // class description: 0048 // 0049 // This class object can have lists of logical and physical volumes. 0050 // In case a sensitive detector is shared by several logical volumes and/or 0051 // a logical volume is shared by several physical volumes, this class can be 0052 // used by the veto list for individual logical/physical volumes. 0053 // 0054 0055 class G4SensitiveVolumeList 0056 { 0057 public: 0058 // Equality Operations 0059 G4bool operator==(const G4SensitiveVolumeList& right) const; 0060 G4bool operator!=(const G4SensitiveVolumeList& right) const; 0061 0062 // Return true if given physical volume is in list 0063 G4bool CheckPV(const G4VPhysicalVolume* pvp) const; 0064 0065 // Return true if given logical volume is in list 0066 G4bool CheckLV(const G4LogicalVolume* lvp) const; 0067 0068 // Get and Set Operations for Has Relationships 0069 const std::vector<G4VPhysicalVolume*>& GetThePhysicalVolumeList() const; 0070 void SetThePhysicalVolumeList(const std::vector<G4VPhysicalVolume*> value); 0071 0072 const std::vector<G4LogicalVolume*>& GetTheLogicalVolumeList() const; 0073 void SetTheLogicalVolumeList(const std::vector<G4LogicalVolume*> value); 0074 0075 private: 0076 // Data Members for Has Relationships 0077 0078 std::vector<G4VPhysicalVolume*> thePhysicalVolumeList; 0079 std::vector<G4LogicalVolume*> theLogicalVolumeList; 0080 }; 0081 0082 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |