FACT++  1.0
void SetupConfiguration ( Configuration conf)

Definition at line 2203 of file fadctrl.cc.

References Configuration::AddEnv(), Configuration::AddOptions(), and po_bool().

Referenced by main().

2204 {
2205  po::options_description control("FAD control options");
2206  control.add_options()
2207  ("quiet,q", po_bool(true), "Disable printing contents of all received messages in clear text.")
2208  ("hex-out", po_bool(), "Enable printing contents of all printed messages also as hex data.")
2209  ("data-out", po_bool(), "Enable printing received event data.")
2210  ("debug-tx", po_bool(), "Enable debugging of ethernet transmission.")
2211  ;
2212 
2213  po::options_description connect("FAD connection options");
2214  connect.add_options()
2215  ("addr", vars<string>(), "Network address of FAD")
2216  ("base-addr", var<string>(), "Base address of all FAD")
2217  ("debug-num,n", var<unsigned int>(40), "Sets the number of fake boards to be connected locally")
2218  ("debug-addr", var<string>(), "")
2219  ("start", po_bool(false), "Start the connction immediately after boot")
2220  ;
2221 
2222  po::options_description builder("Event builder options");
2223  builder.add_options()
2224  ("max-mem", var<unsigned int>(100), "Maximum memory the event builder thread is allowed to consume for its event buffer")
2225  ("event-timeout", var<uint16_t>(30), "After how many seconds is an event considered to be timed out? (<=0: disabled)")
2226  ("destination-folder", var<string>(""), "Destination folder (base folder) for the event builder binary data files.")
2227  ;
2228 
2229  po::options_description zfits("FITS compression options");
2230  zfits.add_options()
2231  ("zfits.num-threads", var<int32_t>(), "Number of threads to spawn writing compressed FITS files")
2232  ("zfits.max-mem", var<uint32_t>(), "Maximum amount of memory to be allocated by FITS compression in MB")
2233  ("zfits.num-tiles", var<uint32_t>(), "Maximum number of tiles in the catalog")
2234  ("zfits.num-rows", var<uint32_t>(), "Maximum number of rows per tile")
2235  ;
2236 
2237  po::options_description runtype("Run type configuration");
2238  runtype.add_options()
2239  ("run-type", vars<string>(), "Run type, e.g. data, pedestal, drs-calibration, light-pulser")
2240  ("enable-dwrite.*", var<bool>(), "")
2241  ("enable-drs.*", var<bool>(), "")
2242  ("enable-continous-trigger.*", var<bool>(), "")
2243  ("trigger-rate.*", var<uint16_t>(), "")
2244  ("dac.*", var<uint16_t>(), "")
2245  ("dac-0.*", var<uint16_t>(), "")
2246  ("dac-1.*", var<uint16_t>(), "")
2247  ("dac-2.*", var<uint16_t>(), "")
2248  ("dac-3.*", var<uint16_t>(), "")
2249  ("dac-4.*", var<uint16_t>(), "")
2250  ("dac-5.*", var<uint16_t>(), "")
2251  ("dac-6.*", var<uint16_t>(), "")
2252  ("dac-7.*", var<uint16_t>(), "")
2253  ("roi.*", var<uint16_t>(), "")
2254  ("roi-ch0.*", var<uint16_t>(), "")
2255  ("roi-ch1.*", var<uint16_t>(), "")
2256  ("roi-ch2.*", var<uint16_t>(), "")
2257  ("roi-ch3.*", var<uint16_t>(), "")
2258  ("roi-ch4.*", var<uint16_t>(), "")
2259  ("roi-ch5.*", var<uint16_t>(), "")
2260  ("roi-ch6.*", var<uint16_t>(), "")
2261  ("roi-ch7.*", var<uint16_t>(), "")
2262  ("roi-ch8.*", var<uint16_t>(), "")
2263  ;
2264 
2265  conf.AddEnv("dns", "DIM_DNS_NODE");
2266  conf.AddEnv("host", "DIM_HOST_NODE");
2267 
2268  conf.AddOptions(control);
2269  conf.AddOptions(connect);
2270  conf.AddOptions(builder);
2271  conf.AddOptions(zfits);
2272  conf.AddOptions(runtype);
2273 }
void AddEnv(const std::string &conf, const std::string &env)
void AddOptions(const po::options_description &opt, bool visible=true)
Definition: Configuration.h:92
Definition: zfits.h:16
po::typed_value< bool > * po_bool(bool def=false)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: