1 #include <utl/TimeStamp.h>
2 #include <utl/ErrorLogger.h>
3 #include <det/Detector.h>
4 #include <sdet/T2LifeFileManager.h>
21 fBranch.GetChild(
"directory").GetData(fT2FilesDirectory);
26 T2LifeFileManager::GetOkFlag(
int& returnData,
27 const string& componentProperty,
28 const string& componentName,
32 if (componentName ==
"is_in_acquisition" && componentProperty ==
"station_in_acquisition") {
34 const unsigned int stationId =
35 FindComponent<unsigned int>(
"stationId", componentIndex);
37 const int detTime = Detector::GetInstance().GetTime().GetGPSSecond();
39 if (detTime != fDetTime) {
44 if (fStationList.size() < stationId) {
45 INFO(
"The length of the station status vector provided from T2Life files is shorter "
46 "than station id number! Assuming the station is not T2 alive");
49 returnData = fStationList[stationId];
Class to manage T2Life files.
#define INFO(message)
Macro for logging informational messages.
void Init()
Initialise the registry.
virtual void Init(const std::string &configLink)
Manager Initialization. configLink is the CentralConfig hook for the configuration file...
#define REGISTER_S_MANAGER(_name_, _Type_)
std::map< std::string, std::string > IndexMap
const std::vector< unsigned int > & GetStationsStatusFromT2Files(unsigned int theGPSSecond)
Status
Specifies success or (eventually) various possible failure modes.