12 #include "cetlib_except/exception.h" 31 static const int kQ = 0;
32 static const int kTQ = 1;
45 :
DrawingPad(nm, ti, x1, y1, x2, y2), fWire(wire), fPlane(plane), fFrameHist(0)
51 Pad()->SetLeftMargin(0.050);
52 Pad()->SetRightMargin(0.050);
54 Pad()->SetTopMargin(0.005);
55 Pad()->SetBottomMargin(0.110);
59 if (planes == 2 &&
fPlane > 0) {
60 Pad()->SetTopMargin(0.110);
61 Pad()->SetBottomMargin(0.010);
63 else if (planes > 2) {
65 Pad()->SetTopMargin(0.005);
66 Pad()->SetBottomMargin(0.010);
69 Pad()->SetTopMargin(0.110);
70 Pad()->SetBottomMargin(0.010);
74 std::string opts(opt);
78 Pad()->SetTopMargin(0);
79 Pad()->SetBottomMargin(0.2);
81 if (opts ==
"Q") {
fTQ =
kQ; }
143 if (maxLowVal < std::numeric_limits<float>::max())
147 if (maxHiVal > std::numeric_limits<float>::lowest())
157 static const std::string defaultDrawOptions =
"HIST same";
162 fWireDrawerTool->Draw(defaultDrawOptions.c_str(), maxLowVal, maxHiVal);
194 double qxloraw = cst->
fRawQLow[(size_t)sigType];
195 double qxhiraw = cst->
fRawQHigh[(size_t)sigType];
201 fFrameHist =
new TH1F(
"fFrameHist",
";t [ticks];[ADC]", 2, 0., 1.);
206 fFrameHist =
new TH1F(
"fFrameHist",
";t [ticks];q [ADC]", (
int)tqxhi, tqxlo, tqxhi + tqxlo);
208 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.
cout<< "Opened file "<< fin<< " ixs= "<< ixs<< endl;if(ixs==0) hhh=(TH1F *) fff-> Get("h1")
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
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]
TQPad(const char *nm, const char *ti, double x1, double y1, double x2, double y2, const char *opt, unsigned int plane, unsigned int wire)
cet::coded_exception< error, detail::translate > exception