]> git.uio.no Git - u/mrichter/AliRoot.git/blob - DIME/test.C
ALIROOT-5836 AliESDpid not respecting the AliVTrack interface (patch from Mihaela)
[u/mrichter/AliRoot.git] / DIME / test.C
1 void test()
2 {
3   gSystem->Load("libEG");
4   gSystem->Load("libdime");
5   gSystem->Load("libTDime");
6   
7   TDime* dime = new TDime();
8   dime->SetEnergyCMS(7000.);
9   dime->Initialize();
10   
11   TClonesArray* particles = new TClonesArray("TParticle", 100);
12   
13   for (Int_t i = 0; i < 10; i++)
14     {    
15     dime->GenerateEvent();
16     Int_t np = dime->ImportParticles(particles, "All");
17     printf("\n Imported %3d particles \n", np);
18     for (Int_t ip = 0; ip < np; ip++) {
19       TParticle* part = (TParticle*) (particles->At(ip));
20       part->Print();
21     }
22   }
23
24 }