TRestEventViewer.h 1.48 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
///______________________________________________________________________________
///______________________________________________________________________________
///______________________________________________________________________________
///             
///
///             RESTSoft : Software for Rare Event Searches with TPCs
///
///             TRestEventViewer.h
///
///             A geometry class to store detector geometry 
///
///             jul 2015:   First concept
///                 J. Galan
14
15
16
///		nov 2015: Generic class for event visualization
///		    JuanAn Garcia
///
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
///_______________________________________________________________________________


#ifndef RestCore_TRestEventViewer
#define RestCore_TRestEventViewer

#include <iostream>
using namespace std;

#include <TObject.h>
#include <TGeoManager.h>
#include <TGLViewer.h>

#include "TRestEvent.h"

32
class TRestEventViewer {
33
34

    protected:
35
36
37
     
    TGeoManager *fGeometry;
    TRestEvent *fEvent;
38
39
40
41
42
43
44
        
    public:


    virtual void Initialize();

    virtual void AddEvent( TRestEvent *ev ) = 0;
45
46
47
48
49
50
51
52
53
            
    virtual void DeleteCurrentEvent(  );
    //Setters
    virtual void SetGeometry( TGeoManager *geo){ fGeometry=geo;}
    //Getters
    TGeoManager *GetGeometry( ){return fGeometry;}
    TRestEvent *GetEvent( ){return fEvent;}

            
54
55
56
57
58
59
60
61
62
    //Construtor
    TRestEventViewer();
    //Destructor
    virtual ~ TRestEventViewer();

    ClassDef(TRestEventViewer, 1);     // REST event superclass
};
#endif