11 #include <fwk/CentralConfig.h>
12 #include <utl/Reader.h>
13 #include <utl/TimeStamp.h>
14 #include <utl/UTCDateTime.h>
15 #include <utl/ErrorLogger.h>
16 #include <det/Detector.h>
17 #include <fdet/FDetector.h>
19 #include <fdet/FdAlwaysUpManager.h>
35 msg <<
"FdAlwaysUpManager initialized\n";
37 fAvailableComponents.insert(
"has_fduptime");
38 fAvailableComponents.insert(
"uptime_gpsStart");
39 fAvailableComponents.insert(
"uptime_gpsStop");
40 fAvailableComponents.insert(
"uptime_fraction");
41 fAvailableComponents.insert(
"veto_fraction");
42 fAvailableComponents.insert(
"status");
48 fIsInitialized =
true;
54 FdAlwaysUpManager::GetStatus(
int& returnData,
55 const string& componentProperty,
68 if (fAvailableComponents.find(componentProperty) == fAvailableComponents.end())
71 if (componentProperty ==
"has_fduptime") {
73 return VManager::eFound;
76 if (componentProperty ==
"status") {
78 return VManager::eFound;
81 if (componentProperty ==
"uptime_gpsStart") {
87 if (componentProperty ==
"uptime_gpsStop") {
98 FdAlwaysUpManager::GetUpFraction(
double& returnData,
99 const string& componentProperty,
112 if (fAvailableComponents.find(componentProperty) == fAvailableComponents.end())
115 if (componentProperty ==
"has_fduptime") {
117 return VManager::eFound;
119 if (componentProperty ==
"uptime_fraction") {
124 else if (componentProperty ==
"veto_fraction") {
default FD up time manger: always on !
#define INFO(message)
Macro for logging informational messages.
void Init()
Initialise the registry.
unsigned long GetGPSSecond() const
GPS second.
#define REGISTER_F_MANAGER(_name_, _Type_)
std::map< std::string, std::string > IndexMap
TimeStamp GetTimeStamp() const
Status
Specifies success or (eventually) various possible failure modes.