Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::Geant4PhysicalVolumeSelectors::NameSelector Struct Reference

Struct that selects G4VPhysicalVolume objects that match one of the provided names, exact or partially. More...

#include <acts/blob/sPHENIX/Plugins/Geant4/include/Acts/Plugins/Geant4/Geant4PhysicalVolumeSelectors.hpp>

+ Inheritance diagram for Acts::Geant4PhysicalVolumeSelectors::NameSelector:
+ Collaboration diagram for Acts::Geant4PhysicalVolumeSelectors::NameSelector:

Public Member Functions

 NameSelector (const std::vector< std::string > &ns, bool e=false)
 
bool select (const G4VPhysicalVolume &g4PhysVol) const final
 
- Public Member Functions inherited from Acts::IGeant4PhysicalVolumeSelector
virtual ~IGeant4PhysicalVolumeSelector ()=default
 

Public Attributes

std::vector< std::string > names = {}
 
bool exact = false
 

Detailed Description

Struct that selects G4VPhysicalVolume objects that match one of the provided names, exact or partially.

Definition at line 39 of file Geant4PhysicalVolumeSelectors.hpp.

View newest version in sPHENIX GitHub at line 39 of file Geant4PhysicalVolumeSelectors.hpp

Constructor & Destructor Documentation

Acts::Geant4PhysicalVolumeSelectors::NameSelector::NameSelector ( const std::vector< std::string > &  ns,
bool  e = false 
)
inline

Constructor with arguments

Parameters
nsthe provided list of names
ewhether to select them exact or not

Definition at line 46 of file Geant4PhysicalVolumeSelectors.hpp.

View newest version in sPHENIX GitHub at line 46 of file Geant4PhysicalVolumeSelectors.hpp

Member Function Documentation

bool Acts::Geant4PhysicalVolumeSelectors::NameSelector::select ( const G4VPhysicalVolume g4PhysVol) const
inlinefinalvirtual

Secect function for the volume

Parameters
g4PhysVolthe volume that is checked
Returns
a boolean indicating the selection

Implements Acts::IGeant4PhysicalVolumeSelector.

Definition at line 52 of file Geant4PhysicalVolumeSelectors.hpp.

View newest version in sPHENIX GitHub at line 52 of file Geant4PhysicalVolumeSelectors.hpp

References exact, perf_headwind::name, and names.

Member Data Documentation

bool Acts::Geant4PhysicalVolumeSelectors::NameSelector::exact = false

Definition at line 41 of file Geant4PhysicalVolumeSelectors.hpp.

View newest version in sPHENIX GitHub at line 41 of file Geant4PhysicalVolumeSelectors.hpp

Referenced by select().

std::vector<std::string> Acts::Geant4PhysicalVolumeSelectors::NameSelector::names = {}

Definition at line 40 of file Geant4PhysicalVolumeSelectors.hpp.

View newest version in sPHENIX GitHub at line 40 of file Geant4PhysicalVolumeSelectors.hpp

Referenced by cpp.ast.Using::__str__(), and select().


The documentation for this struct was generated from the following file: