Geant4 9.6.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

Id
G4HitFilterFactories.hh,v 1.1 2006-09-12 18:53:03 tinslay Exp

Definition at line 43 of file G4HitFilterFactories.hh.

Member Typedef Documentation

◆ Messengers

Definition at line 47 of file G4HitFilterFactories.hh.

◆ ModelAndMessengers

Constructor & Destructor Documentation

◆ G4HitAttributeFilterFactory()

G4HitAttributeFilterFactory::G4HitAttributeFilterFactory ( )
Id
G4HitFilterFactories.cc,v 1.2 2010-05-30 11:24:03 allison Exp

Definition at line 40 of file G4HitFilterFactories.cc.

◆ ~G4HitAttributeFilterFactory()

G4HitAttributeFilterFactory::~G4HitAttributeFilterFactory ( )
virtual

Definition at line 44 of file G4HitFilterFactories.cc.

44{}

Member Function Documentation

◆ Create()

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

Implements G4VModelFactory< G4VFilter< G4VHit > >.

Definition at line 47 of file G4HitFilterFactories.cc.

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

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