Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer << 3 // * DISCLAIMER * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th << 5 // * The following disclaimer summarizes all the specific disclaimers * 6 // * the Geant4 Collaboration. It is provided << 6 // * of contributors to this software. The specific disclaimers,which * 7 // * conditions of the Geant4 Software License << 7 // * govern, are listed with their locations in: * 8 // * LICENSE and available at http://cern.ch/ << 8 // * http://cern.ch/geant4/license * 9 // * include a list of copyright holders. << 10 // * 9 // * * 11 // * Neither the authors of this software syst 10 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 11 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 12 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 13 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file << 14 // * use. * 16 // * for the full disclaimer and the limitatio << 17 // * 15 // * * 18 // * This code implementation is the result << 16 // * This code implementation is the intellectual property of the * 19 // * technical work of the GEANT4 collaboratio << 17 // * GEANT4 collaboration. * 20 // * By using, copying, modifying or distri << 18 // * By copying, distributing or modifying the Program (or any work * 21 // * any work based on the software) you ag << 19 // * based on the Program) you indicate your acceptance of this * 22 // * use in resulting scientific publicati << 20 // * statement, and all its terms. * 23 // * acceptance of all terms of the Geant4 Sof << 24 // ******************************************* 21 // ******************************************************************** 25 // 22 // 26 // G4SensitiveVolumeList << 27 // 23 // 28 // Class description: << 24 // $Id: G4SensitiveVolumeList.hh,v 1.1 2003/10/03 10:09:17 gcosmo Exp $ >> 25 // GEANT4 tag $Name: geant4-07-01 $ 29 // 26 // 30 // This class object can have lists of logical << 27 // ------------------------------------------------------------ 31 // In case a sensitive detector is shared by s << 28 // GEANT 4 class header file --- Copyright CERN 1996 32 // a logical volume is shared by several physi << 29 // CERN Geneva Switzerland 33 // used by the veto list for individual logica << 34 // 30 // 35 // Author: S.Piperov, 1996 << 31 // History: first implementation, based on Hits+Digi domain 36 // ------------------------------------------- << 32 // object model of April 1996, S.Piperov >> 33 // >> 34 // ---------------- G4SensitiveVolumeList ----------------- >> 35 37 #ifndef G4SensitiveVolumeList_h 36 #ifndef G4SensitiveVolumeList_h 38 #define G4SensitiveVolumeList_h 1 37 #define G4SensitiveVolumeList_h 1 39 38 >> 39 //#include "g4rw/tpordvec.h" >> 40 //#include "g4rw/tvordvec.h" >> 41 #include <vector> 40 #include "G4LogicalVolume.hh" 42 #include "G4LogicalVolume.hh" 41 #include "G4VPhysicalVolume.hh" 43 #include "G4VPhysicalVolume.hh" 42 44 43 #include <vector> << 45 // class description: >> 46 // >> 47 // This class object can have lists of logical and physical volumes. >> 48 // In case a sensitive detector is shared by several logical volumes and/or >> 49 // a logical volume is shared by several physical volumes, this class can be >> 50 // used by the veto list for individual logical/physical volumes. >> 51 // 44 52 45 class G4SensitiveVolumeList << 53 class G4SensitiveVolumeList 46 { 54 { 47 public: << 48 // Equality Operations << 49 G4bool operator==(const G4SensitiveVolumeLis << 50 G4bool operator!=(const G4SensitiveVolumeLis << 51 55 52 // Return true if given physical volume is i << 56 public: 53 G4bool CheckPV(const G4VPhysicalVolume* pvp) << 57 //Constructors >> 58 G4SensitiveVolumeList(); >> 59 G4SensitiveVolumeList(const G4SensitiveVolumeList &right); >> 60 >> 61 //Destructor >> 62 ~G4SensitiveVolumeList(); >> 63 >> 64 //Assignment Operation >> 65 const G4SensitiveVolumeList & operator=(const G4SensitiveVolumeList &right >> 66 ); >> 67 >> 68 //Equality Operations >> 69 G4int operator==(const G4SensitiveVolumeList &right) const; >> 70 G4int operator!=(const G4SensitiveVolumeList &right) const; >> 71 >> 72 >> 73 //Other Operations >> 74 G4bool CheckPV(const G4VPhysicalVolume *pvp) const; >> 75 G4bool CheckLV(const G4LogicalVolume *lvp) const; 54 76 55 // Return true if given logical volume is in << 77 //Get and Set Operations for Has Relationships 56 G4bool CheckLV(const G4LogicalVolume* lvp) c << 78 const std::vector<G4VPhysicalVolume*>& GetThePhysicalVolumeList() const; >> 79 void SetThePhysicalVolumeList(const std::vector<G4VPhysicalVolume*> value); 57 80 58 // Get and Set Operations for Has Relationsh << 81 const std::vector<G4LogicalVolume*>& GetTheLogicalVolumeList() const; 59 const std::vector<G4VPhysicalVolume*>& GetTh << 82 void SetTheLogicalVolumeList(const std::vector<G4LogicalVolume*> value); 60 void SetThePhysicalVolumeList(const std::vec << 61 83 62 const std::vector<G4LogicalVolume*>& GetTheL << 63 void SetTheLogicalVolumeList(const std::vect << 64 84 65 private: << 66 // Data Members for Has Relationships << 67 85 68 std::vector<G4VPhysicalVolume*> thePhysicalV << 86 private: 69 std::vector<G4LogicalVolume*> theLogicalVolu << 87 >> 88 //Data Members for Has Relationships >> 89 >> 90 std::vector<G4VPhysicalVolume*> thePhysicalVolumeList; >> 91 std::vector<G4LogicalVolume*> theLogicalVolumeList; >> 92 70 }; 93 }; 71 94 >> 95 72 #endif 96 #endif >> 97 73 98