LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
EVD_module.cc
Go to the documentation of this file.
1 
6 // Framework includes
9 
10 //LArSoft includes
17 
18 // Framework includes
19 namespace art {
20  class Event;
21 }
22 namespace fhicl {
23  class ParameterSet;
24 }
25 
26 #if defined __clang__
27 #pragma clang diagnostic push
28 #pragma clang diagnostic ignored "-Wunused-private-field"
29 #endif
30 
32 namespace evd {
33 
34  class Canvas;
35 
37  class EVD : public art::EDAnalyzer {
38  public:
39  explicit EVD(fhicl::ParameterSet const& pset);
40  virtual ~EVD();
41 
42  void analyze(art::Event const& evt);
43  void beginJob();
44 
45  private:
47  };
48 }
49 
50 // Builder for the TWQProjectionView canvas
52 {
53  return new evd::TWQProjectionView(mf);
54 }
55 
56 // Builder for the TWQMultiTPCProjectionView canvas
58 {
59  return new evd::TWQMultiTPCProjectionView(mf);
60 }
61 
62 // Builder for the Display3D view
63 static evdb::Canvas* mk_display3d_canvas(TGMainFrame* mf)
64 {
65  return new evd::Display3DView(mf);
66 }
67 
68 // Builder for the Ortho view
69 static evdb::Canvas* mk_ortho3d_canvas(TGMainFrame* mf)
70 {
71  return new evd::Ortho3DView(mf);
72 }
73 
74 // Builder for the Calor view
75 static evdb::Canvas* mk_calor_canvas(TGMainFrame* mf)
76 {
77  return new evd::CalorView(mf);
78 }
79 
80 // // Builder for the MCTruth view
81 // static evdb::ObjListCanvas* mk_mctrue_canvas(TGMainFrame* mf)
82 // {
83 // return new evd::MCTrueView(mf);
84 // }
85 
86 namespace evd {
87 
88  //----------------------------------------------------
89  EVD::EVD(fhicl::ParameterSet const& pset) : EDAnalyzer(pset), fWindowsDrawn(false) {}
90 
91  //----------------------------------------------------
92  EVD::~EVD() {}
93 
94  //----------------------------------------------------
96  {
97  // Register the list of windows used by the event display
98  evdb::DisplayWindow::Register("Time vs Wire, Charge View",
99  "Time vs Wire, Charge View",
100  700,
101  700,
103 
104  evdb::DisplayWindow::Register("Time vs Wire, Charge View, Multi-TPC",
105  "Time vs Wire, Charge View, Multi-TPC",
106  700,
107  700,
109 
110  evdb::DisplayWindow::Register("Display3D", "Display3D", 700, 700, mk_display3d_canvas);
111 
112  evdb::DisplayWindow::Register("Ortho3D", "Ortho3D", 700, 700, mk_ortho3d_canvas);
113 
114  evdb::DisplayWindow::Register("Calorimetry", "Calorimetry", 700, 700, mk_calor_canvas);
115 
116  // evdb::ListWindow::Register("MC Particle List",
117  // "MC Particle List",
118  // 400,
119  // 800,
120  // mk_mctrue_canvas);
121 
122  // Open up the main display window and run
124  }
125 
126  //----------------------------------------------------
127  void EVD::analyze(const art::Event& /*evt*/) {}
128 
129 } //namespace
130 
131 namespace evd {
132 
134 
135 } // namespace evd
136 #if defined __clang__
137 #pragma clang diagnostic pop
138 #endif
static evdb::Canvas * mk_calor_canvas(TGMainFrame *mf)
Definition: EVD_module.cc:75
void beginJob()
Definition: EVD_module.cc:95
static evdb::Canvas * mk_display3d_canvas(TGMainFrame *mf)
Definition: EVD_module.cc:63
static evdb::Canvas * mk_twqmtpcprojectionview_canvas(TGMainFrame *mf)
Definition: EVD_module.cc:57
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:69
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:65
void beginJob()
Definition: Breakpoints.cc:14
bool fWindowsDrawn
flag for whether windows are already drawn
Definition: EVD_module.cc:46
parameter set interface
static void Register(const char *name, const char *description, unsigned int h, unsigned int w, CanvasCreator_t creator)
a class for transporting photons in a roughly realistic way
Definition: EVD_module.cc:37
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:127
static evdb::Canvas * mk_twqprojectionview_canvas(TGMainFrame *mf)
Definition: EVD_module.cc:51
Definition: MVAAlg.h:12
A window containing a display of the detector or one of its components.
TCEvent evt
Definition: DataStructs.cxx:8
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:92