LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
TQPad.h
Go to the documentation of this file.
1 #ifndef EVD_TQPAD_H
7 #define EVD_TQPAD_H
8 
10 
11 #include <memory> // std::unique_ptr<>
12 
13 class TH1F;
14 
15 namespace evdb {
16  class View2D;
17 }
18 namespace evdb_tool {
19  class IWaveformDrawer;
20  class IWFHitDrawer;
21 }
22 
23 namespace evd {
24  class TQPad : public DrawingPad {
25  public:
26  TQPad(const char* nm,
27  const char* ti,
28  double x1,
29  double y1,
30  double x2,
31  double y2,
32  const char* opt,
33  unsigned int plane,
34  unsigned int wire);
35 
36  ~TQPad();
37 
38  void Draw();
39 
40  void SetPlaneWire(unsigned int plane = 0, unsigned int wire = 0)
41  {
42  fPlane = plane;
43  fWire = wire;
44  }
45 
46  private:
47  void BookHistogram();
48 
49  using IWFHitDrawerPtr = std::unique_ptr<evdb_tool::IWFHitDrawer>;
50  using IWaveformDrawerPtr = std::unique_ptr<evdb_tool::IWaveformDrawer>;
51 
52  unsigned int fWire;
53  unsigned int fPlane;
54  int fTQ;
55  TH1F* fFrameHist;
60  };
61 }
62 
63 #endif
64 
IWFHitDrawerPtr fHitDrawerTool
An instance of the tool to draw hits.
Definition: TQPad.h:57
unsigned int fPlane
Which plane in the detector.
Definition: TQPad.h:53
TH1F * fFrameHist
A dummy histogram to define the axes.
Definition: TQPad.h:55
Float_t y1[n_points_granero]
Definition: compare.C:5
Float_t x1[n_points_granero]
Definition: compare.C:5
hist1 Draw("HIST")
IWaveformDrawerPtr fWireDrawerTool
An instance of the tool to draw hits.
Definition: TQPad.h:59
Manage all things related to colors for the event display.
Float_t y2[n_points_geant4]
Definition: compare.C:26
unsigned int fWire
Definition: TQPad.h:52
evdb::View2D * fView
Superimpose scale on 1D histo.
Definition: TQPad.h:56
Base class for all event display drawing pads.
LArSoft includes.
Base class for event display drawing pads.
Definition: DrawingPad.h:27
std::unique_ptr< evdb_tool::IWaveformDrawer > IWaveformDrawerPtr
Definition: TQPad.h:50
std::unique_ptr< evdb_tool::IWFHitDrawer > IWFHitDrawerPtr
Definition: TQPad.h:49
IWaveformDrawerPtr fRawDigitDrawerTool
An instance of the tool to draw hits.
Definition: TQPad.h:58
int fTQ
0 = plot shows charge only, 1 = plot shows charge vs time for a wire
Definition: TQPad.h:54
Float_t x2[n_points_geant4]
Definition: compare.C:26
void SetPlaneWire(unsigned int plane=0, unsigned int wire=0)
Definition: TQPad.h:40