12 #ifndef FairEventManager_H
13 #define FairEventManager_H
19 #include <TEveEventManager.h>
20 #include <TEveProjectionAxes.h>
21 #include <TGLViewer.h>
30 class TEveProjectionManager;
43 virtual void SetXMLConfig(TString xml_config) { fXMLConfig = xml_config; };
50 virtual Int_t
Color(Int_t pdg);
52 virtual void Init(Int_t visopt = 1, Int_t vislvl = 3, Int_t maxvisnds = 10000);
62 virtual void SetRPhiPlane(Double_t a, Double_t b, Double_t c, Double_t d, TGLViewer::ECameraType camtype);
71 virtual void SetRhoZPlane(Double_t a, Double_t b, Double_t c, Double_t d, TGLViewer::ECameraType camtype);
153 Double_t fWorldSizeX, fWorldSizeY, fWorldSizeZ;
154 Double_t fTimeMin, fTimeMax;
155 Bool_t fUseTimeOfEvent;
157 Bool_t fAnimatedTracks;
158 Bool_t fClearHandler;
160 TGListTreeItem *fEvent;
161 Double_t fRPhiPlane[4];
162 Double_t fRhoZPlane[4];
163 TGLViewer::ECameraType fRphiCam;
164 TGLViewer::ECameraType fRhoCam;
165 TEveViewer *fRPhiView;
166 TEveViewer *fRhoZView;
167 TEveViewer *fMultiView;
168 TEveViewer *fMultiRPhiView;
169 TEveViewer *fMultiRhoZView;
170 TEveScene *fRPhiScene;
171 TEveScene *fRhoZScene;
172 TEveProjectionManager *fRPhiProjManager;
173 TEveProjectionManager *fRhoZProjManager;
174 TEveProjectionAxes *fAxesPhi;
175 TEveProjectionAxes *fAxesRho;
176 TEveText *fEventTimeText;
177 TEveText *fEventNumberText;
179 std::map<int, int> fPDGToColor;
180 void SetTransparencyForLayer(TGeoNode *node, Int_t depth, Char_t transparency);
184 void SetViewers(TEveViewer *RPhi, TEveViewer *RhoZ);
Bool_t GetClearHandler() const
virtual void SetMinEnergy(Float_t min)
virtual void SetTransparency(Bool_t use_xml, Int_t trans)
virtual void SetEvtMinEnergy(Float_t min)
void LoadXMLDetector(TGeoNode *node, FairXMLNode *xml, Int_t depth=0)
TEveViewer * GetMultiRPhiView() const
void SetUseTimeOfEvent(Bool_t val)
virtual void SetXMLConfig(TString xml_config)
virtual void SetEvtTime(Float_t time)
TEveViewer * GetRPhiView() const
virtual void SetEvtTimeText(Double_t time)
virtual void SetPriOnly(Bool_t Pri)
Float_t GetEvtTime()
current time in ns to display in the event display. Either set value or event time taken from FairRoo...
ClassDef(FairEventManager, 1)
virtual Int_t GetCurrentEvent()
Bool_t GetDrawAnimatedTracks() const
void MakeScreenshot(FairEveAnimationControl::eScreenshotType screen, TString def_path="")
virtual Float_t GetEvtMaxEnergy()
TEveProjectionAxes * GetRhoZAxes() const
TEveViewer * GetMultiRhoZView() const
virtual Int_t GetCurrentPDG()
TEveScene * GetRPhiScene() const
virtual Bool_t IsPriOnly()
virtual void SetMaxEnergy(Float_t max)
virtual void SetRPhiPlane(Double_t a, Double_t b, Double_t c, Double_t d, TGLViewer::ECameraType camtype)
virtual Float_t GetMaxEnergy()
virtual void LoadXMLSettings()
virtual Float_t GetEvtMinEnergy()
TEveProjectionManager * GetRhoZProjManager() const
virtual Int_t Color(Int_t pdg)
TEveProjectionAxes * GetRPhiAxes() const
virtual void SelectPDG(Int_t PDG)
virtual Float_t GetMinEnergy()
void SetClearHandler(Bool_t val)
void SetTimeLimits(Double_t min, Double_t max)
virtual void Init(Int_t visopt=1, Int_t vislvl=3, Int_t maxvisnds=10000)
void GetTimeLimits(Double_t &min, Double_t &max)
Int_t StringToColor(TString color) const
virtual void SwitchBackground(Bool_t light)
TVector3 GetWorldSize() const
virtual void DisplaySettings()
virtual void AddParticlesToPdgDataBase(Int_t pdg=0)
static FairEventManager * Instance()
virtual void SetEvtMaxEnergy(Float_t max)
virtual void GotoEvent(Int_t event)
virtual void AddTask(FairTask *t)
void SetAnimatedTracks(Bool_t val)
virtual void SetEvtNumberText(Int_t evtNumber)
virtual void SetRhoZPlane(Double_t a, Double_t b, Double_t c, Double_t d, TGLViewer::ECameraType camtype)
TEveViewer * GetRhoZView() const
TEveProjectionManager * GetRPhiProjManager() const
TEveScene * GetRhoZScene() const
Bool_t GetUseTimeOfEvent() const
void AddTask(FairTask *t)
TEveViewer * GetMultiView() const
virtual ~FairEventManager()