TopQuarkAnalysis
TopHitFit
interface
Defaults.h
Go to the documentation of this file.
1
//
2
//
3
// File: hitfit/Defaults.h
4
// Purpose: Define an interface for getting parameter settings.
5
// Created: Nov, 2000, sss.
6
//
7
// This defines a very simple abstract interface for retrieving settings
8
// for named parameters. Using this ensures that the hitfit code doesn't
9
// have to depend on something like rcp. There is a lightweight concrete
10
// implementation of this interface, Defaults_Text, which can be used
11
// for standalone applications. If this code gets used with the D0 framework,
12
// a Defaults_RCP can be provided too.
13
//
14
// CMSSW File : interface/Defaults.h
15
// Original Author : Scott Stuart Snyder <snyder@bnl.gov> for D0
16
// Imported to CMSSW by Haryo Sumowidagdo <Suharyo.Sumowidagdo@cern.ch>
17
//
18
46
#ifndef HITFIT_DEFAULTS_H
47
#define HITFIT_DEFAULTS_H
48
49
#include <string>
50
51
namespace
hitfit
{
52
57
class
Defaults
58
//
59
// Purpose: Define an interface for getting parameter settings.
60
//
61
{
62
public
:
63
// Constructor, destructor.
64
68
Defaults
() {}
69
73
virtual
~Defaults
() {}
74
75
// Test to see if parameter NAME exists.
82
virtual
bool
exists
(
std::string
name
)
const
= 0;
83
84
// Get the value of NAME as an integer.
91
virtual
int
get_int
(
std::string
name
)
const
= 0;
92
93
// Get the value of NAME as a boolean.
100
virtual
bool
get_bool
(
std::string
name
)
const
= 0;
101
102
// Get the value of NAME as a float.
110
virtual
double
get_float
(
std::string
name
)
const
= 0;
111
112
// Get the value of NAME as a string.
119
virtual
std::string
get_string
(
std::string
name
)
const
= 0;
120
};
121
122
}
// namespace hitfit
123
124
#endif // not HITFIT_DEFAULTS_H
hitfit
Definition:
Base_Constrainer.h:43
hitfit::Defaults::get_bool
virtual bool get_bool(std::string name) const =0
hitfit::Defaults::exists
virtual bool exists(std::string name) const =0
hitfit::Defaults::get_int
virtual int get_int(std::string name) const =0
hitfit::Defaults::~Defaults
virtual ~Defaults()
Definition:
Defaults.h:73
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
hitfit::Defaults::get_float
virtual double get_float(std::string name) const =0
hitfit::Defaults::get_string
virtual std::string get_string(std::string name) const =0
hitfit::Defaults
Define an interface for getting parameter settings.
Definition:
Defaults.h:57
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
hitfit::Defaults::Defaults
Defaults()
Definition:
Defaults.h:68
Generated for CMSSW Reference Manual by
1.8.16