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

#include <G4DigiFilterFactories.hh>

+ Inheritance diagram for G4DigiAttributeFilterFactory:

Public Types

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

Public Member Functions

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

Detailed Description

Definition at line 41 of file G4DigiFilterFactories.hh.

Member Typedef Documentation

◆ Messengers

◆ ModelAndMessengers

Constructor & Destructor Documentation

◆ G4DigiAttributeFilterFactory()

G4DigiAttributeFilterFactory::G4DigiAttributeFilterFactory ( )

Definition at line 38 of file G4DigiFilterFactories.cc.

◆ ~G4DigiAttributeFilterFactory()

G4DigiAttributeFilterFactory::~G4DigiAttributeFilterFactory ( )
virtual

Definition at line 42 of file G4DigiFilterFactories.cc.

42{}

Member Function Documentation

◆ Create()

G4DigiAttributeFilterFactory::ModelAndMessengers G4DigiAttributeFilterFactory::Create ( const G4String & placement,
const G4String & name )
virtual

Implements G4VModelFactory< G4VFilter< G4VDigi > >.

Definition at line 45 of file G4DigiFilterFactories.cc.

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

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