Geant4 10.7.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 16 of file DefaultHepRepAction.h.

Constructor & Destructor Documentation

◆ DefaultHepRepAction()

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

Definition at line 15 of file DefaultHepRepAction.cc.

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

◆ ~DefaultHepRepAction()

cheprep::DefaultHepRepAction::~DefaultHepRepAction ( )

Definition at line 19 of file DefaultHepRepAction.cc.

19 {
20}

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 30 of file DefaultHepRepAction.cc.

30 {
31 return new DefaultHepRepAction(name, expression);
32}
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 26 of file DefaultHepRepAction.cc.

26 {
27 return expression;
28}

◆ getName()

string cheprep::DefaultHepRepAction::getName ( )
virtual

Returns name of this action.

Returns
name of this action.

Implements HEPREP::HepRepAction.

Definition at line 22 of file DefaultHepRepAction.cc.

22 {
23 return name;
24}

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