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 
14 
15 namespace evdb {
16  class View2D;
17  class View3D;
18 }
19 
20 namespace simb {
21  class MCTruth;
22  class MCParticle;
23 }
24 
25 namespace evd {
27  public:
30 
31  public:
32  // Drawing functions
33  void MCTruthShortText(const art::Event& evt, evdb::View2D* view);
34  void MCTruthLongText(const art::Event& evt, evdb::View2D* view);
35  void MCTruthVectors2D(const art::Event& evt, evdb::View2D* view, unsigned int plane);
36  void MCTruth3D(const art::Event& evt, evdb::View3D* view);
37  void MCTruthOrtho(const art::Event& evt,
38  evd::OrthoProj_t proj,
39  double msize,
40  evdb::View2D* view);
41 
42  void HiLite(int trkId, bool hlt = true);
43 
44  double minx;
45  double maxx;
46  double miny;
47  double maxy;
48  double minz;
49  double maxz;
50 
51  private:
52  int GetMCTruth(const art::Event& evt, std::vector<const simb::MCTruth*>& mctruth);
53  int GetParticle(const art::Event& evt, std::vector<const simb::MCParticle*>& plist);
54 
55  private:
56  std::map<int, bool> fHighlite;
57  };
58 }
59 
60 #endif
61 ////////////////////////////////////////////////////////////////////////
std::map< int, bool > fHighlite
Define OrthoProj_t enum for selecting orthographic view.
OrthoProj_t
Definition: OrthoProj.h:12
LArSoft includes.
Definition: InfoTransfer.h:33
Base utilities and modules for event generation and detector simulation.
std::string MCTruthShortText(const simb::MCTruth &truth)
Definition: TruthText.cxx:250
TCEvent evt
Definition: DataStructs.cxx:7