12 #include "cetlib_except/exception.h" 32 static const int kQ = 0;
33 static const int kTQ = 1;
46 :
DrawingPad(nm, ti, x1, y1, x2, y2), fWire(wire), fPlane(plane), fFrameHist(0)
49 unsigned int planes = geo->
Nplanes();
53 this->
Pad()->SetLeftMargin(0.050);
54 this->
Pad()->SetRightMargin(0.050);
56 this->
Pad()->SetTopMargin(0.005);
57 this->
Pad()->SetBottomMargin(0.110);
61 if (planes == 2 &&
fPlane > 0) {
62 this->
Pad()->SetTopMargin(0.110);
63 this->
Pad()->SetBottomMargin(0.010);
65 else if (planes > 2) {
67 this->
Pad()->SetTopMargin(0.005);
68 this->
Pad()->SetBottomMargin(0.010);
71 this->
Pad()->SetTopMargin(0.110);
72 this->
Pad()->SetBottomMargin(0.010);
76 std::string opts(opt);
80 this->
Pad()->SetTopMargin(0);
81 this->
Pad()->SetBottomMargin(0.2);
83 if (opts ==
"Q") {
fTQ =
kQ; }
146 if (maxLowVal < std::numeric_limits<float>::max())
150 if (maxHiVal > std::numeric_limits<float>::lowest())
160 static const std::string defaultDrawOptions =
"HIST same";
165 fWireDrawerTool->Draw(defaultDrawOptions.c_str(), maxLowVal, maxHiVal);
260 double qxloraw = cst->
fRawQLow[(size_t)sigType];
261 double qxhiraw = cst->
fRawQHigh[(size_t)sigType];
267 fFrameHist =
new TH1F(
"fFrameHist",
";t [ticks];[ADC]", 2, 0., 1.);
272 fFrameHist =
new TH1F(
"fFrameHist",
";t [ticks];q [ADC]", (
int)tqxhi, tqxlo, tqxhi + tqxlo);
274 default:
throw cet::exception(
"TQPad") << __func__ <<
": unexpected quantity #" <<
fTQ <<
"\n";
const art::Event * GetEvent() const
IWFHitDrawerPtr fHitDrawerTool
An instance of the tool to draw hits.
std::vector< double > fRawQLow
low edge of ADC values for drawing raw digits
unsigned int fTPC
TPC number to draw, typically set by TWQProjectionView.
unsigned int fPlane
Which plane in the detector.
TH1F * fFrameHist
A dummy histogram to define the axes.
Float_t y1[n_points_granero]
int fDrawRawDataOrCalibWires
0 for raw
Float_t x1[n_points_granero]
IWaveformDrawerPtr fWireDrawerTool
An instance of the tool to draw hits.
The data type to uniquely identify a Plane.
fhicl::ParameterSet fRawDigitDrawerParams
FHICL parameters for the RawDigit waveform display.
Drawing pad for time or charge histograms.
A collection of drawable 2-D objects.
Singleton to hold the current art::Event for the event display.
Float_t y2[n_points_geant4]
The color scales used by the event display.
evdb::View2D * fView
Superimpose scale on 1D histo.
RawDataDrawer * RawDataDraw()
unsigned int fCryostat
Cryostat number to draw, typically set by TWQProjectionView.
enum geo::_plane_sigtype SigType_t
Enumerate the possible plane projections.
static EventHolder * Instance()
fhicl::ParameterSet fWireDrawerParams
FHICL parameters for the wire drawing.
Base class for event display drawing pads.
geo::TPCID CurrentTPC() const
Returns the current TPC as a TPCID.
double TotalClockTicks() const
Class to aid in the rendering of RawData objects.
std::vector< double > fRawQHigh
high edge of ADC values for drawing raw digits
IWaveformDrawerPtr fRawDigitDrawerTool
An instance of the tool to draw hits.
int fTQ
0 = plot shows charge only, 1 = plot shows charge vs time for a wire
raw::ChannelID_t PlaneWireToChannel(WireID const &wireid) const
Returns the ID of the TPC channel connected to the specified wire.
unsigned int Nplanes(TPCID const &tpcid=tpc_zero) const
Returns the total number of planes in the specified TPC.
TPad * fPad
The ROOT graphics pad.
fhicl::ParameterSet fHitDrawerParams
FHICL parameters for the hit drawing.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
Float_t x2[n_points_geant4]
Namespace collecting geometry-related classes utilities.
TQPad(const char *nm, const char *ti, double x1, double y1, double x2, double y2, const char *opt, unsigned int plane, unsigned int wire)
art framework interface to geometry description
cet::coded_exception< error, detail::translate > exception