Fireworks
Core
interface
FWItemValueGetter.h
Go to the documentation of this file.
1
#ifndef Fireworks_Core_FWItemValueGetter_h
2
#define Fireworks_Core_FWItemValueGetter_h
3
// -*- C++ -*-
4
//
5
// Package: Core
6
// Class : FWItemValueGetter
7
//
16
//
17
// Original Author: Chris Jones
18
// Created: Sun Nov 30 16:14:58 EST 2008
19
//
20
21
#include <string>
22
#include <vector>
23
24
#include "Rtypes.h"
25
#include "
FWCore/Reflection/interface/TypeWithDict.h
"
26
27
#include "
CommonTools/Utils/interface/SelectorPtr.h
"
28
#include "
CommonTools/Utils/interface/SelectorBase.h
"
29
#include "
CommonTools/Utils/interface/ExpressionPtr.h
"
30
#include "
CommonTools/Utils/interface/ExpressionBase.h
"
31
32
class
FWItemValueGetter
{
33
public
:
34
FWItemValueGetter
(
const
edm::TypeWithDict
&,
const
std::string
& iPurpose);
35
double
valueFor
(
const
void
*,
int
idx
)
const
;
36
UInt_t
precision
(
int
idx
)
const
;
37
std::vector<std::string>
getTitles
()
const
;
38
int
numValues
()
const
;
39
40
const
std::string
&
getToolTip
(
const
void
* iObject)
const
;
41
42
private
:
43
struct
Entry
{
44
reco::parser::ExpressionPtr
m_expr
;
45
std::string
m_expression
;
46
std::string
m_unit
;
47
std::string
m_title
;
48
UInt_t
m_precision
;
49
50
Entry
(
reco::parser::ExpressionPtr
iExpr,
std::string
iExpression,
std::string
iUnit,
std::string
iTitle,
int
iPrec)
51
:
m_expr
(iExpr),
m_expression
(iExpression),
m_unit
(iUnit),
m_title
(iTitle),
m_precision
(iPrec) {}
52
};
53
54
bool
addEntry
(
std::string
iExpression,
int
iPrec = 2,
std::string
iTitle =
""
,
std::string
iUnit =
""
);
55
56
typedef
std::vector<Entry>
Entries_t
;
57
Entries_t::const_iterator
Entries_i
;
58
59
Entries_t
m_entries
;
60
edm::TypeWithDict
m_type
;
61
62
int
m_titleWidth
;
63
};
64
65
#endif
FWItemValueGetter::Entry::Entry
Entry(reco::parser::ExpressionPtr iExpr, std::string iExpression, std::string iUnit, std::string iTitle, int iPrec)
Definition:
FWItemValueGetter.h:50
FWItemValueGetter::numValues
int numValues() const
Definition:
FWItemValueGetter.cc:149
ExpressionBase.h
FWItemValueGetter::Entries_i
Entries_t::const_iterator Entries_i
Definition:
FWItemValueGetter.h:57
FWItemValueGetter
Definition:
FWItemValueGetter.h:32
heavyIonCSV_trainingSettings.idx
idx
Definition:
heavyIonCSV_trainingSettings.py:5
SelectorBase.h
FWItemValueGetter::Entry::m_title
std::string m_title
Definition:
FWItemValueGetter.h:47
FWItemValueGetter::addEntry
bool addEntry(std::string iExpression, int iPrec=2, std::string iTitle="", std::string iUnit="")
Definition:
FWItemValueGetter.cc:103
reco::parser::ExpressionPtr
std::shared_ptr< ExpressionBase > ExpressionPtr
Definition:
ExpressionBase.h:25
FWItemValueGetter::FWItemValueGetter
FWItemValueGetter(const edm::TypeWithDict &, const std::string &iPurpose)
Definition:
FWItemValueGetter.cc:34
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
FWItemValueGetter::Entry::m_unit
std::string m_unit
Definition:
FWItemValueGetter.h:46
TypeWithDict.h
SelectorPtr.h
FWItemValueGetter::m_titleWidth
int m_titleWidth
Definition:
FWItemValueGetter.h:62
FWItemValueGetter::precision
UInt_t precision(int idx) const
Definition:
FWItemValueGetter.cc:137
FWItemValueGetter::getTitles
std::vector< std::string > getTitles() const
Definition:
FWItemValueGetter.cc:139
FWItemValueGetter::m_entries
Entries_t m_entries
Definition:
FWItemValueGetter.h:59
FWItemValueGetter::getToolTip
const std::string & getToolTip(const void *iObject) const
Definition:
FWItemValueGetter.cc:152
FWItemValueGetter::m_type
edm::TypeWithDict m_type
Definition:
FWItemValueGetter.h:60
ExpressionPtr.h
FWItemValueGetter::Entries_t
std::vector< Entry > Entries_t
Definition:
FWItemValueGetter.h:56
FWItemValueGetter::Entry::m_precision
UInt_t m_precision
Definition:
FWItemValueGetter.h:48
FWItemValueGetter::Entry
Definition:
FWItemValueGetter.h:43
edm::TypeWithDict
Definition:
TypeWithDict.h:38
FWItemValueGetter::Entry::m_expr
reco::parser::ExpressionPtr m_expr
Definition:
FWItemValueGetter.h:44
FWItemValueGetter::valueFor
double valueFor(const void *, int idx) const
Definition:
FWItemValueGetter.cc:131
FWItemValueGetter::Entry::m_expression
std::string m_expression
Definition:
FWItemValueGetter.h:45
Generated for CMSSW Reference Manual by
1.8.14