Modified macros to be compilable by ACLiC
authorquark <quark@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 30 Jan 2012 20:52:05 +0000 (20:52 +0000)
committerquark <quark@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 30 Jan 2012 20:52:05 +0000 (20:52 +0000)
122 files changed:
EVE/alice-macros/MUON_displayData.C
EVE/alice-macros/MUON_displaySimu.C
EVE/alice-macros/MUON_geom.C
EVE/alice-macros/MUON_geomAll.C
EVE/alice-macros/MUON_makeGeom.C
EVE/alice-macros/ana_list.C
EVE/alice-macros/aod_HF.C
EVE/alice-macros/beams_info.C
EVE/alice-macros/clusters_from_index.C
EVE/alice-macros/clusters_from_label.C
EVE/alice-macros/emcal_all.C
EVE/alice-macros/emcal_hits.C
EVE/alice-macros/esd_V0.C
EVE/alice-macros/esd_V0_points.C
EVE/alice-macros/esd_cascade.C
EVE/alice-macros/esd_cascade_points.C
EVE/alice-macros/esd_hlt_tracks.C
EVE/alice-macros/esd_kink.C
EVE/alice-macros/esd_kink_points.C
EVE/alice-macros/esd_spd_tracklets.C
EVE/alice-macros/esd_tracks.C
EVE/alice-macros/esd_zdc.C
EVE/alice-macros/event_first.C
EVE/alice-macros/event_goto.C
EVE/alice-macros/event_last.C
EVE/alice-macros/event_next.C
EVE/alice-macros/event_prev.C
EVE/alice-macros/fmd_digits.C
EVE/alice-macros/fmd_esd.C
EVE/alice-macros/fmd_hits.C
EVE/alice-macros/fmd_hits2.C
EVE/alice-macros/fmd_raw.C
EVE/alice-macros/geom_acorde.C
EVE/alice-macros/geom_all.C
EVE/alice-macros/geom_ddip.C
EVE/alice-macros/geom_emcal.C
EVE/alice-macros/geom_fmd.C
EVE/alice-macros/geom_gentle.C
EVE/alice-macros/geom_gentle_bright.C
EVE/alice-macros/geom_gentle_default.C
EVE/alice-macros/geom_gentle_green.C
EVE/alice-macros/geom_gentle_muon.C
EVE/alice-macros/geom_gentle_notransparency.C
EVE/alice-macros/geom_gentle_projector.C
EVE/alice-macros/geom_gentle_tpc.C
EVE/alice-macros/geom_gentle_transparent.C
EVE/alice-macros/geom_gentle_transparentdark.C
EVE/alice-macros/geom_gentle_transparentlight.C
EVE/alice-macros/geom_gentle_trd.C
EVE/alice-macros/geom_gentle_yellow.C
EVE/alice-macros/geom_hmpid.C
EVE/alice-macros/geom_its.C
EVE/alice-macros/geom_phos.C
EVE/alice-macros/geom_pmd.C
EVE/alice-macros/geom_simple.C
EVE/alice-macros/geom_t0.C
EVE/alice-macros/geom_tpc.C
EVE/alice-macros/geom_trd_tof.C
EVE/alice-macros/geom_vzero.C
EVE/alice-macros/geom_zdc.C
EVE/alice-macros/histo2d.C
EVE/alice-macros/histo2d_all_events.C
EVE/alice-macros/hits_from_label.C
EVE/alice-macros/hmpid_clusters.C
EVE/alice-macros/hmpid_digits.C
EVE/alice-macros/hmpid_raw.C
EVE/alice-macros/its_digits.C
EVE/alice-macros/its_hits.C
EVE/alice-macros/its_hits_layer_split.C
EVE/alice-macros/its_module_stepper.C
EVE/alice-macros/its_raw.C
EVE/alice-macros/jetplane.C
EVE/alice-macros/kine_print.C
EVE/alice-macros/kine_tracks.C
EVE/alice-macros/lego.C
EVE/alice-macros/make_residuals.C
EVE/alice-macros/muon_clusters.C
EVE/alice-macros/muon_digits.C
EVE/alice-macros/muon_raw.C
EVE/alice-macros/muon_trackRefs.C
EVE/alice-macros/phos_clusters.C
EVE/alice-macros/pmd_digits.C
EVE/alice-macros/pmd_hits.C
EVE/alice-macros/pmd_raw.C
EVE/alice-macros/primary_vertex.C
EVE/alice-macros/primary_vertex_tracks.C
EVE/alice-macros/print_kine_from_label.C
EVE/alice-macros/region_marker.C
EVE/alice-macros/set_momentum_vectors.C
EVE/alice-macros/t0_digits.C
EVE/alice-macros/t0_hits.C
EVE/alice-macros/t0_raw.C
EVE/alice-macros/tof_clusters.C
EVE/alice-macros/tof_digits.C
EVE/alice-macros/tof_digits_sector.C
EVE/alice-macros/tof_digits_strips.C
EVE/alice-macros/tof_hits.C
EVE/alice-macros/tof_raw.C
EVE/alice-macros/tpc_calib_viewer.C
EVE/alice-macros/tpc_clusters.C
EVE/alice-macros/tpc_digits.C
EVE/alice-macros/tpc_hits.C
EVE/alice-macros/tpc_hits_charge_split.C
EVE/alice-macros/tpc_hits_eta_split.C
EVE/alice-macros/tpc_raw.C
EVE/alice-macros/track_fitter.C
EVE/alice-macros/trd_analyse.C
EVE/alice-macros/trd_clusters.C
EVE/alice-macros/trd_digits.C
EVE/alice-macros/trd_gtutracks.C
EVE/alice-macros/trd_hits.C
EVE/alice-macros/trd_hits_z_split.C
EVE/alice-macros/trd_loader.C
EVE/alice-macros/trd_qaRec.C
EVE/alice-macros/trd_rawloader.C
EVE/alice-macros/trd_tracklets.C
EVE/alice-macros/trd_tracks.C
EVE/alice-macros/vplot_tpc.C
EVE/alice-macros/vzero_digits.C
EVE/alice-macros/vzero_dump.C
EVE/alice-macros/vzero_hits.C
EVE/alice-macros/vzero_raw.C

index cf9436d1e6ace49b9061250547fef2c36950a605..9d0a0ea3acbbed47ca19d085492e74b5288b38b8 100644 (file)
 ///
 /// \author B. Vulpescu, LPC
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <Riostream.h>
+#include <Rtypes.h>
+#include <TTree.h>
+#include <TStyle.h>
+#include <TString.h>
+#include <TSystem.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEveTrack.h>
+
+#include <MUON/mapping/AliMpSegmentation.h>
+#include <MUON/mapping/AliMpDDLStore.h>
+#include <MUON/mapping/AliMpCDB.h>
+#include <MUON/AliMUONTrackExtrap.h>
+#include <STEER/STEER/AliRunLoader.h>
+#include <STEER/ESD/AliESDEvent.h>
+#include <STEER/ESD/AliESDMuonTrack.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveDet/AliEveMUONData.h>
+#include <EVE/EveDet/AliEveMUONChamber.h>
+#include <EVE/EveDet/AliEveMUONTrack.h>
+#endif
+
 class AliEveMUONData;
 class AliEveEventManager;
 
@@ -20,6 +44,8 @@ AliEveMUONData     *g_muon_data       = 0;
 Int_t  g_currentEvent = -1;
 Bool_t g_fromRaw      = kFALSE;
 
+void MUON_ESD_tracks();
+
 void MUON_displayData(Bool_t fromRaw = kFALSE, Bool_t showTracks = kTRUE, Bool_t clustersFromESD = kTRUE)
 {
   //
@@ -131,7 +157,7 @@ void MUON_ESD_tracks()
   AliESDEvent* esd = AliEveEventManager::AssertESD();
 
   // TEveTrackList* lt = new TEveTrackList("ESD-Tracks");
-  AliEveMUONTrackList* lt = new TEveTrackList("ESD-Tracks");
+  AliEveMUONTrackList* lt = new AliEveMUONTrackList("ESD-Tracks");
   lt->SetMainColor(6);
   //lt->SetMUON();
 
index 4fa6fa7808a011290aac70eba61bbb318cd4951a..bc921a3063eb77e4d589e9f26bc968e0a0e81e38 100644 (file)
 ///
 /// \author B. Vulpescu, LPC
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <Riostream.h>
+#include <Rtypes.h>
+#include <TTree.h>
+#include <TStyle.h>
+#include <TString.h>
+#include <TSystem.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEveTrack.h>
+
+#include <MUON/mapping/AliMpSegmentation.h>
+#include <MUON/mapping/AliMpDDLStore.h>
+#include <MUON/mapping/AliMpCDB.h>
+#include <MUON/AliMUONRecoCheck.h>
+#include <MUON/AliMUONTrack.h>
+#include <MUON/AliMUONTrackExtrap.h>
+#include <MUON/AliMUONVTrackStore.h>
+#include <STEER/STEERBase/AliStack.h>
+#include <STEER/STEER/AliRunLoader.h>
+#include <STEER/ESD/AliESDEvent.h>
+#include <STEER/ESD/AliESDMuonTrack.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveDet/AliEveMUONData.h>
+#include <EVE/EveDet/AliEveMUONChamber.h>
+#include <EVE/EveDet/AliEveMUONTrack.h>
+#else
 class AliEveMUONData;
 class AliEveEventManager;
+#endif
 
 AliEveMUONData     *g_muon_data       = 0;
 
 Int_t  g_currentEvent = -1;
 Bool_t g_fromRaw      = kFALSE;
 
+void MUON_ESD_tracks();
+void MUON_Ref_tracks();
+void MUON_MC_tracks();
 
 void MUON_displaySimu(Bool_t fromRaw = kFALSE, Bool_t showTracks = kTRUE, Bool_t clustersFromESD = kTRUE)
 {
@@ -201,13 +232,10 @@ void MUON_Ref_tracks()
 //______________________________________________________________________________
 void MUON_MC_tracks()
 {
-  Double_t RADDEG = 180.0/TMath::Pi();
-
   AliRunLoader* rl =  AliEveEventManager::AssertRunLoader();
   rl->LoadKinematics();
   AliStack* stack = rl->Stack();
 
-  Int_t nPrimary = stack->GetNprimary();
   Int_t nTracks  = stack->GetNtrack();
 
   TEveTrackList* lt = new TEveTrackList("MC-Tracks");
@@ -216,7 +244,6 @@ void MUON_MC_tracks()
 
   gEve->AddElement(lt);
 
-  Int_t pdgCode;
   TParticle *part;
   TEveRecTrack rt;
 
index d9867dc7cd5db7e0f73698ffc0258dff5ec5ff9e..9f7ad9b138846122af6e929d67e9097257072486 100644 (file)
 ///
 /// \author B. Vulpescu, LPC
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGeoManager.h>
+#include <TGeoNode.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEveGeoNode.h>
+#endif
+
 void MUON_geom()
 {
   gGeoManager = gEve->GetGeometry("geometry.root");
@@ -37,6 +45,6 @@ void MUON_geom()
 
   gEve->Redraw3D();
 
-  printf("MUON_geom.C done\n");
+  Info("MUON_geom.C", "Done");
 
 }
index 85071a315391d01dae47a81010fb55f72ac7f0b3..98ed319301501339baef9dbae9bccb5bd42aaa2e 100644 (file)
 ///
 /// \author B. Vulpescu, LPC
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGeoManager.h>
+#include <TGeoNode.h>
+#include <TEveManager.h>
+#include <TEveGeoNode.h>
+#endif
+
 void MUON_geomAll()
 {
   gGeoManager = gEve->GetGeometry("geometry.root");
index af2fc9d79201416c8abc17d6c5d32b4bed567d40..e8b8acb3c2311e6f8ca62f3ef0737c85edc8b5a1 100644 (file)
 /// \file MUON_makeGeom.C
 ///
 /// \author B. Vulpescu, LPC
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGeoManager.h>
 
+#include <MUON/mapping/AliMpCDB.h>
+#include <STEER/STEER/AliRun.h>
+#endif
+
+void MUON_makeGeom()
 {
   AliMpCDB::LoadMpSegmentation2(); 
-  gAlice->Init("$ALICE_ROOT/MUON/Config.C");
+  gAlice->SetConfigFunction("$ALICE_ROOT/MUON/Config.C");
   //gAlice->Init("Config.C");
 
   gGeoManager->Export("geometry.root");
index 4f22920df722c656345b280c6ec56590ab3d71fc..c48ecca57510d28d1e2fc866ad734ff9110f2059 100755 (executable)
@@ -29,7 +29,7 @@
 #include <TEveManager.h>
 
 #include <TRD/AliTRDarrayADC.h>
-#include <EveDet/AliEveListAnalyser.h>
+#include <EVE/EveDet/AliEveListAnalyser.h>
 #endif
 
 void ana_list(TEveElement *cont = 0)
index d2acc352ed1a39d971f09fa5efd0414781de0de2..585dffc0ff588c976664fefa26f466d71fb8655f 100644 (file)
@@ -6,8 +6,34 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
-
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TClonesArray.h>
+#include <TROOT.h>
+#include <TSystem.h>
+#include <TEveVSDStructs.h>
+#include <TEveTrackPropagator.h>
+#include <TEvePointSet.h>
+#include <TEveManager.h>
+
+#include <STEER/STEERBase/AliExternalTrackParam.h>
+#include <STEER/STEERBase/AliVVertex.h>
+#include <STEER/AOD/AliAODVertex.h>
+#include <STEER/AOD/AliAODEvent.h>
+#include <STEER/AOD/AliAODTrack.h>
+#include <STEER/AOD/AliAODMCParticle.h>
+#include <STEER/ESD/AliESDtrack.h>
+#include <STEER/ESD/AliESDEvent.h>
+#include <PWG3/vertexingHF/AliAODRecoDecayHF.h>
+#include <PWG3/vertexingHF/AliAODRecoDecayHF2Prong.h>
+
+#include <EVE/EveBase/AliEveHF.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+
+#include <PWG3/vertexingHF/macros/LoadLibraries.C>
+
+#else
 class AliAODRecoDecayHF;
+#endif
 
 void aod_hf_init_rectrack(TEveRecTrack& rt, AliExternalTrackParam* tp)
 {
@@ -59,7 +85,7 @@ AliEveHF* aod_make_HF(TEveTrackPropagator* rnrStyle, AliAODVertex* primAODVtx,
 AliEveHFList* aod_HF()
 {
   Bool_t useParFiles=kFALSE;
-  gROOT->LoadMacro("$ALICE_ROOT/PWG3/vertexingHF/LoadLibraries.C");
+  gROOT->LoadMacro("$ALICE_ROOT/PWG3/vertexingHF/macros/LoadLibraries.C");
   LoadLibraries(useParFiles);
 
   AliAODEvent* aod = AliEveEventManager::AssertAOD();
@@ -69,8 +95,8 @@ AliEveHFList* aod_HF()
     gSystem->Load("libANALYSIS");
     gSystem->Load("libANALYSISalice");
     gSystem->Load("libCORRFW");
-    gSystem->Load("libPWGHFbase");
-    gSystem->Load("libPWGHFvertexingHF");
+    gSystem->Load("libPWG3base");
+    gSystem->Load("libPWG3vertexingHF");
   */
 
   // load MC particles
@@ -78,7 +104,7 @@ AliEveHFList* aod_HF()
     (TClonesArray*) aod->FindListObject(AliAODMCParticle::StdBranchName());
   if (!mcArray) {
     printf("MC particles branch not found!\n");
-    return;
+    return 0;
   }
 
   AliAODVertex* primVtx_aod = (AliAODVertex*) aod->GetPrimaryVertex();
@@ -113,8 +139,8 @@ AliEveHFList* aod_HF()
     //Int_t labD0 = rd->MatchToMC(421,mcArray);
     //if(labD0<0) continue;
 
-    AliAODTrack *negAODTr = rd->GetDaughter(0);
-    AliAODTrack *posAODTr = rd->GetDaughter(1);
+    AliAODTrack *negAODTr = dynamic_cast<AliAODTrack *>(rd->GetDaughter(0));
+    AliAODTrack *posAODTr = dynamic_cast<AliAODTrack *>(rd->GetDaughter(1));
 
     AliVVertex  *secv = rd->GetSecondaryVtx();
 
index 82c7c30de9901159df7c387563a16aeba63a42a2..e2b876f2ae4ef85638309e2cd99fc06390cff451 100644 (file)
@@ -6,10 +6,17 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TEveElement.h>
+
+#include <EVE/EveBase/AliEveBeamsInfo.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
+
 AliEveBeamsInfo* beams_info(){
 
   AliEveEventManager *mng = AliEveEventManager::GetMaster();
-  AliEveBeamsInfo *beamsinfo = mng->FindGlobal("BeamsInfo");
+  AliEveBeamsInfo *beamsinfo = dynamic_cast<AliEveBeamsInfo *>(mng->FindGlobal("BeamsInfo"));
 
   if ( beamsinfo == 0) {
      beamsinfo = new AliEveBeamsInfo();
index 944557d6be36b46495a245ad13babf9890dedf1f..127d00e5879cb9c1019bd03abd2a5b0f7fc31b53 100644 (file)
@@ -6,6 +6,16 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEvePointSet.h>
+
+#include <STEER/ESD/AliESDEvent.h>
+#include <STEER/ESD/AliTrackPointArray.h>
+#include <EveBase/AliEveEventManager.h>
+#include <EveBase/AliEveMultiView.h>
+#endif
 
 TEvePointSet* clusters_from_index(Int_t index=0, TEveElement* cont=0)
 {
@@ -28,8 +38,8 @@ TEvePointSet* clusters_from_index(Int_t index=0, TEveElement* cont=0)
   const AliTrackPointArray* pArr = at->GetTrackPointArray();
   if (pArr == 0) {
     Warning("clusters_from_index", "TrackPointArray not stored with ESD track.");
-    continue;
   }
+  
   Int_t np =  pArr->GetNPoints();
   const Float_t* x = pArr->GetX();
   const Float_t* y = pArr->GetY();
@@ -42,7 +52,7 @@ TEvePointSet* clusters_from_index(Int_t index=0, TEveElement* cont=0)
 
 
   if(clusters->Size() == 0 && gEve->GetKeepEmptyCont() == kFALSE) {
-    Warning("clusters_from_index", Form("No clusters for index '%d'", index));
+    Warning("clusters_from_index", "No clusters for index '%d'", index);
     delete clusters;
     return 0;
   }
index 830fadabc44f4aea2537d99917a79073ac3c2b4a..82022c6b6152c06606497f14c40559336e710cfb 100644 (file)
@@ -6,6 +6,17 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEvePointSet.h>
+
+#include <STEER/ESD/AliESDEvent.h>
+#include <STEER/ESD/AliESDtrack.h>
+#include <STEER/ESD/AliTrackPointArray.h>
+#include <EveBase/AliEveEventManager.h>
+#include <EveBase/AliEveMultiView.h>
+#endif
 
 TEvePointSet* clusters_from_label(Int_t label=0, TEveElement* cont=0)
 {
@@ -36,7 +47,7 @@ TEvePointSet* clusters_from_label(Int_t label=0, TEveElement* cont=0)
   }
 
   if(clusters->Size() == 0 && gEve->GetKeepEmptyCont() == kFALSE) {
-    Warning("clusters_from_label", Form("No clusters match label '%d'", label));
+    Warning("clusters_from_label", "No clusters match label '%d'", label);
     delete clusters;
     return 0;
   }
index 1801dac2c8ab8d7a6183504c176d9fd4620e99a0..035d203ed65f84575f6696902c24aa8c74b84f8f 100644 (file)
 //  Author: Magali Estienne (magali.estienne@cern.ch)
 //  June 30 2008
 //************************************************************************
-
+#if !defined(__CINT__) || defined(__MAKECINT__)
 #include <Riostream.h>
+#include <TGeoManager.h>
+#include <TGeoNode.h>
+#include <TGeoMatrix.h>
 #include <TMath.h>
-
-
+#include <TString.h>
+#include <TTree.h>
+#include <TStyle.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEvePointSet.h>
+
+#include <EMCAL/AliEMCAL.h>
+#include <EMCAL/AliEMCALLoader.h>
+#include <STEER/ESD/AliESDEvent.h>
+#include <STEER/ESD/AliESDtrack.h>
+#include <STEER/ESD/AliTrackPointArray.h>
+#include <STEER/STEER/AliRunLoader.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveBase/AliEveMultiView.h>
+#include <EVE/EveDet/AliEveEMCALData.h>
+#include <EVE/EveDet/AliEveEMCALSModule.h>
+
+#else
 class AliEveEMCALData;
+#endif
+
 AliEveEMCALData     *emcal_data       = 0;
 
 void emcal_all(const UInt_t evtNum = 0, Bool_t digFile = 0, 
index 4d47af0707b89c0c4e2901bca27790a3abc82236..f72b71f2be6a724315f0d840626b7df242445ed5 100644 (file)
@@ -6,6 +6,18 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TTree.h>
+#include <TString.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEvePointSet.h>
+#include <TEveTreeTools.h>
+
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <STEER/STEER/AliRunLoader.h>
+
+#endif
 
 TEvePointSet*
 emcal_hits(const char *varexp    = "fX:fY:fZ",
@@ -23,7 +35,7 @@ emcal_hits(const char *varexp    = "fX:fY:fZ",
   ps.Select();
 
   if (points->Size() == 0 && gEve->GetKeepEmptyCont() == kFALSE) {
-    Warning("emcal_hits", Form("No hits match '%s'", selection));
+    Warning("emcal_hits", "No hits match '%s'",selection);
     delete points;
     return 0;
   }
index f743e69759217bac66874e678d9636b671dd6a4c..edb45f313c893d037f058967ea93cd8566eba9e8 100644 (file)
@@ -7,7 +7,23 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
-void esd_v0_init_rectrack(TEveRecTrack& rt, AliExternalTrackParam* tp)
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TEveVSDStructs.h>
+#include <TEveTrackPropagator.h>
+#include <TEveManager.h>
+
+#include <STEER/STEERBase/AliExternalTrackParam.h>
+#include <STEER/STEERBase/AliPID.h>
+#include <STEER/ESD/AliESDEvent.h>
+#include <STEER/ESD/AliESDVertex.h>
+#include <STEER/ESD/AliESDtrack.h>
+#include <STEER/ESD/AliESDv0.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveBase/AliEveV0.h>
+#endif
+
+
+void esd_v0_init_rectrack(TEveRecTrack& rt, const AliExternalTrackParam* tp)
 {
   Double_t      pbuf[3], vbuf[3];
 
@@ -157,20 +173,4 @@ AliEveV0List* esd_V0(Bool_t onFly=kFALSE)
   gEve->Redraw3D();
 
   return cont;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+}
\ No newline at end of file
index b5be45862b929b0a041c3d3247814c439ae09beb..d98b2363a906f4172e78da9a6404c7f432ef53fe 100644 (file)
@@ -7,6 +7,15 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TEveManager.h>
+#include <TEvePointSet.h>
+
+#include <STEER/ESD/AliESDEvent.h>
+#include <STEER/ESD/AliESDv0.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
+
 void esd_VO_fill_pointset(TEvePointSet* ps, Bool_t onFly)
 {
   AliESDEvent* esd = AliEveEventManager::AssertESD();
index b340c9927a116ab9462053a195d84cb8973f2710..88ab4668d2efeab814432d8bcab5ab92246ced81 100644 (file)
@@ -6,8 +6,21 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
-
-void esd_cascade_init_rectrack(TEveRecTrack& rt, AliExternalTrackParam* tp)
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TMath.h>
+#include <TEveManager.h>
+#include <TEveVSDStructs.h>
+#include <TEveTrackPropagator.h>
+
+#include <STEER/STEERBase/AliExternalTrackParam.h>
+#include <STEER/ESD/AliESDEvent.h>
+#include <STEER/ESD/AliESDcascade.h>
+#include <STEER/ESD/AliESDVertex.h>
+#include <EVE/EveBase/AliEveCascade.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
+
+void esd_cascade_init_rectrack(TEveRecTrack& rt, const AliExternalTrackParam* tp)
 {
   Double_t      pbuf[3], vbuf[3];
 
index eaa1d739bbd353d4ebaae207c5da32d38cac81bc..a251cb29f494298369420aea7cd0ce6ddc8d9eab 100644 (file)
@@ -5,6 +5,15 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TEveManager.h>
+#include <TEvePointSet.h>
+
+#include <STEER/ESD/AliESDEvent.h>
+#include <STEER/ESD/AliESDcascade.h>
+#include <STEER/STEER/AliRunLoader.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
 
 void esd_cascade_fill_pointset(TEvePointSet* ps)
 {
index 36861cb10abf4963ff33984d8540a76eb7df5fc2..03b40e1cb11dd726fe53a71c7e549cc086536cb7 100644 (file)
 //* about the suitability of this software for any purpose. It is          *
 //* provided "as is" without express or implied warranty.                  *
 //**************************************************************************
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TObject.h>
+#include <TClass.h>
+#include <TFile.h>
+#include <TTree.h>
+#include <TEveTrack.h>
+#include <TEveUtil.h>
+#include <TEveManager.h>
+
+#include <STEER/ESD/AliESDEvent.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+
+#include "esd_tracks.C"
+#endif
 
 /**
  * Display ESD Tracks from the HLTesdTree in AliEVE.
index a3c9df027701bb7ea650217647bce80afb3bf38c..21483aafa63aafaf37c9b9d96cf7f4d0c64a1634 100644 (file)
@@ -6,8 +6,23 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
-
-void esd_kink_init_rectrackMother(TEveRecTrack& rt, AliExternalTrackParam* tp)
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TVector3.h>
+#include <TEveVector.h>
+#include <TEveTrackPropagator.h>
+#include <TEveVSDStructs.h>
+#include <TEveManager.h>
+
+#include <STEER/STEERBase/AliExternalTrackParam.h>
+#include <STEER/STEERBase/AliPID.h>
+#include <STEER/ESD/AliESDEvent.h>
+#include <STEER/ESD/AliESDtrack.h>
+#include <STEER/ESD/AliESDkink.h>
+#include <EVE/EveBase/AliEveKink.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
+
+void esd_kink_init_rectrackMother(TEveRecTrack& rt, const AliExternalTrackParam* tp)
 {
   Double_t pbuf[3], vbuf[3];
 
@@ -18,7 +33,7 @@ void esd_kink_init_rectrackMother(TEveRecTrack& rt, AliExternalTrackParam* tp)
   rt.fBeta = 1; // ep/TMath::Sqrt(ep*ep + mc*mc);
 }
 
-void esd_kink_init_rectrackDaughter(TEveRecTrack& rt, AliExternalTrackParam* tp, TEveVector* svt,TEveVector* spt)
+void esd_kink_init_rectrackDaughter(TEveRecTrack& rt, const AliExternalTrackParam* tp, TEveVector* svt,TEveVector* spt)
 {
   rt.fSign = tp->GetSign();
   rt.fV.Set(*svt);
@@ -41,7 +56,7 @@ AliEveKink* esd_make_kink(TEveTrackPropagator* rnrStyleMoth,TEveTrackPropagator*
   const TVector3 r1(kink->GetPosition());
   rcKink.fVKink.Set(r1);
   
-  for (Int_t j=0; j<3; ++j) rckink.fKinkAngle[j]=kink->GetAngle(j);
+  for (Int_t j=0; j<3; ++j) rcKink.fKinkAngle[j]=kink->GetAngle(j);
   
   Double_t r[3], r2[3];
 
index 16c704a10e418278355623e6beebce94775aef8b..c21972c33e018d7414b01a8aa81e649a8caa2493 100644 (file)
@@ -6,6 +6,17 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TMath.h>
+#include <TVector3.h>
+#include <TEvePointSet.h>
+#include <TEveManager.h>
+
+#include <STEER/ESD/AliESDEvent.h>
+#include <STEER/ESD/AliESDtrack.h>
+#include <STEER/ESD/AliESDkink.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
 
 void esd_kink_fill_pointset(TEvePointSet* ps)
 {
index 999492dc0a0210c95cadce9fe26ea91ab3689ddd..35d35ca79c9e29f35ba697eae5d9f6e16ecd7e7c 100644 (file)
@@ -6,6 +6,21 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TMath.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEveTrack.h>
+#include <TEveTrackPropagator.h>
+
+#include <STEER/ESD/AliESDEvent.h>
+#include <STEER/ESD/AliESDVertex.h>
+#include <STEER/ESD/AliMultiplicity.h>
+#include <STEER/STEERBase/AliMagF.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveBase/AliEveTracklet.h>
+#include <EVE/EveBase/AliEveTrackCounter.h>
+#endif
 
 TEveElementList* esd_spd_tracklets(Float_t radius=8, Width_t line_width=2,
                                   Float_t dPhiWindow=0.080, Float_t dThetaWindow=0.025, 
@@ -14,8 +29,8 @@ TEveElementList* esd_spd_tracklets(Float_t radius=8, Width_t line_width=2,
   // radius - cylindrical radius to which the tracklets should be extrapolated
 
   AliESDEvent     *esd = AliEveEventManager::AssertESD();
-  AliESDVertex    *pv  = esd->GetPrimaryVertexSPD();
-  AliMultiplicity *mul = esd->GetMultiplicity();
+  const AliESDVertex    *pv  = esd->GetPrimaryVertexSPD();
+  const AliMultiplicity *mul = esd->GetMultiplicity();
 
   AliMagF *field = AliEveEventManager::AssertMagField();
 
index 93a714740cbc0118a989f44ed117f7cae0b7fa95..16a988fb104b805c449a5b9dd8006e5a25f4e61f 100644 (file)
@@ -8,31 +8,26 @@
  **************************************************************************/
 
 #if !defined(__CINT__) || defined(__MAKECINT__)
-
 #include <TString.h>
 #include <TSystem.h>
 #include <TROOT.h>
 #include <TMath.h>
 #include <TGListTree.h>
-
 #include <TEveVSDStructs.h>
 #include <TEveManager.h>
 #include <TEveTrackPropagator.h>
 
-#include <EveBase/AliEveTrack.h>
-#include <EveBase/AliEveTrackCounter.h>
-#include <EveBase/AliEveMagField.h>
-#include <EveBase/AliEveEventManager.h>
-
 #include <AliESDEvent.h>
 #include <AliESDfriend.h>
 #include <AliESDtrackCuts.h>
 #include <AliESDtrack.h>
 #include <AliESDfriendTrack.h>
 #include <AliExternalTrackParam.h>
-
 #include <AliPWG0Helper.h>
-
+#include <EveBase/AliEveTrack.h>
+#include <EveBase/AliEveTrackCounter.h>
+#include <EveBase/AliEveMagField.h>
+#include <EveBase/AliEveEventManager.h>
 #endif
 
 
index a84ffa6d32c9fb8f268b8228f7e49b50cc618945..f19b0b6276f822a6053dbcf720ffd64f5a929229 100644 (file)
@@ -1,3 +1,19 @@
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGeoManager.h>
+#include <TGeoShape.h>
+#include <TGeoMatrix.h>
+#include <TStyle.h>
+#include <TEveRGBAPalette.h>
+#include <TEveGeoShape.h>
+#include <TEveStraightLineSet.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+
+#include <STEER/ESD/AliESDEvent.h>
+#include <STEER/ESD/AliESDZDC.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
+
 TEveRGBAPalette *g_zdc_palette = 0;
 Float_t          g_zdc_scale   = 0.1;
 Float_t          g_zdc_dist    = 11695;
@@ -67,9 +83,8 @@ void esd_zdc()
   gEve->AddElement(l);
 
   TEveElementList *c  = 0;
-  TEveGeoShape    *s  = 0;
-  Double_t        *te = 0;
-  Text_t          *tb = 0;
+  const Double_t  *te = 0;
+  const Text_t    *tb = 0;
 
   // ZNC geometry ------------------------------------
   tb = "ZNC";
@@ -153,16 +168,13 @@ void esd_zdc()
   /*
   TEveStraightLineSet *ls = 0;
 
-    This part has to be fixed: the getters now depend on the beam type: pp or PbPb,
-    and in case of PbPb we also habe to provide the beam. Peter
-  Double32_t *cNA = esd->GetZNACentroid();
+  const Double32_t *cNA = esd->GetZNACentroid();
   ls = zdc_make_cross("ZNA Centroid", "ZNA",
                       cNA[0], cNA[1],  g_zdc_dist * g_zdc_scale,
                       g_zdc_cross, g_zdc_cross, g_zdc_cross);
   l->AddElement(ls);
 
-  Double32_t *cNC = esd->GetZNCCentroid();
+  const Double32_t *cNC = esd->GetZNCCentroid();
   ls = zdc_make_cross("ZNA Centroid", "ZNA",
                       cNC[0], cNC[1], -g_zdc_dist * g_zdc_scale,
                       g_zdc_cross, g_zdc_cross, g_zdc_cross);
index 7c9f56e2204f24150c947a67aa77fbda3aaea30c..e29b8ba01a2f2a1b21da90c1063049955f10d217 100644 (file)
@@ -7,6 +7,10 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
+
 void event_first()
 {
   if (AliEveEventManager::GetMaster() == 0) {
index 13b229184cef619535d4fef263e6198acdadbe7b..9e7329c772f2cfa4acd797d1d457f49fe307bd28 100644 (file)
@@ -7,6 +7,10 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
+
 /// \ingroup evemacros
 /// \file event_goto.C
 
index 3b71e73f60ab57f6442b27acf5b510742d7bc6fd..9505715d2b087c53f76477aca3e6fbbe396a3bf8 100644 (file)
@@ -7,6 +7,10 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
+
 void event_last()
 {
   if (AliEveEventManager::GetMaster() == 0) {
index cca485775d68097b7d79b7980fb974476d61830c..06e592c8b000baeb1709af42fe414836670a1285 100644 (file)
@@ -7,6 +7,10 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
+
 void event_next()
 {
   if (AliEveEventManager::GetMaster() == 0) {
index e7fc6b923dc533607c5280f2cee2830578a18eef..14881a6ed038a8ce35b4f19f29cf4c0989c557cd 100644 (file)
@@ -7,6 +7,10 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
+
 void event_prev()
 {
   if (AliEveEventManager::GetMaster() == 0) {
index 3886fd11bec91992697912598d133cd43600c202..442a6873d5c3a7673851dea23239ed6a36a3f415 100644 (file)
@@ -1,3 +1,11 @@
+
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TStyle.h>
+#include <TEveManager.h>
+
+#include <EVE/EveDet/AliEveFMDLoader.h>
+#endif
+
 void fmd_digits()
 {
   gStyle->SetPalette(1);
index e29be95bd496eaf88c78488eb05945fd55d71af1..bc28e4ed85d88d36c96323dae696bf50286efb89 100644 (file)
@@ -1,3 +1,11 @@
+
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TStyle.h>
+#include <TEveManager.h>
+
+#include <EVE/EveDet/AliEveFMDLoader.h>
+#endif
+
 void fmd_esd()
 {
   gStyle->SetPalette(1);
index 17de6d3d36b30a3c6cafb9892c99db0b6e81ad89..b4c26553efce45c24d7af1301ffc164cb13c4fe8 100644 (file)
@@ -1,3 +1,11 @@
+
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TStyle.h>
+#include <TEveManager.h>
+
+#include <EVE/EveDet/AliEveFMDLoader.h>
+#endif
+
 void fmd_hits()
 {
   gStyle->SetPalette(1);
index 799084b53f476cd0c12f6b7b2cda323ff9424158..0f254d54ee1e7cbd5d44b0a320f26a1fd4bdb783 100644 (file)
@@ -7,6 +7,19 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TStyle.h>
+#include <TTree.h>
+#include <TEveManager.h>
+#include <TEvePointSet.h>
+#include <TEveTreeTools.h>
+#include <TEvePointSet.h>
+
+#include <STEER/STEER/AliRunLoader.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveDet/AliEveFMDLoader.h>
+#endif
+
 TEvePointSet*
 fmd_hits2(const char *varexp    = "fX:fY:fZ",
          const char *selection = "")
index d3b663952f7188108c6c22ed75a7674e2bca2259..24e6f40d54f56fd98c93a12c293c108f09828e39 100644 (file)
@@ -1,3 +1,11 @@
+
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TStyle.h>
+#include <TEveManager.h>
+
+#include <EVE/EveDet/AliEveFMDLoader.h>
+#endif
+
 void fmd_raw()
 {
   gStyle->SetPalette(1);
index 261644e9b5650b07f6ca2604c6be2245d7db1483..2057829b4719451d80a4728dad2f686c5f22bfe1 100644 (file)
@@ -7,6 +7,16 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGeoManager.h>
+#include <TGeoNode.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEveGeoNode.h>
+
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
+
 void geom_acorde()
 {
   AliEveEventManager::AssertGeometry();
index 0ad115b242c40e94345157d6fc6c5bf8b60d8a97..83be8d37fadd3f1053cf259dd121e6f939bd44a1 100644 (file)
@@ -7,6 +7,13 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGeoManager.h>
+#include <TGeoNode.h>
+#include <TEveManager.h>
+#include <TEveGeoNode.h>
+#endif
+
 void geom_all()
 {
   gGeoManager = gEve->GetDefaultGeometry();
index 43ea6f506b3f81199b35385d1a4aec3a5813e61f..d4ad06ce1a476001ba95b40fd3d21cb6157027b4 100644 (file)
@@ -7,6 +7,13 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGeoManager.h>
+#include <TGeoNode.h>
+#include <TEveManager.h>
+#include <TEveGeoNode.h>
+#endif
+
 void geom_ddip()
 {
   gGeoManager = gEve->GetDefaultGeometry();
index 6da499facd2475c51f1ca59911fb4d8db6a80ef3..00120c9ef700e4d0e3d1ef15b3c25945eff58002 100644 (file)
@@ -7,6 +7,13 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGeoManager.h>
+#include <TGeoNode.h>
+#include <TEveManager.h>
+#include <TEveGeoNode.h>
+#endif
+
 void geom_emcal()
 {
   gGeoManager = gEve->GetDefaultGeometry();
index 4aef2d5b0bdf7a4d3050977a07eedfeeb2fd2696..1db20bbf42c5d51dc7244b366e1e7a257ce06c45 100644 (file)
@@ -7,6 +7,16 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGeoManager.h>
+#include <TGeoNode.h>
+#include <TEveManager.h>
+#include <TEveGeoNode.h>
+#include <TEveElement.h>
+
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
+
 void geom_fmd()
 {
   gGeoManager = AliEveEventManager::AssertGeometry();
index 1b3c9dfea75aff57adc3e73478a66e1a521810a6..769566839476401d9a82bfc2aa33c1d473e1c20e 100644 (file)
@@ -7,6 +7,15 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TFile.h>
+#include <TEveManager.h>
+#include <TEveGeoNode.h>
+#include <TEveElement.h>
+#include <TEveGeoShape.h>
+#include <TEveGeoShapeExtract.h>
+#endif
+
 TEveGeoShape* geom_gentle(Bool_t register_as_global=kTRUE)
 {
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
index ccb930cd941e33dfbadc811a2783ba96f1947645..d9cc7f3014ff21c1d892532d51003c8ad3e22759 100644 (file)
@@ -1,9 +1,25 @@
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TFile.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEveGeoShape.h>
+#include <TEveGeoShapeExtract.h>
+
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveBase/AliEveMultiView.h>
+#endif
+
+
 void geom_gentle_bright(Bool_t register_as_global=kTRUE)
 {
-
-  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
+  TEveGeoShape *gsre1;
+  TEveGeoShape *gsre2;
+  TEveGeoShape *gsre3;
+  
+  
+{ TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre1 = TEveGeoShape::ImportShapeExtract(gse);
+  gsre1 = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
 
   if (register_as_global)
@@ -17,7 +33,7 @@ void geom_gentle_bright(Bool_t register_as_global=kTRUE)
   TEveElement::List_i i = gsre1->BeginChildren();
 
 //ITS
-
+  {
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);
   TEveElement::List_i j = lvl1->BeginChildren();
@@ -42,11 +58,11 @@ void geom_gentle_bright(Bool_t register_as_global=kTRUE)
   its3->SetRnrSelf(kTRUE);
   its3->SetMainColor(kYellow);
 //  its3->SetMainTransparency(60);
-
+  }
 //TPC
 
   i++;
-
+  {
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);
   TEveElement::List_i j = lvl1->BeginChildren();
@@ -82,11 +98,12 @@ void geom_gentle_bright(Bool_t register_as_global=kTRUE)
 //  tpc3->SetMainColor(1);
 //  tpc3->SetMainTransparency(70);
   m++;
-
+  }
+  
 //TRD+TOF
 
   i++;
-
+  {
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);
   TEveElement::List_i j = lvl1->BeginChildren();
@@ -101,11 +118,11 @@ void geom_gentle_bright(Bool_t register_as_global=kTRUE)
   tof1->SetRnrSelf(kTRUE);
   tof1->SetMainColor(kMagenta+3);
 //  tof1->SetMainTransparency(80);
-
+  }
 //PHOS
 
   i++;
-
+  {
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);
 
@@ -116,11 +133,11 @@ void geom_gentle_bright(Bool_t register_as_global=kTRUE)
       lvl2->SetMainColor(kRed);
 //      lvl2->SetMainTransparency(20);
     }
-
+  }
 //HMPID
 
   i++;
-
+  {
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);
 
@@ -131,19 +148,21 @@ void geom_gentle_bright(Bool_t register_as_global=kTRUE)
       lvl2->SetMainColor(kBlue);
 //      lvl2->SetMainTransparency(20);
     }
+  }
+}
 
-  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
+{ TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre2 = TEveGeoShape::ImportShapeExtract(gse);
+  gsre2 = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
 
   // Fix visibility, color and transparency
 
   gsre2->SetRnrSelf(kFALSE);
   TEveElement::List_i i = gsre2->BeginChildren();
-
+  
 //ITS
-
+  {
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);
   TEveElement::List_i j = lvl1->BeginChildren();
@@ -169,11 +188,11 @@ void geom_gentle_bright(Bool_t register_as_global=kTRUE)
   its3->SetRnrSelf(kTRUE);
   its3->SetMainColor(1);
   its3->SetMainTransparency(80);
-
+  }
 //TPC
 
   i++;
-
+  {
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);
 
@@ -184,12 +203,12 @@ void geom_gentle_bright(Bool_t register_as_global=kTRUE)
       lvl2->SetMainColor(1);
       lvl2->SetMainTransparency(80);
     }
-
+  }
 //PHOS
 
   i++;
   i++;
-
+  {
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);
 
@@ -201,11 +220,11 @@ void geom_gentle_bright(Bool_t register_as_global=kTRUE)
       lvl2->SetMainTransparency(80);
 
     }
-
+  }
 //HMPID
 
   i++;
-
+  {
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);
 
@@ -216,19 +235,21 @@ void geom_gentle_bright(Bool_t register_as_global=kTRUE)
       lvl2->SetMainColor(1);
       lvl2->SetMainTransparency(80);
     }
+  }
+}
 
-  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
+{ TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre3 = TEveGeoShape::ImportShapeExtract(gse);
+  gsre3 = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
 
   // Fix visibility, color and transparency
 
   gsre3->SetRnrSelf(kFALSE);
   TEveElement::List_i i = gsre3->BeginChildren();
-
+  
 //ITS
-
+  {
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);
   TEveElement::List_i j = lvl1->BeginChildren();
@@ -250,11 +271,11 @@ void geom_gentle_bright(Bool_t register_as_global=kTRUE)
   TEveGeoShape* its3 = (TEveGeoShape*) *k;
   its3->SetRnrSelf(kTRUE);
   its3->SetMainColor(1);
-
+  }
 //TPC
 
   i++;
-
+  {
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);
 
@@ -266,12 +287,12 @@ void geom_gentle_bright(Bool_t register_as_global=kTRUE)
       lvl2->SetMainTransparency(80);
 
     }
-
+  }
 //PHOS
 
   i++;
   i++;
+  {
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);
 
@@ -282,11 +303,12 @@ void geom_gentle_bright(Bool_t register_as_global=kTRUE)
       lvl2->SetMainColor(1);
       lvl2->SetMainTransparency(80);
     }
-
+  }
 //HMPID
 
   i++;
 
+  {
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);
 
@@ -297,15 +319,15 @@ void geom_gentle_bright(Bool_t register_as_global=kTRUE)
       lvl2->SetMainColor(1);
       lvl2->SetMainTransparency(80);
     }
-
-
+  }
+}
 //fix all the viewers
 
   TEveElement* top = gEve->GetCurrentEvent();
 
   AliEveMultiView *mv = AliEveMultiView::Instance();
 
-  mv->InitGeomGentle(gsre1, gsre2, gsre3);
+  mv->InitGeomGentle(gsre1, gsre2, gsre3, 0);
 
   gEve->FullRedraw3D(kTRUE, kTRUE);
 
index 06c82e3e94da1eb422012a71ac7066c2f9f5e5a9..c3e850fe17d2df1f75e7125f54021b7e81b56783 100644 (file)
@@ -1,31 +1,54 @@
-void geom_gentle_default(Bool_t register_as_global=kTRUE)
-{
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TFile.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEveGeoShape.h>
+#include <TEveGeoShapeExtract.h>
 
-  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
-  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre1 = TEveGeoShape::ImportShapeExtract(gse);
-  f.Close();
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveBase/AliEveMultiView.h>
+#endif
 
-  if (register_as_global)
+void geom_gentle_default(Bool_t register_as_global=kTRUE)
+{
+  TEveGeoShape* gsre1;
+  TEveGeoShape* gsre2;
+  TEveGeoShape* gsre3;
+  
+  // Geometry 3D
   {
-    gEve->AddGlobalElement(gsre1);
+    TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
+    TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+    gsre1 = TEveGeoShape::ImportShapeExtract(gse);
+    f.Close();
+
+    if (register_as_global)
+    {
+      gEve->AddGlobalElement(gsre1);
+    }
   }
-
-  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
-  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre2 = TEveGeoShape::ImportShapeExtract(gse);
-  f.Close();
-
-  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
-  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre3 = TEveGeoShape::ImportShapeExtract(gse);
-  f.Close();
-
+  
+  // Geometry rphi
+  {
+    TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
+    TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+    gsre2 = TEveGeoShape::ImportShapeExtract(gse);
+    f.Close();
+  }
+  
+  // Geometry rhoz
+  {
+    TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
+    TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+    gsre3 = TEveGeoShape::ImportShapeExtract(gse);
+    f.Close();
+  }
+  
   TEveElement* top = gEve->GetCurrentEvent();
 
   AliEveMultiView *mv = AliEveMultiView::Instance();
-
-  mv->InitGeomGentle(gsre1, gsre2, gsre3);
+  
+  mv->InitGeomGentle(gsre1, gsre2, gsre3, 0);
 
   gEve->FullRedraw3D(kTRUE, kTRUE);
 
index f58564848254c967d539f0c0456a82ef35324c48..eed733767a69ec6be901ca4a54132e0f6b7133ea 100644 (file)
-void geom_gentle_green(Bool_t register_as_global=kTRUE)
-{
-
-  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
-  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre1 = TEveGeoShape::ImportShapeExtract(gse);
-  f.Close();
-
-  if (register_as_global)
-  {
-    gEve->AddGlobalElement(gsre1);
-  }
-
-  // Fix visibility, color and transparency
-
-  gsre1->SetRnrSelf(kFALSE);
-  TEveElement::List_i i = gsre1->BeginChildren();
-
-//ITS
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* its1 = (TEveGeoShape*) *k;
-  its1->SetRnrSelf(kTRUE);
-  its1->SetMainColor(kMagenta-5);
-  its1->SetMainTransparency(60);
-  k++;
-
-  TEveGeoShape* its2 = (TEveGeoShape*) *k;
-  its2->SetRnrSelf(kTRUE);
-  its2->SetMainColor(kCyan-5);
-  its2->SetMainTransparency(60);
-  k++;
-
-  TEveGeoShape* its3 = (TEveGeoShape*) *k;
-  its3->SetRnrSelf(kTRUE);
-  its3->SetMainColor(kGreen-5);
-  its3->SetMainTransparency(60);
-
-//TPC
-
-  i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* lvl3 = (TEveGeoShape*) *k;
-  lvl3->SetRnrSelf(kFALSE);
-  lvl3->SetMainColor(1);
-  lvl3->SetMainTransparency(70);
-  TEveElement::List_i l = lvl3->BeginChildren();
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TFile.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEveGeoShape.h>
+#include <TEveGeoShapeExtract.h>
 
-  TEveGeoShape* lvl4 = (TEveGeoShape*) *l;
-  lvl4->SetRnrSelf(kFALSE);
-  TEveElement::List_i m = lvl4->BeginChildren();
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveBase/AliEveMultiView.h>
+#endif
 
-  TEveGeoShape* tpc1 = (TEveGeoShape*) *m;
-  tpc1->SetRnrSelf(kTRUE);
-  tpc1->SetMainColor(1);
-  tpc1->SetMainTransparency(70);
-  m++;
-
-  TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
-  tpc2->SetRnrSelf(kTRUE);
-  tpc2->SetMainColor(1);
-  tpc2->SetMainTransparency(70);
-  m++;
-
-  TEveGeoShape* tpc3 = (TEveGeoShape*) *m;
-  tpc3->SetRnrSelf(kTRUE);
-  tpc3->SetMainColor(1);
-  tpc3->SetMainTransparency(70);
-  m++;
-
-//TRD+TOF
-
-  i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* trd1 = (TEveGeoShape*) *j;
-  trd1->SetRnrSelf(kTRUE);
-  trd1->SetMainColor(kMagenta-8);
-  trd1->SetMainTransparency(80);
-  j++;
-
-  TEveGeoShape* tof1 = (TEveGeoShape*) *j;
-  tof1->SetRnrSelf(kTRUE);
-  tof1->SetMainColor(kMagenta-1);
-  tof1->SetMainTransparency(80);
-
-//PHOS
-
-  i++;
+void geom_gentle_green(Bool_t register_as_global=kTRUE)
+{
+  TEveGeoShape* gsre1;
+  TEveGeoShape* gsre2;
+  TEveGeoShape* gsre3;
 
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
+  {TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
+    TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+    gsre1 = TEveGeoShape::ImportShapeExtract(gse);
+    f.Close();
 
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
+    if (register_as_global)
     {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(kGreen-8);
-      lvl2->SetMainTransparency(20);
+      gEve->AddGlobalElement(gsre1);
     }
 
-//HMPID
-
-  i++;
+    // Fix visibility, color and transparency
 
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
+    gsre1->SetRnrSelf(kFALSE);
+    TEveElement::List_i i = gsre1->BeginChildren();
 
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
+  //ITS
     {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(kBlue-5);
-      lvl2->SetMainTransparency(20);
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* its1 = (TEveGeoShape*) *k;
+    its1->SetRnrSelf(kTRUE);
+    its1->SetMainColor(kMagenta-5);
+    its1->SetMainTransparency(60);
+    k++;
+
+    TEveGeoShape* its2 = (TEveGeoShape*) *k;
+    its2->SetRnrSelf(kTRUE);
+    its2->SetMainColor(kCyan-5);
+    its2->SetMainTransparency(60);
+    k++;
+
+    TEveGeoShape* its3 = (TEveGeoShape*) *k;
+    its3->SetRnrSelf(kTRUE);
+    its3->SetMainColor(kGreen-5);
+    its3->SetMainTransparency(60);
     }
+  //TPC
 
-  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
-  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre2 = TEveGeoShape::ImportShapeExtract(gse);
-  f.Close();
-
-  // Fix visibility, color and transparency
-
-  gsre2->SetRnrSelf(kFALSE);
-  TEveElement::List_i i = gsre2->BeginChildren();
-
-//ITS
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* its1 = (TEveGeoShape*) *k;
-  its1->SetRnrSelf(kTRUE);
-  its1->SetMainColor(1);
-  its1->SetMainTransparency(80);
-
-  k++;
-
-  TEveGeoShape* its2 = (TEveGeoShape*) *k;
-  its2->SetRnrSelf(kTRUE);
-  its2->SetMainColor(1);
-  its2->SetMainTransparency(80);
-  k++;
-
-  TEveGeoShape* its3 = (TEveGeoShape*) *k;
-  its3->SetRnrSelf(kTRUE);
-  its3->SetMainColor(1);
-  its3->SetMainTransparency(80);
-
-//TPC
-
-  i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    i++;
     {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(1);
-      lvl2->SetMainTransparency(80);
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* lvl3 = (TEveGeoShape*) *k;
+    lvl3->SetRnrSelf(kFALSE);
+    lvl3->SetMainColor(1);
+    lvl3->SetMainTransparency(70);
+    TEveElement::List_i l = lvl3->BeginChildren();
+
+    TEveGeoShape* lvl4 = (TEveGeoShape*) *l;
+    lvl4->SetRnrSelf(kFALSE);
+    TEveElement::List_i m = lvl4->BeginChildren();
+
+    TEveGeoShape* tpc1 = (TEveGeoShape*) *m;
+    tpc1->SetRnrSelf(kTRUE);
+    tpc1->SetMainColor(1);
+    tpc1->SetMainTransparency(70);
+    m++;
+
+    TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
+    tpc2->SetRnrSelf(kTRUE);
+    tpc2->SetMainColor(1);
+    tpc2->SetMainTransparency(70);
+    m++;
+
+    TEveGeoShape* tpc3 = (TEveGeoShape*) *m;
+    tpc3->SetRnrSelf(kTRUE);
+    tpc3->SetMainColor(1);
+    tpc3->SetMainTransparency(70);
+    m++;
     }
+  //TRD+TOF
 
-//PHOS
-
-  i++;
-  i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    i++;
     {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(1);
-      lvl2->SetMainTransparency(80);
-
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* trd1 = (TEveGeoShape*) *j;
+    trd1->SetRnrSelf(kTRUE);
+    trd1->SetMainColor(kMagenta-8);
+    trd1->SetMainTransparency(80);
+    j++;
+
+    TEveGeoShape* tof1 = (TEveGeoShape*) *j;
+    tof1->SetRnrSelf(kTRUE);
+    tof1->SetMainColor(kMagenta-1);
+    tof1->SetMainTransparency(80);
     }
+  //PHOS
 
-//HMPID
-
-  i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    i++;
     {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(1);
-      lvl2->SetMainTransparency(80);
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainColor(kGreen-8);
+        lvl2->SetMainTransparency(20);
+      }
     }
+  //HMPID
 
-  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
-  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre3 = TEveGeoShape::ImportShapeExtract(gse);
-  f.Close();
-
-  // Fix visibility, color and transparency
-
-  gsre3->SetRnrSelf(kFALSE);
-  TEveElement::List_i i = gsre3->BeginChildren();
-
-//ITS
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
+    i++;
+    {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainColor(kBlue-5);
+        lvl2->SetMainTransparency(20);
+      }
+    }
+  }
+  
+  {TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
+    TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+    gsre2 = TEveGeoShape::ImportShapeExtract(gse);
+    f.Close();
 
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
+    // Fix visibility, color and transparency
 
-  TEveGeoShape* its1 = (TEveGeoShape*) *k;
-  its1->SetRnrSelf(kTRUE);
-  its1->SetMainColor(1);
-  k++;
+    gsre2->SetRnrSelf(kFALSE);
+    TEveElement::List_i i = gsre2->BeginChildren();
 
-  TEveGeoShape* its2 = (TEveGeoShape*) *k;
-  its2->SetRnrSelf(kTRUE);
-  its2->SetMainColor(1);
-  k++;
+  //ITS
+    {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* its1 = (TEveGeoShape*) *k;
+    its1->SetRnrSelf(kTRUE);
+    its1->SetMainColor(1);
+    its1->SetMainTransparency(80);
+
+    k++;
+
+    TEveGeoShape* its2 = (TEveGeoShape*) *k;
+    its2->SetRnrSelf(kTRUE);
+    its2->SetMainColor(1);
+    its2->SetMainTransparency(80);
+    k++;
+
+    TEveGeoShape* its3 = (TEveGeoShape*) *k;
+    its3->SetRnrSelf(kTRUE);
+    its3->SetMainColor(1);
+    its3->SetMainTransparency(80);
+    }
+  //TPC
 
-  TEveGeoShape* its3 = (TEveGeoShape*) *k;
-  its3->SetRnrSelf(kTRUE);
-  its3->SetMainColor(1);
+    i++;
+    {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainColor(1);
+        lvl2->SetMainTransparency(80);
+      }
+    }
+  //PHOS
 
-//TPC
+    i++;
+    i++;
+    {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
 
-  i++;
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainColor(1);
+        lvl2->SetMainTransparency(80);
 
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
+      }
+    }
+  //HMPID
 
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    i++;
     {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(1);
-      lvl2->SetMainTransparency(80);
-
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainColor(1);
+        lvl2->SetMainTransparency(80);
+      }
     }
+  }
+  
+  { TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
+    TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+    gsre3 = TEveGeoShape::ImportShapeExtract(gse);
+    f.Close();
 
-//PHOS
+    // Fix visibility, color and transparency
 
-  i++;
-  i++;
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
+    gsre3->SetRnrSelf(kFALSE);
+    TEveElement::List_i i = gsre3->BeginChildren();
 
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+  //ITS
     {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(1);
-      lvl2->SetMainTransparency(80);
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* its1 = (TEveGeoShape*) *k;
+    its1->SetRnrSelf(kTRUE);
+    its1->SetMainColor(1);
+    k++;
+
+    TEveGeoShape* its2 = (TEveGeoShape*) *k;
+    its2->SetRnrSelf(kTRUE);
+    its2->SetMainColor(1);
+    k++;
+
+    TEveGeoShape* its3 = (TEveGeoShape*) *k;
+    its3->SetRnrSelf(kTRUE);
+    its3->SetMainColor(1);
     }
+  //TPC
 
-//HMPID
+    i++;
+    {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
 
-  i++;
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainColor(1);
+        lvl2->SetMainTransparency(80);
 
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
+      }
+    }
+  //PHOS
 
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    i++;
+    i++;
     {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(1);
-      lvl2->SetMainTransparency(80);
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainColor(1);
+        lvl2->SetMainTransparency(80);
+      }
     }
+  //HMPID
 
+    i++;
+    {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainColor(1);
+        lvl2->SetMainTransparency(80);
+      }
+    }
 
+  }
+  
 //fix all the viewers
 
   TEveElement* top = gEve->GetCurrentEvent();
 
   AliEveMultiView *mv = AliEveMultiView::Instance();
-
-  mv->InitGeomGentle(gsre1, gsre2, gsre3);
+  
+  mv->InitGeomGentle(gsre1, gsre2, gsre3, 0);
 
   gEve->FullRedraw3D(kTRUE, kTRUE);
 
index 0118de78d1a250f8fc6b671612c2695ab6d693ad..c0f40c09f5c53295d805b29b67e2957f15153a06 100644 (file)
@@ -5,6 +5,14 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TFile.h>
+#include <TGLViewer.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEveGeoShape.h>
+#include <TEveGeoShapeExtract.h>
+#endif
 
 /// \ingroup evemacros
 /// \file geom_gentle_muon.C
index 3e2d26b2514f0262db19aaa912379a3a72a5b60e..94ec3f9c2819ce8cec9f441fbfa9512988be2ab1 100644 (file)
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TFile.h>
+#include <TGLViewer.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEveGeoShape.h>
+#include <TEveGeoShapeExtract.h>
+
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveBase/AliEveMultiView.h>
+#endif
+
 void geom_gentle_notransparency(Bool_t register_as_global=kTRUE)
 {
+  TEveGeoShape* gsre1;
+  TEveGeoShape* gsre2;
+  TEveGeoShape* gsre3;
+  
+{
+    TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
+    TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+    gsre1 = TEveGeoShape::ImportShapeExtract(gse);
+    f.Close();
 
-  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
-  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre1 = TEveGeoShape::ImportShapeExtract(gse);
-  f.Close();
-
-  if (register_as_global)
-  {
-    gEve->AddGlobalElement(gsre1);
-  }
-
-  // Fix visibility, color and transparency
-
-  gsre1->SetRnrSelf(kFALSE);
-  TEveElement::List_i i = gsre1->BeginChildren();
-
-//ITS
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* its1 = (TEveGeoShape*) *k;
-  its1->SetRnrSelf(kTRUE);
-  its1->SetMainTransparency(5);
-  k++;
-
-  TEveGeoShape* its2 = (TEveGeoShape*) *k;
-  its2->SetRnrSelf(kTRUE);
-  its2->SetMainTransparency(5);
-  k++;
-
-  TEveGeoShape* its3 = (TEveGeoShape*) *k;
-  its3->SetRnrSelf(kTRUE);
-  its3->SetMainTransparency(5);
-
-//TPC
-
-  i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* lvl3 = (TEveGeoShape*) *k;
-  lvl3->SetRnrSelf(kTRUE);
-  lvl3->SetMainTransparency(5);
-  TEveElement::List_i l = lvl3->BeginChildren();
-
-  TEveGeoShape* lvl4 = (TEveGeoShape*) *l;
-  lvl4->SetRnrSelf(kFALSE);
-  TEveElement::List_i m = lvl4->BeginChildren();
-
-  TEveGeoShape* tpc1 = (TEveGeoShape*) *m;
-  tpc1->SetRnrSelf(kTRUE);
-  tpc1->SetMainTransparency(5);
-  m++;
-
-  TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
-  tpc2->SetMainColor(kGray);
-  tpc2->SetMainTransparency(5);
-  m++;
-
-  TEveGeoShape* tpc3 = (TEveGeoShape*) *m;
-  tpc3->SetRnrSelf(kTRUE);
-  tpc3->SetMainTransparency(5);
-  m++;
-
-//TRD+TOF
-
-  i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kTRUE);
-  lvl2->SetMainTransparency(5);
-  j++;
+    if (register_as_global)
+    {
+      gEve->AddGlobalElement(gsre1);
+    }
 
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kTRUE);
-  lvl2->SetMainTransparency(5);
-  j++;
+    // Fix visibility, color and transparency
 
-//PHOS
+    gsre1->SetRnrSelf(kFALSE);
+    TEveElement::List_i i = gsre1->BeginChildren();
 
-  i++;
+  //ITS
+    {
+      TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+      lvl1->SetRnrSelf(kFALSE);
+      TEveElement::List_i j = lvl1->BeginChildren();
 
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kFALSE);
+      TEveElement::List_i k = lvl2->BeginChildren();
+
+      TEveGeoShape* its1 = (TEveGeoShape*) *k;
+      its1->SetRnrSelf(kTRUE);
+      its1->SetMainTransparency(5);
+      k++;
+
+      TEveGeoShape* its2 = (TEveGeoShape*) *k;
+      its2->SetRnrSelf(kTRUE);
+      its2->SetMainTransparency(5);
+      k++;
+
+      TEveGeoShape* its3 = (TEveGeoShape*) *k;
+      its3->SetRnrSelf(kTRUE);
+      its3->SetMainTransparency(5);
+    }
+  //TPC
 
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    i++;
     {
+      TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+      lvl1->SetRnrSelf(kFALSE);
+      TEveElement::List_i j = lvl1->BeginChildren();
+
       TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainTransparency(5);
+      lvl2->SetRnrSelf(kFALSE);
+      TEveElement::List_i k = lvl2->BeginChildren();
+
+      TEveGeoShape* lvl3 = (TEveGeoShape*) *k;
+      lvl3->SetRnrSelf(kTRUE);
+      lvl3->SetMainTransparency(5);
+      TEveElement::List_i l = lvl3->BeginChildren();
+
+      TEveGeoShape* lvl4 = (TEveGeoShape*) *l;
+      lvl4->SetRnrSelf(kFALSE);
+      TEveElement::List_i m = lvl4->BeginChildren();
+
+      TEveGeoShape* tpc1 = (TEveGeoShape*) *m;
+      tpc1->SetRnrSelf(kTRUE);
+      tpc1->SetMainTransparency(5);
+      m++;
+
+      TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
+      tpc2->SetMainColor(kGray);
+      tpc2->SetMainTransparency(5);
+      m++;
+
+      TEveGeoShape* tpc3 = (TEveGeoShape*) *m;
+      tpc3->SetRnrSelf(kTRUE);
+      tpc3->SetMainTransparency(5);
+      m++;
     }
 
-//HMPID
+  //TRD+TOF
 
-  i++;
+    i++;
+    {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kTRUE);
+    lvl2->SetMainTransparency(5);
+    j++;
+
+    TEveGeoShape* lvl3 = (TEveGeoShape*) *j;
+    lvl3->SetRnrSelf(kTRUE);
+    lvl3->SetMainTransparency(5);
+    j++;
+    }
 
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
+  //PHOS
 
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    i++;
     {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainTransparency(5);
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainTransparency(5);
+      }
     }
+    
+  //HMPID
 
+    i++;
+    {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainTransparency(5);
+      }
+    }
+}
 
+{
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre2 = TEveGeoShape::ImportShapeExtract(gse);
+  gsre2 = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
+}
 
+{
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre3 = TEveGeoShape::ImportShapeExtract(gse);
+  gsre3 = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
+}
 
   TEveElement* top = gEve->GetCurrentEvent();
 
   AliEveMultiView *mv = AliEveMultiView::Instance();
 
-  mv->InitGeomGentle(gsre1, gsre2, gsre3);
+  mv->InitGeomGentle(gsre1, gsre2, gsre3, 0);
 
   gEve->FullRedraw3D(kTRUE, kTRUE);
 
index 85b7eefc55a0b6352f553f8e3529fd58ff8d99cf..64d150ddb5f87877bb4a73d1fb74c2b628cef9be 100644 (file)
@@ -1,9 +1,25 @@
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TFile.h>
+#include <TGLViewer.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEveGeoShape.h>
+#include <TEveGeoShapeExtract.h>
+
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveBase/AliEveMultiView.h>
+#endif
+
 void geom_gentle_projector(Bool_t register_as_global=kTRUE)
 {
-
+  TEveGeoShape* gsre1;
+  TEveGeoShape* gsre2;
+  TEveGeoShape* gsre3;
+  
+  {
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre1 = TEveGeoShape::ImportShapeExtract(gse);
+  gsre1 = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
 
   if (register_as_global)
@@ -16,116 +32,120 @@ void geom_gentle_projector(Bool_t register_as_global=kTRUE)
   gsre1->SetRnrSelf(kFALSE);
   TEveElement::List_i i = gsre1->BeginChildren();
 
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* its1 = (TEveGeoShape*) *k;
-  its1->SetRnrSelf(kTRUE);
-  its1->SetMainColor(kBlue-6);
-  its1->SetMainTransparency(50);
-  k++;
-
-  TEveGeoShape* its2 = (TEveGeoShape*) *k;
-  its2->SetRnrSelf(kTRUE);
-  its2->SetMainTransparency(50);
-  k++;
-
-  TEveGeoShape* its3 = (TEveGeoShape*) *k;
-  its3->SetRnrSelf(kTRUE);
-  its1->SetMainColor(kGreen-10);
-  its3->SetMainTransparency(50);
-
+//ITS
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* its1 = (TEveGeoShape*) *k;
+    its1->SetRnrSelf(kTRUE);
+    its1->SetMainColor(kBlue-6);
+    its1->SetMainTransparency(50);
+    k++;
+
+    TEveGeoShape* its2 = (TEveGeoShape*) *k;
+    its2->SetRnrSelf(kTRUE);
+    its2->SetMainTransparency(50);
+    k++;
+
+    TEveGeoShape* its3 = (TEveGeoShape*) *k;
+    its3->SetRnrSelf(kTRUE);
+    its1->SetMainColor(kGreen-10);
+    its3->SetMainTransparency(50);
+  }
 //TPC
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* lvl3 = (TEveGeoShape*) *k;
-  lvl3->SetRnrSelf(kTRUE);
-  lvl3->SetMainTransparency(50);
-  TEveElement::List_i l = lvl3->BeginChildren();
-
-  TEveGeoShape* lvl4 = (TEveGeoShape*) *l;
-  lvl4->SetRnrSelf(kFALSE);
-  TEveElement::List_i m = lvl4->BeginChildren();
-
-  TEveGeoShape* tpc1 = (TEveGeoShape*) *m;
-  tpc1->SetRnrSelf(kTRUE);
-  tpc1->SetMainTransparency(50);
-  m++;
-
-  TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
-  tpc2->SetMainColor(kGray);
-  tpc2->SetMainTransparency(50);
-  m++;
-
-  TEveGeoShape* tpc3 = (TEveGeoShape*) *m;
-  tpc3->SetRnrSelf(kTRUE);
-  tpc3->SetMainTransparency(50);
-  m++;
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* lvl3 = (TEveGeoShape*) *k;
+    lvl3->SetRnrSelf(kTRUE);
+    lvl3->SetMainTransparency(50);
+    TEveElement::List_i l = lvl3->BeginChildren();
+
+    TEveGeoShape* lvl4 = (TEveGeoShape*) *l;
+    lvl4->SetRnrSelf(kFALSE);
+    TEveElement::List_i m = lvl4->BeginChildren();
+
+    TEveGeoShape* tpc1 = (TEveGeoShape*) *m;
+    tpc1->SetRnrSelf(kTRUE);
+    tpc1->SetMainTransparency(50);
+    m++;
+
+    TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
+    tpc2->SetMainColor(kGray);
+    tpc2->SetMainTransparency(50);
+    m++;
+
+    TEveGeoShape* tpc3 = (TEveGeoShape*) *m;
+    tpc3->SetRnrSelf(kTRUE);
+    tpc3->SetMainTransparency(50);
+    m++;
+  }
 //TRD+TOF
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kTRUE);
-  lvl2->SetMainTransparency(50);
-  j++;
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kTRUE);
-  lvl2->SetMainTransparency(50);
-  j++;
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kTRUE);
+    lvl2->SetMainTransparency(50);
+    j++;
+
+    TEveGeoShape* lvl3 = (TEveGeoShape*) *j;
+    lvl3->SetRnrSelf(kTRUE);
+    lvl3->SetMainTransparency(50);
+    j++;
+  }
 //PHOS
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainTransparency(50);
-    }
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainTransparency(50);
+      }
+  }
 //HMPID
 
   i++;
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainTransparency(50);
+      }
+  }
+}
 
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainTransparency(50);
-    }
-
-
+{
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre2 = TEveGeoShape::ImportShapeExtract(gse);
+  gsre2 = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
 
   // Fix visibility, color and transparency
@@ -134,73 +154,77 @@ void geom_gentle_projector(Bool_t register_as_global=kTRUE)
   TEveElement::List_i i = gsre2->BeginChildren();
 
 //ITS
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* its1 = (TEveGeoShape*) *k;
+    its1->SetRnrSelf(kTRUE);
+    its1->SetMainColor(kGreen-10);
+        its1->SetMainTransparency(70);
+    k++;
+
+    TEveGeoShape* its2 = (TEveGeoShape*) *k;
+    its2->SetRnrSelf(kTRUE);
+    its2->SetMainTransparency(70);
+    k++;
+
+    TEveGeoShape* its3 = (TEveGeoShape*) *k;
+    its3->SetRnrSelf(kTRUE);
+    its3->SetMainColor(kBlue-6);
+    its3->SetMainTransparency(70);
+  }
+}
 
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* its1 = (TEveGeoShape*) *k;
-  its1->SetRnrSelf(kTRUE);
-  its1->SetMainColor(kGreen-10);
-      its1->SetMainTransparency(70);
-  k++;
-
-  TEveGeoShape* its2 = (TEveGeoShape*) *k;
-  its2->SetRnrSelf(kTRUE);
-  its2->SetMainTransparency(70);
-  k++;
-
-  TEveGeoShape* its3 = (TEveGeoShape*) *k;
-  its3->SetRnrSelf(kTRUE);
-  its3->SetMainColor(kBlue-6);
-      its3->SetMainTransparency(70);
-
-
+{
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre3 = TEveGeoShape::ImportShapeExtract(gse);
+  gsre3 = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
 
   gsre3->SetRnrSelf(kFALSE);
   TEveElement::List_i i = gsre3->BeginChildren();
 
 //ITS
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* its1 = (TEveGeoShape*) *k;
-  its1->SetRnrSelf(kTRUE);
-      its1->SetMainTransparency(70);
-  its1->SetMainColor(kGreen-10);
-  k++;
-
-  TEveGeoShape* its2 = (TEveGeoShape*) *k;
-  its2->SetRnrSelf(kTRUE);
-      its2->SetMainTransparency(70);
-//  its2->SetMainColor(kRed+2);
-  k++;
-
-  TEveGeoShape* its3 = (TEveGeoShape*) *k;
-  its3->SetRnrSelf(kTRUE);
-  its3->SetMainColor(kBlue-6);
-  its3->SetMainTransparency(70);
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* its1 = (TEveGeoShape*) *k;
+    its1->SetRnrSelf(kTRUE);
+        its1->SetMainTransparency(70);
+    its1->SetMainColor(kGreen-10);
+    k++;
+
+    TEveGeoShape* its2 = (TEveGeoShape*) *k;
+    its2->SetRnrSelf(kTRUE);
+        its2->SetMainTransparency(70);
+  //  its2->SetMainColor(kRed+2);
+    k++;
+
+    TEveGeoShape* its3 = (TEveGeoShape*) *k;
+    its3->SetRnrSelf(kTRUE);
+    its3->SetMainColor(kBlue-6);
+    its3->SetMainTransparency(70);
+  }
+}
+  
 
   TEveElement* top = gEve->GetCurrentEvent();
 
   AliEveMultiView *mv = AliEveMultiView::Instance();
 
-  mv->InitGeomGentle(gsre1, gsre2, gsre3);
+  mv->InitGeomGentle(gsre1, gsre2, gsre3, 0);
 
   gEve->FullRedraw3D(kTRUE, kTRUE);
 
index 854e63a2e29ac59fee5536a923a2fe1639fd9441..dd55ec0192938446c7ac6cc2a3421b448023bae0 100644 (file)
@@ -1,8 +1,25 @@
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TFile.h>
+#include <TGLViewer.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEveGeoShape.h>
+#include <TEveGeoShapeExtract.h>
+
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveBase/AliEveMultiView.h>
+#endif
+
 void geom_gentle_tpc(Bool_t register_as_global=kTRUE)
+{
+  TEveGeoShape* gsre1;
+  TEveGeoShape* gsre2;
+  TEveGeoShape* gsre3;
+  
 {
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre1 = TEveGeoShape::ImportShapeExtract(gse);
+  gsre1 = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
 
   if (register_as_global)
@@ -17,109 +34,111 @@ void geom_gentle_tpc(Bool_t register_as_global=kTRUE)
   TEveElement::List_i i = gsre1->BeginChildren();
 
 //ITS
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* its1 = (TEveGeoShape*) *k;
-  its1->SetRnrSelf(kTRUE);
-  its1->SetMainColor(kRed);
-  k++;
-
-  TEveGeoShape* its2 = (TEveGeoShape*) *k;
-  its2->SetRnrSelf(kTRUE);
-  its2->SetMainColor(kRed+2);
-  k++;
-
-  TEveGeoShape* its3 = (TEveGeoShape*) *k;
-  its3->SetRnrSelf(kTRUE);
-  its3->SetMainColor(kRed+4);
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* its1 = (TEveGeoShape*) *k;
+    its1->SetRnrSelf(kTRUE);
+    its1->SetMainColor(kRed);
+    k++;
+
+    TEveGeoShape* its2 = (TEveGeoShape*) *k;
+    its2->SetRnrSelf(kTRUE);
+    its2->SetMainColor(kRed+2);
+    k++;
+
+    TEveGeoShape* its3 = (TEveGeoShape*) *k;
+    its3->SetRnrSelf(kTRUE);
+    its3->SetMainColor(kRed+4);
+  }
 //TPC
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* lvl3 = (TEveGeoShape*) *k;
-  lvl3->SetRnrSelf(kTRUE);
-  lvl3->SetMainColor(kBlue);
-  TEveElement::List_i l = lvl3->BeginChildren();
-
-  TEveGeoShape* lvl4 = (TEveGeoShape*) *l;
-  lvl4->SetRnrSelf(kFALSE);
-  TEveElement::List_i m = lvl4->BeginChildren();
-
-  TEveGeoShape* tpc1 = (TEveGeoShape*) *m;
-  tpc1->SetRnrSelf(kTRUE);
-  tpc1->SetMainColor(kGray);
-  m++;
-
-  TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
-  tpc2->SetRnrSelf(kTRUE);
-  tpc2->SetMainColor(kGray);
-  m++;
-
-  TEveGeoShape* tpc3 = (TEveGeoShape*) *m;
-  tpc3->SetRnrSelf(kTRUE);
-  tpc3->SetMainColor(kGray);
-  m++;
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* lvl3 = (TEveGeoShape*) *k;
+    lvl3->SetRnrSelf(kTRUE);
+    lvl3->SetMainColor(kBlue);
+    TEveElement::List_i l = lvl3->BeginChildren();
+
+    TEveGeoShape* lvl4 = (TEveGeoShape*) *l;
+    lvl4->SetRnrSelf(kFALSE);
+    TEveElement::List_i m = lvl4->BeginChildren();
+
+    TEveGeoShape* tpc1 = (TEveGeoShape*) *m;
+    tpc1->SetRnrSelf(kTRUE);
+    tpc1->SetMainColor(kGray);
+    m++;
+
+    TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
+    tpc2->SetRnrSelf(kTRUE);
+    tpc2->SetMainColor(kGray);
+    m++;
+
+    TEveGeoShape* tpc3 = (TEveGeoShape*) *m;
+    tpc3->SetRnrSelf(kTRUE);
+    tpc3->SetMainColor(kGray);
+    m++;
+  }
 //TRD+TOF
 
   i++;
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
 
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kFALSE);
-
-    }
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kFALSE);
 
+      }
+  }
 //PHOS
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kFALSE);
-    }
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kFALSE);
+      }
+  }
 //HMPID
 
   i++;
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kFALSE);
+      }
+  }
+}
 
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kFALSE);
-    }
-
-
+{
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre2 = TEveGeoShape::ImportShapeExtract(gse);
+  gsre2 = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
 
   // Fix visibility, color and transparency
@@ -128,73 +147,77 @@ void geom_gentle_tpc(Bool_t register_as_global=kTRUE)
   TEveElement::List_i i = gsre2->BeginChildren();
 
 //ITS
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* its1 = (TEveGeoShape*) *k;
-  its1->SetRnrSelf(kTRUE);
-  its1->SetMainColor(kRed);
-  k++;
-
-  TEveGeoShape* its2 = (TEveGeoShape*) *k;
-  its2->SetRnrSelf(kTRUE);
-  its2->SetMainColor(kRed+2);
-  k++;
-
-  TEveGeoShape* its3 = (TEveGeoShape*) *k;
-  its3->SetRnrSelf(kTRUE);
-  its3->SetMainColor(kRed+4);
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* its1 = (TEveGeoShape*) *k;
+    its1->SetRnrSelf(kTRUE);
+    its1->SetMainColor(kRed);
+    k++;
+
+    TEveGeoShape* its2 = (TEveGeoShape*) *k;
+    its2->SetRnrSelf(kTRUE);
+    its2->SetMainColor(kRed+2);
+    k++;
+
+    TEveGeoShape* its3 = (TEveGeoShape*) *k;
+    its3->SetRnrSelf(kTRUE);
+    its3->SetMainColor(kRed+4);
+  }
 //TPC
 
   i++;
   i++;
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
 
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kFALSE);
-
-    }
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kFALSE);
 
+      }
+  }
 //PHOS
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kFALSE);
-    }
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kFALSE);
+      }
+  }
 //HMPID
 
   i++;
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kFALSE);
+      }
+  }
+  
+}
 
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kFALSE);
-    }
-
+{
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre3 = TEveGeoShape::ImportShapeExtract(gse);
+  gsre3 = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
 
   // Fix visibility, color and transparency
@@ -203,76 +226,78 @@ void geom_gentle_tpc(Bool_t register_as_global=kTRUE)
   TEveElement::List_i i = gsre3->BeginChildren();
 
 //ITS
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* its1 = (TEveGeoShape*) *k;
-  its1->SetRnrSelf(kTRUE);
-  its1->SetMainColor(kRed);
-  k++;
-
-  TEveGeoShape* its2 = (TEveGeoShape*) *k;
-  its2->SetRnrSelf(kTRUE);
-  its2->SetMainColor(kRed+2);
-  k++;
-
-  TEveGeoShape* its3 = (TEveGeoShape*) *k;
-  its3->SetRnrSelf(kTRUE);
-  its3->SetMainColor(kRed+4);
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* its1 = (TEveGeoShape*) *k;
+    its1->SetRnrSelf(kTRUE);
+    its1->SetMainColor(kRed);
+    k++;
+
+    TEveGeoShape* its2 = (TEveGeoShape*) *k;
+    its2->SetRnrSelf(kTRUE);
+    its2->SetMainColor(kRed+2);
+    k++;
+
+    TEveGeoShape* its3 = (TEveGeoShape*) *k;
+    its3->SetRnrSelf(kTRUE);
+    its3->SetMainColor(kRed+4);
+  }
 //TPC
 
   i++;
   i++;
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
 
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kFALSE);
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kFALSE);
 
-    }
+      }
+  }
 
 //PHOS
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kFALSE);
-    }
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kFALSE);
+      }
+  }
 //HMPID
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kFALSE);
-    }
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kFALSE);
+      }
+  }
+}
 
   TEveElement* top = gEve->GetCurrentEvent();
 
   AliEveMultiView *mv = AliEveMultiView::Instance();
 
-  mv->InitGeomGentle(gsre1, gsre2, gsre3);
+  mv->InitGeomGentle(gsre1, gsre2, gsre3, 0);
 
   gEve->FullRedraw3D(kTRUE, kTRUE);   
 
index 9243c271d69dcec7b48eba29154ed56684a73544..b90a55d18d97112cc451cfd2a93db1d6be07fdd1 100644 (file)
@@ -1,9 +1,25 @@
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TFile.h>
+#include <TGLViewer.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEveGeoShape.h>
+#include <TEveGeoShapeExtract.h>
+
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveBase/AliEveMultiView.h>
+#endif
+
 void geom_gentle_transparent(Bool_t register_as_global=kTRUE)
 {
-
+  TEveGeoShape* gsre1;
+  TEveGeoShape* gsre2;
+  TEveGeoShape* gsre3;
+  
+{
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre1 = TEveGeoShape::ImportShapeExtract(gse);
+  gsre1 = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
 
   if (register_as_global)
@@ -17,101 +33,101 @@ void geom_gentle_transparent(Bool_t register_as_global=kTRUE)
   TEveElement::List_i i = gsre1->BeginChildren();
 
 //ITS
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* its1 = (TEveGeoShape*) *k;
-  its1->SetRnrSelf(kTRUE);
-  its1->SetMainTransparency(80);
-  k++;
-
-  TEveGeoShape* its2 = (TEveGeoShape*) *k;
-  its2->SetRnrSelf(kTRUE);
-  its2->SetMainTransparency(80);
-  k++;
-
-  TEveGeoShape* its3 = (TEveGeoShape*) *k;
-  its3->SetRnrSelf(kTRUE);
-  its3->SetMainTransparency(80);
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* its1 = (TEveGeoShape*) *k;
+    its1->SetRnrSelf(kTRUE);
+    its1->SetMainTransparency(80);
+    k++;
+
+    TEveGeoShape* its2 = (TEveGeoShape*) *k;
+    its2->SetRnrSelf(kTRUE);
+    its2->SetMainTransparency(80);
+    k++;
+
+    TEveGeoShape* its3 = (TEveGeoShape*) *k;
+    its3->SetRnrSelf(kTRUE);
+    its3->SetMainTransparency(80);
+  }
 //TPC
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* lvl3 = (TEveGeoShape*) *k;
-  lvl3->SetRnrSelf(kTRUE);
-  lvl3->SetMainTransparency(80);
-  TEveElement::List_i l = lvl3->BeginChildren();
-
-  TEveGeoShape* lvl4 = (TEveGeoShape*) *l;
-  lvl4->SetRnrSelf(kFALSE);
-  TEveElement::List_i m = lvl4->BeginChildren();
-
-  TEveGeoShape* tpc1 = (TEveGeoShape*) *m;
-  tpc1->SetRnrSelf(kTRUE);
-  tpc1->SetMainTransparency(80);
-  m++;
-
-  TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
-  tpc2->SetMainColor(kGray);
-  tpc2->SetMainTransparency(80);
-  m++;
-
-  TEveGeoShape* tpc3 = (TEveGeoShape*) *m;
-  tpc3->SetRnrSelf(kTRUE);
-  tpc3->SetMainTransparency(80);
-  m++;
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* lvl3 = (TEveGeoShape*) *k;
+    lvl3->SetRnrSelf(kTRUE);
+    lvl3->SetMainTransparency(80);
+    TEveElement::List_i l = lvl3->BeginChildren();
+
+    TEveGeoShape* lvl4 = (TEveGeoShape*) *l;
+    lvl4->SetRnrSelf(kFALSE);
+    TEveElement::List_i m = lvl4->BeginChildren();
+
+    TEveGeoShape* tpc1 = (TEveGeoShape*) *m;
+    tpc1->SetRnrSelf(kTRUE);
+    tpc1->SetMainTransparency(80);
+    m++;
+
+    TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
+    tpc2->SetMainColor(kGray);
+    tpc2->SetMainTransparency(80);
+    m++;
+
+    TEveGeoShape* tpc3 = (TEveGeoShape*) *m;
+    tpc3->SetRnrSelf(kTRUE);
+    tpc3->SetMainTransparency(80);
+    m++;
+  }
 //TRD+TOF
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kTRUE);
-  lvl2->SetMainTransparency(80);
-  j++;
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kTRUE);
-  lvl2->SetMainTransparency(80);
-  j++;
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kTRUE);
+    lvl2->SetMainTransparency(80);
+    j++;
+
+    TEveGeoShape* lvl3 = (TEveGeoShape*) *j;
+    lvl3->SetRnrSelf(kTRUE);
+    lvl3->SetMainTransparency(80);
+    j++;
+  }
 //PHOS
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainTransparency(80);
-    }
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainTransparency(80);
+      }
+  }
 //HMPID
 
   i++;
-
+  {
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);
 
@@ -121,23 +137,28 @@ void geom_gentle_transparent(Bool_t register_as_global=kTRUE)
       lvl2->SetRnrSelf(kTRUE);
       lvl2->SetMainTransparency(80);
     }
+  }
+}
 
-
+{
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre2 = TEveGeoShape::ImportShapeExtract(gse);
+  gsre2 = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
+}
 
+{
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre3 = TEveGeoShape::ImportShapeExtract(gse);
+  gsre3 = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
+}
 
   TEveElement* top = gEve->GetCurrentEvent();
 
   AliEveMultiView *mv = AliEveMultiView::Instance();
 
-  mv->InitGeomGentle(gsre1, gsre2, gsre3);
+  mv->InitGeomGentle(gsre1, gsre2, gsre3, 0);
 
   gEve->FullRedraw3D(kTRUE, kTRUE);
 
index 69c4cdde6fcee057194d47f9e3eb4bf47ffa7490..af7bb8fb334221f1b0abcae4199d374a0144854e 100644 (file)
@@ -7,12 +7,28 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TFile.h>
+#include <TGLViewer.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEveGeoShape.h>
+#include <TEveGeoShapeExtract.h>
+
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveBase/AliEveMultiView.h>
+#endif
+
 void geom_gentle_transparentdark(Bool_t register_as_global=kTRUE)
 {
+  TEveGeoShape* gsre1;
+  TEveGeoShape* gsre2;
+  TEveGeoShape* gsre3;
 
+{
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre1 = TEveGeoShape::ImportShapeExtract(gse);
+  gsre1 = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
 
   if (register_as_global)
@@ -28,130 +44,132 @@ void geom_gentle_transparentdark(Bool_t register_as_global=kTRUE)
   TEveElement::List_i i = gsre1->BeginChildren();
 
 //ITS
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* its1 = (TEveGeoShape*) *k;
-  its1->SetRnrSelf(kTRUE);
-  its1->SetMainColor(0);
-  its1->SetMainTransparency(80);
-  k++;
-
-  TEveGeoShape* its2 = (TEveGeoShape*) *k;
-  its2->SetRnrSelf(kTRUE);
-  its2->SetMainColor(0);
-  its2->SetMainTransparency(80);
-  k++;
-
-  TEveGeoShape* its3 = (TEveGeoShape*) *k;
-  its3->SetRnrSelf(kTRUE);
-  its3->SetMainColor(0);
-  its3->SetMainTransparency(80);
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* its1 = (TEveGeoShape*) *k;
+    its1->SetRnrSelf(kTRUE);
+    its1->SetMainColor(0);
+    its1->SetMainTransparency(80);
+    k++;
+
+    TEveGeoShape* its2 = (TEveGeoShape*) *k;
+    its2->SetRnrSelf(kTRUE);
+    its2->SetMainColor(0);
+    its2->SetMainTransparency(80);
+    k++;
+
+    TEveGeoShape* its3 = (TEveGeoShape*) *k;
+    its3->SetRnrSelf(kTRUE);
+    its3->SetMainColor(0);
+    its3->SetMainTransparency(80);
+  }
 //TPC
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* lvl3 = (TEveGeoShape*) *k;
-  lvl3->SetRnrSelf(kTRUE);
-  lvl3->SetMainColor(0);
-  lvl3->SetMainTransparency(80);
-  TEveElement::List_i l = lvl3->BeginChildren();
-
-  TEveGeoShape* lvl4 = (TEveGeoShape*) *l;
-  lvl4->SetRnrSelf(kFALSE);
-  TEveElement::List_i m = lvl4->BeginChildren();
-
-  TEveGeoShape* tpc1 = (TEveGeoShape*) *m;
-  tpc1->SetRnrSelf(kTRUE);
-  tpc1->SetMainColor(0);
-  tpc1->SetMainTransparency(80);
-  m++;
-
-  TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
-  tpc2->SetMainColor(kGray);
-  tpc2->SetMainColor(0);
-  tpc2->SetMainTransparency(80);
-  m++;
-
-  TEveGeoShape* tpc3 = (TEveGeoShape*) *m;
-  tpc3->SetRnrSelf(kTRUE);
-  tpc3->SetMainColor(0);
-  tpc3->SetMainTransparency(80);
-  m++;
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* lvl3 = (TEveGeoShape*) *k;
+    lvl3->SetRnrSelf(kTRUE);
+    lvl3->SetMainColor(0);
+    lvl3->SetMainTransparency(80);
+    TEveElement::List_i l = lvl3->BeginChildren();
+
+    TEveGeoShape* lvl4 = (TEveGeoShape*) *l;
+    lvl4->SetRnrSelf(kFALSE);
+    TEveElement::List_i m = lvl4->BeginChildren();
+
+    TEveGeoShape* tpc1 = (TEveGeoShape*) *m;
+    tpc1->SetRnrSelf(kTRUE);
+    tpc1->SetMainColor(0);
+    tpc1->SetMainTransparency(80);
+    m++;
+
+    TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
+    tpc2->SetMainColor(kGray);
+    tpc2->SetMainColor(0);
+    tpc2->SetMainTransparency(80);
+    m++;
+
+    TEveGeoShape* tpc3 = (TEveGeoShape*) *m;
+    tpc3->SetRnrSelf(kTRUE);
+    tpc3->SetMainColor(0);
+    tpc3->SetMainTransparency(80);
+    m++;
+  }
 //TRD+TOF
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kTRUE);
-  lvl2->SetMainColor(0);
-  lvl2->SetMainTransparency(80);
-  j++;
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kTRUE);
-  lvl2->SetMainColor(0);
-  lvl2->SetMainTransparency(80);
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kTRUE);
+    lvl2->SetMainColor(0);
+    lvl2->SetMainTransparency(80);
+    j++;
+
+    TEveGeoShape* lvl3 = (TEveGeoShape*) *j;
+    lvl3->SetRnrSelf(kTRUE);
+    lvl3->SetMainColor(0);
+    lvl3->SetMainTransparency(80);
+  }
 //PHOS
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-//  TEveElement::List_i j = lvl1->BeginChildren();
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(0);
-      lvl2->SetMainTransparency(80);
-    }
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+  //  TEveElement::List_i j = lvl1->BeginChildren();
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainColor(0);
+        lvl2->SetMainTransparency(80);
+      }
+  }
 //HMPID
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-//  TEveElement::List_i j = lvl1->BeginChildren();
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(0);
-      lvl2->SetMainTransparency(80);
-    }
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+  //  TEveElement::List_i j = lvl1->BeginChildren();
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainColor(0);
+        lvl2->SetMainTransparency(80);
+      }
+  }
+}
 
 //======================================
 
   // The resulting geometry is NOT added into the global scene!
-
+{
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre2 = TEveGeoShape::ImportShapeExtract(gse);
+  gsre2 = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
 
   // Fix visibility, color and transparency
@@ -160,90 +178,91 @@ void geom_gentle_transparentdark(Bool_t register_as_global=kTRUE)
   TEveElement::List_i i = gsre2->BeginChildren();
 
 //ITS
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* its1 = (TEveGeoShape*) *k;
-  its1->SetRnrSelf(kTRUE);
-  its1->SetMainColor(0);
-  its1->SetMainTransparency(80);
-
-  k++;
-
-  TEveGeoShape* its2 = (TEveGeoShape*) *k;
-  its2->SetRnrSelf(kTRUE);
-  its2->SetMainColor(0);
-  its2->SetMainTransparency(80);
-  k++;
-
-  TEveGeoShape* its3 = (TEveGeoShape*) *k;
-  its3->SetRnrSelf(kTRUE);
-  its3->SetMainColor(0);
-  its3->SetMainTransparency(80);
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* its1 = (TEveGeoShape*) *k;
+    its1->SetRnrSelf(kTRUE);
+    its1->SetMainColor(0);
+    its1->SetMainTransparency(80);
+
+    k++;
+
+    TEveGeoShape* its2 = (TEveGeoShape*) *k;
+    its2->SetRnrSelf(kTRUE);
+    its2->SetMainColor(0);
+    its2->SetMainTransparency(80);
+    k++;
+
+    TEveGeoShape* its3 = (TEveGeoShape*) *k;
+    its3->SetRnrSelf(kTRUE);
+    its3->SetMainColor(0);
+    its3->SetMainTransparency(80);
+  }
 //TPC
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-//  TEveElement::List_i j = lvl1->BeginChildren();
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(0);
-      lvl2->SetMainTransparency(80);
-    }
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+  //  TEveElement::List_i j = lvl1->BeginChildren();
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainColor(0);
+        lvl2->SetMainTransparency(80);
+      }
+  }
 //PHOS
 
   i++;
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-//  TEveElement::List_i j = lvl1->BeginChildren();
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(0);
-      lvl2->SetMainTransparency(80);
-
-    }
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+  //  TEveElement::List_i j = lvl1->BeginChildren();
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainColor(0);
+        lvl2->SetMainTransparency(80);
+
+      }
+  }
 //HMPID
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-//  TEveElement::List_i j = lvl1->BeginChildren();
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(0);
-      lvl2->SetMainTransparency(80);
-    }
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+  //  TEveElement::List_i j = lvl1->BeginChildren();
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainColor(0);
+        lvl2->SetMainTransparency(80);
+      }
+  }
+}
 //======================================
 
   // The resulting geometry is NOT added into the global scene!
-
+{
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre3 = TEveGeoShape::ImportShapeExtract(gse);
+  gsre3 = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
 
   // Fix visibility, color and transparency
@@ -252,84 +271,86 @@ void geom_gentle_transparentdark(Bool_t register_as_global=kTRUE)
   TEveElement::List_i i = gsre3->BeginChildren();
 
 //ITS
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* its1 = (TEveGeoShape*) *k;
-  its1->SetRnrSelf(kTRUE);
-  its1->SetMainColor(0);
-  k++;
-
-  TEveGeoShape* its2 = (TEveGeoShape*) *k;
-  its2->SetRnrSelf(kTRUE);
-  its2->SetMainColor(0);
-  k++;
-
-  TEveGeoShape* its3 = (TEveGeoShape*) *k;
-  its3->SetRnrSelf(kTRUE);
-  its3->SetMainColor(0);
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* its1 = (TEveGeoShape*) *k;
+    its1->SetRnrSelf(kTRUE);
+    its1->SetMainColor(0);
+    k++;
+
+    TEveGeoShape* its2 = (TEveGeoShape*) *k;
+    its2->SetRnrSelf(kTRUE);
+    its2->SetMainColor(0);
+    k++;
+
+    TEveGeoShape* its3 = (TEveGeoShape*) *k;
+    its3->SetRnrSelf(kTRUE);
+    its3->SetMainColor(0);
+  }
 //TPC
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-//  TEveElement::List_i j = lvl1->BeginChildren();
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(0);
-      lvl2->SetMainTransparency(80);
-
-    }
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+  //  TEveElement::List_i j = lvl1->BeginChildren();
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainColor(0);
+        lvl2->SetMainTransparency(80);
+
+      }
+  }
 //PHOS
 
   i++;
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-//  TEveElement::List_i j = lvl1->BeginChildren();
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(0);
-      lvl2->SetMainTransparency(80);
-    }
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+  //  TEveElement::List_i j = lvl1->BeginChildren();
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainColor(0);
+        lvl2->SetMainTransparency(80);
+      }
+  }
 //HMPID
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-//  TEveElement::List_i j = lvl1->BeginChildren();
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(0);
-      lvl2->SetMainTransparency(80);
-    }
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+  //  TEveElement::List_i j = lvl1->BeginChildren();
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainColor(0);
+        lvl2->SetMainTransparency(80);
+      }
+  }
+}
 
   TEveElement* top = gEve->GetCurrentEvent();
 
   AliEveMultiView *mv = AliEveMultiView::Instance();
 
-  mv->InitGeomGentle(gsre1, gsre2, gsre3);
+  mv->InitGeomGentle(gsre1, gsre2, gsre3, 0);
 
   gEve->FullRedraw3D(kTRUE, kTRUE);
 
index 44d32473c9fbcdd94d5e5f7dd98a93043cfdf9e8..89e4262fbb9bf75ee6f2e1918ad1aa4da0a4c4fc 100644 (file)
@@ -1,9 +1,26 @@
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TFile.h>
+#include <TGLViewer.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEveGeoShape.h>
+#include <TEveGeoShapeExtract.h>
+
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveBase/AliEveMultiView.h>
+#endif
+
+
 void geom_gentle_transparentlight(Bool_t register_as_global=kTRUE)
 {
-
+  TEveGeoShape* gsre1;
+  TEveGeoShape* gsre2;
+  TEveGeoShape* gsre3;
+  
+{
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre1 = TEveGeoShape::ImportShapeExtract(gse);
+  gsre1 = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
 
   if (register_as_global)
@@ -17,124 +34,128 @@ void geom_gentle_transparentlight(Bool_t register_as_global=kTRUE)
   TEveElement::List_i i = gsre1->BeginChildren();
 
 //ITS
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* its1 = (TEveGeoShape*) *k;
-  its1->SetRnrSelf(kTRUE);
-  its1->SetMainColor(1);
-  its1->SetMainTransparency(80);
-  k++;
-
-  TEveGeoShape* its2 = (TEveGeoShape*) *k;
-  its2->SetRnrSelf(kTRUE);
-  its2->SetMainColor(1);
-  its2->SetMainTransparency(80);
-  k++;
-
-  TEveGeoShape* its3 = (TEveGeoShape*) *k;
-  its3->SetRnrSelf(kTRUE);
-  its3->SetMainColor(1);
-  its3->SetMainTransparency(80);
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* its1 = (TEveGeoShape*) *k;
+    its1->SetRnrSelf(kTRUE);
+    its1->SetMainColor(1);
+    its1->SetMainTransparency(80);
+    k++;
+
+    TEveGeoShape* its2 = (TEveGeoShape*) *k;
+    its2->SetRnrSelf(kTRUE);
+    its2->SetMainColor(1);
+    its2->SetMainTransparency(80);
+    k++;
+
+    TEveGeoShape* its3 = (TEveGeoShape*) *k;
+    its3->SetRnrSelf(kTRUE);
+    its3->SetMainColor(1);
+    its3->SetMainTransparency(80);
+  }
 //TPC
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* lvl3 = (TEveGeoShape*) *k;
-  lvl3->SetRnrSelf(kFALSE);
-  lvl3->SetMainColor(1);
-  lvl3->SetMainTransparency(80);
-  TEveElement::List_i l = lvl3->BeginChildren();
-
-  TEveGeoShape* lvl4 = (TEveGeoShape*) *l;
-  lvl4->SetRnrSelf(kFALSE);
-  TEveElement::List_i m = lvl4->BeginChildren();
-
-  TEveGeoShape* tpc1 = (TEveGeoShape*) *m;
-  tpc1->SetRnrSelf(kTRUE);
-  tpc1->SetMainColor(1);
-  tpc1->SetMainTransparency(80);
-  m++;
-
-  TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
-  tpc2->SetRnrSelf(kTRUE);
-  tpc2->SetMainColor(1);
-  tpc2->SetMainTransparency(80);
-  m++;
-
-  TEveGeoShape* tpc3 = (TEveGeoShape*) *m;
-  tpc3->SetRnrSelf(kTRUE);
-  tpc3->SetMainColor(1);
-  tpc3->SetMainTransparency(80);
-  m++;
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* lvl3 = (TEveGeoShape*) *k;
+    lvl3->SetRnrSelf(kFALSE);
+    lvl3->SetMainColor(1);
+    lvl3->SetMainTransparency(80);
+    TEveElement::List_i l = lvl3->BeginChildren();
+
+    TEveGeoShape* lvl4 = (TEveGeoShape*) *l;
+    lvl4->SetRnrSelf(kFALSE);
+    TEveElement::List_i m = lvl4->BeginChildren();
+
+    TEveGeoShape* tpc1 = (TEveGeoShape*) *m;
+    tpc1->SetRnrSelf(kTRUE);
+    tpc1->SetMainColor(1);
+    tpc1->SetMainTransparency(80);
+    m++;
+
+    TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
+    tpc2->SetRnrSelf(kTRUE);
+    tpc2->SetMainColor(1);
+    tpc2->SetMainTransparency(80);
+    m++;
+
+    TEveGeoShape* tpc3 = (TEveGeoShape*) *m;
+    tpc3->SetRnrSelf(kTRUE);
+    tpc3->SetMainColor(1);
+    tpc3->SetMainTransparency(80);
+    m++;
+  }
 //TRD+TOF
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* trd1 = (TEveGeoShape*) *j;
-  trd1->SetRnrSelf(kTRUE);
-  trd1->SetMainColor(1);
-  trd1->SetMainTransparency(80);
-  j++;
-
-  TEveGeoShape* tof1 = (TEveGeoShape*) *j;
-  tof1->SetRnrSelf(kTRUE);
-  tof1->SetMainColor(1);
-  tof1->SetMainTransparency(80);
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* trd1 = (TEveGeoShape*) *j;
+    trd1->SetRnrSelf(kTRUE);
+    trd1->SetMainColor(1);
+    trd1->SetMainTransparency(80);
+    j++;
+
+    TEveGeoShape* tof1 = (TEveGeoShape*) *j;
+    tof1->SetRnrSelf(kTRUE);
+    tof1->SetMainColor(1);
+    tof1->SetMainTransparency(80);
+  }
 //PHOS
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(1);
-      lvl2->SetMainTransparency(80);
-    }
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainColor(1);
+        lvl2->SetMainTransparency(80);
+      }
+  }
 //HMPID
 
   i++;
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainColor(1);
+        lvl2->SetMainTransparency(80);
+      }
+  }
+    
+}
 
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(1);
-      lvl2->SetMainTransparency(80);
-    }
-
+{
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre2 = TEveGeoShape::ImportShapeExtract(gse);
+  gsre2 = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
 
   // Fix visibility, color and transparency
@@ -143,37 +164,37 @@ void geom_gentle_transparentlight(Bool_t register_as_global=kTRUE)
   TEveElement::List_i i = gsre2->BeginChildren();
 
 //ITS
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* its1 = (TEveGeoShape*) *k;
-  its1->SetRnrSelf(kTRUE);
-  its1->SetMainColor(1);
-  its1->SetMainTransparency(80);
-
-  k++;
-
-  TEveGeoShape* its2 = (TEveGeoShape*) *k;
-  its2->SetRnrSelf(kTRUE);
-  its2->SetMainColor(1);
-  its2->SetMainTransparency(80);
-  k++;
-
-  TEveGeoShape* its3 = (TEveGeoShape*) *k;
-  its3->SetRnrSelf(kTRUE);
-  its3->SetMainColor(1);
-  its3->SetMainTransparency(80);
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* its1 = (TEveGeoShape*) *k;
+    its1->SetRnrSelf(kTRUE);
+    its1->SetMainColor(1);
+    its1->SetMainTransparency(80);
+
+    k++;
+
+    TEveGeoShape* its2 = (TEveGeoShape*) *k;
+    its2->SetRnrSelf(kTRUE);
+    its2->SetMainColor(1);
+    its2->SetMainTransparency(80);
+    k++;
+
+    TEveGeoShape* its3 = (TEveGeoShape*) *k;
+    its3->SetRnrSelf(kTRUE);
+    its3->SetMainColor(1);
+    its3->SetMainTransparency(80);
+  }
 //TPC
 
   i++;
-
+  {
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);
 
@@ -184,12 +205,13 @@ void geom_gentle_transparentlight(Bool_t register_as_global=kTRUE)
       lvl2->SetMainColor(1);
       lvl2->SetMainTransparency(80);
     }
+  }
 
 //PHOS
 
   i++;
   i++;
-
+  {
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);
 
@@ -201,11 +223,12 @@ void geom_gentle_transparentlight(Bool_t register_as_global=kTRUE)
       lvl2->SetMainTransparency(80);
 
     }
+  }
 
 //HMPID
 
   i++;
-
+  {
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);
 
@@ -216,10 +239,14 @@ void geom_gentle_transparentlight(Bool_t register_as_global=kTRUE)
       lvl2->SetMainColor(1);
       lvl2->SetMainTransparency(80);
     }
+  }
+    
+}
 
+{
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre3 = TEveGeoShape::ImportShapeExtract(gse);
+  gsre3 = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
 
   // Fix visibility, color and transparency
@@ -228,65 +255,67 @@ void geom_gentle_transparentlight(Bool_t register_as_global=kTRUE)
   TEveElement::List_i i = gsre3->BeginChildren();
 
 //ITS
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* its1 = (TEveGeoShape*) *k;
-  its1->SetRnrSelf(kTRUE);
-  its1->SetMainColor(1);
-  k++;
-
-  TEveGeoShape* its2 = (TEveGeoShape*) *k;
-  its2->SetRnrSelf(kTRUE);
-  its2->SetMainColor(1);
-  k++;
-
-  TEveGeoShape* its3 = (TEveGeoShape*) *k;
-  its3->SetRnrSelf(kTRUE);
-  its3->SetMainColor(1);
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* its1 = (TEveGeoShape*) *k;
+    its1->SetRnrSelf(kTRUE);
+    its1->SetMainColor(1);
+    k++;
+
+    TEveGeoShape* its2 = (TEveGeoShape*) *k;
+    its2->SetRnrSelf(kTRUE);
+    its2->SetMainColor(1);
+    k++;
+
+    TEveGeoShape* its3 = (TEveGeoShape*) *k;
+    its3->SetRnrSelf(kTRUE);
+    its3->SetMainColor(1);
+  }
 //TPC
 
   i++;
 
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(1);
-      lvl2->SetMainTransparency(80);
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
 
-    }
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainColor(1);
+        lvl2->SetMainTransparency(80);
 
+      }
+  }
 //PHOS
 
   i++;
   i++;
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(1);
-      lvl2->SetMainTransparency(80);
-    }
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainColor(1);
+        lvl2->SetMainTransparency(80);
+      }
+  }
 
 //HMPID
 
   i++;
-
+  {
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);
 
@@ -297,7 +326,8 @@ void geom_gentle_transparentlight(Bool_t register_as_global=kTRUE)
       lvl2->SetMainColor(1);
       lvl2->SetMainTransparency(80);
     }
-
+  }
+}
 
 //fix all the viewers
 
@@ -305,7 +335,7 @@ void geom_gentle_transparentlight(Bool_t register_as_global=kTRUE)
 
   AliEveMultiView *mv = AliEveMultiView::Instance();
 
-  mv->InitGeomGentle(gsre1, gsre2, gsre3);
+  mv->InitGeomGentle(gsre1, gsre2, gsre3, 0);
 
   gEve->FullRedraw3D(kTRUE, kTRUE);
 
index b59ab315075197df77affe505d9b77c7c0a17454..355715edd1b3aa277b358ba92435b9e12af10110 100644 (file)
@@ -7,6 +7,15 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TFile.h>
+#include <TGLViewer.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEveGeoShape.h>
+#include <TEveGeoShapeExtract.h>
+#endif
+
 TEveGeoShape* geom_gentle_trd()
 {
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo_trd.root");
index f45760ce151a011a46b582509ae1aee24eab5595..1c851a9fd8e51dda9483cd6d7b55c1ce60362884 100644 (file)
@@ -7,12 +7,28 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TFile.h>
+#include <TGLViewer.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEveGeoShape.h>
+#include <TEveGeoShapeExtract.h>
+
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveBase/AliEveMultiView.h>
+#endif
+
 void geom_gentle_yellow(Bool_t register_as_global=kTRUE)
 {
-
+  TEveGeoShape* gsre1;
+  TEveGeoShape* gsre2;
+  TEveGeoShape* gsre3;
+  
+{
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre1 = TEveGeoShape::ImportShapeExtract(gse);
+  gsre1 = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
 
   if (register_as_global)
@@ -26,121 +42,122 @@ void geom_gentle_yellow(Bool_t register_as_global=kTRUE)
   TEveElement::List_i i = gsre1->BeginChildren();
 
 //ITS
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* its1 = (TEveGeoShape*) *k;
-  its1->SetRnrSelf(kTRUE);
-  its1->SetMainColor(kYellow-4);
-  its1->SetMainTransparency(50);
-  k++;
-
-  TEveGeoShape* its2 = (TEveGeoShape*) *k;
-  its2->SetRnrSelf(kTRUE);
-  its2->SetMainColor(kYellow-7);
-  its2->SetMainTransparency(50);
-  k++;
-
-  TEveGeoShape* its3 = (TEveGeoShape*) *k;
-  its3->SetRnrSelf(kTRUE);
-  its3->SetMainColor(kYellow-9);
-  its3->SetMainTransparency(50);
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* its1 = (TEveGeoShape*) *k;
+    its1->SetRnrSelf(kTRUE);
+    its1->SetMainColor(kYellow-4);
+    its1->SetMainTransparency(50);
+    k++;
+
+    TEveGeoShape* its2 = (TEveGeoShape*) *k;
+    its2->SetRnrSelf(kTRUE);
+    its2->SetMainColor(kYellow-7);
+    its2->SetMainTransparency(50);
+    k++;
+
+    TEveGeoShape* its3 = (TEveGeoShape*) *k;
+    its3->SetRnrSelf(kTRUE);
+    its3->SetMainColor(kYellow-9);
+    its3->SetMainTransparency(50);
+  }
 //TPC
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* lvl3 = (TEveGeoShape*) *k;
-  lvl3->SetRnrSelf(kTRUE);
-  lvl3->SetMainColor(kGray);
-  lvl3->SetMainTransparency(80);
-  TEveElement::List_i l = lvl3->BeginChildren();
-
-  TEveGeoShape* lvl4 = (TEveGeoShape*) *l;
-  lvl4->SetRnrSelf(kFALSE);
-  TEveElement::List_i m = lvl4->BeginChildren();
-
-  TEveGeoShape* tpc1 = (TEveGeoShape*) *m;
-  tpc1->SetRnrSelf(kTRUE);
-  tpc1->SetMainColor(kGray+2);
-  tpc1->SetMainTransparency(80);
-  m++;
-
-  TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
-  tpc2->SetMainColor(kGray);
-  tpc2->SetMainColor(kGray+2);
-  tpc2->SetMainTransparency(80);
-  m++;
-
-  TEveGeoShape* tpc3 = (TEveGeoShape*) *m;
-  tpc3->SetRnrSelf(kTRUE);
-  tpc3->SetMainColor(kGray+2);
-  tpc3->SetMainTransparency(80);
-  m++;
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* lvl3 = (TEveGeoShape*) *k;
+    lvl3->SetRnrSelf(kTRUE);
+    lvl3->SetMainColor(kGray);
+    lvl3->SetMainTransparency(80);
+    TEveElement::List_i l = lvl3->BeginChildren();
+
+    TEveGeoShape* lvl4 = (TEveGeoShape*) *l;
+    lvl4->SetRnrSelf(kFALSE);
+    TEveElement::List_i m = lvl4->BeginChildren();
+
+    TEveGeoShape* tpc1 = (TEveGeoShape*) *m;
+    tpc1->SetRnrSelf(kTRUE);
+    tpc1->SetMainColor(kGray+2);
+    tpc1->SetMainTransparency(80);
+    m++;
+
+    TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
+    tpc2->SetMainColor(kGray);
+    tpc2->SetMainColor(kGray+2);
+    tpc2->SetMainTransparency(80);
+    m++;
+
+    TEveGeoShape* tpc3 = (TEveGeoShape*) *m;
+    tpc3->SetRnrSelf(kTRUE);
+    tpc3->SetMainColor(kGray+2);
+    tpc3->SetMainTransparency(80);
+    m++;
+  }
 //TRD+TOF
 
   i++;
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
 
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kFALSE);
-      lvl2->SetMainColor(0);
-      lvl2->SetMainTransparency(80);
-
-    }
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kFALSE);
+        lvl2->SetMainColor(0);
+        lvl2->SetMainTransparency(80);
 
+      }
+  }
 //PHOS
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainTransparency(30);
-    }
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainTransparency(30);
+      }
+  }
 //HMPID
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainTransparency(30);
-    }
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainTransparency(30);
+      }
+  }
+}
   // The resulting geometry is NOT added into the global scene!
-
+{
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre2 = TEveGeoShape::ImportShapeExtract(gse);
+  gsre2 = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
 
   // Fix visibility, color and transparency
@@ -149,83 +166,86 @@ void geom_gentle_yellow(Bool_t register_as_global=kTRUE)
   TEveElement::List_i i = gsre2->BeginChildren();
 
 //ITS
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* its1 = (TEveGeoShape*) *k;
-  its1->SetRnrSelf(kTRUE);
-  its1->SetMainColor(kYellow-4);
-  its1->SetMainTransparency(50);
-
-  k++;
-
-  TEveGeoShape* its2 = (TEveGeoShape*) *k;
-  its2->SetRnrSelf(kTRUE);
-  its2->SetMainColor(kYellow-7);
-  its2->SetMainTransparency(50);
-  k++;
-
-  TEveGeoShape* its3 = (TEveGeoShape*) *k;
-  its3->SetRnrSelf(kTRUE);
-  its3->SetMainColor(kYellow-9);
-  its3->SetMainTransparency(50);
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* its1 = (TEveGeoShape*) *k;
+    its1->SetRnrSelf(kTRUE);
+    its1->SetMainColor(kYellow-4);
+    its1->SetMainTransparency(50);
+
+    k++;
+
+    TEveGeoShape* its2 = (TEveGeoShape*) *k;
+    its2->SetRnrSelf(kTRUE);
+    its2->SetMainColor(kYellow-7);
+    its2->SetMainTransparency(50);
+    k++;
+
+    TEveGeoShape* its3 = (TEveGeoShape*) *k;
+    its3->SetRnrSelf(kTRUE);
+    its3->SetMainColor(kYellow-9);
+    its3->SetMainTransparency(50);
+  }
 //TPC
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(kGray);
-      lvl2->SetMainTransparency(80);
-    }
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainColor(kGray);
+        lvl2->SetMainTransparency(80);
+      }
+  }
 //PHOS
 
   i++;
   i++;
+  
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
 
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainTransparency(30);
-
-    }
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainTransparency(30);
 
+      }
+  }
 //HMPID
 
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainTransparency(30);
-    }
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainTransparency(30);
+      }
+  }
+}
 
   // The resulting geometry is NOT added into the global scene!
-
+{
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre3 = TEveGeoShape::ImportShapeExtract(gse);
+  gsre3 = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
 
   // Fix visibility, color and transparency
@@ -234,64 +254,65 @@ void geom_gentle_yellow(Bool_t register_as_global=kTRUE)
   TEveElement::List_i i = gsre3->BeginChildren();
 
 //ITS
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-  TEveElement::List_i j = lvl1->BeginChildren();
-
-  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-  lvl2->SetRnrSelf(kFALSE);
-  TEveElement::List_i k = lvl2->BeginChildren();
-
-  TEveGeoShape* its1 = (TEveGeoShape*) *k;
-  its1->SetRnrSelf(kTRUE);
-  its1->SetMainColor(kYellow-4);
-  k++;
-
-  TEveGeoShape* its2 = (TEveGeoShape*) *k;
-  its2->SetRnrSelf(kTRUE);
-  its2->SetMainColor(kYellow-7);
-  k++;
-
-  TEveGeoShape* its3 = (TEveGeoShape*) *k;
-  its3->SetRnrSelf(kTRUE);
-  its3->SetMainColor(kYellow-9);
-
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+    TEveElement::List_i j = lvl1->BeginChildren();
+
+    TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+    lvl2->SetRnrSelf(kFALSE);
+    TEveElement::List_i k = lvl2->BeginChildren();
+
+    TEveGeoShape* its1 = (TEveGeoShape*) *k;
+    its1->SetRnrSelf(kTRUE);
+    its1->SetMainColor(kYellow-4);
+    k++;
+
+    TEveGeoShape* its2 = (TEveGeoShape*) *k;
+    its2->SetRnrSelf(kTRUE);
+    its2->SetMainColor(kYellow-7);
+    k++;
+
+    TEveGeoShape* its3 = (TEveGeoShape*) *k;
+    its3->SetRnrSelf(kTRUE);
+    its3->SetMainColor(kYellow-9);
+  }
 //TPC
 
   i++;
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
 
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(kGray);
-      lvl2->SetMainTransparency(80);
-
-    }
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainColor(kGray);
+        lvl2->SetMainTransparency(80);
 
+      }
+  }
 //PHOS
 
   i++;
   i++;
-
-  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
-  lvl1->SetRnrSelf(kFALSE);
-
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainTransparency(30);
-    }
-
+  
+  {
+    TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+    lvl1->SetRnrSelf(kFALSE);
+
+    for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+      {
+        TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+        lvl2->SetRnrSelf(kTRUE);
+        lvl2->SetMainTransparency(30);
+      }
+  }
 //HMPID
 
   i++;
-
+  {
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);
 
@@ -301,12 +322,14 @@ void geom_gentle_yellow(Bool_t register_as_global=kTRUE)
       lvl2->SetRnrSelf(kTRUE);
       lvl2->SetMainTransparency(30);
     }
-
+  }
+  
+}
   TEveElement* top = gEve->GetCurrentEvent();
 
   AliEveMultiView *mv = AliEveMultiView::Instance();
 
-  mv->InitGeomGentle(gsre1, gsre2, gsre3);
+  mv->InitGeomGentle(gsre1, gsre2, gsre3, 0);
 
   gEve->FullRedraw3D(kTRUE, kTRUE);
 
index 512139a82f1a0f7704815ab0f1af99b10cfe10a4..d7e0f55ace4c5cb16539f21897841506d1bcbca2 100644 (file)
@@ -7,6 +7,12 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGeoManager.h>
+#include <TEveManager.h>
+#include <TEveGeoNode.h>
+#endif
+
 void geom_hmpid()
 {
   gGeoManager = gEve->GetDefaultGeometry();
index f2b47df94453a668b0b843d65d16519ffb42075a..5fe369516476a25977e3bc9cc8444d8c594bbc7f 100644 (file)
@@ -7,6 +7,12 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGeoManager.h>
+#include <TEveManager.h>
+#include <TEveGeoNode.h>
+#endif
+
 void geom_its()
 {
   gGeoManager = gEve->GetDefaultGeometry();
@@ -33,7 +39,7 @@ void geom_its_sdd()
 {
   gGeoManager = gEve->GetDefaultGeometry();
 
-  TEveGeoTopNode *its_re;
+  //TEveGeoTopNode *its_re;
   TGeoNode       *n1, *n2;
 
   n1 = gGeoManager->GetTopVolume()->FindNode("ITSV_1");
@@ -51,7 +57,7 @@ void geom_its_ssd()
 {
   gGeoManager = gEve->GetDefaultGeometry();
 
-  TEveGeoTopNode *its_re;
+  //TEveGeoTopNode *its_re;
   TGeoNode       *n1, *n2;
 
   n1 = gGeoManager->GetTopVolume()->FindNode("ITSV_1");
index e8b395a40d57fe1cfc72a8e956dc2119a03d1241..7f2d8cc1115668fc069e3344dbed712c37c905e0 100644 (file)
@@ -6,6 +6,11 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGeoManager.h>
+#include <TEveManager.h>
+#include <TEveGeoNode.h>
+#endif
 
 void geom_phos()
 {
index 43dc09cee8987395ab10c3d0e05a717b32c7d1db..55b6c15102ec0e2637567d9d64fc8fa719379a46 100644 (file)
@@ -6,6 +6,11 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGeoManager.h>
+#include <TEveManager.h>
+#include <TEveGeoNode.h>
+#endif
 
 void geom_pmd()
 {
index 9b2fb053e70c2424fb36ee0837053d9bd2fea40f..2532ad2e35c2c3b8b9cf19aacb58628a228d8f4e 100644 (file)
@@ -6,6 +6,11 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGeoManager.h>
+#include <TEveManager.h>
+#include <TEveGeoNode.h>
+#endif
 
 void geom_simple()
 {
index 9fcdd907d4faa54ba91fa950c52d3143feba6ccf..0b3dc431ac908323cc776faf2beba126c8ecc18e 100644 (file)
@@ -7,6 +7,14 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGeoManager.h>
+#include <TGeoNode.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEveGeoNode.h>
+#endif
+
 void geom_t0()
 {
   gGeoManager = gEve->GetDefaultGeometry();
index 66cfee2382710264cba3596d5105abf917071a3a..c1428c2cc3aef554e7fbcd3d23ac1293928acf8d 100644 (file)
@@ -7,6 +7,13 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGeoManager.h>
+#include <TGeoNode.h>
+#include <TEveManager.h>
+#include <TEveGeoNode.h>
+#endif
+
 void geom_tpc()
 {
   gGeoManager = gEve->GetDefaultGeometry();
index 53244210be4fcebb7aeb2c74ca1fb75f40ffc26c..3d8ffbd8eacd82e68f16e14bfd8afd048ccf288c 100644 (file)
@@ -7,12 +7,22 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGeoManager.h>
+#include <TGeoNode.h>
+#include <TEveManager.h>
+#include <TEveGeoNode.h>
+#endif
+
 void geom_trd_tof()
 {
   gGeoManager = gEve->GetDefaultGeometry();
 
   TGeoNode* node = gGeoManager->GetTopVolume()->FindNode("B077_1");
 
+       if(!node)
+               return;
+
   TEveGeoTopNode* its_re = new TEveGeoTopNode(gGeoManager, node);
   gEve->AddGlobalElement(its_re);
   gEve->Redraw3D();
index 9c9965580e963f7a92a08177011e8d8726c43dab..75218a0a08dee2a89a6ce49cac3192e6379696a1 100644 (file)
@@ -7,6 +7,14 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGeoManager.h>
+#include <TGeoNode.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEveGeoNode.h>
+#endif
+
 void geom_vzero()
 {
   static const TEveException kEH("geom_vzero() ");
index d502633d9d73e097146ae212b53716f10737e0a2..be85ffe38e33be46aac71fcab40388bb7f381e2d 100644 (file)
@@ -7,6 +7,14 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGeoManager.h>
+#include <TGeoNode.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEveGeoNode.h>
+#endif
+
 void geom_zdc()
 {
   gGeoManager = gEve->GetDefaultGeometry();
index 873c8718b6f3cbbb84b5809dd4f69632d0746e9f..4bb66ace752e953ea4822a1e05ebc81eabfc841f 100644 (file)
@@ -6,12 +6,38 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGLViewer.h>
+#include <TGLWidget.h>
+#include <TH2.h>
+#include <TMath.h>
+#include <TTree.h>
+#include <TEveBrowser.h>
+#include <TEveCalo.h>
+#include <TEveCaloData.h>
+#include <TEveCaloLegoOverlay.h>
+#include <TEveLegoEventHandler.h>
+#include <TEveManager.h>
+#include <TEveScene.h>
+#include <TEveTrans.h>
+#include <TEveViewer.h>
+#include <TEveWindow.h>
+
+#include <STEER/ESD/AliESDEvent.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveBase/AliEveMultiView.h>
+#endif
+
 double pi = TMath::Pi();
 TEveViewer *g_histo2d_v   = 0;
 TEveScene  *g_histo2d_s   = 0;
 TEveScene  *g_histo2d_s2  = 0;
 TEveCaloLegoOverlay* g_histo2d_lego_overlay = 0;
 
+Double_t GetPhi(Double_t phi);
+TEveCaloLego* CreateHistoLego(TEveCaloData* data);
+TEveCalo3D* Create3DView(TEveCaloData* data);
+AliEveMultiView* CreateProjections(TEveCaloData* data, TEveCalo3D *calo3d);
 
 TEveCaloDataHist* histo2d()
 { 
@@ -23,8 +49,7 @@ TEveCaloDataHist* histo2d()
    TH2F *histopos = new TH2F("histopos","Histo 2d positive",100,-1.5,1.5,80,-pi,pi);
    TH2F *histoneg = new TH2F("histoneg","Histo 2d negative",100,-1.5,1.5,80,-pi,pi);
 
-   cout<<"Event: "<<AliEveEventManager::GetMaster()->GetEventId()
-       <<", Number of tracks: "<<esd->GetNumberOfTracks()<<endl;
+   Info("histo2d", "Event: %d, Number of tracks: %d\n", AliEveEventManager::GetMaster()->GetEventId(), esd->GetNumberOfTracks() );
 
    // Getting current tracks, filling histograms 
    for ( int n = 0; n < esd->GetNumberOfTracks(); ++n ) {    
index 189ef70d40f9fd4e4bca1f89aacbd69bb55ab52f..cedfa13306aa0ff9cead20dbbf677fb3f061b647 100644 (file)
@@ -6,6 +6,29 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGLViewer.h>
+#include <TGLWidget.h>
+#include <TH2.h>
+#include <TMath.h>
+#include <TTree.h>
+#include <TEveBrowser.h>
+#include <TEveCalo.h>
+#include <TEveCaloData.h>
+#include <TEveCaloLegoOverlay.h>
+#include <TEveLegoEventHandler.h>
+#include <TEveManager.h>
+#include <TEveProjectionManager.h>
+#include <TEveProjectionAxes.h>
+#include <TEveScene.h>
+#include <TEveTrans.h>
+#include <TEveViewer.h>
+#include <TEveWindow.h>
+
+#include <STEER/ESD/AliESDEvent.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
+
 double pi = TMath::Pi();
 TEveViewer *g_histo2d_all_events_v0 = 0;
 TEveViewer *g_histo2d_all_events_v1 = 0;
@@ -18,6 +41,10 @@ TEveScene  *g_histo2d_all_events_s3 = 0;
 TEveCaloLegoOverlay* g_histo2d_all_events_lego_overlay = 0;
 TEveWindowSlot* g_histo2d_all_events_slot = 0;
 
+Double_t GetPhi(Double_t phi);
+TEveCaloLego* CreateHistoLego(TEveCaloData* data, TEveWindowSlot* slot);
+TEveCalo3D* Create3DView(TEveCaloData* data, TEveWindowSlot* slot);
+void CreateProjections(TEveCaloData* data, TEveCalo3D *calo3d, TEveWindowSlot* slot1, TEveWindowSlot* slot2);
 
 TEveCaloDataHist* histo2d_all_events()
 {
@@ -25,7 +52,7 @@ TEveCaloDataHist* histo2d_all_events()
    TEveCaloDataHist* data_t;
    
    if ( g_histo2d_all_events_slot == 0 ) {
-      cout<<"Filling histogram..."<<endl;
+      Info("histo2d_all_events", "Filling histogram...");
    
       // Access to esdTree
       AliESDEvent* esd = AliEveEventManager::AssertESD();
@@ -91,7 +118,7 @@ TEveCaloDataHist* histo2d_all_events()
 
       gEve->Redraw3D(kTRUE);
 
-      cout<<"Filling histogram... Finished"<<endl;
+      Info("histo2d_all_events", "...Finished");
    }
 
    return data_t;
index c0bfe310b9926b45bfa50cfd2b84954d08a4a1ab..2dea7422e1deb860f440fb93c3a0c20aca3e44a7 100644 (file)
@@ -7,7 +7,19 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
-void hits_from_label(Int_t label=0, TEveElement* cont)
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TEveUtil.h>
+#include <TEvePointSet.h>
+#include <TEveElement.h>
+#include <TEveManager.h>
+
+#include "its_hits.C"
+#include "tof_hits.C"
+#include "tpc_hits.C"
+#include "trd_hits.C"
+#endif
+
+void hits_from_label(Int_t label=0, TEveElement* cont=0)
 {
   TEveUtil::LoadMacro("its_hits.C");
 
index bb7c2e0ffcbf97e8b1faaf334a1c1c7fbf1c0df6..b097ae614a9f68ea75f0b89c5bc913796a026539 100644 (file)
@@ -6,23 +6,21 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
-#ifdef __CINT__
 
-class TEveElement;
-class TEvePointSet;
-
-#else
-
-#include <TEveManager.h>
-#include <TEvePointSet.h>
-#include <EveBase/AliEveEventManager.h>
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TClonesArray.h>
 #include <TBranch.h>
 #include <TTree.h>
-#include <AliRunLoader.h>
-#include <AliCluster3D.h>
-
-#include <TClonesArray.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEvePointSet.h>
 
+#include <STEER/STEER/AliCluster3D.h>
+#include <STEER/STEER/AliRunLoader.h>
+#include <EveBase/AliEveEventManager.h>
+#else
+class TEveElement;
+class TEvePointSet;
 #endif
 
 TEvePointSet* hmpid_clusters(TEveElement* cont=0)
index 16cb5fdafef3a200febf813681e0e185304aeac4..f236a1f8a9888aed0ae8c2ad339a45820b38c31b 100644 (file)
@@ -1,3 +1,24 @@
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TClonesArray.h>
+#include <TBranch.h>
+#include <TGeoMatrix.h>
+#include <TTree.h>
+#include <TStyle.h>
+#include <TEveElement.h>
+#include <TEveFrameBox.h>
+#include <TEveManager.h>
+#include <TEvePointSet.h>
+#include <TEveRGBAPalette.h>
+#include <TEveTrans.h>
+#include <TEveQuadSet.h>
+
+#include <HMPID/AliHMPIDDigit.h>
+#include <HMPID/AliHMPIDv3.h>
+#include <STEER/STEER/AliCluster3D.h>
+#include <STEER/STEER/AliRunLoader.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
+
 void hmpid_digits()
 {
   const Char_t *name[]={ "HMPID0", "HMPID1", "HMPID2", "HMPID3",
@@ -7,7 +28,7 @@ void hmpid_digits()
   rl->LoadDigits("HMPID");
 
   TTree *dTree = rl->GetTreeD("HMPID", kFALSE);
-  if (!dTree) return 0;
+  if (!dTree) return;
 
   TEveElementList* list = new TEveElementList("HMPID Digits");
   gEve->AddElement(list);
index d557caab738c61f362b1d89759d713665f31f72f..d3c0bb4a7db14356dad4645ef3b3f66e5a25a72f 100644 (file)
@@ -1,3 +1,20 @@
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGeoMatrix.h>
+#include <TStyle.h>
+#include <TEveElement.h>
+#include <TEveFrameBox.h>
+#include <TEveManager.h>
+#include <TEveRGBAPalette.h>
+#include <TEveTrans.h>
+#include <TEveQuadSet.h>
+
+#include <HMPID/AliHMPIDDigit.h>
+#include <HMPID/AliHMPIDv3.h>
+#include <HMPID/AliHMPIDRawStream.h>
+#include <RAW/AliRawReader.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
+
 void hmpid_raw()
 {
   const Char_t *name[] = { "HMPID0", "HMPID1", "HMPID2", "HMPID3",
index dc31073686f2bd49f9bda1b86ceb08b5157a1ba7..1d1cdca69d8020b618616c04d075c938a2ea846e 100644 (file)
 #include <EveBase/AliEveEventManager.h>
 #include <EveDet/AliEveITSDigitsInfo.h>
 
-
-void its_display_raw_digits(AliEveITSDigitsInfo* di, Int_t mode,
-                            Bool_t check_empty    = kTRUE,
-                            Bool_t scaled_modules = kFALSE);
+#include "its_common_foos.C"
 
 #endif
 
index fc41f73fc444cb118dfece1b1b773f05e2096dc9..96649edf8f011dfbb8ae928c1dae17a48b571250 100644 (file)
@@ -7,6 +7,17 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TTree.h>
+#include <TEvePointSet.h>
+#include <TEveElement.h>
+#include <TEveManager.h>
+#include <TEveTreeTools.h>
+
+#include <STEER/STEER/AliRunLoader.h>
+#include <EveBase/AliEveEventManager.h>
+#endif
+
 TEvePointSet*
 its_hits(const char *varexp    = "fX:fY:fZ",
         const char *selection = "",
@@ -24,7 +35,7 @@ its_hits(const char *varexp    = "fX:fY:fZ",
   ps.Select();
 
   if(points->Size() == 0 && gEve->GetKeepEmptyCont() == kFALSE) {
-    Warning("its_hits", Form("No hits match '%s'", selection));
+    Warning("its_hits", "No hits match '%s'", selection);
     delete points;
     return 0;
   }
index 7c3231cd7fd100eaeb0b91daac7fe56d4a338c4e..25a725556ddbe7d4e2375e6ee6597246a0395c0a 100644 (file)
@@ -6,6 +6,16 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TTree.h>
+#include <TEvePointSet.h>
+#include <TEveElement.h>
+#include <TEveManager.h>
+#include <TEveTreeTools.h>
+
+#include <STEER/STEER/AliRunLoader.h>
+#include <EveBase/AliEveEventManager.h>
+#endif
 
 void its_hits_layer_split(const char *varexp    = "fX:fY:fZ:GetLayer()",
                           const char *selection = "")
index 618c74cea851af5be651d7575a26eb82de28df7b..9929ef512a8c299ad3aeaa3c38f8e79150a3db5d 100644 (file)
@@ -6,8 +6,18 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGLViewer.h>
+#include <TTree.h>
+#include <TStyle.h>
+#include <TEveManager.h>
+#include <TEveTreeTools.h>
 
-#include <vector> // bypass a cint problem in root-5.20
+#include <STEER/STEER/AliRunLoader.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveDet/AliEveITSModuleStepper.h>
+#include <EVE/EveDet/AliEveITSDigitsInfo.h>
+#endif
 
 class AliEveITSModuleStepper;
 
@@ -32,6 +42,11 @@ void its_module_stepper(Int_t det = 0)
 
   TGLViewer* v = gEve->GetDefaultGLViewer();
   v->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
-  TGLCameraMarkupStyle* mup = v->GetCameraMarkup();
-  if(mup) mup->SetShow(kFALSE);
+  
+  /*
+   * Disabling obsolete code
+   * 
+   */
+  //TGLCameraMarkupStyle* mup = v->GetCameraMarkup();
+  //if(mup) mup->SetShow(kFALSE);
 }
index f68d6591d2357f58d0650b845d3608b92bb01117..d404212e08856652e486521d421f7115798810cf 100644 (file)
@@ -14,9 +14,7 @@
 #include <EveBase/AliEveEventManager.h>
 #include <EveDet/AliEveITSDigitsInfo.h>
 
-void its_display_raw_digits(AliEveITSDigitsInfo* di, Int_t mode,
-                            Bool_t check_empty    = kTRUE,
-                            Bool_t scaled_modules = kFALSE);
+#include "its_common_foos.C"
 
 #endif
 
index 49b7c62f87176a72af1c2b2cc7b77e97c171a011..a815e7c63f786b1b879cdd2fb91f3c400e05893f 100644 (file)
@@ -7,6 +7,24 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TClonesArray.h>
+#include <TGLViewer.h>
+#include <TStyle.h>
+#include <TEveBrowser.h>
+#include <TEveManager.h>
+#include <TEveViewer.h>
+#include <TEveWindow.h>
+#include <TEveScene.h>
+#include <TEveTreeTools.h>
+
+#include <STEER/STEER/AliRunLoader.h>
+#include <STEER/AOD/AliAODEvent.h>
+#include <STEER/AOD/AliAODTrack.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveBase/AliEveJetPlane.h>
+#endif
+
 TEveViewer *gJPView   = 0;
 TEveScene  *gJPScene  = 0;
 
@@ -40,7 +58,7 @@ AliEveJetPlane* jetplane()
 
   TClonesArray* jets = aod->GetJets();
   Int_t njets = jets->GetEntries();
-  printf("Event: %5d Number of jets: %5d \n", iev, njets);
+  Info("jetplane", "Event: %5d Number of jets: %5d \n", iev, njets);
 
   for (Int_t ij = 0; ij < njets; ij++)
   {
@@ -52,7 +70,7 @@ AliEveJetPlane* jetplane()
 
   TClonesArray* tracks = aod->GetTracks();
   Int_t ntracks = tracks->GetEntries();
-  printf("Event: %5d Number of tracks: %5d \n", iev, ntracks);
+  Info("jetplane", "Event: %5d Number of tracks: %5d \n", iev, ntracks);
 
   for (Int_t ij = 0; ij < ntracks; ij++)
   {
index ad3a6504d59e62c6cfed00d55b428c6ac44684b8..ec89d31b410ceac55743ee6fc84e98166e208a67 100644 (file)
@@ -9,9 +9,14 @@
 
 // Import tracks from kinematics-tree / particle-stack.
 // Preliminary/minimal solution.
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TParticle.h>
+#include <TParticlePDG.h>
 
-#include "TParticlePDG.h"
-
+#include <STEER/STEERBase/AliStack.h>
+#include <STEER/STEER/AliRunLoader.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
 void
 kine_print(Double_t min_pt = 0, Double_t min_p = 0)
 {
@@ -20,7 +25,7 @@ kine_print(Double_t min_pt = 0, Double_t min_p = 0)
   AliStack* stack = rl->Stack();
   if (!stack) {
     Error("kine_tracks.C", "can not get kinematics.");
-    return 0;
+    return;
   }
 
   printf("\n");
index 08d38c68b2364c07f7b9fc5573c8ba1577e8f6c1..89dcf861718219f80c21933c994c41b1c1ca2fab 100644 (file)
 /// \author Matevz Tadel & Alja Mrak-Tadel: 2006, 2007 
 
 #if !defined(__CINT__) || defined(__MAKECINT__)
-
 #include <TParticle.h>
 #include <TParticlePDG.h>
-
 #include <TEveManager.h>
 #include <TEveTrackPropagator.h>
 
-#include <EveBase/AliEveEventManager.h>
-#include <EveBase/AliEveMagField.h>
-#include <EveBase/AliEveTrack.h>
-#include <EveBase/AliEveKineTools.h>
-
-#include <AliRunLoader.h>
-#include <AliStack.h>
-#include <AliMagF.h>
-
+#include <STEER/STEERBase/AliMagF.h>
+#include <STEER/STEERBase/AliStack.h>
+#include <STEER/STEER/AliRunLoader.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveBase/AliEveMagField.h>
+#include <EVE/EveBase/AliEveTrack.h>
+#include <EVE/EveBase/AliEveKineTools.h>
 #endif
 
 // Use magnetic-field as retrieved from GRP.
index daddd088d670a2b0b4c68cd3e4e0dfe62aab96eb..e9a36b15f5730709df6fed3f11ba159f1b51cb7e 100644 (file)
@@ -5,11 +5,17 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TEveElement.h>
+
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveBase/AliEveLego.h>
+#endif
 
 AliEveLego* lego(){
 
    AliEveEventManager *mng = AliEveEventManager::GetMaster();
-   AliEveLego *lego = mng->FindGlobal("LegoHisto2D");
+   AliEveLego *lego = dynamic_cast<AliEveLego*>(mng->FindGlobal("LegoHisto2D"));
 
    if ( lego == 0) {
       lego = new AliEveLego();
index 643a16f44424a0fd75300ebf4aa73931331ee139..aa4444d89be873bf727229775404ae328f4da46f 100644 (file)
@@ -1,12 +1,29 @@
+
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TCanvas.h>
 #include <TGButton.h>
 #include <TGButtonGroup.h>
+#include <TFile.h>
 #include <TGLabel.h>
 #include <TGNumberEntry.h>
 #include <TG3DLine.h>
 #include <TApplication.h>
 #include <TGComboBox.h>
 #include <TLatex.h>
+#include <TTree.h>
+#include <TEveUtil.h>
+
+#include <STEER/CDB/AliCDBManager.h>
+#include <STEER/ESD/AliESDEvent.h>
+#include <STEER/ESD/AliESDfriendTrack.h>
+#include <STEER/STEER/AliGeomManager.h>
+#include <EVE/EveBase/AliEveEventManager.h>
 
+/* Not sure which ConfigCalibTrain.C macro ? 
+ * From ANALYSIS or from PWGPP?
+ */
+#include "ANALYSIS/macros/ConfigCalibTrain.C" 
+#endif
 
 class ButtonWindow : public TGMainFrame {
 
@@ -54,9 +71,7 @@ ButtonWindow::ButtonWindow() : TGMainFrame(gClient->GetRoot(), 10, 10, kHorizont
    TGLabel *label1 = 0;
    TGLabel *label2 = 0;
    TGLabel *label3 = 0;
-   TGLabel *label4 = 0;
-   TGLabel *label5 = 0;
-   TGLabel *label6 = 0;
+  
    TGHorizontal3DLine *separator = 0;
 
    TGGroupFrame *margins = new TGGroupFrame(controls, "Residuals Drawing Options");
@@ -323,7 +338,7 @@ ButtonWindow::ButtonWindow() : TGMainFrame(gClient->GetRoot(), 10, 10, kHorizont
 void ButtonWindow::DrawResiduals()
 {
 
-      TString selection1, selection2, selection3, selection4, selection5 selection6, selection7, selection8, selection9, selection10;
+      TString selection1, selection2, selection3, selection4, selection5, selection6, selection7, selection8, selection9, selection10;
 
       switch(option1->GetSelected())
       {
@@ -514,48 +529,45 @@ void ButtonWindow::DrawResiduals()
         drawSelectionMerged2 = customDrawSelection->GetText();
 
 
-      cout << cutSelectionMerged << endl;
-      cout << "abs(ESDfriend.fTracks[].fTPCOut.fP[4])<0.5" <<endl;
-
-      cout << drawSelectionMerged1 << endl;
-      cout << "track[].fP[0]:track[].fX" << endl;
-
-      cout << drawSelectionMerged2 << endl;
-      cout << "abs(track[].fP[0])<20" << endl;
-
-      cout << "nEntries: " << nEntries->GetNumber() << endl;
-      cout << "firstEntry: " << firstEntry->GetNumber() << endl;
-
-
+      Info("make_residuals::DrawResiduals", "%s abs(ESDfriend.fTracks[].fTPCOut.fP[4])<0.5", cutSelectionMerged.Data());
+      Info("make_residuals::DrawResiduals", "%s track[].fP[0]:track[].fX", drawSelectionMerged1.Data());
+      Info("make_residuals::DrawResiduals", "%s abs(track[].fP[0])<20", drawSelectionMerged2.Data());
+      Info("make_residuals::DrawResiduals", "nEntries: %f", nEntries->GetNumber());
+      Info("make_residuals::DrawResiduals", "firstEntry: %f", firstEntry->GetNumber());
+      
       TEveUtil::LoadMacro("ConfigCalibTrain.C");
 
       AliESDEvent *esd = AliEveEventManager::AssertESD();
 
       ConfigCalibTrain(esd->GetRunNumber());
 
+      /* OBSOLETE CODE - No function members defined
+       * 
       AliESDfriendTrack::MakeDebugStreamer(kTRUE);
 
       TTreeSRedirector *pcstreamRes = AliESDfriendTrack::GetDebugStreamer();
-
+      */
+      
       TFile fRes("AliESDfriends.root");
 
       TTree *treeRes = (TTree*)fRes.Get("esdFriendTree");     
 
       TCanvas* cnv = new TCanvas();
-
+      
+      
       treeRes->Draw("ESDfriend.fTracks[].MakeResidualGraph(1)",cutSelectionMerged," ",nEntries->GetNumber(),firstEntry->GetNumber());
 //      treeRes->Draw("ESDfriend.fTracks[].MakeResidualGraph(1)","abs(ESDfriend.fTracks[].fTPCOut.fP[4])<0.5"," ",nEntries,firstEntry);
 
-      delete pcstreamRes;
+      //delete pcstreamRes;
+
+      /*  OBSOLETE CODE -dump not defined
 
       TFile fRes("residual.root");
 
       dump.Draw(drawSelectionMerged1,drawSelectionMerged2);
-
+      */
 //      dump.Draw("track[].fP[0]:track[].fX","abs(track[].fP[0])<20");
 
-
-
 }
 
 //_____________________________________________________________________________
index 7765d0d2b92a2a9efdc8b57a651932524fd61998..c384510688d7a01566d3ab1b144e9d4613ff6014 100644 (file)
 ///
 /// \author P. Pillot, L. Aphecetche; Subatech
 
-#ifndef __CINT__
-
-#include "AliMUONVCluster.h"
-#include "AliMUONVClusterStore.h"
-
-#include "AliRunLoader.h"
-
-#include "EveBase/AliEveEventManager.h"
-
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <Riostream.h>
+#include <TTree.h>
 #include <TEveManager.h>
 #include <TEvePointSet.h>
 
-#include <TTree.h>
-#include <Riostream.h>
-
+#include <MUON/AliMUONVCluster.h>
+#include <MUON/AliMUONVClusterStore.h>
+#include <STEER/STEER/AliRunLoader.h>
+#include <EVE/EveBase/AliEveEventManager.h>
 #endif
 class TIter;
 class TEvePointSet;
index 842db1454088dab7f9ae9d488bda7ab1bb318b25..d972ae872f771f2ed0c6bd4f65c644fb7c23a4d4 100644 (file)
 /// \author P. Pillot, L. Aphecetche; Subatech
 
 #if !defined(__CINT__) || defined(__MAKECINT__)
-
-#include "AliMUONGeometryTransformer.h"
-#include "AliMUONVDigit.h"
-#include "AliMUONVDigitStore.h"
-
-#include "AliMpPad.h"
-#include "AliMpSegmentation.h"
-#include "AliMpVSegmentation.h"
-#include "AliMpCDB.h"
-
-#include "AliRunLoader.h"
-
-#include "EveBase/AliEveEventManager.h"
-
-#include <TEveManager.h>
-#include <TEveQuadSet.h>
-
+#include <Riostream.h>
 #include <TTree.h>
 #include <TStyle.h>
-#include <Riostream.h>
+#include <TEveManager.h>
+#include <TEveQuadSet.h>
 
+#include <MUON/AliMUONGeometryTransformer.h>
+#include <MUON/AliMUONVDigit.h>
+#include <MUON/AliMUONVDigitStore.h>
+#include <MUON/mapping/AliMpPad.h>
+#include <MUON/mapping/AliMpSegmentation.h>
+#include <MUON/mapping/AliMpVSegmentation.h>
+#include <MUON/mapping/AliMpCDB.h>
+#include <STEER/STEER/AliRunLoader.h>
+#include <EVE/EveBase/AliEveEventManager.h>
 #endif
 
 //______________________________________________________________________________
index 163cbfd8994ffe7d0ef4f14dcd42556341caefc5..1eff67c4874e602fe181183b7dad7c6cd0c64c21 100644 (file)
 /// \author P. Pillot, L. Aphecetche; Subatech
 
 #if !defined(__CINT__) || defined(__MAKECINT__)
-
-#include "AliMUONDigitMaker.h"
-#include "AliMUONDigitStoreV2R.h"
-
-#include "AliMpCDB.h"
-
-#include "AliRawReader.h"
-
-#include "EveBase/AliEveEventManager.h"
-
-#include <TEveManager.h>
-#include <TEveUtil.h>
-#include <TEveQuadSet.h>
-
 #include <TStyle.h>
 #include <Riostream.h>
 #include <TROOT.h>
+#include <TEveManager.h>
+#include <TEveUtil.h>
+#include <TEveQuadSet.h>
 
+#include <MUON/AliMUONDigitMaker.h>
+#include <MUON/AliMUONDigitStoreV2R.h>
+#include <MUON/mapping/AliMpCDB.h>
+#include <RAW/AliRawReader.h>
+#include <EVE/EveBase/AliEveEventManager.h>
 #endif
 
 void muon_raw()
index 009646477d4e2b7eeaf3cf28df2541249307309d..eb7235f40f1254783b3ac3c2905a1618b1fdcac6 100644 (file)
 /// \author P. Pillot, L. Aphecetche; Subatech
 
 #if !defined(__CINT__) || defined(__MAKECINT__)
-
-#include "AliMUONClusterStoreV2.h"
-#include "AliMUONRawClusterV2.h"
-#include "AliMUONVCluster.h"
-#include "AliMUONConstants.h"
-#include "AliMUONRecoParam.h"
-#include "AliMUONCDB.h"
-
-#include "AliRunLoader.h"
-#include "AliStack.h"
-#include "AliTrackReference.h"
-
-#include "EveBase/AliEveMagField.h"
-#include "EveBase/AliEveTrack.h"
-#include "EveBase/AliEveEventManager.h"
-
+#include <TClonesArray.h>
+#include <TTree.h>
+#include <TParticle.h>
+#include <TMath.h>
+#include <TROOT.h>
 #include <TEveManager.h>
 #include <TEveUtil.h>
 #include <TEveTrack.h>
 #include <TEveVSDStructs.h>
 #include <TEveTrackPropagator.h>
 
-#include <TClonesArray.h>
-#include <TTree.h>
-#include <TParticle.h>
-#include <TMath.h>
-#include <TROOT.h>
-
+#include <MUON/AliMUONClusterStoreV2.h>
+#include <MUON/AliMUONRawClusterV2.h>
+#include <MUON/AliMUONVCluster.h>
+#include <MUON/AliMUONConstants.h>
+#include <MUON/AliMUONRecoParam.h>
+#include <MUON/AliMUONCDB.h>
+#include <STEER/STEERBase/AliStack.h>
+#include <STEER/STEERBase/AliTrackReference.h>
+#include <STEER/STEER/AliRunLoader.h>
+#include <EVE/EveBase/AliEveMagField.h>
+#include <EVE/EveBase/AliEveTrack.h>
+#include <EVE/EveBase/AliEveEventManager.h>
 #endif
 
 //______________________________________________________________________________
index d7d6c0e27fa4a2cf58f98ae460fb9113eda46c0c..5bc52d5a59f715efed81c96a52526963c2caef8f 100644 (file)
@@ -7,6 +7,20 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TObjArray.h>
+#include <TBranch.h>
+#include <TTree.h>
+#include <TString.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEvePointSet.h>
+
+#include <STEER/STEER/AliCluster.h>
+#include <STEER/STEER/AliRunLoader.h>
+#include <EveBase/AliEveEventManager.h>
+#endif
+
 TEvePointSet* phos_clusters(TEveElement* cont=0)
 {
   AliEveEventManager::AssertGeometry();
index 95c21dd3c004fe2b68f02ee74f66b829145f6fd7..2bbeb92b4fdbb21a409fa7d7e120f8414ce06751 100644 (file)
@@ -6,6 +6,24 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TTree.h>
+#include <TStyle.h>
+#include <TString.h>
+#include <TEveElement.h>
+#include <TEveFrameBox.h>
+#include <TEveManager.h>
+#include <TEvePointSet.h>
+#include <TEveRGBAPalette.h>
+#include <TEveTrans.h>
+
+#include <HMPID/AliHMPIDDigit.h>
+#include <HMPID/AliHMPIDv3.h>
+#include <STEER/STEER/AliCluster3D.h>
+#include <STEER/STEER/AliRunLoader.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveDet/AliEvePMDModule.h>
+#endif
 
 void pmd_digits(Int_t mode = 0)
 {
index 75cbdf03d565f72cc0d598abd74644353c3b2e14..29f4f2e6c23606780cf5f1729e05d2b274db7dac 100644 (file)
@@ -7,6 +7,18 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TTree.h>
+#include <TStyle.h>
+#include <TString.h>
+#include <TEveManager.h>
+#include <TEvePointSet.h>
+#include <TEveTrans.h>
+
+#include <STEER/STEER/AliRunLoader.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
+
 TEvePointSet*
 pmd_hits(const char *varexp    = "fX:fY:fZ",
         const char *selection = "")
index 3729cfffb5a84deba77211df188700ff97ede6ab..4f4bc7d6ae3ab8dfed81a3c7ec12f5d8a53ba06c 100644 (file)
@@ -7,6 +7,22 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 // ---------------------------------------------------------------------- //
+
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TObjArray.h>
+#include <TString.h>
+#include <TStyle.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEvePointSet.h>
+
+#include <PMD/AliPMDRawStream.h>
+#include <RAW/AliRawReaderRoot.h>
+#include <STEER/STEER/AliCluster.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveDet/AliEvePMDModule.h>
+#endif
+
 void pmd_raw(Int_t mode = 0)
 {
   gStyle->SetPalette(1, 0);
@@ -89,13 +105,13 @@ void pmd_raw(Int_t mode = 0)
 
       Int_t iddl = -1;
 
-      while ((iddl = stream.DdlData(&pmdddlcont)) >=0) {
+      while ((iddl = stream.DdlData(pmdddlcont)) >=0) {
          if (iddl >= istartDDL && iddl < iendDDL){
              sddl = bsddl;
              sddl += iddl;
              TEveElementList* lddl = new TEveElementList(sddl.Data());
              //  l->SetMainColor(3);
-             gEve->AddElement(ddl, lplane);
+             gEve->AddElement(lddl, lplane);
              
              modnumber = iddl*6;
              
index 360459a3a28e5b2ad4a6ea2bdf0c40fc30060143..328688e98bb22357a5a430edafa392e185d1577e 100644 (file)
 #include <TEveCompound.h>
 #include <TEveStraightLineSet.h>
 
-#include <EveBase/AliEveEventManager.h>
-
-#include <AliESDEvent.h>
-#include <AliESDVertex.h>
-
+#include <STEER/ESD/AliESDEvent.h>
+#include <STEER/ESD/AliESDVertex.h>
+#include <EVE/EveBase/AliEveEventManager.h>
 #endif
 
 //==============================================================================
index 48a61dc3cf3d9c85ddab5238c26206079d9d079d..b3ce4cb313f9a193cac1b95f92debe6d3b1218ff 100644 (file)
@@ -6,25 +6,41 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TMarker.h>
+#include <TEveManager.h>
+#include <TEveCompound.h>
+#include <TEveTrack.h>
+#include <TEveTrackPropagator.h>
+#include <TEveUtil.h>
+
+#include <STEER/ESD/AliESDEvent.h>
+#include <STEER/ESD/AliESDVertex.h>
+#include <STEER/ESD/AliESDtrack.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveBase/AliEveTrack.h>
+
+#include "esd_tracks.C"
+#endif
 
 TEveTrackList* primary_vertex_tracks()
 {
   TEveUtil::LoadMacro("esd_tracks.C");
   AliESDEvent   *esd = AliEveEventManager::AssertESD();
-  AliESDVertex *pv  = esd->GetPrimaryVertex();
+  const AliESDVertex *pv  = esd->GetPrimaryVertex();
 
   TEveTrackList* cont = new TEveTrackList("Tracks for Primary Vertex");
   cont->SetMainColor(7);
   TEveTrackPropagator* rnrStyle = cont->GetPropagator();
   rnrStyle->SetMagField( 0.1*esd->GetMagneticField() );
   rnrStyle->fRnrFV = kTRUE;
-  rnrStyle->fFVAtt->SetMarkerColor(2);
+  rnrStyle->fFVAtt.SetMarkerColor(2);
   gEve->AddElement(cont);
 
   for (Int_t n=0; n<pv->GetNIndices(); n++)
   {
     AliESDtrack* at = esd->GetTrack(pv->GetIndices()[n]);
-    AliEveTrack* track = esd_make_track(rnrStyle, n, at, at);
+    AliEveTrack* track = esd_make_track(at, cont);
     track->SetLineWidth(4);
     track->SetLineColor(cont->GetMainColor());
     track->SetLineStyle(7);
index e9ea141f43a3dd7f449edd29f0e178c0072bc170..b4686198f7a3246ae6c03ae22f68613f34937f8c 100644 (file)
@@ -7,6 +7,14 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TParticle.h>
+
+#include <STEER/STEER/AliRunLoader.h>
+#include <STEER/STEERBase/AliStack.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
+
 void print_kine_from_label(Int_t label)
 {
   AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
index 845f1ba66f5b6f34113e69141cf71712ad07b040..93e5f27161c462e6be53f52b3a62697319df7c3b 100644 (file)
@@ -6,6 +6,13 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TPolyMarker3D.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEveUtil.h>
+#endif
+
 
 void region_marker(Float_t a=10, Float_t b=10, Float_t c=20,
                   Float_t x=0, Float_t y=0, Float_t z=0)
index f7e58402a59d236f7841fc50ce0ae4cd9ca5ee9a..b246182650b67d55f6f7113c97bcb1a02a7e1acf 100644 (file)
@@ -6,12 +6,25 @@
 
 // Author: Pawel Debski 2010
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TPolyMarker3D.h>
+#include <TString.h>
+#include <TEveLine.h>
+#include <TEveManager.h>
+#include <TEveEventManager.h>
+#include <TEveElement.h>
+#include <TEveUtil.h>
+
+#include <STEER/ESD/AliESDtrack.h>
+#include <EVE/EveBase/AliEveTrack.h>
+#include <EVE/EveBase/AliEveMultiView.h>
+#endif
 
 void set_momentum_vectors()
 {
 
-   TString str1 = 0;
-   TString str2 = 0;
+   TString str1;
+   TString str2;
 
    Bool_t draw = kFALSE;
 
index 45ae32cc2448cd19f525a4160418991e084cc4da..fa8510acd296280aa8d64af7d8d060079528b77e 100644 (file)
@@ -7,6 +7,17 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TTree.h>
+#include <TStyle.h>
+
+#include <STEER/STEER/AliRunLoader.h>
+#include <T0/AliT0digit.h>
+#include <EveBase/AliEveEventManager.h>
+#include <EveDet/AliEveITSDigitsInfo.h>
+#include <EVE/EveDet/AliEveT0Module.h>
+#endif
+
 void t0_digits()
 {
   AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
index a2913f83d7e3a4a3840cea7366a39c62340a1826..cc8e4998758719897d7378d075fd07c5316e44a9 100644 (file)
@@ -7,6 +7,18 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TClonesArray.h>
+#include <TTree.h>
+#include <TEvePointSet.h>
+#include <TEveElement.h>
+#include <TEveManager.h>
+#include <TEveTreeTools.h>
+
+#include <STEER/STEER/AliRunLoader.h>
+#include <EveBase/AliEveEventManager.h>
+#endif
+
 TEvePointSet*
 t0_hits(const char *varexp    = "T0.fX:T0.fY:T0.fZ",
        const char *selection = "")
index 1247b13d94a185f096145f21d9d06b795f8602e9..5dc24ed401f657da0e08e7c1737c5cd09f37780b 100644 (file)
@@ -7,6 +7,14 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TStyle.h>
+
+#include <RAW/AliRawReader.h>
+#include <EveBase/AliEveEventManager.h>
+#include <EVE/EveDet/AliEveT0Module.h>
+#endif
+
 void t0_raw()
 {
   AliRawReader *reader = AliEveEventManager::AssertRawReader();
index 12e7b15ad219eaa4f93921de4c6403bb3512a0a8..75cb3d8d8fc3c3cd7f463ce1417173eb83cedeec 100644 (file)
@@ -5,22 +5,21 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
-#ifdef __CINT__
-
-class TEveElement;
-class TEvePointSet;
-
-#else
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TObjArray.h>
 #include <TMath.h>
 #include <TTree.h>
+#include <TString.h>
 #include <TEveManager.h>
 #include <TEvePointSet.h>
-#include <EveBase/AliEveEventManager.h>
-
-#include <AliRunLoader.h>
-#include <AliCluster.h>
 
+#include <STEER/STEER/AliCluster.h>
+#include <STEER/STEER/AliRunLoader.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#else
+class TEveElement;
+class TEvePointSet;
 #endif
 
 TEvePointSet* tof_clusters(TEveElement* cont=0, Float_t maxR=390)
index 1e167e17bbc5c42ebdb3a33417715832328ffabc..21209cf76eaa1b3bed62265e6ad248986225db83 100644 (file)
@@ -7,6 +7,20 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TClonesArray.h>
+#include <TTree.h>
+#include <TStyle.h>
+#include <TGeoManager.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+
+#include <STEER/STEER/AliRunLoader.h>
+#include <TOF/AliTOFGeometry.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveDet/AliEveTOFDigitsInfo.h>
+#include <EVE/EveDet/AliEveTOFSector.h>
+#endif
 
 void tof_digits()
 {  
index 90ac7bc4f2cda4611ccf61536fb4cadcd50fd3c7..2b79b702b926b206a3621d2742c6686922b691f1 100644 (file)
@@ -7,6 +7,20 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TTree.h>
+#include <TStyle.h>
+#include <TGeoManager.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+
+#include <STEER/STEER/AliRunLoader.h>
+#include <TOF/AliTOFGeometry.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveDet/AliEveTOFDigitsInfo.h>
+#include <EVE/EveDet/AliEveTOFSector.h>
+#endif
+
 void tof_digits_sector(Int_t sector=0)
 {
   
@@ -23,13 +37,13 @@ void tof_digits_sector(Int_t sector=0)
 
   di->SetTree(dt);
 
-  AliTOFGeometry* g = di->GetTOFgeometry();
+  //AliTOFGeometry* g = di->GetTOFgeometry();
 
   gStyle->SetPalette(1, 0);
   gEve->DisableRedraw();
 
-  Char_t sectorName[100];
-  Char_t sectorTitle[200];
+  //Char_t sectorName[100];
+  //Char_t sectorTitle[200];
 
   TEveElementList* ll = new TEveElementList("TOF");
   ll->SetTitle("TOF detector");
index 6be8c4b74528c7d2ca5b61cfd783f5b6826af751..2e035ea647a827e389458fe8aafc0673e851e9a7 100644 (file)
@@ -7,11 +7,26 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TClonesArray.h>
+#include <TTree.h>
+#include <TStyle.h>
+#include <TGeoManager.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+
+#include <STEER/STEER/AliRunLoader.h>
+#include <TOF/AliTOFGeometry.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveDet/AliEveTOFDigitsInfo.h>
+#include <EVE/EveDet/AliEveTOFStrip.h>
+#endif
+
 void tof_digits_strips(Int_t selectedSector=-1)
 {
   TClonesArray *array = 0x0;
 
-  Int_t nDigitsInVolume[3] = {-1, -1, -1};
// Int_t nDigitsInVolume[3] = {-1, -1, -1};
   Int_t nStrips=19;
   TGeoManager *localGeoManager = gEve->GetGeometry("./geometry.root");//  gGeoManager = gEve->GetDefaultGeometry();
 
index df431f3d50a631b972a678c62144efad8598dcc9..4fd4b28f6185ad6c3869c8b7742fc26f08da9fbe 100644 (file)
@@ -6,11 +6,22 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TString.h>
+#include <TTree.h>
+#include <TEvePointSet.h>
+#include <TEveElement.h>
+#include <TEveManager.h>
+#include <TEveTreeTools.h>
+
+#include <STEER/STEER/AliRunLoader.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
 
 TEvePointSet*
 tof_hits(const char *varexp    = "fX:fY:fZ",
         const char *selection = "",
-        TEveElement* cont)
+        TEveElement* cont=0)
 {
   AliRunLoader* rl =  AliEveEventManager::AssertRunLoader();
   rl->LoadHits("TOF");
@@ -23,7 +34,7 @@ tof_hits(const char *varexp    = "fX:fY:fZ",
   ps.Select();
 
   if( points->Size() == 0 && gEve->GetKeepEmptyCont() == kFALSE) {
-    Warning("tof_hits", Form("No hits match '%s'", selection));
+    Warning("tof_hits", "No hits match '%s'", selection);
     delete points;
     return 0;
   }
index 63c9f15cb10b4f6d2a1bbd3b22b7ba917b24f0ef..80aba87a1e16db0d5314be4a01def02f8d9c3407 100644 (file)
@@ -1,3 +1,22 @@
+/**************************************************************************
+ * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
+ * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
+ * full copyright notice.                                                 *
+ **************************************************************************/
+
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TClonesArray.h>
+#include <TStyle.h>
+#include <TGeoManager.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+
+#include <TOF/AliTOFGeometry.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveDet/AliEveTOFDigitsInfo.h>
+#include <EVE/EveDet/AliEveTOFSector.h>
+#endif
+
 void tof_raw(Int_t newDecoder = 2)
 {
   AliRawReader *rawReader = AliEveEventManager::AssertRawReader();
index a6b888647f3eabf9b7c597e10bcd8e30114f8130..28c7b55a3977cf73df119679c3a7d49342d84b13 100644 (file)
@@ -6,6 +6,16 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
+
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGLayout.h>
+#include <TGFrame.h>
+#include <TEveManager.h>
+#include <TEveBrowser.h>
+
+#include <TPC/AliTPCCalibViewerGUI.h>
+#endif
+
 void tpc_calib_viewer(const char* file="CalibTree.root")
 {
    TEveBrowser* b = gEve->GetBrowser();
index 35ce0411e5f0826e7cb4b095e132882d166198e3..d7729f2db4adcef2d5b3ef1353dd79d3aa51663d 100644 (file)
@@ -7,24 +7,20 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
-#ifdef __CINT__
-
-class TEveElement;
-class TEvePointSet;
-
-#else
-
-#include <TEveManager.h>
+#if !defined(__CINT__) || defined(__MAKECINT__)
 #include <TColor.h>
-#include <TEvePointSet.h>
-#include <EveBase/AliEveEventManager.h>
 #include <TTree.h>
+#include <TEveManager.h>
+#include <TEvePointSet.h>
 
-#include <AliRunLoader.h>
-#include <AliCluster.h>
+#include <STEER/STEER/AliCluster.h>
+#include <STEER/STEER/AliRunLoader.h>
 #include <TPC/AliTPCClustersRow.h>
 #include <TPC/AliTPCclusterMI.h>
-
+#include <EVE/EveBase/AliEveEventManager.h>
+#else
+class TEveElement;
+class TEvePointSet;
 #endif
 
 TEvePointSet* tpc_clusters(TEveElement* cont=0, Float_t maxR=270)
index a2666314cd34489159ac2d28b596457a8663ab56..7c82f3d6345e664156611bc8ef93111e3143ac78 100644 (file)
@@ -7,6 +7,19 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TStyle.h>
+#include <TTree.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+
+#include <STEER/STEER/AliRunLoader.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveDet/AliEveTPCData.h>
+#include <EVE/EveDet/AliEveTPCSector2D.h>
+#include <EVE/EveDet/AliEveTPCSector3D.h>
+#endif
+
 void tpc_digits(Int_t mode=1)
 {
   AliRunLoader* rl =  AliEveEventManager::AssertRunLoader();
index 45ed108c0468b9a3c03eac97f75745537c89e01c..ae68431885601f6137c703c176a422dcc3cf04e2 100644 (file)
@@ -7,6 +7,18 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TString.h>
+#include <TTree.h>
+#include <TEvePointSet.h>
+#include <TEveElement.h>
+#include <TEveManager.h>
+#include <TEveTreeTools.h>
+
+#include <STEER/STEER/AliRunLoader.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
+
 TEvePointSet*
 tpc_hits(const char  *varexp    = "TPC2.fArray.fR:TPC2.fArray.fFi:TPC2.fArray.fZ",
         const char  *selection = "TPC2.fArray.fR>80",
@@ -27,7 +39,7 @@ tpc_hits(const char  *varexp    = "TPC2.fArray.fR:TPC2.fArray.fFi:TPC2.fArray.fZ
   ps.Select();
 
   if (points->Size() == 0 && gEve->GetKeepEmptyCont() == kFALSE) {
-    Warning("tpc_hits", Form("No hits match '%s'", selection));
+    Warning("tpc_hits", "No hits match '%s'", selection);
     delete points;
     return 0;
   }
@@ -40,8 +52,6 @@ tpc_hits(const char  *varexp    = "TPC2.fArray.fR:TPC2.fArray.fFi:TPC2.fArray.fZ
   points->SetMarkerSize(.5);
   points->SetMarkerColor(3);
 
-
-
   gEve->AddElement(points, cont);
   gEve->Redraw3D();
 
index f62168913bce8a508a4d66c772f7de2c477b2b65..934a2c3e13dcd0c28acd1345f906d613cbad247f 100644 (file)
@@ -7,6 +7,16 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TTree.h>
+#include <TEveManager.h>
+#include <TEvePointSet.h>
+#include <TEveTreeTools.h>
+
+#include <STEER/STEER/AliRunLoader.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
+
 void tpc_hits_charge_split(const char *varexp    =
                        "TPC2.fArray.fR:TPC2.fArray.fFi:TPC2.fArray.fZ"
                        ":log(TPC2.fArray.fCharge)",
index 97194a48703ab616c470702b3fa7ef3917eb7a0f..4b50b5b988a3d99694fc1882243e77ecb47a2450 100644 (file)
@@ -7,6 +7,16 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TTree.h>
+#include <TEveManager.h>
+#include <TEvePointSet.h>
+#include <TEveTreeTools.h>
+
+#include <STEER/STEER/AliRunLoader.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
+
 void tpc_hits_eta_split(const char *varexp    =
                        "TPC2.fArray.fR:TPC2.fArray.fFi:TPC2.fArray.fZ"
                        ":TPC2.fArray.Eta()",
index 9ebfe4a189018d51ff42ff293bc7f050ae2953bf..495ab3b7ec324bb08014a693c1ad82fece66d542 100644 (file)
@@ -7,6 +7,23 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TStyle.h>
+#include <TTree.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEvePointSet.h>
+#include <TEveTreeTools.h>
+
+#include <RAW/AliRawReader.h>
+#include <RAW/AliAltroRawStreamV3.h>
+#include <TPC/AliTPCRawStreamV3.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveDet/AliEveTPCData.h>
+#include <EVE/EveDet/AliEveTPCSector2D.h>
+#include <EVE/EveDet/AliEveTPCSector3D.h>
+#endif
+
 // Macro to visualise rootified raw-data from TPC.
 //
 // Use tpc_raw(Int_t mode) in order to run it
@@ -39,6 +56,9 @@ void tpc_raw(Int_t mode = 3)
   TEveElementList* sec3d = new TEveElementList("TPC 3D");
   gEve->AddElement(sec3d);
 
+  AliEveTPCSector2D *s;
+  AliEveTPCSector3D *t;
+  
   for (Int_t i=0; i<=35; ++i) {
     if (mode & 1) {
       s = new AliEveTPCSector2D(Form("2D sector %d",i));
index c8b29f921f75bdb36f355385950db316104edf8a..3f0f283f9709785c1195bafd408045b195fb96d5 100644 (file)
@@ -1,3 +1,9 @@
+/**************************************************************************
+ * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
+ * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
+ * full copyright notice.                                                 *
+ **************************************************************************/
+
 //
 // Select points from TEvePointSet(clusters, hits, etc.) with Alt+mouse-left
 // click action.
@@ -5,6 +11,14 @@
 // In AliEvetrackFitEditor press "Fit" button to make track fit on the
 // selected points. To fit new track, press "Reset".
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TEveManager.h>
+#include <TEveSelection.h>
+
+#include <EVE/EveBase/AliEveTrackFitter.h>
+#include <EVE/EveBase/AliEveCosmicRayFitter.h>
+#endif
+
 void track_fitter(Int_t mode = 1)
 {
   gEve->GetSelection()->SetPickToSelect(1);
index 5ccf2d069a18508054fc7bdd9bb1d7cfcdfed7ac..effa0e6cb4e460b5241ad8e3b30c25f5fa6df17b 100644 (file)
@@ -1,3 +1,23 @@
+/**************************************************************************
+ * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
+ * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
+ * full copyright notice.                                                 *
+ **************************************************************************/
+
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TEvePointSet.h>
+
+#include <STEER/STEERBase/AliPID.h>
+#include <TRD/AliTRDhit.h>
+#include <TRD/AliTRDarrayADC.h>
+#include <TRD/AliTRDcluster.h>
+#include <TRD/AliTRDtrackV1.h>
+#include <TRD/AliTRDReconstructor.h>
+#include <TRD/AliTRDrecoParam.h>
+#include <TRD/AliTRDseedV1.h>
+#include <EVE/EveDet/AliEveTRDData.h>
+#endif
+
 //
 // How to access the basic TRD data structures when a 
 // pointer to an Eve opject is available. One can get a 
@@ -28,6 +48,9 @@ void analyseHits(AliEveTRDHits *hits = 0x0)
   }
 }
 
+/* Obsolete code
+ * 
+ * 
 //_______________________________________________________
 void analyseDigits(AliEveTRDDigits *digits = 0x0)
 {
@@ -53,6 +76,7 @@ void analyseDigits(AliEveTRDDigits *digits = 0x0)
     }
   data->Compress(1);
 }
+*/
 
 //_______________________________________________________
 void analyseClusters(TEvePointSet *points = 0x0)
index 1b39c3d36904cf46a712733c6465acae9d3aa9ed..359f243954c7e0d54975b13071f68b0a3d84b36a 100644 (file)
@@ -7,18 +7,20 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
-#ifdef __CINT__
-class TEvePointSet;
-class TEveElement;
-#else
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TObjArray.h>
+#include <TTree.h>
 #include <TEveManager.h>
+#include <TEveElement.h>
 #include <TEvePointSet.h>
-#include <TTree.h>
-#include <EveBase/AliEveEventManager.h>
 
-#include "AliRunLoader.h"
-#include "AliCluster.h"
-#include "TRD/AliTRDcluster.h"
+#include <STEER/STEER/AliCluster.h>
+#include <STEER/STEER/AliRunLoader.h>
+#include <TRD/AliTRDcluster.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#else
+class TEvePointSet;
+class TEveElement;
 #endif
 
 TEvePointSet* trd_clusters(TEveElement *cont = 0)
index cbab2d928b0f15445e6e0ceb11520d50b314ec8a..aa35c6ca0057e10b30eb6f2166a664b4765a2e71 100644 (file)
 // Author:
 // Alex Bercuci (A.Bercuci@gsi.de)
 // 
-#ifdef __CINT__
-class TEvePointSet;
-class TEveElement;
-#else
+
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGeoManager.h>
 #include <TEveManager.h>
+#include <TEveElement.h>
 #include <TEvePointSet.h>
-#include <EveBase/AliEveEventManager.h>
-#include <EveDet/AliEveTRDModuleImp.h>
 
-#include "AliRunLoader.h"
-#include "AliCluster.h"
-#include "TRD/AliTRDcluster.h"
-#include "TRD/AliTRDgeometry.h"
-#include "TRD/AliTRDdigitsManager.h"
+#include <STEER/STEER/AliCluster.h>
+#include <STEER/STEER/AliRunLoader.h>
+#include <TRD/AliTRDarrayADC.h>
+#include <TRD/AliTRDcluster.h>
+#include <TRD/AliTRDgeometry.h>
+#include <TRD/AliTRDdigitsManager.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveDet/AliEveTRDModuleImp.h>
+#else
+class TEvePointSet;
+class TEveElement;
 #endif
 
 TEveElementList* trd_digits(Int_t sector = -1, TEveElement *cont = 0)
@@ -83,6 +87,6 @@ TEveElementList* trd_digits(Int_t sector = -1, TEveElement *cont = 0)
   gEve->AddElement(list, cont);
   gEve->Redraw3D();
 
-  Info("trd_digits", Form("TRD chambers with data for current selection %d.", jdet));
+  Info("trd_digits", "TRD chambers with data for current selection %d.", jdet);
   return list;
 }
index ef88699b949f6fc1fe420afc377b592fd6fbbcc5..77fc2411c258f1abc46b451e56fcafb9d3d3d7a4 100644 (file)
@@ -1,21 +1,23 @@
-#ifndef __CINT__
-#include "TEveManager.h"
-#include "TEveLine.h"
-#include "TEveStraightLineSet.h"
-#include "TClonesArray.h"
-#include "EveBase/AliEveEventManager.h"
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TClonesArray.h>
+#include <TParticlePDG.h>
+#include <TEveLine.h>
+#include <TEveStraightLineSet.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
 
-#include "AliRunLoader.h"
-#include "AliLoader.h"
-#include "AliDataLoader.h"
-#include "AliTreeLoader.h"
-#include "TRD/AliTRDarrayADC.h"
-#include "EveDet/AliEveTRDData.h"
-#include "TRD/AliTRDtrackletWord.h"
-#include "TRD/AliTRDtrackletMCM.h"
-#include "TRD/AliTRDtrackGTU.h"
-#include "TRD/AliTRDtrackletGTU.h"
-#include "TParticlePDG.h"
+#include <STEER/STEER/AliRunLoader.h>
+#include <STEER/STEER/AliLoader.h>
+#include <STEER/STEER/AliDataLoader.h>
+#include <STEER/STEER/AliTreeLoader.h>
+#include <TRD/AliTRDarrayADC.h>
+#include <TRD/AliTRDgeometry.h>
+#include <TRD/AliTRDtrackletWord.h>
+#include <TRD/AliTRDtrackletMCM.h>
+#include <TRD/AliTRDtrackGTU.h>
+#include <TRD/AliTRDtrackletGTU.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveDet/AliEveTRDData.h>
 #endif
 
 TEveElementList *
index e472783b01658dcb8eb822ab3a53a25352792b43..3a52e51cb388c0ed6210ecc300f1e99b06f79b82 100644 (file)
@@ -6,6 +6,17 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TString.h>
+#include <TTree.h>
+#include <TEvePointSet.h>
+#include <TEveElement.h>
+#include <TEveManager.h>
+#include <TEveTreeTools.h>
+
+#include <STEER/STEER/AliRunLoader.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
 
 TEvePointSet*
 trd_hits(const char *varexp    = "fX:fY:fZ",
@@ -23,7 +34,7 @@ trd_hits(const char *varexp    = "fX:fY:fZ",
   ps.Select();
 
   if (points->Size() == 0 && gEve->GetKeepEmptyCont() == kFALSE) {
-    Warning("trd_hits", Form("No hits match '%s'", selection));
+    Warning("trd_hits", "No hits match '%s'", selection);
     delete points;
     return 0;
   }
index 30aaf265045cf44f95b824c84100eff0ffd1dbc1..5f85c6ef9518786c160aa09af062ad2f05a4b892 100644 (file)
@@ -7,6 +7,18 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TString.h>
+#include <TTree.h>
+#include <TEvePointSet.h>
+#include <TEveElement.h>
+#include <TEveManager.h>
+#include <TEveTreeTools.h>
+
+#include <STEER/STEER/AliRunLoader.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
+
 void trd_hits_z_split(const char *varexp    = "fX:fY:fZ:fZ",
                      const char *selection = "")
 {
index 60c789cda7ff452f09ee27d2a4c760c2d4ece935..7ee762fdbe56d9764a67f7accacdcbc927260eb8 100644 (file)
 // Author:
 // Alex Bercuci (A.Bercuci@gsi.de)
 //
+
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TString.h>
+#include <TSystem.h>
+#include <TEveManager.h>
+#include <TEveTreeTools.h>
+
+#include <EVE/EveDet/AliEveTRDLoader.h>
+#endif
+
 AliEveTRDLoader* trd_loader(Int_t event=0)
 {
   // init single file loader
index 5bc4f002fa3609b5a41806314c531bb3e9cf219b..66c34b695bb691f2f52dc4988cb4b341a9f5b5d8 100644 (file)
@@ -1,3 +1,22 @@
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TBranch.h>
+#include <TFile.h>
+#include <TSystem.h>
+#include <TTree.h>
+#include <TROOT.h>
+#include <TEveManager.h>
+
+#include <PWGPP/TRD/info/AliTRDtrackInfo.h>
+#include <STEER/CDB/AliCDBManager.h>
+#include <TRD/AliTRDarrayADC.h>
+#include <TRD/AliTRDReconstructor.h>
+#include <TRD/AliTRDrecoParam.h>
+#include <TRD/AliTRDtrackV1.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveDet/AliEveTRDTrackList.h>
+#include <EVE/EveDet/AliEveTRDData.h>
+#endif
+
 void trd_qaRec()
 {
   gSystem->Load("libANALYSIS.so");
index 9aff6bef68d4599ce60d8dc0d36b8dd5a1e8d580..b9b511093238ac06d80ba3b27874977ec8d8aa97 100644 (file)
 // Alex Bercuci (A.Bercuci@gsi.de)
 // Minjug Kweon (minjung@physi.uni-heidelberg.de)
 //
+
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TEveManager.h>
+
+#include <EVE/EveDet/AliEveTRDLoader.h>
+#include <EVE/EveDet/AliEveTRDLoaderImp.h>
+#endif
+
+
 AliEveTRDLoader* trd_rawloader(Char_t *file)
 {
   Int_t fSuperModule = 0; // -1 for all
index c7d850bff3dcdd81f0751443ead2faf34d2b03bc..eee4cd7d62311884d1f6600591729422ef8089aa 100644 (file)
@@ -1,19 +1,19 @@
-#ifdef __CINT__
-class TEveLine;
-#else
+
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TClonesArray.h>
+#include <TEveLine.h>
 #include <TEveManager.h>
-#include "TEveLine.h"
-#include "TClonesArray.h"
-#include <EveBase/AliEveEventManager.h>
+#include <TEveElement.h>
 
-#include "AliRunLoader.h"
-#include "AliLoader.h"
-#include "AliDataLoader.h"
-#include "AliTreeLoader.h"
-#include "TRD/AliTRDarrayADC.h"
-#include "EveDet/AliEveTRDData.h"
-#include "TRD/AliTRDtrackletWord.h"
-#include "TRD/AliTRDtrackletMCM.h"
+#include <STEER/STEER/AliRunLoader.h>
+#include <STEER/STEER/AliLoader.h>
+#include <STEER/STEER/AliDataLoader.h>
+#include <STEER/STEER/AliTreeLoader.h>
+#include <TRD/AliTRDarrayADC.h>
+#include <TRD/AliTRDtrackletWord.h>
+#include <TRD/AliTRDtrackletMCM.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveDet/AliEveTRDData.h>
 #endif
 
 TEveElementList *trd_tracklets()
index 713b798335f55addb7c4fa3a709a7b65c5778741..62e6ad4f086e12771e9f5ef78f62330ea13f48f2 100644 (file)
@@ -1,14 +1,14 @@
-#ifndef __CINT__
+#if !defined(__CINT__) || defined(__MAKECINT__)
 #include <TGLViewer.h>
 #include <TEveManager.h>
-#include <EveBase/AliEveEventManager.h>
-#include "TRD/AliTRDarrayADC.h"
-#include <EveDet/AliEveTRDTrackList.h>
 
-#include "AliESDEvent.h"
-#include "AliESDfriend.h"
-#include "TRD/AliTRDReconstructor.h"
-#include "TRD/AliTRDtrackV1.h"
+#include <STEER/ESD/AliESDEvent.h>
+#include <STEER/ESD/AliESDfriend.h>
+#include <TRD/AliTRDarrayADC.h>
+#include <TRD/AliTRDReconstructor.h>
+#include <TRD/AliTRDtrackV1.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveDet/AliEveTRDTrackList.h>
 #endif
 
 void trd_tracks(TEveElement *cont = 0)
@@ -33,7 +33,7 @@ void trd_tracks(TEveElement *cont = 0)
   for (Int_t n=0; n<esd->GetNumberOfTracks(); n++){
     AliESDtrack* esdTrack(esd->GetTrack(n));
     if(!esdTrack) continue;
-    AliESDfriendTrack *friendTrack(esdTrack->GetFriendTrack());
+    AliESDfriendTrack *friendTrack = new AliESDfriendTrack(*(esdTrack->GetFriendTrack()));
     if(!friendTrack) continue;
     //Info("trd_tracks", Form("Track[%3d] esd[%p] friend[%p]", n, (void*)esdTrack, (void*)friendTrack));
 
index 889777d039c2620dff8ff3d6588a483523a29976..468dcaa02fe6601b88ddd508bdc96170ff9eea9e 100644 (file)
@@ -8,25 +8,20 @@
  **************************************************************************/
 
 #if !defined(__CINT__) || defined(__MAKECINT__)
-
 #include <TGLViewer.h>
 #include <TGLCameraOverlay.h>
-
 #include <TEveManager.h>
 #include <TEveBrowser.h>
 #include <TEveViewer.h>
 #include <TEveScene.h>
 #include <TEvePointSet.h>
 
-#include <EveBase/AliEveEventManager.h>
-
-#include <AliESDEvent.h>
-#include <AliESDVertex.h>
-
-#include <AliRunLoader.h>
-#include <AliCluster.h>
+#include <STEER/STEER/AliCluster.h>
+#include <STEER/ESD/AliESDEvent.h>
+#include <STEER/ESD/AliESDVertex.h>
+#include <STEER/STEER/AliRunLoader.h>
 #include <TPC/AliTPCClustersRow.h>
-
+#include <EVE/EveBase/AliEveEventManager.h>
 #endif
 
 TEveViewer *gVPTPCView   = 0;
index 2ff7d236f85055c252d3104b1c56ec2b6bd4c028..441c57feaa29b47efefc0f04705f7bb32277fbd5 100644 (file)
@@ -7,6 +7,25 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TClonesArray.h>
+#include <TGeoManager.h>
+#include <TMath.h>
+#include <TStyle.h>
+#include <TTree.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEvePointSet.h>
+#include <TEveQuadSet.h>
+#include <TEveTrans.h>
+
+#include <STEER/STEER/AliRunLoader.h>
+#include <VZERO/AliVZEROdigit.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
+
+
 //   fV0CHeight1  =  2.5; // height of cell 1
 //   fV0CHeight2  =  4.4; // height of cell 2
 //   fV0CHeight3  =  7.4; // height of cell 3
index 15e828061b4e62bf236f3306e2839cc94b5639ff..7ed3b4df9c1b2df9f39a9308777751fd6a0e0187 100644 (file)
@@ -1,3 +1,8 @@
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <STEER/ESD/AliESDEvent.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
+
 void vzero_dump()
 {
   AliESDEvent* esd = AliEveEventManager::AssertESD();
index aaa0f1a6ac86c81a06d0aba21a41dabcc5ffa1c2..227dba6963a69752767ea23a09e1320f1a0ca33a 100644 (file)
@@ -6,6 +6,16 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TString.h>
+#include <TTree.h>
+#include <TEvePointSet.h>
+#include <TEveManager.h>
+#include <TEveTreeTools.h>
+
+#include <STEER/STEER/AliRunLoader.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#endif
 
 TEvePointSet*
 vzero_hits(const char *varexp    = "fX:fY:fZ",
index d7814af0f871f06fed4e19311a92a18f7dd7db87..95a5d9ce58b07feeec9c217e279f00a325ea2720 100644 (file)
@@ -7,9 +7,17 @@
 // Macro to visualise rootified raw-data from VZERO.
 //
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TStyle.h>
+#include <TEveManager.h>
+
+#include <RAW/AliRawReader.h>
+#include <EVE/EveBase/AliEveEventManager.h>
+#include <EVE/EveDet/AliEveVZEROModule.h>
+#else
 class AliRawReader;
-
 class AliEveVZEROModule;
+#endif
 
 void vzero_raw()
 {