ROOT logo
void test()
{
  gSystem->Load("libEG.so");
  gSystem->Load("libdime.so");
  gSystem->Load("libTDime.so");
  
  TDime* dime = new TDime();
  dime->SetEnergyCMS(7000.);
  dime->Initialize();
  
  TClonesArray* particles = new TClonesArray("TParticle", 100);
  
  for (Int_t i = 0; i < 10; i++)
    {    
    dime->GenerateEvent();
    Int_t np = dime->ImportParticles(particles, "All");
    printf("\n Imported %3d particles \n", np);
    for (Int_t ip = 0; ip < np; ip++) {
      TParticle* part = (TParticle*) (particles->At(ip));
      part->Print();
    }
  }

}
 test.C:1
 test.C:2
 test.C:3
 test.C:4
 test.C:5
 test.C:6
 test.C:7
 test.C:8
 test.C:9
 test.C:10
 test.C:11
 test.C:12
 test.C:13
 test.C:14
 test.C:15
 test.C:16
 test.C:17
 test.C:18
 test.C:19
 test.C:20
 test.C:21
 test.C:22
 test.C:23
 test.C:24
 test.C:25