]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/hlt-macros/od.C
Added muon arms
[u/mrichter/AliRoot.git] / EVE / hlt-macros / od.C
index a5d0639568be48989ddee45163bc1bda0b6e4bac..fc619777a101b291a6a60f7dbaf474d5fe94e40a 100644 (file)
@@ -102,7 +102,7 @@ void od ( Bool_t showBarrel = kTRUE, Bool_t showMuon = kFALSE ) {
 \r
   // -- Loading Geometry\r
   // ---------------------\r
-  Int_t run = 67179;\r
+  Int_t run = 0;\r
   AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB");\r
   AliCDBManager::Instance()->SetRun(run);\r
   AliGeomManager::LoadGeometry();\r
@@ -111,7 +111,7 @@ void od ( Bool_t showBarrel = kTRUE, Bool_t showMuon = kFALSE ) {
   // However for the current setting of +ve L3 and +ve Dipole magnetic field\r
   // the following setting creates the field close to real field with currect polarity\r
   if(showMuon)\r
-    TGeoGlobalMagField::Instance()->SetField(new AliMagF("Maps","Maps", 1., 1, AliMagF::k5kG));\r
+    TGeoGlobalMagField::Instance()->SetField(new AliMagF("Maps","Maps", -1., -1, AliMagF::k5kG));\r
 \r
   // Get the pointer to gGeoManager before it's broken (bug in alieve)\r
   fGeoManager = gGeoManager;\r
@@ -124,7 +124,7 @@ void od ( Bool_t showBarrel = kTRUE, Bool_t showMuon = kFALSE ) {
   // -- Initialize Eve\r
   // -------------------\r
   cout << "Initializing the EVE viewer"<<endl;\r
-  initializeEveViewer( showBarrel, showMuon );\r
+  initializeEveViewer( showBarrel, showMuon, fGeoManager );\r
 \r
   // -- Reset gGeoManager to the original pointer\r
   // ----------------------------------------------\r
@@ -139,6 +139,7 @@ void od ( Bool_t showBarrel = kTRUE, Bool_t showMuon = kFALSE ) {
 \r
   cout << "Creating the Event Manager"<<endl;\r
   gEventManager = new AliEveHLTEventManagerHomer();\r
+  gEventManager->SetShowMuon(showMuon);\r
   gEventManager->SetEveManager(gEve);\r
   gEventManager->SetGeoManager(gGeoManager);\r
   gEventManager->SetRPhiManager(gRPhiMgr);\r
@@ -191,7 +192,7 @@ void od ( Bool_t showBarrel = kTRUE, Bool_t showMuon = kFALSE ) {
 }\r
 \r
 // -------------------------------------------------------------------------\r
-Int_t initializeEveViewer( Bool_t showBarrel, Bool_t showMuon ) {\r
+Int_t initializeEveViewer( Bool_t showBarrel, Bool_t showMuon, TGeoManager * manager ) {\r
   \r
   //=============================================================================\r
   // Visualization database\r
@@ -228,6 +229,17 @@ Int_t initializeEveViewer( Bool_t showBarrel, Bool_t showMuon ) {
   gEMCALNode = gGeoManager->GetTopVolume()->FindNode("XEN1_1");\r
 \r
   TEveGeoTopNode* emcal_re = new TEveGeoTopNode(gGeoManager, gEMCALNode);\r
+  emcal_re->SetVisLevel(1);\r
+  //  emcal_re->FirstChild()->Dump();\r
+\r
+  // for(Int_t i = 4; i < 11; i++) {\r
+  //   emcal_re->FindChild(Form("SMOD_%d", i))->SetRnrState(kFALSE);\r
+  // }\r
+  // emcal_re->FindChild("SM10_1")->SetRnrState(kFALSE);\r
+  // emcal_re->FindChild("SM10_2")->SetRnrState(kFALSE);\r
+\r
+\r
+\r
   gEve->AddGlobalElement(emcal_re);\r
   gEve->Redraw3D();\r
 \r