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

#include <G4HitFilterFactories.hh>

+ Inheritance diagram for G4HitAttributeFilterFactory:

Public Types

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

Public Member Functions

 G4HitAttributeFilterFactory ()
 
virtual ~G4HitAttributeFilterFactory ()
 
ModelAndMessengers Create (const G4String &placement, const G4String &name)
 
- Public Member Functions inherited from G4VModelFactory< G4VFilter< G4VHit > >
 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 G4HitFilterFactories.hh.

Member Typedef Documentation

◆ Messengers

Definition at line 45 of file G4HitFilterFactories.hh.

◆ ModelAndMessengers

Constructor & Destructor Documentation

◆ G4HitAttributeFilterFactory()

G4HitAttributeFilterFactory::G4HitAttributeFilterFactory ( )

Definition at line 38 of file G4HitFilterFactories.cc.

◆ ~G4HitAttributeFilterFactory()

G4HitAttributeFilterFactory::~G4HitAttributeFilterFactory ( )
virtual

Definition at line 42 of file G4HitFilterFactories.cc.

42{}

Member Function Documentation

◆ Create()

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

Implements G4VModelFactory< G4VFilter< G4VHit > >.

Definition at line 45 of file G4HitFilterFactories.cc.

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

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