Fireworks
Core
interface
FWGenericParameterWithRange.h
Go to the documentation of this file.
1
#ifndef Fireworks_Core_FWGenericParameterWithRange_h
2
#define Fireworks_Core_FWGenericParameterWithRange_h
3
// -*- C++ -*-
4
//
5
// Package: Core
6
// Class : FWGenericParameterWithRange
7
//
16
//
17
// Original Author: Chris Jones
18
// Created: Fri Mar 7 14:36:34 EST 2008
19
//
20
21
// user include files
22
#include "
Fireworks/Core/interface/FWGenericParameter.h
"
23
24
// forward declarations
25
26
template
<
class
T>
27
class
FWGenericParameterWithRange
:
public
FWGenericParameter
<T> {
28
public
:
29
FWGenericParameterWithRange
(
void
) :
FWGenericParameter
<
T
>(),
m_min
(-1),
m_max
(-1) {}
30
31
FWGenericParameterWithRange
(
32
FWParameterizable
* iParent,
const
std::string
& iName,
const
T
& iDefault =
T
(),
T
iMin = -1,
T
iMax = -1)
33
:
FWGenericParameter
<
T
>(iParent, iName, iDefault),
m_min
(iMin),
m_max
(iMax) {}
34
35
template
<
class
K>
36
FWGenericParameterWithRange
(
FWParameterizable
* iParent,
37
const
std::string
& iName,
38
K iCallback,
39
const
T
& iDefault =
T
(),
40
T
iMin = -1,
41
T
iMax = -1)
42
:
FWGenericParameter
<
T
>(iParent, iName, iCallback, iDefault),
m_min
(iMin),
m_max
(iMax) {}
43
44
// ---------- const member functions ---------------------
45
46
T
min
()
const
{
return
m_min
; }
47
T
max
()
const
{
return
m_max
; }
48
49
private
:
50
T
m_min
;
51
T
m_max
;
52
};
53
54
#endif
FWGenericParameterWithRange
Definition:
FWGenericParameterWithRange.h:27
FWGenericParameterWithRange::max
T max() const
Definition:
FWGenericParameterWithRange.h:47
FWGenericParameterWithRange::m_max
T m_max
Definition:
FWGenericParameterWithRange.h:51
FWGenericParameterWithRange::FWGenericParameterWithRange
FWGenericParameterWithRange(FWParameterizable *iParent, const std::string &iName, const T &iDefault=T(), T iMin=-1, T iMax=-1)
Definition:
FWGenericParameterWithRange.h:31
FWGenericParameter
Definition:
FWGenericParameter.h:31
FWGenericParameterWithRange::FWGenericParameterWithRange
FWGenericParameterWithRange(FWParameterizable *iParent, const std::string &iName, K iCallback, const T &iDefault=T(), T iMin=-1, T iMax=-1)
Definition:
FWGenericParameterWithRange.h:36
FWGenericParameterWithRange::min
T min() const
Definition:
FWGenericParameterWithRange.h:46
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
FWGenericParameterWithRange::FWGenericParameterWithRange
FWGenericParameterWithRange(void)
Definition:
FWGenericParameterWithRange.h:29
FWParameterizable
Definition:
FWParameterizable.h:29
FWGenericParameterWithRange::m_min
T m_min
Definition:
FWGenericParameterWithRange.h:50
FWGenericParameter.h
T
long double T
Definition:
Basic3DVectorLD.h:48
Generated for CMSSW Reference Manual by
1.8.16