Angular analysis of B+->K*+(K+pi0)mumu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
662 B

  1. void build(const char *filename,const char *lib = 0, const char *obj = 0)
  2. {
  3. if (obj!=0 && strlen(obj) )
  4. {
  5. TString s = gSystem->GetMakeSharedLib();
  6. TString r(" $ObjectFiles ");
  7. r.Append(obj);
  8. s.ReplaceAll(" $ObjectFiles",r);
  9. gSystem->SetMakeSharedLib(s);
  10. }
  11. if (lib && strlen(lib))
  12. {
  13. TString liblist(lib);
  14. TObjArray *libs = liblist.Tokenize(" ");
  15. TIter iter(libs);
  16. TObjString *objstr;
  17. while ( (objstr=(TObjString*)iter.Next()) )
  18. {
  19. gSystem->Load(objstr->String());
  20. }
  21. }
  22. int result = gSystem->CompileMacro(filename,"kc");
  23. if (!result) gApplication->Terminate(1);
  24. }