Geant4 9.6.0
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

Id
G4TrajectoryFilterFactories.hh,v 1.4 2006-09-12 18:53:03 tinslay Exp

Definition at line 43 of file G4TrajectoryFilterFactories.hh.

Member Typedef Documentation

◆ Messengers

◆ ModelAndMessengers

Constructor & Destructor Documentation

◆ G4TrajectoryAttributeFilterFactory()

G4TrajectoryAttributeFilterFactory::G4TrajectoryAttributeFilterFactory ( )
Id
G4TrajectoryFilterFactories.cc,v 1.5 2006-09-12 18:53:03 tinslay Exp

Definition at line 43 of file G4TrajectoryFilterFactories.cc.

◆ ~G4TrajectoryAttributeFilterFactory()

G4TrajectoryAttributeFilterFactory::~G4TrajectoryAttributeFilterFactory ( )
virtual

Definition at line 47 of file G4TrajectoryFilterFactories.cc.

47{}

Member Function Documentation

◆ Create()

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

Implements G4VModelFactory< G4VFilter< G4VTrajectory > >.

Definition at line 50 of file G4TrajectoryFilterFactories.cc.

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

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