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 /// \version $Id: SimulationDrawer.h,v 1.2 2010/11/10 22:38:34 p-novaart Exp $
6 ///
7 #ifndef EVD_SIMULATIONDRAWER_H
8 #define EVD_SIMULATIONDRAWER_H
9 #include <string>
10 #include <vector>
11 #include <map>
12 
13 namespace art { class Event; }
14 namespace evdb { class View2D; }
15 namespace evdb { class View3D; }
16 namespace simb {
17  class MCTruth;
18  class MCParticle;
19 }
20 
21 namespace gar {
22  namespace geo { class Geometry; }
23 
24  namespace evd {
26  public:
29 
30  public:
31  // Drawing functions
32  void MCTruthShortText(const art::Event& evt,
33  evdb::View2D* view);
34  void MCTruthLongText(const art::Event& evt,
35  evdb::View2D* view);
36  void MCTruth3D(const art::Event& evt,
37  evdb::View3D* view);
38 
39  void HiLite(int trkId, bool hlt=true);
40 
41  double minx;
42  double maxx;
43  double miny;
44  double maxy;
45  double minz;
46  double maxz;
47 
48  private:
49  int GetMCTruth(const art::Event& evt,
50  std::vector<const simb::MCTruth*>& mctruth);
51 
52  int GetParticle(const art::Event& evt,
53  std::vector<const simb::MCParticle*>& plist);
54 
55  private:
56  std::map<int,bool> fHighlite;
57 
58  };
59 }
60 }
61 #endif
62 ////////////////////////////////////////////////////////////////////////
std::map< int, bool > fHighlite
LArSoft includes.
Definition: InfoTransfer.h:33
Base utilities and modules for event generation and detector simulation.
General GArSoft Utilities.
Definition: types.h:32
std::string MCTruthShortText(const simb::MCTruth &truth)
Definition: TruthText.cxx:250
TCEvent evt
Definition: DataStructs.cxx:7
Event generator information.
Definition: MCTruth.h:32
LArSoft geometry interface.
Definition: ChannelGeo.h:16