From d5180d24d7e18192bd5e16d19cc53df960b6781c Mon Sep 17 00:00:00 2001 From: slindal Date: Thu, 4 Nov 2010 13:50:48 +0000 Subject: [PATCH] Added muon arms --- EVE/EveHLT/AliEveHLTEventManager.h | 3 +++ EVE/EveHLT/AliEveHLTEventManagerHomer.cxx | 20 +++++++++++--------- EVE/hlt-macros/od.C | 7 ++++--- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/EVE/EveHLT/AliEveHLTEventManager.h b/EVE/EveHLT/AliEveHLTEventManager.h index 10fb8a3b47a..555b07216f8 100644 --- a/EVE/EveHLT/AliEveHLTEventManager.h +++ b/EVE/EveHLT/AliEveHLTEventManager.h @@ -60,6 +60,9 @@ public: void StartLoop(); void StopLoop(); + //* Show muon arm*// + void SetShowMuon(Bool_t showmuon) { fShowMuon = showmuon; } + /** Print the screens to a file **/ void PrintScreens(); diff --git a/EVE/EveHLT/AliEveHLTEventManagerHomer.cxx b/EVE/EveHLT/AliEveHLTEventManagerHomer.cxx index ec485a959a2..521b8030674 100644 --- a/EVE/EveHLT/AliEveHLTEventManagerHomer.cxx +++ b/EVE/EveHLT/AliEveHLTEventManagerHomer.cxx @@ -51,18 +51,20 @@ void AliEveHLTEventManagerHomer::NextEvent() { if(fEvent) { cout << "Got the event " <(fEventBuffer->GetAList()); + // if(async) { + // ProcessEvent(async); + // } else { + // cout << "No async bloc"<(fEventBuffer->GetAList()); - if(async) { - ProcessEvent(async); - } else { - cout << "No async bloc"<SetBusy(kFALSE); +fEventBuffer->SetBusy(kFALSE); } diff --git a/EVE/hlt-macros/od.C b/EVE/hlt-macros/od.C index b08ca45a23f..fc619777a10 100644 --- a/EVE/hlt-macros/od.C +++ b/EVE/hlt-macros/od.C @@ -102,7 +102,7 @@ void od ( Bool_t showBarrel = kTRUE, Bool_t showMuon = kFALSE ) { // -- Loading Geometry // --------------------- - Int_t run = 67179; + Int_t run = 0; AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB"); AliCDBManager::Instance()->SetRun(run); AliGeomManager::LoadGeometry(); @@ -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 // the following setting creates the field close to real field with currect polarity if(showMuon) - TGeoGlobalMagField::Instance()->SetField(new AliMagF("Maps","Maps", 1., 1, AliMagF::k5kG)); + TGeoGlobalMagField::Instance()->SetField(new AliMagF("Maps","Maps", -1., -1, AliMagF::k5kG)); // Get the pointer to gGeoManager before it's broken (bug in alieve) fGeoManager = gGeoManager; @@ -139,6 +139,7 @@ void od ( Bool_t showBarrel = kTRUE, Bool_t showMuon = kFALSE ) { cout << "Creating the Event Manager"<SetShowMuon(showMuon); gEventManager->SetEveManager(gEve); gEventManager->SetGeoManager(gGeoManager); gEventManager->SetRPhiManager(gRPhiMgr); @@ -243,7 +244,7 @@ Int_t initializeEveViewer( Bool_t showBarrel, Bool_t showMuon, TGeoManager * man gEve->Redraw3D(); if (gShowMUON) - gGeomGentleMUON = geom->geom_gentle_muon(kFALSE); + gGeomGentleMUON = geom_gentle_muon(kFALSE); // -- Scenes // ----------- -- 2.31.1