TQPad.h
Go to the documentation of this file.
1 ///
2 /// \file TQPad.h
3 /// \brief Drawing pad for time or charge histograms
4 /// \author messier@indiana.edu
5 /// \version $Id: TQPad.h,v 1.3 2010-12-14 03:22:16 p-novaart Exp $
6 ///
7 #ifndef EVD_TQPAD_H
8 #define EVD_TQPAD_H
9 #include "RQ_OBJECT.h"
11 namespace evdb { class View2D; }
12 class TH1F;
13 
14 namespace evd {
15  class TQPad : public DrawingPad{
16  RQ_OBJECT("evd::TQPad")
17  public:
18  TQPad(const char* nm, const char* ti,
19  double x1, double y1,
20  double x2, double y2,
21  const char* opt);
22  ~TQPad();
23  void Draw();
24 
25  void RangeChanged();
26 
27  private:
28  void BookHistogram();
29 
30  int fTorQ; ///< 0 = plot shows time, 1 = plot shows charge
31  TH1F* fHisto; ///< 1-D Histogram of time or charge
32  evdb::View2D* fView; ///< Superimpose scale on 1D histo
33 
34  };
35 }
36 
37 #endif
38 ////////////////////////////////////////////////////////////////////////
tree Draw("slc.nhit")
Float_t y1[n_points_granero]
Definition: compare.C:5
Float_t x1[n_points_granero]
Definition: compare.C:5
static constexpr Double_t nm
Definition: Munits.h:133
Manage all things related to colors for the event display.
Definition: Display3DPad.h:11
evdb::View2D * fView
Superimpose scale on 1D histo.
Definition: TQPad.h:32
Base class for all event display drawing pads.
nova event display
Base class for event display drawing pads.
Definition: DrawingPad.h:20
TH1F * fHisto
1-D Histogram of time or charge
Definition: TQPad.h:31
int fTorQ
0 = plot shows time, 1 = plot shows charge
Definition: TQPad.h:30