Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Related Pages

init.cxx

00001 {
00002   char *env = getenv("DAQ_SW_DIR");
00003   char *newEnv = getenv("DF_INST_PATH");
00004   if((env && strlen(env) > 4) || newEnv && strlen(newEnv) > 4)) {
00005     printf("******* Loading from libTApi.so **********\n");
00006     gSystem.Load("libTApi.so");
00007   } else {
00008     printf("******* Loading from libDTApi.so (Dummy) **********\n");
00009     gSystem.Load("libDTApi.so");
00010   }
00011   TApi *hidden_tapip = new TApi();
00012   TApi& tapi = *hidden_tapip;
00013 
00014   // Some miscellaneous messages
00015   tapi.setDebugOption("diag");
00016   tapi.setDebugOption("diag2");
00017   // Save all the primitives that are sent
00018   tapi.setDebugOption("save_prim");
00019   // Do some standard dumps at some places
00020 //   tapi.setDebugOption("extra_dumps");
00021   // Essential... save histograms to file, otherwise they'll disappear
00022   tapi.setDebugOption("save_histogram");
00023   // Print the decoded version of a probe
00024   tapi.setDebugOption("verbose_probe");
00025   // Decode primitives sent to the ROD, and print to stdout
00026 //   tapi.setDebugOption("print_in_prim");
00027   // Decode primitives from the ROD and print to stdout
00028 //   tapi.setDebugOption("print_out_prim");
00029   // Include some raw data in the primitive dumps
00030 //   tapi.setDebugOption("print_raw");
00031 
00032 //   tapi.setDebugOption("api_config_cache_send");
00033 //   tapi.setDebugOption("api_config_cache_check");
00034   tapi.setDebugOption("tim_scan_status");
00035 
00036   tapi.initialiseAll(1);
00037 //   unsigned int length;
00038 //   unsigned int *body;
00039 //   unsigned int scratch[10000];
00040 //   gROOT.ProcessLine(".L Functs.cxx");
00041 }

Generated on Fri Sep 16 18:01:51 2005 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5