Split: AddTaskPhysicsSelection+Centrality -> OADB
[u/mrichter/AliRoot.git] / DIME / test.C
CommitLineData
23c40532 1void test()
2{
4070f709 3 gSystem->Load("libEG");
4 gSystem->Load("libdime");
5 gSystem->Load("libTDime");
23c40532 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}