EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
BeastMagneticField
delphes_EIC
Doxygen_Assist
east
eic-smear
EicRoot
eicsmear-jetexample
eicsmeardetectors
EicToyModel
estarlight
Fun4All-lmon
fun4all_coresoftware
blob
master
calibrations
generators
offline
database
dbtools
pdbcal
PHParameter
PHParameterContainerInterface.cc
PHParameterContainerInterface.h
PHParameterInterface.cc
PHParameterInterface.h
PHParameters.cc
PHParameters.h
PHParametersContainer.cc
PHParametersContainer.h
framework
packages
QA
simulation
fun4all_eic_qa
fun4all_eic_tutorials
fun4all_eicdetectors
fun4all_eicmacros
fun4all_g4jleic
fun4all_GenFit
fun4all_macros
fun4all_tutorials
g4exampledetector
g4lblvtx
online_distribution
PEPSI
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PHParameterInterface.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHParameterInterface.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef PHPARAMETER_PHPARAMETERINTERFACE_H
4
#define PHPARAMETER_PHPARAMETERINTERFACE_H
5
6
#include <map>
7
#include <string>
8
9
class
PHCompositeNode
;
10
class
PHParameters
;
11
12
class
PHParameterInterface
13
{
14
public
:
15
PHParameterInterface
(
const
std::string &
name
);
16
// PHParameterInterface contains pointer to memory
17
// copy ctor needs explicit implementation, do just delete it here
18
PHParameterInterface
(
const
PHParameterInterface
&) =
delete
;
19
20
virtual
~PHParameterInterface
() {}
21
22
void
set_paramname
(
const
std::string &name);
23
virtual
void
SetDefaultParameters
() = 0;
24
25
// Get/Set parameters from macro
26
void
set_double_param
(
const
std::string &name,
const
double
dval);
27
double
get_double_param
(
const
std::string &name)
const
;
28
void
set_int_param
(
const
std::string &name,
const
int
ival);
29
int
get_int_param
(
const
std::string &name)
const
;
30
void
set_string_param
(
const
std::string &name,
const
std::string &sval);
31
std::string
get_string_param
(
const
std::string &name)
const
;
32
33
void
UpdateParametersWithMacro
();
34
void
SaveToNodeTree
(
PHCompositeNode
*runNode,
const
std::string &nodename);
35
void
PutOnParNode
(
PHCompositeNode
*parNode,
const
std::string &nodename);
36
37
protected
:
38
void
set_default_double_param
(
const
std::string &name,
const
double
dval);
39
void
set_default_int_param
(
const
std::string &name,
const
int
ival);
40
void
set_default_string_param
(
const
std::string &name,
const
std::string &sval);
41
void
InitializeParameters
();
42
43
private
:
44
PHParameters
*
m_Params
=
nullptr
;
45
std::map<const std::string, double>
m_DoubleParMap
;
46
std::map<const std::string, int>
m_IntParMap
;
47
std::map<const std::string, std::string>
m_StringParMap
;
48
49
std::map<const std::string, double>
m_DefaultDoubleParMap
;
50
std::map<const std::string, int>
m_DefaultIntParMap
;
51
std::map<const std::string, std::string>
m_DefaultStringParMap
;
52
};
53
54
#endif // PHPARAMETER_PHPARAMETERINTERFACE_H
fun4all_coresoftware
blob
master
offline
database
PHParameter
PHParameterInterface.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:42
using
1.8.2 with
EIC GitHub integration