1 //////////////////////////////////////////////////////////////////////////
2 // Test of the AliVertex, AliTrack, AliJet and AliVertex functionality.
3 // Various vertices are read-in from the events.root file created by
5 // These vertices are then analysed in terms of tracks and jets
6 // using the RALICE facilities.
7 // In the writing program several identical events were created to enable
8 // testing of the multiple event structure on the output file.
10 //--- NvE 28-may-1998 UU-SAP Utrecht
11 //////////////////////////////////////////////////////////////////////////
13 gSystem->Load("ralice");
15 // Get the input file and a Tree
16 TFile* f=new TFile("events.root");
17 TTree* tree=(TTree*)f->Get("T");
19 // Provide overview of Tree contents
23 // Define an event (which is also the main Vertex)
26 // Branch in the tree for the event input
27 tree->SetBranchAddress("Events",&vmain);
29 Int_t nen=tree->GetEntries();
31 cout << " *READ* nentries : " << nen << endl;
33 for (Int_t ient=0; ient<nen; ient++)
36 cout << " === Going for event number : " << (ient+1) << endl;
41 // Print the full event information