Changeset 12537 for trunk/FACT++/src
- Timestamp:
- 11/16/11 15:44:31 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilderWrapper.h
r12522 r12537 171 171 fFileFormat(FAD::kNone), fMaxRun(0), fLastOpened(0), fLastClosed(0), 172 172 fDimWriteStats ("FAD_CONTROL", imp), 173 fDimRuns ("FAD_CONTROL/RUNS", "I:5;C", ""), 174 fDimEvents ("FAD_CONTROL/EVENTS", "I:4", ""), 173 fDimRuns ("FAD_CONTROL/RUNS", "I:5;C", 174 "Run files statistics" 175 "|stats[int]:num. of open run files, min run num., max run num., lastest opened or closed run" 176 "|file[string]:filename of last opened file"), 177 fDimEvents ("FAD_CONTROL/EVENTS", "I:4", 178 "Event counts" 179 "|evtsCount[int]:Num evts cur. run, total (all run), evt ID, trig. Num"), 175 180 fDimRawData ("FAD_CONTROL/RAW_DATA", "S:1;I:1;S:1;I:1;I:2;I:40;S:1440;S:160;F", ""), 176 181 fDimEventData ("FAD_CONTROL/EVENT_DATA", "F:1440;F:1440;F:1440;F:1440", ""), 177 182 fDimFeedbackData("FAD_CONTROL/FEEDBACK_DATA", "F:1440", ""), 178 fDimFwVersion ("FAD_CONTROL/FIRMWARE_VERSION", "F:42", ""), 179 fDimRunNumber ("FAD_CONTROL/RUN_NUMBER", "I:42", ""), 180 fDimStatus ("FAD_CONTROL/STATUS", "S:42", ""), 181 fDimDNA ("FAD_CONTROL/DNA", "X:40", ""), 182 fDimTemperature ("FAD_CONTROL/TEMPERATURE", "F:82", ""), 183 fDimPrescaler ("FAD_CONTROL/PRESCALER", "S:42", ""), 184 fDimRefClock ("FAD_CONTROL/REFERENCE_CLOCK", "I:42", ""), 183 fDimFwVersion ("FAD_CONTROL/FIRMWARE_VERSION", "F:42", 184 "Firmware version number of fad boards" 185 "|firmware[float]:Version number of firmware, for each board. 40=min, 41=max"), 186 fDimRunNumber ("FAD_CONTROL/RUN_NUMBER", "I:42", 187 "Run numbers coming from FAD boards" 188 "|runNumbers[int]:current run number of each FAD board. 40=min, 41=max"), 189 fDimStatus ("FAD_CONTROL/STATUS", "S:42", 190 "Status of FAD boards" 191 "|status[bitpattern]:Status of each FAD board. Maybe buggy"), 192 fDimDNA ("FAD_CONTROL/DNA", "X:40", 193 "DNA of FAD boards" 194 "|DNA[hex]:Hex identifier of each FAD board"), 195 fDimTemperature ("FAD_CONTROL/TEMPERATURE", "F:82", 196 "FADs temperatures" 197 "|temp[deg. C]:0 global min, 1-40 min, 41 global max, 42-81 max"), 198 fDimPrescaler ("FAD_CONTROL/PRESCALER", "S:42", 199 "Trigger generator prescaler of fad boards" 200 "|prescaler[int]:Trigger generator prescaler value, for each board"), 201 fDimRefClock ("FAD_CONTROL/REFERENCE_CLOCK", "I:42", 202 "Reference clock of FAD boards" 203 "|refClocks[t]:ref clocks of FAD boards. 40=min, 41=max"), 185 204 fDimRoi ("FAD_CONTROL/REGION_OF_INTEREST", "S:2", ""), 186 fDimDac ("FAD_CONTROL/DAC", "S:336", ""), 205 fDimDac ("FAD_CONTROL/DAC", "S:336", 206 "DAC counts of each FAD board" 207 "|DAC[int]:DAC counts, sequentally DAC 0 board 0, DAC 0 board 1... (plus min max)"), 187 208 fDimDrsCalibration("FAD_CONTROL/DRS_CALIBRATION", "I:1;I:3;F:1474560;F:1474560;F:1474560;F:1474560;F:1474560;F:1474560;F:163840;F:163840", ""), 188 fDimStatistics1 ("FAD_CONTROL/STATISTICS1", "I:3;I:5;X:4;I:3;I:3;I:40;I:1;I:2;C:40;I:40;I:40;X:40", ""), 189 fDimStatistics2 ("FAD_CONTROL/STATISTICS2", "I:1;I:280;X:40;I:40;I:4;I:4;I:2;I:2;I:3;C:40", ""), 209 fDimStatistics1 ("FAD_CONTROL/STATISTICS1", "I:3;I:5;X:4;I:3;I:3;I:40;I:1;I:2;C:40;I:40;I:40;X:40", 210 "Event Builder status for GUI display" 211 "|threadInfo[int]:Number of read, proc and writes" 212 "|bufferInfo[int]:Events in buffer, incomp., comp., tot., max past cycle, total" 213 "|memInfo[int]:total buf. mem, used mem, max used, max past cycle" 214 "|EvtCnt[int]:Number of events skipped, written, with errors" 215 "|badRoi[int]:Num boards with wrong ROI in event, run or board" 216 "|badRoiBoard[int]:Num boards with wrong ROI" 217 "|deltaT[ms]:Time in ms for rates" 218 "|rateNew[int]:Number of new start events received" 219 "|numConn[int]:Number of connections per board" 220 "|errConn[int]:IO errors per board" 221 "|rateBytes[int]:Bytes read this cycle" 222 "|totBytes[int]:Bytes read (counter)"), 223 fDimStatistics2 ("FAD_CONTROL/STATISTICS2", "I:1;I:280;X:40;I:40;I:4;I:4;I:2;I:2;I:3;C:40", 224 "Event Builder status, events oriented" 225 "|reset[int]:If increased, reset all counters" 226 "|numRead[int]:How often sucessful read from N sockets per loop" 227 "|gotByte[int]:number of bytes read per board" 228 "|gotErr[int]:number of com. errors per board" 229 "|evtStat[int]:number of evts read, completed, with errors, incomplete" 230 "|procStat[int]:num. of evts proc., w probs, acc. or rej. by SW trigger" 231 "|feedStat[int]:number of evts used or rejected by feedback system" 232 "|wrtStat[int]:number of evts written to disk, with errors" 233 "|runStat[int]:number of run opened, closed, with open or close errors" 234 "|numConn[int]:number of sockets successfully opened per board"), 190 235 fDimFileFormat ("FAD_CONTROL/FILE_FORMAT", "S:1", ""), 191 236 fDebugStream(false), fDebugRead(false), fDebugLog(false) -
trunk/FACT++/src/fadctrl.cc
r12522 r12537 1550 1550 T(out, "FAD_CONTROL"), EventBuilderWrapper(*static_cast<MessageImp*>(this)), ba::io_service::work(static_cast<ba::io_service&>(*this)), 1551 1551 fStatus1(40), fStatus2(40), fStatusC(40), fStatusT(false), 1552 fDimStartRun("FAD_CONTROL/START_RUN", "X:2", "|run[idx]:Run number of last configured run (-1 if configuration was reset or no run was yet configured)|next[idx]:Run number which will be asigned to next configuration"), 1553 fDimConnection("FAD_CONTROL/CONNECTIONS", "C:40;C:1", "") 1552 fDimStartRun("FAD_CONTROL/START_RUN", "X:1;X:1", 1553 "Run numbers" 1554 "|run[idx]:Run number of last configured run (-1 if configuration was reset or no run was yet configured)" 1555 "|next[idx]:Run number which will be assigned to next configuration"), 1556 fDimConnection("FAD_CONTROL/CONNECTIONS", "C:40;C:1", 1557 "Connection status of FAD boards" 1558 "|status[bitpattern]:lower bits stat1, upper bits stat2, for every board. 40=thread" 1559 "|char[unknown]:to be completed") 1554 1560 { 1555 1561 // ba::io_service::work is a kind of keep_alive for the loop. … … 1895 1901 fIsDataOutput = conf.Get<bool>("data-out"); 1896 1902 fDebugTx = conf.Get<bool>("debug-tx"); 1897 1903 cout << -1 << endl; 1898 1904 // ---------- Setup event builder --------- 1899 1905 SetMaxMemory(conf.Get<unsigned int>("max-mem")); … … 2152 2158 if (!conf.DoParse(argc, argv, PrintHelp)) 2153 2159 return -1; 2154 2160 cout << 1 << endl; 2155 2161 // try 2156 2162 { … … 2163 2169 return RunShell<LocalStream, StateMachineDim>(conf); 2164 2170 } 2171 cout << 2 << endl; 2165 2172 // Cosole access w/ and w/o Dim 2166 2173 /* if (conf.Get<bool>("no-dim")) … … 2178 2185 return RunShell<LocalConsole, StateMachineDim>(conf); 2179 2186 } 2187 cout << 3 << endl; 2180 2188 } 2181 2189 /* catch (std::exception& e)
Note:
See TracChangeset
for help on using the changeset viewer.