LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
EVD_module.cc
Go to the documentation of this file.
1 
6 // Framework includes
8 
9 #ifndef EVD_EVD_H
10 #define EVD_EVD_H
11 
12 // Framework Includes
14 
15 #include <string>
16 #include "TH1D.h"
17 
18 extern "C" {
19 #include <sys/types.h>
20 #include <sys/stat.h>
21 }
22 
23 //LArSoft includes
30 
31 // Framework includes
33 #include "fhiclcpp/ParameterSet.h"
39 
40 #if defined __clang__
41  #pragma clang diagnostic push
42  #pragma clang diagnostic ignored "-Wunused-private-field"
43 #endif
44 
46 namespace evd{
47 
49  class EVD : public art::EDAnalyzer
50  {
51  public:
52  explicit EVD(fhicl::ParameterSet const &pset);
53  virtual ~EVD();
54 
55  void analyze(art::Event const& evt);
56  void beginJob();
57 
58  private:
59 
61 
62  };
63 }
64 
65 // Builder for the TWQProjectionView canvas
67 {
68  return new evd::TWQProjectionView(mf);
69 }
70 
71 // Builder for the TWQMultiTPCProjectionView canvas
73 {
74  return new evd::TWQMultiTPCProjectionView(mf);
75 }
76 
77 // Builder for the Display3D view
78 static evdb::Canvas* mk_display3d_canvas(TGMainFrame* mf)
79 {
80  return new evd::Display3DView(mf);
81 }
82 
83 // Builder for the Ortho view
84 static evdb::Canvas* mk_ortho3d_canvas(TGMainFrame* mf)
85 {
86  return new evd::Ortho3DView(mf);
87 }
88 
89 // Builder for the Calor view
90 static evdb::Canvas* mk_calor_canvas(TGMainFrame* mf)
91 {
92  return new evd::CalorView(mf);
93 }
94 
95 // // Builder for the MCTruth view
96 // static evdb::ObjListCanvas* mk_mctrue_canvas(TGMainFrame* mf)
97 // {
98 // return new evd::MCTrueView(mf);
99 // }
100 
101 
102 namespace evd{
103 
104  //----------------------------------------------------
106  : EDAnalyzer(pset)
107  , fWindowsDrawn(false)
108  {
109 
110  }
111 
112  //----------------------------------------------------
114  {
115  }
116 
117  //----------------------------------------------------
119  {
120  // Register the list of windows used by the event display
121  evdb::DisplayWindow::Register("Time vs Wire, Charge View",
122  "Time vs Wire, Charge View",
123  700,
124  700,
126 
127  evdb::DisplayWindow::Register("Time vs Wire, Charge View, Multi-TPC",
128  "Time vs Wire, Charge View, Multi-TPC",
129  700,
130  700,
132 
133  evdb::DisplayWindow::Register("Display3D",
134  "Display3D",
135  700,
136  700,
138 
140  "Ortho3D",
141  700,
142  700,
144 
145  evdb::DisplayWindow::Register("Calorimetry",
146  "Calorimetry",
147  700,
148  700,
150 
151  // evdb::ListWindow::Register("MC Particle List",
152  // "MC Particle List",
153  // 400,
154  // 800,
155  // mk_mctrue_canvas);
156 
157  // Open up the main display window and run
159  }
160 
161  //----------------------------------------------------
162  void EVD::analyze(const art::Event& /*evt*/)
163  {
164  }
165 
166 }//namespace
167 
168 namespace evd {
169 
171 
172 } // namespace evd
173 #if defined __clang__
174  #pragma clang diagnostic pop
175 #endif
176 
177 #endif // EVD
178 
static evdb::Canvas * mk_calor_canvas(TGMainFrame *mf)
Definition: EVD_module.cc:90
void beginJob()
Definition: EVD_module.cc:118
static evdb::Canvas * mk_display3d_canvas(TGMainFrame *mf)
Definition: EVD_module.cc:78
static evdb::Canvas * mk_twqmtpcprojectionview_canvas(TGMainFrame *mf)
Definition: EVD_module.cc:72
A view showing a 3D rendering of the detector.
static int OpenWindow(int type=0)
static evdb::Canvas * mk_ortho3d_canvas(TGMainFrame *mf)
Definition: EVD_module.cc:84
View of event shoing orthographic view of 3D objects.
Definition: Ortho3DView.h:21
View of event shoing the XZ and YZ readout planes.
Definition: Display3DView.h:16
LArSoft includes.
#define DEFINE_ART_MODULE(klass)
Definition: ModuleMacros.h:42
bool fWindowsDrawn
flag for whether windows are already drawn
Definition: EVD_module.cc:60
EVD(fhicl::ParameterSet const &pset)
Definition: EVD_module.cc:105
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
a class for transporting photons in a roughly realistic way
Definition: EVD_module.cc:49
A view showing calorimetric particle ID information.
A view showing an orthographic projection of 3D objects.
void analyze(art::Event const &evt)
Definition: EVD_module.cc:162
static evdb::Canvas * mk_twqprojectionview_canvas(TGMainFrame *mf)
Definition: EVD_module.cc:66
A window containing a display of the detector or one of its components.
View showing calorimetric particle ID information.
Definition: CalorView.h:20
A view showing the time vs wire, charge and charge vs time information for an event.
virtual ~EVD()
Definition: EVD_module.cc:113