Convert DSPACK MC DSTs into ROOT mini-DSTs

void copy_MC() {

  /////////////////////////////////////////////////////////////////////////
  //
  //  Copy example macro for MC data. Use root49 to copy a DSPACK file 
  //  into an ROOT mini-DST file.
  //
  /////////////////////////////////////////////////////////////////////////

  gROOT->Reset();

  // Filenames
  Char_t *DSFile   = "/shift/shd09/data17/vp/users/cblume/160gev/embed_1458_pi-_10_100.ds";
  Char_t *ROOTFile = "/shift/na49i04/data1/christoph/test/test_1458.root";

  // Create a TrootDSMC obkect
  TRootDSMC *RootDSMC = new TRootDSMC();

  // Verbose mode
  RootDSMC->SetVerbose(1);
  // Use normalized dE/dx values
  RootDSMC->SetNormalizedDedx(1);
  // Copy also V0 tracks and vertices
  RootDSMC->SetFillSecondary(1);
  // Copy the also the MC data
  RootDSMC->SetFillMCTracks(1);

  // Copy the MC run into a root tree
  printf("Copy File %sn",DSFile);
  RootDSMC->DS2Tree(DSFile,ROOTFile);

  // Close the files
  RootDSMC->Close();
  delete RootDSMC;

}



ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.