Aid in the rendering of RawData objects. More...
#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-03-08/EventDisplay/RawDataDrawer.h"
Public Member Functions | |
RawDataDrawer () | |
~RawDataDrawer () | |
void | FillTQHisto (const art::Event &evt, TH1F *thisto, TH1F *qhisto) |
void | RawDigitHardware (const art::Event &evt, evdb::View2D *view) |
void | RawDigit2D (const art::Event &evt, evdb::View2D *xzview, evdb::View2D *yzview) |
void | RawDigit3D (const art::Event &evt, evdb::View3D *view) |
void | GetLimits (double *xmin, double *xmax, double *ymin, double *ymax, double *zmin, double *zmax) |
Private Member Functions | |
template<class T > | |
bool | GetRawDigits (const art::Event &evt, const std::string &which, const std::string &instance, std::vector< const rawdata::RawDigit * > &rawhits) |
bool | GetRawDigitsMulti (const art::Event &evt, std::vector< const rawdata::RawDigit * > &rawhits) |
void | GetRawDigitsAllLabels (const art::Event &evt, std::vector< const rawdata::RawDigit * > &rawhits) |
int | GetRawTrigger (const art::Event &evt, art::PtrVector< rawdata::RawTrigger > &rawtrigger) |
int | HitColor (const rawdata::RawDigit *hit, const std::set< std::pair< uint32_t, int16_t >> &unfiltered, int *ghosted) |
bool | DimFiltered (const rawdata::RawDigit *hit, const std::set< std::pair< uint32_t, int16_t >> &unfiltered) |
void | Draw3DHitBoxes (std::vector< const rawdata::RawDigit * > &hits, const std::set< std::pair< uint32_t, int16_t >> &unfiltHits, evdb::View3D *view) |
double | ScaleFactor (double t, double q) |
void | StickFigure (evdb::View3D *view, double x, double y, double z) |
Private Attributes | |
double | fXmin |
double | fXmax |
X range spanned by the hits. More... | |
double | fYmin |
double | fYmax |
Y range spanned by the hits. More... | |
double | fZmin |
double | fZmax |
Z range spanned by the hits. More... | |
Aid in the rendering of RawData objects.
Definition at line 27 of file RawDataDrawer.h.
evd::RawDataDrawer::RawDataDrawer | ( | ) |
Definition at line 63 of file RawDataDrawer.cxx.
evd::RawDataDrawer::~RawDataDrawer | ( | ) |
Definition at line 67 of file RawDataDrawer.cxx.
|
private |
Definition at line 678 of file RawDataDrawer.cxx.
References rawdata::RawDigit::Channel(), make_pair(), and rawdata::RawDigit::TDC().
Referenced by HitColor(), and RawDigit2D().
|
private |
Definition at line 377 of file RawDataDrawer.cxx.
References evdb::View3D::AddMarker3DBox(), geo::GeometryBase::CellInfo(), visualisationForPaperMasterPlot::cmap, geo::GeometryBase::DetHalfHeight(), geo::GeometryBase::DetHalfWidth(), dx, dy, dz, geom(), cmap::dataprov::CMap::GetCell(), cmap::dataprov::CMap::GetPlane(), make_syst_table_plots::h, HitColor(), MECModelEnuComparisons::i, evd::kUSEC_PER_TDC, geo::kX, m, ScaleFactor(), confusionMatrixTree::t, and registry_explorer::v.
Referenced by RawDigit2D(), and RawDigit3D().
void evd::RawDataDrawer::FillTQHisto | ( | const art::Event & | evt, |
TH1F * | thisto, | ||
TH1F * | qhisto | ||
) |
Definition at line 71 of file RawDataDrawer.cxx.
References evd::RawDrawingOptions::fTimeRange, evd::RawDrawingOptions::fWhichHits, GetRawDigitsAllLabels(), MECModelEnuComparisons::i, evd::RawDrawingOptions::kRAW_HITS, evd::kUSEC_PER_TDC, and confusionMatrixTree::t.
Referenced by evd::TQPad::Draw().
void evd::RawDataDrawer::GetLimits | ( | double * | xmin, |
double * | xmax, | ||
double * | ymin, | ||
double * | ymax, | ||
double * | zmin, | ||
double * | zmax | ||
) |
Definition at line 473 of file RawDataDrawer.cxx.
References fXmax, fXmin, fYmax, fYmin, fZmax, fZmin, and GetRawDigits().
Referenced by evd::TZProjPad::AutoZoom().
|
private |
Definition at line 488 of file RawDataDrawer.cxx.
References chaninfo::BadChanList::Apply(), art::Handle< T >::failedToGet(), evd::RawDrawingOptions::fRawDrawingOpt, art::DataViewImpl::getByLabel(), GetRawDigitsMulti(), evd::RawDrawingOptions::kMASK_BAD_CHANNELS, T, and APDHVSetting::temp.
Referenced by GetLimits().
|
private |
Definition at line 556 of file RawDataDrawer.cxx.
References om::cout, allTimeWatchdog::endl, evd::RawDrawingOptions::fCellHitsInstances, evd::RawDrawingOptions::fCellHitsModules, evd::RawDrawingOptions::fRawDigitsInstances, evd::RawDrawingOptions::fRawDigitsModules, GetRawDigitsMulti(), m, and string.
Referenced by FillTQHisto(), RawDigit2D(), RawDigit3D(), and RawDigitHardware().
|
private |
Fill in the temporary vector of rawdigits to output reference rawhits
Definition at line 523 of file RawDataDrawer.cxx.
References chaninfo::BadChanList::Apply(), evd::RawDrawingOptions::fRawDrawingOpt, art::DataViewImpl::getManyByType(), evd::RawDrawingOptions::kMASK_BAD_CHANNELS, and APDHVSetting::temp.
Referenced by GetRawDigits(), and GetRawDigitsAllLabels().
|
private |
Definition at line 601 of file RawDataDrawer.cxx.
References art::PtrVector< T >::clear(), art::DataViewImpl::getManyByType(), MECModelEnuComparisons::i, art::PtrVector< T >::push_back(), art::PtrVector< T >::size(), art::PtrVector< T >::swap(), and APDHVSetting::temp.
|
private |
Determine the color to use for the hit. If the hit is flagged to be ghosted out by either its time or charge, ghost the hit
Definition at line 634 of file RawDataDrawer.cxx.
References rawdata::RawDigit::ADC(), evdb::Colors::Background(), colors, DimFiltered(), evd::RawDrawingOptions::fColor, evd::RawDrawingOptions::fRawDrawingOpt, evdb::ColorScale::GetColor(), evdb::ColorScale::InBounds(), evd::RawDrawingOptions::kCOLOR_BY_CHARGE, evd::RawDrawingOptions::kCOLOR_BY_TIME, evd::RawDrawingOptions::kSUPPRESS_DIMMED_HITS, evd::kUSEC_PER_TDC, evdb::Colors::Scale(), confusionMatrixTree::t, and rawdata::RawDigit::TDC().
Referenced by Draw3DHitBoxes(), RawDigit2D(), and RawDigitHardware().
void evd::RawDataDrawer::RawDigit2D | ( | const art::Event & | evt, |
evdb::View2D * | xzview, | ||
evdb::View2D * | yzview | ||
) |
Definition at line 235 of file RawDataDrawer.cxx.
References evdb::View2D::AddBox(), plot_validation_datamc::c, getBrightness::cell, geo::PlaneGeo::Cell(), om::cerr, rawdata::RawDigit::Channel(), visualisationForPaperMasterPlot::cmap, evd::SliceNavigator::CurrentSliceIndex(), DimFiltered(), evd::SliceNavigator::DimOthers(), Draw3DHitBoxes(), makeHTMLView::dt, dz, allTimeWatchdog::endl, evd::GeometryDrawingOptions::fOutline, evd::RawDrawingOptions::fRawDrawingOpt, evd::SliceNavigator::FullEventMode(), evd::RawDrawingOptions::fWhichHits, fXmax, fXmin, fYmax, fYmin, fZmax, fZmin, cmap::dataprov::CMap::GetCell(), geo::CellGeo::GetCenter(), cmap::dataprov::CMap::GetPlane(), GetRawDigitsAllLabels(), geo::CellGeo::HalfD(), geo::CellGeo::HalfW(), HitColor(), MECModelEnuComparisons::i, evd::GeometryDrawingOptions::kOUTLINE_CELLS, evd::RawDrawingOptions::kRAW_HITS, evd::RawDrawingOptions::kSUPPRESS_GHOSTED_HITS, evd::kUSEC_PER_TDC, geo::kX, geo::kY, getGoodRuns4SAM::n, nc, geo::PlaneGeo::Ncells(), geo::GeometryBase::NPlanes(), geo::GeometryBase::Plane(), NDAPDHVSetting::plane, ScaleFactor(), evd::SliceNavigator::SlicesToNavigate(), confusionMatrixTree::t, rawdata::RawDigit::TDC(), registry_explorer::v, geo::PlaneGeo::View(), and evd::GeoTransform::XYZ().
void evd::RawDataDrawer::RawDigit3D | ( | const art::Event & | evt, |
evdb::View3D * | view | ||
) |
Definition at line 430 of file RawDataDrawer.cxx.
References plot_validation_datamc::c, rawdata::RawDigit::Channel(), evd::SliceNavigator::CurrentSliceIndex(), geo::GeometryBase::DetHalfHeight(), geo::GeometryBase::DetHalfWidth(), evd::SliceNavigator::DimOthers(), Draw3DHitBoxes(), evd::SliceNavigator::FullEventMode(), evd::RawDrawingOptions::fWhichHits, geom(), GetRawDigitsAllLabels(), MECModelEnuComparisons::i, evd::RawDrawingOptions::kRAW_HITS, getGoodRuns4SAM::n, nc, evd::SliceNavigator::SlicesToNavigate(), StickFigure(), and rawdata::RawDigit::TDC().
void evd::RawDataDrawer::RawDigitHardware | ( | const art::Event & | evt, |
evdb::View2D * | view | ||
) |
Draw raw data according to hardware address
Definition at line 104 of file RawDataDrawer.cxx.
References evdb::View2D::AddBox(), evdb::View2D::AddLine(), evdb::View2D::AddText(), plot_validation_datamc::c, rawdata::RawDigit::Channel(), evd::SliceNavigator::CurrentSliceIndex(), daqchannelmap::HardwareDisplay::DAQToXY(), febshutoff_auto::dcm, geo::GeometryBase::DetId(), geo2elec::diblock, evd::SliceNavigator::DimOthers(), APDHVSetting::feb, daqchannelmap::HardwareDisplay::fNdcmSide, daqchannelmap::HardwareDisplay::fNdcmTop, daqchannelmap::HardwareDisplay::fNdiblocks, daqchannelmap::HardwareDisplay::fNfebCols, daqchannelmap::HardwareDisplay::fNfebRows, daqchannelmap::HardwareDisplay::fNpixCols, daqchannelmap::HardwareDisplay::fNpixRows, evd::GeometryDrawingOptions::fOutline, evd::RawDrawingOptions::fRawDrawingOpt, evd::SliceNavigator::FullEventMode(), evd::RawDrawingOptions::fWhichHits, daqchannelmap::HardwareDisplay::fXmax, daqchannelmap::HardwareDisplay::fYmax, GetRawDigitsAllLabels(), hd, HitColor(), MECModelEnuComparisons::i, evd::GeometryDrawingOptions::kOUTLINE_CELLS, evd::RawDrawingOptions::kRAW_HITS, evd::RawDrawingOptions::kSUPPRESS_GHOSTED_HITS, evd::kUSEC_PER_TDC, submit_hadd::l, getGoodRuns4SAM::n, nc, ScaleFactor(), daqchannelmap::HardwareDisplay::SetupDet(), evd::SliceNavigator::SlicesToNavigate(), confusionMatrixTree::t, and rawdata::RawDigit::TDC().
Referenced by evd::HardwarePad::Draw().
|
private |
Determine the scale factor to use when rendering hit cells
Definition at line 692 of file RawDataDrawer.cxx.
References evd::RawDrawingOptions::fRawDrawingOpt, evd::RawDrawingOptions::fScaleFactor, evd::RawDrawingOptions::kSCALE_HITS_BY_CHARGE, and std::sqrt().
Referenced by Draw3DHitBoxes(), RawDigit2D(), and RawDigitHardware().
|
private |
Draw a stick figure to scale
Definition at line 707 of file RawDataDrawer.cxx.
References a, evdb::View3D::AddPolyLine3D(), b, readPickles::body, stan::math::fabs(), make_syst_table_plots::h, MECModelEnuComparisons::i, kOrange, submit_hadd::l, MECModelEnuComparisons::leg, xhi, make_syst_table_plots::xlo, yhi, and ylo.
Referenced by RawDigit3D().
|
private |
X range spanned by the hits.
Definition at line 84 of file RawDataDrawer.h.
Referenced by GetLimits(), and RawDigit2D().
|
private |
Definition at line 84 of file RawDataDrawer.h.
Referenced by GetLimits(), and RawDigit2D().
|
private |
Y range spanned by the hits.
Definition at line 85 of file RawDataDrawer.h.
Referenced by GetLimits(), and RawDigit2D().
|
private |
Definition at line 85 of file RawDataDrawer.h.
Referenced by GetLimits(), and RawDigit2D().
|
private |
Z range spanned by the hits.
Definition at line 86 of file RawDataDrawer.h.
Referenced by GetLimits(), and RawDigit2D().
|
private |
Definition at line 86 of file RawDataDrawer.h.
Referenced by GetLimits(), and RawDigit2D().