LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ServiceTable.h
Go to the documentation of this file.
1
#ifndef EVDB_SERVICETABLE_H
7
#define EVDB_SERVICETABLE_H
8
#include "cetlib/exempt_ptr.h"
9
#include "
fhiclcpp/ParameterSet.h
"
10
#include "
nuevdb/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
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
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
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:14
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
Reconfigurable.h
Interface class to services that are intended to be reconfigurable through the event display...
evdb::ServiceTable::fServices
std::vector< ServiceTableEntry > fServices
Definition:
ServiceTable.h:50
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
fhicl::ParameterSet
Definition:
ParameterSet.h:36
nuevdb
v1_09_08
source
nuevdb
EventDisplayBase
ServiceTable.h
Generated on Thu May 2 2024 20:59:53 for LArSoft by
1.8.11