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

#include <G4TrajectoryFilterFactories.hh>

+ Inheritance diagram for G4TrajectoryAttributeFilterFactory:

Public Types

typedef std::vector< G4UImessenger * > Messengers
 
typedef std::pair< G4VFilter< G4VTrajectory > *, MessengersModelAndMessengers
 
- Public Types inherited from G4VModelFactory< G4VFilter< G4VTrajectory > >
typedef std::vector< G4UImessenger * > Messengers
 
typedef std::pair< G4VFilter< G4VTrajectory > *, MessengersModelAndMessengers
 

Public Member Functions

 G4TrajectoryAttributeFilterFactory ()
 
virtual ~G4TrajectoryAttributeFilterFactory ()
 
ModelAndMessengers Create (const G4String &placement, const G4String &name)
 
- Public Member Functions inherited from G4VModelFactory< G4VFilter< G4VTrajectory > >
 G4VModelFactory (const G4String &name)
 
virtual ~G4VModelFactory ()
 
G4String Name ()
 
virtual ModelAndMessengers Create (const G4String &placement, const G4String &modelName)=0
 
void Print (std::ostream &ostr) const
 

Detailed Description

Definition at line 41 of file G4TrajectoryFilterFactories.hh.

Member Typedef Documentation

◆ Messengers

◆ ModelAndMessengers

Constructor & Destructor Documentation

◆ G4TrajectoryAttributeFilterFactory()

G4TrajectoryAttributeFilterFactory::G4TrajectoryAttributeFilterFactory ( )

Definition at line 42 of file G4TrajectoryFilterFactories.cc.

◆ ~G4TrajectoryAttributeFilterFactory()

G4TrajectoryAttributeFilterFactory::~G4TrajectoryAttributeFilterFactory ( )
virtual

Definition at line 46 of file G4TrajectoryFilterFactories.cc.

46{}

Member Function Documentation

◆ Create()

G4TrajectoryAttributeFilterFactory::ModelAndMessengers G4TrajectoryAttributeFilterFactory::Create ( const G4String placement,
const G4String name 
)
virtual

Implements G4VModelFactory< G4VFilter< G4VTrajectory > >.

Definition at line 49 of file G4TrajectoryFilterFactories.cc.

50{
51 typedef G4AttributeFilterT<G4VTrajectory> G4TrajectoryAttributeFilter;
52 // Create model
53 G4TrajectoryAttributeFilter* model = new G4TrajectoryAttributeFilter(name);
54
55 // Create associated messengers
56 Messengers messengers;
57
58 messengers.push_back(new G4ModelCmdSetString<G4TrajectoryAttributeFilter>(model, placement, "setAttribute"));
59 messengers.push_back(new G4ModelCmdInvert<G4TrajectoryAttributeFilter>(model, placement));
60 messengers.push_back(new G4ModelCmdActive<G4TrajectoryAttributeFilter>(model, placement));
61 messengers.push_back(new G4ModelCmdVerbose<G4TrajectoryAttributeFilter>(model, placement));
62 messengers.push_back(new G4ModelCmdReset<G4TrajectoryAttributeFilter>(model, placement));
63 messengers.push_back(new G4ModelCmdAddInterval<G4TrajectoryAttributeFilter>(model, placement, "addInterval"));
64 messengers.push_back(new G4ModelCmdAddValue<G4TrajectoryAttributeFilter>(model, placement, "addValue"));
65
66 return ModelAndMessengers(model, messengers);
67}
std::vector< G4UImessenger * > Messengers
std::pair< G4VFilter< G4VTrajectory > *, Messengers > ModelAndMessengers

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