REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
TRestDetectorReadoutEventViewer.h
1
14
15#ifndef RestCore_TRestDetectorReadoutEventViewer
16#define RestCore_TRestDetectorReadoutEventViewer
17
18#include <TCanvas.h>
19#include <TPad.h>
20#include <TRestEventViewer.h>
21
22#include "TH2Poly.h"
23#include "TRestDetectorReadout.h"
24#include "TRestDetectorSignalEvent.h"
25
27 protected:
28 TCanvas* fCanvasXY;
29 TCanvas* fCanvasXZYZ;
30
31 TRestDetectorReadout* fReadout;
32
33 TRestDetectorSignalEvent* fSignalEvent;
34
35 TH2Poly* fHistoXY;
36 TH2D* fHistoXZ;
37 TH2D* fHistoYZ;
38
39 bool isFirstevent;
40
41 double xmin, xmax, ymin, ymax, zmin, zmax;
42
43 public:
44 void Initialize() override;
45 // Finalize initialization based on arg. TRestDetectorReadout
46 void SetReadout(TRestDetectorReadout* readout);
47
48 void AddEvent(TRestEvent* ev) override;
49 void DrawReadoutPulses();
50 TRestDetectorReadoutChannel* GetChannel(int readoutChannel);
51 TRestDetectorReadoutModule* GetModule(int readoutChannel);
52
53 // Constructor
55 // Destructor
57
58 ClassDefOverride(TRestDetectorReadoutEventViewer, 1); // class inherited from
59 // TRestEventViewer
60};
61#endif
A metadata class to generate/store a readout description.
A base class for any REST event.
Definition: TRestEvent.h:38