REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
TRestGeant4EventViewer.h
1
14
15#ifndef RestCore_TRestGeant4EventViewer
16#define RestCore_TRestGeant4EventViewer
17
18#include "TEveStraightLineSet.h"
19#include "TRestEveEventViewer.h"
20#include "TRestGeant4Event.h"
21
23 private:
24 std::vector<TEveLine*> fHitConnectors;
25
26 TRestGeant4Event* fG4Event = nullptr;
27 const TRestGeant4Metadata* fG4Metadata = nullptr;
28
29 TEveStraightLineSet* GetTrackEveDrawable(const TRestGeant4Track& track);
30
31 public:
32 void Initialize();
33 void DeleteCurrentEvent();
34 void AddEvent(TRestEvent* event);
35
36 void NextTrackVertex(Int_t trkID, TVector3 to);
37 void AddTrack(Int_t trkID, Int_t parentID, TVector3 from, TString name);
38 void AddParentTrack(Int_t trkID, TVector3 from, TString name);
39
40 void AddText(TString text, TVector3 at);
41 void AddMarker(Int_t trkID, TVector3 at, TString name);
42
43 // Constructor
45 // Destructor
47
48 ClassDef(TRestGeant4EventViewer, 2); // class inherited from TRestEventViewer
49};
50#endif
A base class for any REST event.
Definition: TRestEvent.h:38
An event class to store geant4 generated event information.
The main class to store the Geant4 simulation conditions that will be used by restG4.