FdChannelMappingManager.h
Go to the documentation of this file.
1 #ifndef _sdet_FdChannelMappingManager_h_
2 #define _sdet_FdChannelMappingManager_h_
3 
11 #include <det/VManager.h>
12 #include <det/ValidityStamp.h>
13 
14 #include <vector>
15 #include <string>
16 #include <set>
17 #include <map>
18 #include <utility>
19 
20 
21 namespace fdet {
22 
32 
33  public:
35  virtual ~FdChannelMappingManager();
36 
39  //VMANAGER_GETDATA_NOTFOUND(unsigned long long int)
40  VMANAGER_GETDATA_NOTFOUND(std::string)
41  VMANAGER_GETDATA_NOTFOUND(std::list<int>)
42  VMANAGER_GETDATA_NOTFOUND(std::list<std::pair<int, int> >)
43  VMANAGER_GETDATA_NOTFOUND(std::vector<double>)
44  VMANAGER_GETDATA_NOTFOUND(std::vector<int>)
45  VMANAGER_GETDATA_NOTFOUND(std::vector<std::string>)
46  VMANAGER_GETDATA_NOTFOUND(std::vector<bool>)
47  VMANAGER_GETDATA_NOTFOUND(std::list<double>)
48  VMANAGER_GETDATA_NOTFOUND(std::list<std::string>)
51  VMANAGER_GETDATA_NOTFOUND(std::map<int, utl::TabulatedFunction>)
52  VMANAGER_GETDATA_NOTFOUND(std::map<std::string, double>)
53 
55 
56  void Init(const std::string& configLink);
57 
58  private:
59  Status GetMapping(int& returnData,
60  const std::string& componentProperty,
61  const std::string& componentName,
62  const IndexMap& componentIndex) const;
63 
64  bool FillMaps();
65 
67 
68  std::set<std::string> fPropertiesList;
69 
70  typedef std::map<int, int> Mapping;
71  typedef Mapping::iterator MappingIterator;
72  typedef Mapping::const_iterator ConstMappingIterator;
73 
74  struct Period {
78  };
79 
80  typedef std::list<Period> PeriodContainer;
81  typedef PeriodContainer::iterator PeriodIterator;
82  typedef PeriodContainer::const_iterator ConstPeriodIterator;
83 
85 
86  };
87 
88 }
89 
90 
91 #endif
92 
93 // Configure (x)emacs for this file ...
94 // Local Variables:
95 // mode: c++
96 // compile-command: "make -C .. -k"
97 // End:
void Init(const std::string &configLink)
Manager Initialization. configLink is the CentralConfig hook for the configuration file...
Class to hold collection (x,y) points and provide interpolation between them.
Interface for detector managers.
Definition: VManager.h:115
VMANAGER_GETDATA_HANDLE_DENIED std::set< std::string > fPropertiesList
Class to manage Fd camera channel-pixel mapping.
PeriodContainer::iterator PeriodIterator
#define VMANAGER_GETDATA_CALL(_GetData_, _T_...)
Definition: VManager.h:59
Mapping::const_iterator ConstMappingIterator
PeriodContainer::const_iterator ConstPeriodIterator
Class to hold collection (x,y) points and provide interpolation between them, where y are complex num...
#define VMANAGER_GETDATA_HANDLE_DENIED
Definition: VManager.h:75
Status GetMapping(int &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const
std::map< std::string, std::string > IndexMap
Definition: VManager.h:133
Object to keep track of whether data are valid, or have expired.
Definition: ValidityStamp.h:29
#define VMANAGER_GETDATA_NOTFOUND(_T_...)
Definition: VManager.h:41
Status
Specifies success or (eventually) various possible failure modes.
Definition: VManager.h:127

, generated on Tue Sep 26 2023.