NA49 logo

Input
GEANT
MTSIM
Embeding
Reconstruction
Maching
ROOT MINI-DST

Home page

Last modification:
2003-07-22
e-mail:
cblume@cern.ch korus@cern.ch

Converision from DSPACK to ROOT MiniDST

This program uses root49 to copy a DSPACK file into an ROOT miniDST file. The source code of this program you may find in: copy_MC.C

void copy_MC()
{
gROOT->Reset();
Char_t *DSFile = "/afs/cern.ch/user/r/rkorus/public/kstar/rec/rec_kstar_01.$ //Filename
Char_t *ROOTFile = "/afs/cern.ch/user/r/rkorus/public/kstar/rec/rec_kstar_01.$
TRootDSMC *RootDSMC = new TRootDSMC(); //Create a TrootDSMC object

RootDSMC->SetVerbose(1); //Verbose mode
RootDSMC->SetNormalizedDedx(1); //Use normalized dE/dx values
RootDSMC->SetFillSecondary(1); //Copy also V0 tracks and vertices
RootDSMC->SetFullSecondary(1); //Copy the full track information
RootDSMC->SetFillXis(1); //Copy also cascades
RootDSMC->SetCheckV0(0); //Switch off the cuts on V0s
RootDSMC->SetFillMCTracks(1); //Copy also the MC data

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

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