Geant4 9.6.0
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 ()
 
virtual ModelAndMessengers Create (const G4String &placement, const G4String &modelName)=0
 
void Print (std::ostream &ostr) const
 

Detailed Description

Id
G4DigiFilterFactories.hh,v 1.1 2010-05-30 11:24:30 allison Exp

Definition at line 43 of file G4DigiFilterFactories.hh.

Member Typedef Documentation

◆ Messengers

Definition at line 47 of file G4DigiFilterFactories.hh.

◆ ModelAndMessengers

Constructor & Destructor Documentation

◆ G4DigiAttributeFilterFactory()

G4DigiAttributeFilterFactory::G4DigiAttributeFilterFactory ( )
Id
G4DigiFilterFactories.cc,v 1.1 2010-05-30 11:24:30 allison Exp

Definition at line 40 of file G4DigiFilterFactories.cc.

◆ ~G4DigiAttributeFilterFactory()

G4DigiAttributeFilterFactory::~G4DigiAttributeFilterFactory ( )
virtual

Definition at line 44 of file G4DigiFilterFactories.cc.

44{}

Member Function Documentation

◆ Create()

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

Implements G4VModelFactory< G4VFilter< G4VDigi > >.

Definition at line 47 of file G4DigiFilterFactories.cc.

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

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