/*! * @file SCondition.h * @author Dan Saunders * @date 12 Dec 2016 */ #ifndef ISCondition_h_ #define ISCondition_h_ #include //! Container for holding info about a single condition. /*! Accessible via the clipboard, and is updated as a S2 run progresses. Only * one instance of this class should be needed per condition per Saffron2 run. * When using sw triggers, conditions get updated upon opening a new file. * When used in online SHLT mode, the DAQ will provide info via the datastream. * Naming of these variables is according to the conditions tree found in sw * trigger mode. */ class SCondition { public: SCondition(std::string n){ name = n; clear(); } std::string name; //! Label of the condition. Also the key. long long updateCycle; //! S2 cycle updated. time_t updateTime; //! Timestamp of update (zero if unavailable). std::string msg; std::vector vals; void print() { std::cout<<"[Condition]: Name: "<