Geant4-11
Public Member Functions | Private Attributes
G4SensitiveVolumeList Class Reference

#include <G4SensitiveVolumeList.hh>

Public Member Functions

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

Private Attributes

std::vector< G4LogicalVolume * > theLogicalVolumeList
 
std::vector< G4VPhysicalVolume * > thePhysicalVolumeList
 

Detailed Description

Definition at line 54 of file G4SensitiveVolumeList.hh.

Constructor & Destructor Documentation

◆ G4SensitiveVolumeList() [1/2]

G4SensitiveVolumeList::G4SensitiveVolumeList ( )

Definition at line 39 of file G4SensitiveVolumeList.cc.

39{}

◆ G4SensitiveVolumeList() [2/2]

G4SensitiveVolumeList::G4SensitiveVolumeList ( const G4SensitiveVolumeList right)

Definition at line 41 of file G4SensitiveVolumeList.cc.

42{
45}
std::vector< G4VPhysicalVolume * > thePhysicalVolumeList
std::vector< G4LogicalVolume * > theLogicalVolumeList

References theLogicalVolumeList, and thePhysicalVolumeList.

◆ ~G4SensitiveVolumeList()

G4SensitiveVolumeList::~G4SensitiveVolumeList ( )

Definition at line 48 of file G4SensitiveVolumeList.cc.

48{}

Member Function Documentation

◆ CheckLV()

G4bool G4SensitiveVolumeList::CheckLV ( const G4LogicalVolume lvp) const

Definition at line 83 of file G4SensitiveVolumeList.cc.

84{
85 for(auto lv : theLogicalVolumeList)
86 {
87 if(lv == lvp)
88 return true;
89 }
90 return false;
91}

References theLogicalVolumeList.

Referenced by G4VReadOutGeometry::CheckROVolume().

◆ CheckPV()

G4bool G4SensitiveVolumeList::CheckPV ( const G4VPhysicalVolume pvp) const

Definition at line 73 of file G4SensitiveVolumeList.cc.

74{
75 for(auto pv : thePhysicalVolumeList)
76 {
77 if(pv == pvp)
78 return true;
79 }
80 return false;
81}

References thePhysicalVolumeList.

Referenced by G4VReadOutGeometry::CheckROVolume().

◆ GetTheLogicalVolumeList()

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

◆ GetThePhysicalVolumeList()

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

◆ operator!=()

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

Definition at line 66 of file G4SensitiveVolumeList.cc.

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

◆ operator=()

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

Definition at line 51 of file G4SensitiveVolumeList.cc.

References theLogicalVolumeList, and thePhysicalVolumeList.

◆ operator==()

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

Definition at line 60 of file G4SensitiveVolumeList.cc.

62{
63 return (this == (G4SensitiveVolumeList*) &right);
64}

◆ SetTheLogicalVolumeList()

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

◆ SetThePhysicalVolumeList()

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

Field Documentation

◆ theLogicalVolumeList

std::vector<G4LogicalVolume*> G4SensitiveVolumeList::theLogicalVolumeList
private

Definition at line 86 of file G4SensitiveVolumeList.hh.

Referenced by CheckLV(), G4SensitiveVolumeList(), and operator=().

◆ thePhysicalVolumeList

std::vector<G4VPhysicalVolume*> G4SensitiveVolumeList::thePhysicalVolumeList
private

Definition at line 85 of file G4SensitiveVolumeList.hh.

Referenced by CheckPV(), G4SensitiveVolumeList(), and operator=().


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