Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
nutools
old
EventDisplayBase
ServiceTable.h
Go to the documentation of this file.
1
///
2
/// \file EventDisplayBase/ServiceTable.h
3
/// \brief Interface to services and their configurations
4
/// \author messier@indiana.edu
5
///
6
#ifndef EVDB_SERVICETABLE_H
7
#define EVDB_SERVICETABLE_H
8
#include "
cetlib/exempt_ptr.h
"
9
#include "
fhiclcpp/ParameterSet.h
"
10
#include "nutools/EventDisplayBase/Reconfigurable.h"
11
12
#include <vector>
13
#include <map>
14
#include <string>
15
#include <tuple>
16
17
namespace
evdb
{
18
19
static
constexpr
int
kDRAWING_SERVICE
= 1;
20
static
constexpr
int
kEXPERIMENT_SERVICE
= 2;
21
22
///
23
/// \brief Information about a service required by the event display
24
///
25
struct
ServiceTableEntry
{
26
std::string
fName
;
27
fhicl::ParameterSet
fCurrentParamSet
;
28
std::string
fParamSet
;
29
int
fCategory
;
30
cet::exempt_ptr<Reconfigurable>
fService
;
31
};
32
33
///
34
/// \brief Collection of Services used in the event display
35
///
36
class
ServiceTable
{
37
public
:
38
static
ServiceTable
& Instance();
39
40
void
RegisterService(
fhicl::ParameterSet
const
&
ps
,
cet::exempt_ptr<Reconfigurable>
s
);
41
static
bool
IsDrawingService(
std::string
const
& s);
42
43
void
Edit(
unsigned
int
i);
44
void
ApplyEdits();
45
46
static
void
OverrideCategory(
std::string
const
& s,
int
cat);
47
fhicl::ParameterSet
const
& GetParameterSet(
unsigned
int
i)
const
;
48
49
public
:
50
std::vector<ServiceTableEntry>
fServices
;
51
52
private
:
53
static
std::map<std::string, int>
fgCategoryOverrides
;
54
ServiceTable
();
55
};
56
}
57
58
#endif
59
////////////////////////////////////////////////////////////////////////
evdb::kDRAWING_SERVICE
static constexpr int kDRAWING_SERVICE
Definition:
ServiceTable.h:19
genie::units::ps
static const double ps
Definition:
Units.h:103
string
std::string string
Definition:
nybbler.cc:12
evdb::ServiceTable
Collection of Services used in the event display.
Definition:
ServiceTable.h:36
evdb::ServiceTableEntry::fService
cet::exempt_ptr< Reconfigurable > fService
Definition:
ServiceTable.h:30
evdb::ServiceTable::fgCategoryOverrides
static std::map< std::string, int > fgCategoryOverrides
Definition:
ServiceTable.h:53
evdb
Manage all things related to colors for the event display.
Definition:
Edge3DDrawer_tool.cc:10
ParameterSet.h
evdb::ServiceTableEntry::fParamSet
std::string fParamSet
Definition:
ServiceTable.h:28
evdb::ServiceTableEntry::fName
std::string fName
Definition:
ServiceTable.h:26
evdb::kEXPERIMENT_SERVICE
static constexpr int kEXPERIMENT_SERVICE
Definition:
ServiceTable.h:20
evdb::ServiceTable::fServices
std::vector< ServiceTableEntry > fServices
Definition:
ServiceTable.h:50
cet::exempt_ptr
Definition:
exempt_ptr.h:41
evdb::ServiceTableEntry::fCurrentParamSet
fhicl::ParameterSet fCurrentParamSet
Definition:
ServiceTable.h:27
evdb::ServiceTableEntry::fCategory
int fCategory
Definition:
ServiceTable.h:29
evdb::ServiceTableEntry
Information about a service required by the event display.
Definition:
ServiceTable.h:25
exempt_ptr.h
s
static QCString * s
Definition:
config.cpp:1042
fhicl::ParameterSet
Definition:
ParameterSet.h:34
Generated by
1.8.11