G4SensitiveVolumeList.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // $Id$
00028 //
00029 // ------------------------------------------------------------
00030 //      GEANT 4 class header file --- Copyright CERN 1996
00031 //      CERN Geneva Switzerland
00032 //
00033 //      History: first implementation, based on Hits+Digi domain
00034 //      object model of April 1996, S.Piperov
00035 //
00036 //   ----------------  G4SensitiveVolumeList  -----------------
00037 
00038 #ifndef G4SensitiveVolumeList_h
00039 #define G4SensitiveVolumeList_h 1
00040 
00041 //#include "g4rw/tpordvec.h"
00042 //#include "g4rw/tvordvec.h"
00043 #include <vector>
00044 #include "G4LogicalVolume.hh"
00045 #include "G4VPhysicalVolume.hh"
00046 
00047 // class description:
00048 //
00049 //  This class object can have lists of logical and physical volumes.
00050 // In case a sensitive detector is shared by several logical volumes and/or
00051 // a logical volume is shared by several physical volumes, this class can be
00052 // used by the veto list for individual logical/physical volumes.
00053 //
00054 
00055 class G4SensitiveVolumeList 
00056 {
00057 
00058   public:
00059     //Constructors
00060       G4SensitiveVolumeList();
00061       G4SensitiveVolumeList(const G4SensitiveVolumeList &right);
00062 
00063     //Destructor
00064       ~G4SensitiveVolumeList();
00065 
00066     //Assignment Operation
00067       const G4SensitiveVolumeList & operator=(const G4SensitiveVolumeList &right
00068 );
00069 
00070     //Equality Operations
00071       G4int operator==(const G4SensitiveVolumeList &right) const;
00072       G4int operator!=(const G4SensitiveVolumeList &right) const;
00073 
00074 
00075     //Other Operations
00076       G4bool CheckPV(const G4VPhysicalVolume *pvp) const;
00077       G4bool CheckLV(const G4LogicalVolume *lvp) const;
00078 
00079     //Get and Set Operations for Has Relationships
00080       const std::vector<G4VPhysicalVolume*>& GetThePhysicalVolumeList() const;
00081       void SetThePhysicalVolumeList(const std::vector<G4VPhysicalVolume*> value);
00082 
00083       const std::vector<G4LogicalVolume*>& GetTheLogicalVolumeList() const;
00084       void SetTheLogicalVolumeList(const std::vector<G4LogicalVolume*> value);
00085 
00086 
00087 
00088   private: 
00089 
00090     //Data Members for Has Relationships
00091 
00092       std::vector<G4VPhysicalVolume*> thePhysicalVolumeList;
00093       std::vector<G4LogicalVolume*> theLogicalVolumeList;
00094 
00095 };
00096 
00097 
00098 #endif
00099 

Generated on Mon May 27 17:49:49 2013 for Geant4 by  doxygen 1.4.7