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 
00026  tapi.setDebugOption("calib_no_slink");
00027 
00028   // Decode primitives sent to the ROD, and print to stdout
00029 //   tapi.setDebugOption("print_in_prim");
00030   // Decode primitives from the ROD and print to stdout
00031 //   tapi.setDebugOption("print_out_prim");
00032   // Include some raw data in the primitive dumps
00033 //   tapi.setDebugOption("print_raw");
00034 
00035 
00036   // Force c instead of assembly
00037 //  tapi.setDebugOption("scan_use_ccode");
00038 
00039 
00040   tapi.initialiseAll(1);
00041 //   unsigned int length;
00042 //   unsigned int *body;
00043 //   unsigned int scratch[10000];
00044 //   gROOT.ProcessLine(".L Functs.cxx");
00045 
00046   tapi.setABCDModules(0);
00047   tapi.sendABCDModules(0);
00048 }

Generated on Mon Feb 6 14:01:21 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6