2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
4 /**************************************************************************
5 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
7 * full copyright notice. *
8 **************************************************************************/
10 AliEveJetPlane* jetplane(Int_t iev)
12 TFile* f = new TFile("aod.root");
13 TTree* treeAOD = (TTree*) f->Get("AOD");
14 AliAODEvent* aod = new AliAODEvent();
15 aod->ReadFromTree(treeAOD);
16 treeAOD->GetEntry(iev);
18 AliEveJetPlane* jp = new AliEveJetPlane(iev);
20 // Read Jets in current event
22 TClonesArray* jets = aod->GetJets();
23 Int_t njets = jets->GetEntries();
24 printf("Event: %5d Number of jets: %5d \n", iev, njets);
26 for (Int_t ij = 0; ij < njets; ij++)
28 AliAODJet jet = (AliAODJet) jets->At(ij);
32 // Read tracks in current event
34 TClonesArray* tracks = aod->GetTracks();
35 Int_t ntracks = tracks->GetEntries();
36 printf("Event: %5d Number of tracks: %5d \n", iev, ntracks);
38 for (Int_t ij = 0; ij < ntracks; ij++)
40 AliAODTrack track = (AliAODTrack) tracks->At(ij);
45 gStyle->SetPalette(1, 0);