test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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/Utilities/interface/TypeWithDict.h
"
26
27
#include "
CommonTools/Utils/src/SelectorPtr.h
"
28
#include "
CommonTools/Utils/src/SelectorBase.h
"
29
#include "
CommonTools/Utils/src/ExpressionPtr.h
"
30
#include "
CommonTools/Utils/src/ExpressionBase.h
"
31
32
33
class
FWItemValueGetter
34
{
35
public
:
36
FWItemValueGetter
(
const
edm::TypeWithDict
&,
const
std::string
& iPurpose);
37
double
valueFor
(
const
void
*,
int
idx
)
const
;
38
UInt_t
precision
(
int
idx)
const
;
39
std::vector<std::string>
getTitles
()
const
;
40
int
numValues
()
const
;
41
42
const
std::string
&
getToolTip
(
const
void
* iObject)
const
;
43
44
45
private
:
46
struct
Entry
{
47
reco::parser::ExpressionPtr
m_expr
;
48
std::string
m_expression
;
49
std::string
m_unit
;
50
std::string
m_title
;
51
UInt_t
m_precision
;
52
53
Entry
(
reco::parser::ExpressionPtr
iExpr,
std::string
iExpression,
std::string
iUnit,
std::string
iTitle,
int
iPrec) :
54
m_expr
(iExpr),
m_expression
(iExpression),
m_unit
(iUnit),
m_title
(iTitle),
m_precision
(iPrec) {}
55
};
56
57
bool
addEntry
(
std::string
iExpression,
int
iPrec = 2,
std::string
iTitle =
""
,
std::string
iUnit =
""
);
58
59
typedef
std::vector<Entry >
Entries_t
;
60
Entries_t::const_iterator
Entries_i
;
61
62
Entries_t
m_entries
;
63
edm::TypeWithDict
m_type
;
64
65
int
m_titleWidth
;
66
67
68
};
69
70
#endif
FWItemValueGetter::Entry::Entry
Entry(reco::parser::ExpressionPtr iExpr, std::string iExpression, std::string iUnit, std::string iTitle, int iPrec)
Definition:
FWItemValueGetter.h:53
ExpressionBase.h
FWItemValueGetter::Entries_i
Entries_t::const_iterator Entries_i
Definition:
FWItemValueGetter.h:60
FWItemValueGetter
Definition:
FWItemValueGetter.h:33
SelectorBase.h
FWItemValueGetter::Entry::m_title
std::string m_title
Definition:
FWItemValueGetter.h:50
FWItemValueGetter::addEntry
bool addEntry(std::string iExpression, int iPrec=2, std::string iTitle="", std::string iUnit="")
Definition:
FWItemValueGetter.cc:104
FWItemValueGetter::FWItemValueGetter
FWItemValueGetter(const edm::TypeWithDict &, const std::string &iPurpose)
Definition:
FWItemValueGetter.cc:36
FWItemValueGetter::numValues
int numValues() const
Definition:
FWItemValueGetter.cc:166
FWItemValueGetter::Entries_t
std::vector< Entry > Entries_t
Definition:
FWItemValueGetter.h:59
reco::parser::ExpressionPtr
boost::shared_ptr< ExpressionBase > ExpressionPtr
Definition:
ExpressionBase.h:24
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
FWItemValueGetter::Entry::m_unit
std::string m_unit
Definition:
FWItemValueGetter.h:49
TypeWithDict.h
SelectorPtr.h
FWItemValueGetter::m_titleWidth
int m_titleWidth
Definition:
FWItemValueGetter.h:65
FWItemValueGetter::m_entries
Entries_t m_entries
Definition:
FWItemValueGetter.h:62
FWItemValueGetter::m_type
edm::TypeWithDict m_type
Definition:
FWItemValueGetter.h:63
ExpressionPtr.h
FWItemValueGetter::getTitles
std::vector< std::string > getTitles() const
Definition:
FWItemValueGetter.cc:154
customizeTrackingMonitorSeedNumber.idx
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
Definition:
customizeTrackingMonitorSeedNumber.py:15
FWItemValueGetter::valueFor
double valueFor(const void *, int idx) const
Definition:
FWItemValueGetter.cc:140
FWItemValueGetter::Entry::m_precision
UInt_t m_precision
Definition:
FWItemValueGetter.h:51
FWItemValueGetter::getToolTip
const std::string & getToolTip(const void *iObject) const
Definition:
FWItemValueGetter.cc:173
FWItemValueGetter::Entry
Definition:
FWItemValueGetter.h:46
edm::TypeWithDict
Definition:
TypeWithDict.h:45
FWItemValueGetter::Entry::m_expr
reco::parser::ExpressionPtr m_expr
Definition:
FWItemValueGetter.h:47
FWItemValueGetter::precision
UInt_t precision(int idx) const
Definition:
FWItemValueGetter.cc:148
FWItemValueGetter::Entry::m_expression
std::string m_expression
Definition:
FWItemValueGetter.h:48
Generated for CMSSW Reference Manual by
1.8.5