else
{
Info("alieve_init", "AliEn requested - connecting.");
- if (gSystem->Getenv("alien_API_VO") == 0)
+ if (gSystem->Getenv("GSHELL_ROOT") == 0)
{
Error("alieve_init", "AliEn environment not initialized. Aborting.");
gSystem->Exit(1);
class TEveProjectionManager;
class TEveGeoShape;
class TEveUtil;
+class TSystem;
+class TInterpreter;
-Bool_t gShowTrd = kTRUE;
Bool_t gShowMuonRPhi = kFALSE;
Bool_t gShowMuonRhoZ = kTRUE;
void visscan_init(const TString& cdburi = "",
- const TString& path = ".", Bool_t show_extra_geo = kFALSE)
+ const TString& path = ".",
+ Bool_t showMuon = kTRUE,
+ Bool_t showTrd = kFALSE)
{
+
+ if (showMuon)
+ {
+ if (gSystem->Getenv("ALICE_ROOT") != 0)
+ {
+ gInterpreter->AddIncludePath(Form("%s/MUON", gSystem->Getenv("ALICE_ROOT")));
+ gInterpreter->AddIncludePath(Form("%s/MUON/mapping", gSystem->Getenv("ALICE_ROOT")));
+ }
+ }
+ else
+ {
+ gShowMuonRPhi = gShowMuonRhoZ = kFALSE;
+ }
+
if (cdburi.IsNull() && ! AliCDBManager::Instance()->IsDefaultStorageSet())
{
gEnv->SetValue("Root.Stacktrace", "no");
Fatal("visscan_init.C", "OCDB path MUST be specified as the first argument.");
}
- if (!show_extra_geo)
- {
- gShowTrd = gShowMuonRPhi = gShowMuonRhoZ = kFALSE;
- }
-
AliEveEventManager::AddAODfriend("AliAOD.VertexingHF.root");
TEveUtil::LoadMacro("alieve_init.C");
TEveUtil::LoadMacro("geom_gentle.C");
mv->InitGeomGentle(geom_gentle(), geom_gentle_rphi(), geom_gentle_rhoz());
- if (gShowTrd) {
+ if (showTrd) {
TEveUtil::LoadMacro("geom_gentle_trd.C");
mv->InitGeomGentleTrd(geom_gentle_trd());
}
exec->AddMacro(new AliEveMacro(AliEveMacro::kAOD, "ANA Jets", "jetplane.C", "jetplane", "", kFALSE));
exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "DUMP VZERO", "vzero_dump.C", "vzero_dump", "", kFALSE));
+
+ if (showMuon)
+ {
+ exec->AddMacro(new AliEveMacro(AliEveMacro::kRunLoader, "SIM TrackRef MUON", "muon_trackRefs.C+", "muon_trackRefs", "kTRUE", kFALSE));
+ exec->AddMacro(new AliEveMacro(AliEveMacro::kRawReader, "RAW MUON", "muon_raw.C+", "muon_raw", "", kFALSE));
+ exec->AddMacro(new AliEveMacro(AliEveMacro::kRunLoader, "DIG MUON", "muon_digits.C+", "muon_digits", "", kFALSE));
+ exec->AddMacro(new AliEveMacro(AliEveMacro::kRunLoader, "REC Clusters MUON", "muon_clusters.C+", "muon_clusters", "", kTRUE));
+ exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC Tracks MUON", "esd_muon_tracks.C+", "esd_muon_tracks", "kTRUE,kFALSE", kTRUE));
+ }
//==============================================================================
// Additional GUI components
-void visscan_local(const TString& path = ".", Bool_t show_extra_geo = kFALSE)
+void visscan_local(const TString& path = ".", Bool_t showMuon = kTRUE, Bool_t showTrd = kFALSE)
{
- gROOT->ProcessLine(TString::Format(".x visscan_init.C(\"local://$ALICE_ROOT/OCDB\", \"%s\", %d)",
- path.Data(), show_extra_geo));
+ gROOT->ProcessLine(TString::Format(".x visscan_init.C(\"local://$ALICE_ROOT/OCDB\", \"%s\", %d, %d)",
+ path.Data(), showMuon, showTrd));
}
-void visscan_mc(const TString& path = ".", Bool_t show_extra_geo = kFALSE)
+void visscan_mc(const TString& path = ".", Bool_t showMuon = kTRUE, Bool_t showTrd = kFALSE)
{
- gROOT->ProcessLine(TString::Format(".x visscan_init.C(\"mcideal://\", \"%s\", %d)",
- path.Data(), show_extra_geo));
+ gROOT->ProcessLine(TString::Format(".x visscan_init.C(\"mcideal://\", \"%s\", %d, %d)",
+ path.Data(), showMuon, showTrd));
}
-void visscan_mcfull(const TString& path = ".", Bool_t show_extra_geo = kFALSE)
+void visscan_mcfull(const TString& path = ".", Bool_t showMuon = kTRUE, Bool_t showTrd = kFALSE)
{
- gROOT->ProcessLine(TString::Format(".x visscan_init.C(\"mcfull://\", \"%s\", %d)",
- path.Data(), show_extra_geo));
+ gROOT->ProcessLine(TString::Format(".x visscan_init.C(\"mcfull://\", \"%s\", %d, %d)",
+ path.Data(), showMuon, showTrd));
}
-void visscan_mcideal(const TString& path = ".", Bool_t show_extra_geo = kFALSE)
+void visscan_mcideal(const TString& path = ".", Bool_t showMuon = kTRUE, Bool_t showTrd = kFALSE)
{
- gROOT->ProcessLine(TString::Format(".x visscan_init.C(\"mcideal://\", \"%s\", %d)",
- path.Data(), show_extra_geo));
+ gROOT->ProcessLine(TString::Format(".x visscan_init.C(\"mcideal://\", \"%s\", %d, %d)",
+ path.Data(), showMuon, showTrd));
}
-void visscan_mcresidual(const TString& path = ".", Bool_t show_extra_geo = kFALSE)
+void visscan_mcresidual(const TString& path = ".", Bool_t showMuon = kTRUE, Bool_t showTrd = kFALSE)
{
- gROOT->ProcessLine(TString::Format(".x visscan_init.C(\"mcresidual://\", \"%s\", %d)",
- path.Data(), show_extra_geo));
+ gROOT->ProcessLine(TString::Format(".x visscan_init.C(\"mcresidual://\", \"%s\", %d, %d)",
+ path.Data(), showMuon, showTrd));
}
-void visscan_raw(const TString& path = ".", Bool_t show_extra_geo = kFALSE)
+void visscan_raw(const TString& path = ".", Bool_t showMuon = kTRUE, Bool_t showTrd = kFALSE)
{
- gROOT->ProcessLine(TString::Format(".x visscan_init.C(\"raw://\", \"%s\", %d)",
- path.Data(), show_extra_geo));
+ gROOT->ProcessLine(TString::Format(".x visscan_init.C(\"raw://\", \"%s\", %d, %d)",
+ path.Data(), showMuon, showTrd));
}
-void visscan_raw_raw(const TString& path = ".", Bool_t show_extra_geo = kFALSE)
+void visscan_raw_raw(const TString& path = ".", Bool_t showMuon = kTRUE, Bool_t showTrd = kFALSE)
{
AliEveEventManager::SearchRawForCentralReconstruction();
- gROOT->ProcessLine(TString::Format(".x visscan_init.C(\"raw://\", \"%s\", %d)",
- path.Data(), show_extra_geo));
+ gROOT->ProcessLine(TString::Format(".x visscan_init.C(\"raw://\", \"%s\", %d, %d)",
+ path.Data(), showMuon, showTrd));
}