REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
Public Member Functions | Private Member Functions | Private Attributes
TRestGeant4EventViewer Class Reference

Detailed Description




         RESTSoft : Software for Rare Event Searches with TPCs

         TRestGeant4EventViewer.h inherited from TRestEveEventViewer

         nov 2015:   First concept
             Viewer class for a TRestGeant4Event
             Javier Galan/JuanAn Garcia

Definition at line 22 of file TRestGeant4EventViewer.h.

#include <TRestGeant4EventViewer.h>

Inheritance diagram for TRestGeant4EventViewer:
TRestEveEventViewer TRestEventViewer

Public Member Functions

void AddEvent (TRestEvent *event)
 
void AddMarker (Int_t trkID, TVector3 at, TString name)
 
void AddParentTrack (Int_t trkID, TVector3 from, TString name)
 
void AddText (TString text, TVector3 at)
 
void AddTrack (Int_t trkID, Int_t parentID, TVector3 from, TString name)
 
void DeleteCurrentEvent ()
 
void Initialize ()
 
void NextTrackVertex (Int_t trkID, TVector3 to)
 
- Public Member Functions inherited from TRestEveEventViewer
virtual void AddEvent (TRestEvent *ev)=0
 
void AddSphericalHit (double x, double y, double z, double radius, double en)
 
virtual void DeleteCurrentEvent ()
 
void DeleteGeometry ()
 
void DrawTab ()
 
virtual void Embed (TBrowser *b)
 
virtual void Initialize ()
 
void MultiView ()
 
virtual void Plot (const char *option)
 
void SetGeometry (TGeoManager *geo)
 
void SetMaxRadius (Double_t rmax)
 
void SetMinRadius (Double_t rmin)
 
void Update ()
 
- Public Member Functions inherited from TRestEventViewer
virtual void AddEvent (TRestEvent *ev)
 
virtual void DeleteCurrentEvent ()
 
virtual void Embed (TBrowser *b)
 
TRestEventGetEvent ()
 
TGeoManager * GetGeometry ()
 
Double_t GetGeomScale () const
 
virtual void Plot (const char *option)
 
void SetEvent (TRestEvent *event)
 
virtual void SetGeometry (TGeoManager *geo)
 
void SetGeomScale (Double_t scale)
 

Private Member Functions

TEveStraightLineSet * GetTrackEveDrawable (const TRestGeant4Track &track)
 

Private Attributes

TRestGeant4EventfG4Event = nullptr
 
const TRestGeant4MetadatafG4Metadata = nullptr
 
std::vector< TEveLine * > fHitConnectors
 

Additional Inherited Members

virtual void Initialize ()
 
- Protected Attributes inherited from TRestEveEventViewer
TEvePointSet * fEnergyDeposits
 
Double_t fMaxRadius = 3.0
 
Double_t fMinRadius = 0.2
 
TEveManager * gEve
 
TEveWindowPack * pack
 
char pointName [256]
 
TEveProjectionManager * rhoz
 
TEveProjectionAxes * rhozAxes
 
TEveScene * rhozScene
 
TEveViewer * rhozViewer
 
TEveProjectionManager * rphi
 
TEveProjectionAxes * rphiAxes
 
TEveScene * rphiScene
 
TEveViewer * rphiViewer
 
TEveWindowSlot * slot
 
TEveViewer * viewer3D
 
- Protected Attributes inherited from TRestEventViewer
TCanvas * fCanvas = nullptr
 
TRestEventfEvent = nullptr
 
TGeoManager * fGeometry = nullptr
 
Double_t fGeomScale = 0.1
 
TPad * fPad = nullptr
 

Constructor & Destructor Documentation

◆ TRestGeant4EventViewer()

TRestGeant4EventViewer::TRestGeant4EventViewer ( )

Definition at line 23 of file TRestGeant4EventViewer.cxx.

◆ ~TRestGeant4EventViewer()

TRestGeant4EventViewer::~TRestGeant4EventViewer ( )

Definition at line 25 of file TRestGeant4EventViewer.cxx.

Member Function Documentation

◆ AddEvent()

void TRestGeant4EventViewer::AddEvent ( TRestEvent event)
virtual

Implements TRestEveEventViewer.

Definition at line 155 of file TRestGeant4EventViewer.cxx.

◆ AddMarker()

void TRestGeant4EventViewer::AddMarker ( Int_t  trkID,
TVector3  at,
TString  name 
)

Definition at line 245 of file TRestGeant4EventViewer.cxx.

◆ AddParentTrack()

void TRestGeant4EventViewer::AddParentTrack ( Int_t  trkID,
TVector3  from,
TString  name 
)

Definition at line 284 of file TRestGeant4EventViewer.cxx.

◆ AddText()

void TRestGeant4EventViewer::AddText ( TString  text,
TVector3  at 
)

Definition at line 235 of file TRestGeant4EventViewer.cxx.

◆ AddTrack()

void TRestGeant4EventViewer::AddTrack ( Int_t  trkID,
Int_t  parentID,
TVector3  from,
TString  name 
)

Definition at line 259 of file TRestGeant4EventViewer.cxx.

◆ DeleteCurrentEvent()

void TRestGeant4EventViewer::DeleteCurrentEvent ( )
virtual

Reimplemented from TRestEveEventViewer.

Definition at line 37 of file TRestGeant4EventViewer.cxx.

◆ GetTrackEveDrawable()

TEveStraightLineSet * TRestGeant4EventViewer::GetTrackEveDrawable ( const TRestGeant4Track track)
private

Definition at line 95 of file TRestGeant4EventViewer.cxx.

◆ Initialize()

void TRestGeant4EventViewer::Initialize ( )
virtual

Reimplemented from TRestEveEventViewer.

Definition at line 29 of file TRestGeant4EventViewer.cxx.

◆ NextTrackVertex()

void TRestGeant4EventViewer::NextTrackVertex ( Int_t  trkID,
TVector3  to 
)

Definition at line 255 of file TRestGeant4EventViewer.cxx.

Field Documentation

◆ fG4Event

TRestGeant4Event* TRestGeant4EventViewer::fG4Event = nullptr
private

Definition at line 26 of file TRestGeant4EventViewer.h.

◆ fG4Metadata

const TRestGeant4Metadata* TRestGeant4EventViewer::fG4Metadata = nullptr
private

Definition at line 27 of file TRestGeant4EventViewer.h.

◆ fHitConnectors

std::vector<TEveLine*> TRestGeant4EventViewer::fHitConnectors
private

Definition at line 24 of file TRestGeant4EventViewer.h.


The documentation for this class was generated from the following files: