Put black-listed classes out of Alieve namespace.
[u/mrichter/AliRoot.git] / EVE / alice-macros / jetplane.C
CommitLineData
8c47e13d 1Alieve::JetPlane* jetplane(Int_t iev)
8c47e13d 2{
84aff7a4 3 TFile* f = new TFile("aod.root");
4 TTree* treeAOD = (TTree*) f->Get("AOD");
5 AliAODEvent* aod = new AliAODEvent();
8c47e13d 6 aod->ReadFromTree(treeAOD);
7 treeAOD->GetEntry(iev);
8
84aff7a4 9 using namespace Alieve;
10 JetPlane* jp = new JetPlane(iev);
8c47e13d 11
84aff7a4 12 // Read Jets in current event
8c47e13d 13
84aff7a4 14 TClonesArray* jets = aod->GetJets();
15 Int_t njets = jets->GetEntries();
16 printf("Event: %5d Number of jets: %5d \n", iev, njets);
8c47e13d 17
84aff7a4 18 for (Int_t ij = 0; ij < njets; ij++)
19 {
20 AliAODJet jet = (AliAODJet) jets->At(ij);
21 jp->AddJet(jet);
22 }
8c47e13d 23
84aff7a4 24 // Read tracks in current event
8c47e13d 25
84aff7a4 26 TClonesArray* tracks = aod->GetTracks();
27 Int_t ntracks = tracks->GetEntries();
28 printf("Event: %5d Number of tracks: %5d \n", iev, ntracks);
8c47e13d 29
84aff7a4 30 for (Int_t ij = 0; ij < ntracks; ij++)
31 {
32 AliAODTrack track = (AliAODTrack) tracks->At(ij);
33 jp->AddTrack(track);
34 }
8c47e13d 35
84aff7a4 36 // Render Jet Plane
37 gStyle->SetPalette(1, 0);
38 gEve->AddElement(jp);
39 gEve->Redraw3D();
8c47e13d 40
84aff7a4 41 return jp;
8c47e13d 42}