LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ActionBase.hh
Go to the documentation of this file.
1
// This file is the header for the @ActionBase@ class.
2
3
// It is the lowest level base class for Geant user actions. Do not
4
// inherit from this class directly. Instead, use a next level up class, like
5
// @TrackingActionBase@.
6
7
#ifndef artg4tk_actionBase_ActionBase_hh
8
#define artg4tk_actionBase_ActionBase_hh
9
10
#include <string>
11
12
namespace
artg4tk
{
13
14
class
ActionBase
{
15
public
:
16
// Constructor. The derived class must call this constructor. It takes a
17
// single string for the name of the action object.
18
ActionBase
(std::string
myName
) :
myName_
(move(myName)) {}
19
20
// Destructor
21
virtual
~ActionBase
();
22
23
// Accessor
24
std::string
const
&
25
myName
()
const
26
{
27
return
myName_
;
28
}
29
30
// h3. Optional methods
31
32
// Intialize - Instead of putting initialization code into your constructor, put
33
// such code in this initialize method. This method will get called at the correct
34
// time, after particle lists are already constructed and known to geant.
35
virtual
void
36
initialize
()
37
{}
38
39
private
:
40
// A string containing this action object's name
41
std::string
myName_
;
42
};
43
}
44
45
#endif
/* artg4tk_actionBase_ActionBase_hh */
artg4tk::ActionBase::~ActionBase
virtual ~ActionBase()
Definition:
ActionBase.cc:4
artg4tk::ActionBase::myName_
std::string myName_
Definition:
ActionBase.hh:41
artg4tk::ActionBase::initialize
virtual void initialize()
Definition:
ActionBase.hh:36
artg4tk
Definition:
ActionBase.hh:12
artg4tk::ActionBase::ActionBase
ActionBase(std::string myName)
Definition:
ActionBase.hh:18
artg4tk::ActionBase::myName
std::string const & myName() const
Definition:
ActionBase.hh:25
artg4tk::ActionBase
Definition:
ActionBase.hh:14
artg4tk
v12_00_03
source
artg4tk
actionBase
ActionBase.hh
Generated on Thu May 2 2024 20:59:30 for LArSoft by
1.8.11