Edge3DDrawer_tool.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file Edge3DDrawer_tool.cc
3 /// \author T. Usher
4 ////////////////////////////////////////////////////////////////////////
5 
8 #include "fhiclcpp/fwd.h"
10 namespace evdb {
11  class View3D;
12 }
13 
14 namespace evdb_tool {
15 
16  class Edge3DDrawer : public I3DDrawer {
17  public:
18  explicit Edge3DDrawer(const fhicl::ParameterSet&);
19 
20  ~Edge3DDrawer();
21 
22  void Draw(const art::Event&, evdb::View3D*) const override;
23 
24  private:
25  };
26 
27  //----------------------------------------------------------------------
28  // Constructor.
29  Edge3DDrawer::Edge3DDrawer(const fhicl::ParameterSet& pset)
30  {
31  // fNumPoints = pset.get< int>("NumPoints", 1000);
32  // fFloatBaseline = pset.get<bool>("FloatBaseline", false);
33  // For now only draw cryostat=0.
34 
35  return;
36  }
37 
38  Edge3DDrawer::~Edge3DDrawer() {}
39 
40  void
41  Edge3DDrawer::Draw(const art::Event& evt, evdb::View3D* view) const
42  {
43  /*
44  art::ServiceHandle<evd::SimulationDrawingOptions const> drawOpt;
45 
46  // If the option is turned off, there's nothing to do
47  if (!drawOpt->fShowMCTruthTrajectories) return;
48 
49  // geo::GeometryCore const* geom = lar::providerFrom<geo::Geometry>();
50  art::ServiceHandle<geo::Geometry const> geom;
51 
52  // Recover a handle to the collection of MCParticles
53  art::Handle< std::vector<simb::MCParticle>> mcParticleHandle;
54 
55  evt.getByLabel(drawOpt->fG4ModuleLabel, mcParticleHandle);
56 
57  // Define a couple of colors for neutrals and if we gray it out...
58  int neutralColor(12);
59  int grayedColor(15);
60  int neutrinoColor(38);
61 */
62  return;
63  }
64 
66 }
#define DEFINE_ART_CLASS_TOOL(tool)
Definition: ToolMacros.h:42
void Draw(const char *plot, const char *title)
Definition: gXSecComp.cxx:580
TCEvent evt
Definition: DataStructs.cxx:7