Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
cheprep::DefaultHepRepAction Class Reference

#include <DefaultHepRepAction.h>

+ Inheritance diagram for cheprep::DefaultHepRepAction:

Public Member Functions

 DefaultHepRepAction (std::string name, std::string expression)
 
 ~DefaultHepRepAction ()
 
std::string getName ()
 
std::string getExpression ()
 
HEPREP::HepRepActioncopy ()
 
- Public Member Functions inherited from HEPREP::HepRepAction
virtual ~HepRepAction ()
 Destructor.
 
virtual std::string getName ()=0
 
virtual std::string getExpression ()=0
 
virtual HepRepActioncopy ()=0
 

Detailed Description

Definition at line 17 of file DefaultHepRepAction.h.

Constructor & Destructor Documentation

◆ DefaultHepRepAction()

cheprep::DefaultHepRepAction::DefaultHepRepAction ( std::string  name,
std::string  expression 
)

Definition at line 16 of file DefaultHepRepAction.cc.

17 : name(aName), expression(anExpression) {
18}

◆ ~DefaultHepRepAction()

cheprep::DefaultHepRepAction::~DefaultHepRepAction ( )

Definition at line 20 of file DefaultHepRepAction.cc.

20 {
21}

Member Function Documentation

◆ copy()

HepRepAction * cheprep::DefaultHepRepAction::copy ( )
virtual

Returns a deep copy of this action.

Returns
copy of this action.

Implements HEPREP::HepRepAction.

Definition at line 31 of file DefaultHepRepAction.cc.

31 {
32 return new DefaultHepRepAction(name, expression);
33}
DefaultHepRepAction(std::string name, std::string expression)

◆ getExpression()

string cheprep::DefaultHepRepAction::getExpression ( )
virtual

Returns expression associated with this action.

Returns
expression of this action.

Implements HEPREP::HepRepAction.

Definition at line 27 of file DefaultHepRepAction.cc.

27 {
28 return expression;
29}

◆ getName()

string cheprep::DefaultHepRepAction::getName ( )
virtual

Returns name of this action.

Returns
name of this action.

Implements HEPREP::HepRepAction.

Definition at line 23 of file DefaultHepRepAction.cc.

23 {
24 return name;
25}

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