Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
// $Id: FWItemValueGetter.h,v 1.8 2012/08/28 22:25:42 wmtan Exp $
20
//
21
22
#include <string>
23
#include <vector>
24
25
#include "Rtypes.h"
26
#include "
FWCore/Utilities/interface/TypeWithDict.h
"
27
28
#include "
CommonTools/Utils/src/SelectorPtr.h
"
29
#include "
CommonTools/Utils/src/SelectorBase.h
"
30
#include "
CommonTools/Utils/src/ExpressionPtr.h
"
31
#include "
CommonTools/Utils/src/ExpressionBase.h
"
32
33
34
class
FWItemValueGetter
35
{
36
public
:
37
FWItemValueGetter
(
const
edm::TypeWithDict
&,
const
std::string
& iPurpose);
38
double
valueFor
(
const
void
*,
int
idx
)
const
;
39
UInt_t
precision
(
int
idx)
const
;
40
std::vector<std::string>
getTitles
()
const
;
41
int
numValues
()
const
;
42
43
const
std::string
&
getToolTip
(
const
void
* iObject)
const
;
44
45
46
private
:
47
struct
Entry
{
48
reco::parser::ExpressionPtr
m_expr
;
49
std::string
m_expression
;
50
std::string
m_unit
;
51
std::string
m_title
;
52
UInt_t
m_precision
;
53
54
Entry
(
reco::parser::ExpressionPtr
iExpr,
std::string
iExpression,
std::string
iUnit,
std::string
iTitle,
int
iPrec) :
55
m_expr
(iExpr),
m_expression
(iExpression),
m_unit
(iUnit),
m_title
(iTitle),
m_precision
(iPrec) {}
56
};
57
58
bool
addEntry
(
std::string
iExpression,
int
iPrec = 2,
std::string
iTitle =
""
,
std::string
iUnit =
""
);
59
60
typedef
std::vector<Entry >
Entries_t
;
61
Entries_t::const_iterator
Entries_i
;
62
63
Entries_t
m_entries
;
64
edm::TypeWithDict
m_type
;
65
66
int
m_titleWidth
;
67
68
69
};
70
71
#endif
FWItemValueGetter::Entry::Entry
Entry(reco::parser::ExpressionPtr iExpr, std::string iExpression, std::string iUnit, std::string iTitle, int iPrec)
Definition:
FWItemValueGetter.h:54
ExpressionBase.h
FWItemValueGetter::Entries_i
Entries_t::const_iterator Entries_i
Definition:
FWItemValueGetter.h:61
FWItemValueGetter
Definition:
FWItemValueGetter.h:34
SelectorBase.h
FWItemValueGetter::Entry::m_title
std::string m_title
Definition:
FWItemValueGetter.h:51
FWItemValueGetter::addEntry
bool addEntry(std::string iExpression, int iPrec=2, std::string iTitle="", std::string iUnit="")
Definition:
FWItemValueGetter.cc:91
FWItemValueGetter::FWItemValueGetter
FWItemValueGetter(const edm::TypeWithDict &, const std::string &iPurpose)
Definition:
FWItemValueGetter.cc:36
FWItemValueGetter::numValues
int numValues() const
Definition:
FWItemValueGetter.cc:153
FWItemValueGetter::Entries_t
std::vector< Entry > Entries_t
Definition:
FWItemValueGetter.h:60
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:50
TypeWithDict.h
SelectorPtr.h
FWItemValueGetter::m_titleWidth
int m_titleWidth
Definition:
FWItemValueGetter.h:66
FWItemValueGetter::m_entries
Entries_t m_entries
Definition:
FWItemValueGetter.h:63
FWItemValueGetter::m_type
edm::TypeWithDict m_type
Definition:
FWItemValueGetter.h:64
evf::UInt_t
unsigned int UInt_t
Definition:
FUTypes.h:12
ExpressionPtr.h
FWItemValueGetter::getTitles
std::vector< std::string > getTitles() const
Definition:
FWItemValueGetter.cc:141
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:127
FWItemValueGetter::Entry::m_precision
UInt_t m_precision
Definition:
FWItemValueGetter.h:52
FWItemValueGetter::getToolTip
const std::string & getToolTip(const void *iObject) const
Definition:
FWItemValueGetter.cc:160
FWItemValueGetter::Entry
Definition:
FWItemValueGetter.h:47
edm::TypeWithDict
Definition:
TypeWithDict.h:45
FWItemValueGetter::Entry::m_expr
reco::parser::ExpressionPtr m_expr
Definition:
FWItemValueGetter.h:48
FWItemValueGetter::precision
UInt_t precision(int idx) const
Definition:
FWItemValueGetter.cc:135
FWItemValueGetter::Entry::m_expression
std::string m_expression
Definition:
FWItemValueGetter.h:49
Generated for CMSSW Reference Manual by
1.8.5