All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SimulationDrawer.h
Go to the documentation of this file.
1 ///
2 /// \file SimulationDrawer.h
3 /// \brief Render the objects from the Simulation package
4 /// \author messier@indiana.edu
5 ///
6 #ifndef EVD_SIMULATIONDRAWER_H
7 #define EVD_SIMULATIONDRAWER_H
8 
9 #include <map>
10 #include <string>
11 #include <vector>
12 
13 namespace art { class Event; }
15 
16 namespace evdb {
17  class View2D;
18  class View3D;
19 }
20 
21 namespace simb {
22  class MCTruth;
23  class MCParticle;
24 }
25 
26 namespace evd {
28  public:
31 
32  public:
33  // Drawing functions
34  void MCTruthShortText(const art::Event& evt, evdb::View2D* view);
35  void MCTruthLongText(const art::Event& evt, evdb::View2D* view);
36  void MCTruthVectors2D(const art::Event& evt, evdb::View2D* view, unsigned int plane);
37  void MCTruth3D(const art::Event& evt, evdb::View3D* view);
38  void MCTruthOrtho(const art::Event& evt,
39  evd::OrthoProj_t proj,
40  double msize,
41  evdb::View2D* view);
42 
43  void HiLite(int trkId, bool hlt = true);
44 
45  double minx;
46  double maxx;
47  double miny;
48  double maxy;
49  double minz;
50  double maxz;
51 
52  private:
53  int GetMCTruth(const art::Event& evt, std::vector<const simb::MCTruth*>& mctruth);
54  int GetParticle(const art::Event& evt, std::vector<const simb::MCParticle*>& plist);
55 
56  private:
57  std::map<int, bool> fHighlite;
58  };
59 }
60 
61 #endif
62 ////////////////////////////////////////////////////////////////////////
std::map< int, bool > fHighlite
void MCTruthLongText(const art::Event &evt, evdb::View2D *view)
Define OrthoProj_t enum for selecting orthographic view.
void HiLite(int trkId, bool hlt=true)
int GetMCTruth(const art::Event &evt, std::vector< const simb::MCTruth * > &mctruth)
OrthoProj_t
Definition: OrthoProj.h:12
void MCTruth3D(const art::Event &evt, evdb::View3D *view)
int GetParticle(const art::Event &evt, std::vector< const simb::MCParticle * > &plist)
void MCTruthShortText(const art::Event &evt, evdb::View2D *view)
void MCTruthOrtho(const art::Event &evt, evd::OrthoProj_t proj, double msize, evdb::View2D *view)
void MCTruthVectors2D(const art::Event &evt, evdb::View2D *view, unsigned int plane)
TCEvent evt
Definition: DataStructs.cxx:8