]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/jetplane.C
Remove EVE/Reve/ sub-module.
[u/mrichter/AliRoot.git] / EVE / alice-macros / jetplane.C
index 4aa96a6b83bfc516d37a7b1de89b4a82296b4637..94a6434d8a306a6761078bac57cdccf37d77303c 100644 (file)
@@ -1,43 +1,42 @@
 Alieve::JetPlane* jetplane(Int_t iev)
-
 {      
-       TFile* f       = new TFile("aod.root");
-       TTree* treeAOD = (TTree*) f->Get("AOD");
-       AliAODEvent* aod = new AliAODEvent();
+  TFile* f       = new TFile("aod.root");
+  TTree* treeAOD = (TTree*) f->Get("AOD");
+  AliAODEvent* aod = new AliAODEvent();
   aod->ReadFromTree(treeAOD);
   treeAOD->GetEntry(iev);
 
-       using namespace Alieve;
-       JetPlane* jp = new JetPlane(iev);
+  using namespace Alieve;
+  JetPlane* jp = new JetPlane(iev);
 
-       // Read Jets in current event
+  // Read Jets in current event
 
-       TClonesArray* jets = aod->GetJets();
-       Int_t njets = jets->GetEntries();
-       printf("Event: %5d Number of jets: %5d \n", iev, njets);
+  TClonesArray* jets = aod->GetJets();
+  Int_t njets = jets->GetEntries();
+  printf("Event: %5d Number of jets: %5d \n", iev, njets);
 
-       for (Int_t ij = 0; ij < njets; ij++)
-       {
-               AliAODJet jet = (AliAODJet) jets->At(ij);
-               jp->AddJet(jet);
-       }
+  for (Int_t ij = 0; ij < njets; ij++)
+  {
+    AliAODJet jet = (AliAODJet) jets->At(ij);
+    jp->AddJet(jet);
+  }
 
-// Read tracks in current event
+  // Read tracks in current event
 
-       TClonesArray* tracks = aod->GetTracks();
-       Int_t ntracks = tracks->GetEntries();
-       printf("Event: %5d Number of tracks: %5d \n", iev, ntracks);
+  TClonesArray* tracks = aod->GetTracks();
+  Int_t ntracks = tracks->GetEntries();
+  printf("Event: %5d Number of tracks: %5d \n", iev, ntracks);
 
-       for (Int_t ij = 0; ij < ntracks; ij++)
-       {
-               AliAODTrack track = (AliAODTrack) tracks->At(ij);
-               jp->AddTrack(track);
-       }
+  for (Int_t ij = 0; ij < ntracks; ij++)
+  {
+    AliAODTrack track = (AliAODTrack) tracks->At(ij);
+    jp->AddTrack(track);
+  }
 
-// Render Jet Plane
-       gStyle->SetPalette(1, 0);
-       gReve->AddRenderElement(jp);
-       gReve->Redraw3D();
+  // Render Jet Plane
+  gStyle->SetPalette(1, 0);
+  gEve->AddElement(jp);
+  gEve->Redraw3D();
 
-       return jp;
+  return jp;
 }