EVD_module.cc
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////
2 /// \brief Event display ART module
3 /// \author brebel@fnal.gov, messier@indiana.edu
4 //////////////////////////////////////////////////////////////////////
5 
6 #ifndef __CINT__
7 
8 extern "C" {
9 #include <sys/types.h>
10 #include <sys/stat.h>
11 }
12 #include <string>
13 
14 #include "TH1D.h"
15 
16 // Framework includes
23 #include "fhiclcpp/ParameterSet.h"
25 
26 // NOvASoft includes
36 #include "EventDisplay/PlotView.h"
37 
38 
39 namespace evd{
40 
41  class EVD : public art::EDAnalyzer
42  {
43  public:
44  explicit EVD(fhicl::ParameterSet const &pset);
45  virtual ~EVD();
46 
47  void analyze(art::Event const& evt);
48  void beginJob();
49  };
50 }
51 #endif // __CINT__
52 
53 ////////////////////////////////////////////////////////////////////////
54 
55 // Builder for the XZYXProjections view
56 static evdb::Canvas* mk_xzyzproj_canvas(TGMainFrame* mf)
57 {
58  return new evd::XZYZProjectionsView(mf);
59 }
60 
61 // Builder for the Hardware view
62 static evdb::Canvas* mk_hardware_canvas(TGMainFrame* mf)
63 {
64  return new evd::HardwareView(mf);
65 }
66 
67 // Builder for the Display3D view
68 static evdb::Canvas* mk_display3d_canvas(TGMainFrame* mf)
69 {
70  return new evd::Display3DView(mf);
71 }
72 
73 // Builder for the MCTruth view
74 //static evdb::ObjListCanvas* mk_mctrue_canvas(TGMainFrame* mf)
75 //{
76 // return new evd::MCTrueView(mf);
77 //}
78 
79 // Builder for the plots view
80 static evdb::Canvas* mk_plot_canvas(TGMainFrame* mf)
81 {
82  return new evd::PlotView(mf);
83 }
84 
85 namespace evd{
86 
87  //----------------------------------------------------
89  : EDAnalyzer(pset)
90  {
91 
92  }
93 
94  //----------------------------------------------------
96  {
97  }
98 
99  //----------------------------------------------------
101  {
102  // Register the list of windows used by the event display
103  evdb::DisplayWindow::Register("XZ/YZ Projections",
104  "XZ/YZ Projections",
105  840,
106  1260,
108  evdb::DisplayWindow::Register("Hardware View",
109  "Hardware View",
110  840,
111  1260,
113  evdb::DisplayWindow::Register("Display3D",
114  "Display3D",
115  840,
116  1260,
118 
119 // evdb::ListWindow::Register("MC Particle List",
120 // "MC Particle List",
121 // 400,
122 // 800,
123 // mk_mctrue_canvas);
124 
125  evdb::DisplayWindow::Register("Plots View",
126  "Plots View",
127  840,
128  1260,
130 
131  // Open up the main display window and run
133 
134  }
135 
136  //----------------------------------------------------
138  {
139  }
140 
141 } // end namespace evd
142 
143 ////////////////////////////////////////////////////////////////////////
144 namespace evd
145 {
147 } // namespace evd
148 ////////////////////////////////////////////////////////////////////////
A view showing hits by hardware address.
A window that gives full list of MC particles, allowing user to turn hits on and off in other views...
View showing collections of plots related to this event.
Definition: PlotView.h:30
A view showing XZ and YZ readout planes.
void beginJob()
Definition: EVD_module.cc:100
static evdb::Canvas * mk_display3d_canvas(TGMainFrame *mf)
Definition: EVD_module.cc:68
static evdb::Canvas * mk_hardware_canvas(TGMainFrame *mf)
Definition: EVD_module.cc:62
static evdb::Canvas * mk_plot_canvas(TGMainFrame *mf)
Definition: EVD_module.cc:80
A view showing collections of plots related to this event.
View of event.
Definition: HardwareView.h:18
DEFINE_ART_MODULE(TestTMapFile)
A view showing a 3D rendering of the detector.
static int OpenWindow(int type=0)
View of event showing the XZ and YZ readout planes.
View of event shoing the XZ and YZ readout planes.
Definition: Display3DView.h:15
nova event display
int evt
EVD(fhicl::ParameterSet const &pset)
Definition: EVD_module.cc:88
static void Register(const char *name, const char *description, unsigned int h, unsigned int w, CanvasCreator_t creator)
EDAnalyzer(Table< Config > const &config)
Definition: EDAnalyzer.h:100
void analyze(art::Event const &evt)
Definition: EVD_module.cc:137
static evdb::Canvas * mk_xzyzproj_canvas(TGMainFrame *mf)
Definition: EVD_module.cc:56
Global drawing options that apply to all displays.
A window containing a display of the detector or one of its components.
virtual ~EVD()
Definition: EVD_module.cc:95