Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4SensitiveVolumeList Class Reference

#include <G4SensitiveVolumeList.hh>

Public Member Functions

 G4SensitiveVolumeList ()
 
 G4SensitiveVolumeList (const G4SensitiveVolumeList &right)
 
 ~G4SensitiveVolumeList ()
 
const G4SensitiveVolumeListoperator= (const G4SensitiveVolumeList &right)
 
G4int operator== (const G4SensitiveVolumeList &right) const
 
G4int operator!= (const G4SensitiveVolumeList &right) const
 
G4bool CheckPV (const G4VPhysicalVolume *pvp) const
 
G4bool CheckLV (const G4LogicalVolume *lvp) const
 
const std::vector< G4VPhysicalVolume * > & GetThePhysicalVolumeList () const
 
void SetThePhysicalVolumeList (const std::vector< G4VPhysicalVolume * > value)
 
const std::vector< G4LogicalVolume * > & GetTheLogicalVolumeList () const
 
void SetTheLogicalVolumeList (const std::vector< G4LogicalVolume * > value)
 

Detailed Description

Definition at line 55 of file G4SensitiveVolumeList.hh.

Constructor & Destructor Documentation

◆ G4SensitiveVolumeList() [1/2]

G4SensitiveVolumeList::G4SensitiveVolumeList ( )

Definition at line 40 of file G4SensitiveVolumeList.cc.

41 {
42 }

◆ G4SensitiveVolumeList() [2/2]

G4SensitiveVolumeList::G4SensitiveVolumeList ( const G4SensitiveVolumeList right)

Definition at line 44 of file G4SensitiveVolumeList.cc.

45 {
46 thePhysicalVolumeList = right.thePhysicalVolumeList;
47 theLogicalVolumeList = right.theLogicalVolumeList;
48 }

◆ ~G4SensitiveVolumeList()

G4SensitiveVolumeList::~G4SensitiveVolumeList ( )

Definition at line 52 of file G4SensitiveVolumeList.cc.

53 {
54 }

Member Function Documentation

◆ CheckLV()

G4bool G4SensitiveVolumeList::CheckLV ( const G4LogicalVolume lvp) const

Definition at line 89 of file G4SensitiveVolumeList.cc.

90 {
91 if (theLogicalVolumeList.size()==0) return false;
92 for(size_t i=0;i<theLogicalVolumeList.size();i++)
93 { if(theLogicalVolumeList[i]==lvp) return true; }
94 return false;
95 }

Referenced by G4VReadOutGeometry::CheckROVolume().

◆ CheckPV()

G4bool G4SensitiveVolumeList::CheckPV ( const G4VPhysicalVolume pvp) const

Definition at line 80 of file G4SensitiveVolumeList.cc.

81 {
82 if (thePhysicalVolumeList.size()==0) return false;
83 for(size_t i=0;i<thePhysicalVolumeList.size();i++)
84 { if(thePhysicalVolumeList[i]==pvp) return true; }
85 return false;
86 }

Referenced by G4VReadOutGeometry::CheckROVolume().

◆ GetTheLogicalVolumeList()

const std::vector< G4LogicalVolume * > & G4SensitiveVolumeList::GetTheLogicalVolumeList ( ) const

◆ GetThePhysicalVolumeList()

const std::vector< G4VPhysicalVolume * > & G4SensitiveVolumeList::GetThePhysicalVolumeList ( ) const

◆ operator!=()

G4int G4SensitiveVolumeList::operator!= ( const G4SensitiveVolumeList right) const

Definition at line 72 of file G4SensitiveVolumeList.cc.

73 {
74 return (this != (G4SensitiveVolumeList *) &right);
75 }

◆ operator=()

const G4SensitiveVolumeList & G4SensitiveVolumeList::operator= ( const G4SensitiveVolumeList right)

Definition at line 58 of file G4SensitiveVolumeList.cc.

59 {
60 thePhysicalVolumeList = right.thePhysicalVolumeList;
61 theLogicalVolumeList = right.theLogicalVolumeList;
62 return *this;
63 }

◆ operator==()

G4int G4SensitiveVolumeList::operator== ( const G4SensitiveVolumeList right) const

Definition at line 67 of file G4SensitiveVolumeList.cc.

68 {
69 return (this == (G4SensitiveVolumeList *) &right);
70 }

◆ SetTheLogicalVolumeList()

void G4SensitiveVolumeList::SetTheLogicalVolumeList ( const std::vector< G4LogicalVolume * >  value)

◆ SetThePhysicalVolumeList()

void G4SensitiveVolumeList::SetThePhysicalVolumeList ( const std::vector< G4VPhysicalVolume * >  value)

The documentation for this class was generated from the following files: