//#ifndef __CINT__ #include "TROOT.h" #include "TString.h" #include "TSystem.h" #include "TGWindow.h" #include "TEveManager.h" #include "hedhelpers.h" #include "hedfield.h" #include "loadHadesGeom.C" #define IS_REAL_DATA // comment this line for simulation #ifdef IS_REAL_DATA #include "createHadesReal.C" #else #include "createHades.C" #endif #include "nextEvent.C" #include "make_GUI.C" #include #include #include "hades.h" using namespace std; //--------------------------------------------------------- // HADES EVENT DISPLAY // To start in ROOT session: .x eventDispaly.C+ // // Macros belonging to the display: // -- loadHadesGeom.C // -- createHades.C // -- nextEvent.C // -- make_GUI.C // For documentation see README.txt //--------------------------------------------------------- void eventDisplay() { TEveManager::Create(kTRUE); TGWindow* win = gEve->GetMainWindow(); win->Resize(1200,900); #define doHades #ifdef doHades //---------------------------------------------------------- // CREATE HADES if(!createHades()){ cerr<<"EVENT DISPLAY : COULD NOT CREATE HADES ! ################################"<ReadAscii("/misc/kempter/projects/eventdisplay/fieldpar.txt"); field->SetPolarity(fscale*fpol); //---------------------------------------------------------- // GEOMETRY MANAGER if(!loadHadesGeom("/misc/kempter/projects/eventdisplay/GeomManager_Sep08_rpc.root")){ cerr<<"EVENT DISPLAY : Could NOT CREATE HADES GEOMMANAGER! #####################"<LoadMacro("./nextEvent.C+"); make_GUI(); #ifdef IS_REAL_DATA HEDEvtNavHandler::isRealData = kTRUE; #endif gEve->Redraw3D(); }