1 #ifndef _ots_IterateTable_h_
2 #define _ots_IterateTable_h_
4 #include "otsdaq/TableCore/TableBase.h"
29 std::vector<CommandTarget> targets_;
30 std::map<std::string , std::string > params_;
33 std::vector<IterateTable::Command> getPlanCommands(
ConfigurationManager* configManager,
const std::string& plan)
const;
35 static const std::string COMMAND_BEGIN_LABEL;
36 static const std::string COMMAND_CHOOSE_FSM;
37 static const std::string COMMAND_CONFIGURE_ACTIVE_GROUP;
38 static const std::string COMMAND_CONFIGURE_ALIAS;
39 static const std::string COMMAND_CONFIGURE_GROUP;
40 static const std::string COMMAND_EXECUTE_FE_MACRO;
41 static const std::string COMMAND_EXECUTE_MACRO;
42 static const std::string COMMAND_MODIFY_ACTIVE_GROUP;
43 static const std::string COMMAND_REPEAT_LABEL;
44 static const std::string COMMAND_RUN;
46 static const std::string ITERATE_TABLE;
47 static const std::string PLAN_TABLE;
48 static const std::string TARGET_TABLE;
50 static const std::map<std::string, std::string> commandToTableMap_;
51 static std::map<std::string, std::string> createCommandToTableMap()
53 std::map<std::string, std::string> m;
54 m[COMMAND_BEGIN_LABEL] =
"IterationCommandBeginLabelTable";
55 m[COMMAND_CHOOSE_FSM] =
"IterationCommandChooseFSMTable";
56 m[COMMAND_CONFIGURE_ACTIVE_GROUP] =
"";
57 m[COMMAND_CONFIGURE_ALIAS] =
"IterationCommandConfigureAliasTable";
58 m[COMMAND_CONFIGURE_GROUP] =
"IterationCommandConfigureGroupTable";
59 m[COMMAND_EXECUTE_FE_MACRO] =
"IterationCommandExecuteFEMacroTable";
60 m[COMMAND_EXECUTE_MACRO] =
"IterationCommandExecuteMacroTable";
61 m[COMMAND_MODIFY_ACTIVE_GROUP] =
"IterationCommandModifyGroupTable";
62 m[COMMAND_REPEAT_LABEL] =
"IterationCommandRepeatLabelTable";
63 m[COMMAND_RUN] =
"IterationCommandRunTable";
69 const std::string Label_ =
"Label";
70 } commandBeginLabelParams_;
73 const std::string NameOfFSM_ =
"NameOfStateMachine";
74 } commandChooseFSMParams_;
78 } commandConfigureActiveParams_;
81 const std::string SystemAlias_ =
"SystemAlias";
82 } commandConfigureAliasParams_;
85 const std::string GroupName_ =
"GroupName";
86 const std::string GroupKey_ =
"GroupKey";
87 } commandConfigureGroupParams_;
91 const std::string MacroName_ =
"MacroName";
92 const std::string MacroParameterLink_ =
"LinkToMacroDimensionalLoopTable";
93 const std::string EnableSavingOutput_ =
"EnableSavingOutputsToFile";
94 const std::string OutputFilePath_ =
"OutputFilePath";
95 const std::string OutputFileRadix_ =
"OutputFileRadix";
97 const std::string MacroArgumentString_ =
"MacroArgumentString";
100 } commandExecuteMacroParams_;
104 const std::string DoTrackGroupChanges_ =
"DoTrackGroupChanges";
105 const std::string RelativePathToField_ =
"RelativePathToField";
106 const std::string FieldStartValue_ =
"FieldStartValue";
107 const std::string FieldIterationStepSize_ =
"FieldIterationStepSize";
108 } commandModifyActiveParams_;
111 const std::string Label_ =
"Label";
112 const std::string NumberOfRepetitions_ =
"NumberOfRepetitions";
113 } commandRepeatLabelParams_;
116 const std::string WaitOnRunningThreads_ =
"WaitForAllFrontEndsRunningThread";
117 const std::string DurationInSeconds_ =
"DurationInSeconds";
123 const std::string Tables_ =
"CSVTargetTables";
124 const std::string UIDs_ =
"CSVTargetUIDs";
128 const std::string TargetsLink_ =
"LinkToTargets";
129 const std::string TargetsLinkGroupID_ =
"LinkToTargetsGroupID";
131 } commandTargetCols_;
134 const std::string GroupID_ =
"IterationTargetGroupID";
135 const std::string TargetLink_ =
"LinkToTarget";
136 const std::string TargetLinkUID_ =
"LinkToTargetUID";
142 const std::string Priority_ =
"DimensionalLoopPriority";
143 const std::string NumberOfIterations_ =
"NumberOfIterations";
144 const std::string ParamLink_ =
"LinkToDimensionalLoopParameterTable";
148 const std::string Name_ =
"ParameterName";
149 const std::string Value_ =
"ParameterInitialValue";
150 const std::string Step_ =
"ParameterStepSize";
165 const std::string PlanLink_ =
"LinkToIterationPlanTable";
170 const std::string Status_ = TableViewColumnInfo::COL_NAME_STATUS;
171 const std::string GroupID_ =
"IterationPlanGroupID";
172 const std::string CommandLink_ =
"LinkToCommandUID";
173 const std::string CommandType_ =
"CommandType";